chore: cleanup
This commit is contained in:
@@ -3,7 +3,6 @@ pragma solidity ^0.8.26;
|
||||
|
||||
import "@interfaces/IExecutor.sol";
|
||||
import "@interfaces/ICallback.sol";
|
||||
import "forge-std/console.sol";
|
||||
|
||||
error Dispatcher__UnapprovedExecutor();
|
||||
error Dispatcher__NonContractExecutor();
|
||||
@@ -83,7 +82,7 @@ contract Dispatcher {
|
||||
}
|
||||
|
||||
function _handleCallback(bytes4 selector, bytes memory data) internal {
|
||||
// Access the last 20 bytes of the bytes memory data using assembly
|
||||
// Using assembly to access the last 20 bytes of the bytes memory data
|
||||
address executor;
|
||||
// slither-disable-next-line assembly
|
||||
assembly {
|
||||
|
||||
@@ -227,10 +227,10 @@ contract TychoRouter is
|
||||
* This function will static call a verifier contract and should revert if the
|
||||
* caller is not a pool.
|
||||
*/
|
||||
// fallback() external {
|
||||
// bytes4 selector = bytes4(msg.data[:4]);
|
||||
// _handleCallback(selector, msg.data[4:]);
|
||||
// }
|
||||
fallback() external {
|
||||
bytes4 selector = bytes4(msg.data[:4]);
|
||||
_handleCallback(selector, msg.data[4:]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Pauses the contract
|
||||
|
||||
@@ -6,7 +6,6 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
||||
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
|
||||
import "@uniswap/v3-updated/CallbackValidationV2.sol";
|
||||
import "@interfaces/ICallback.sol";
|
||||
import "forge-std/console.sol";
|
||||
|
||||
error UniswapV3Executor__InvalidDataLength();
|
||||
error UniswapV3Executor__InvalidFactory();
|
||||
|
||||
Reference in New Issue
Block a user