Verified contractExactMIT
ArbitrageExecutor
Address0xae5f8ff4fcb9e1cdee3e06d67bf24d463c0388e5
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,466,426
- Creation transaction
- 0x2c97f7c980…67fe237e05
Read25
- BPS_DENOMINATOR() → (uint256)
- MAX_BATCH_SIZE() → (uint256)
- MAX_EXECUTION_DELAY() → (uint256)
- MAX_HOPS() → (uint256)
- MAX_PLAN_LIFETIME() → (uint256)
- MAX_SLIPPAGE_BPS() → (uint256)
- MIN_HOPS() → (uint256)
- PROFIT_LOCK_PERIOD() → (uint256)
- aavePool() → (address)
- activeAmount() → (uint256)
- activeAsset() → (address)
- activeRequestHash() → (bytes32)
- balanceBefore() → (uint256)
- executionStartTime() → (uint256)
- executor() → (address)
- flashLoanPremiumBps() → (uint256)
- loanOpen() → (bool)
- minProfitBps() → (uint256)
- owner() → (address)
- paused() → (bool)
- previewRoute(uint256,tuple[]) → (uint256[])
- profitUnlockTime() → (uint256)
- routerWhitelist(address) → (bool)
- slippageBps() → (uint256)
- tokenWhitelist(address) → (bool)
Write13
- emergencyProfitWithdraw(address,address,uint256)
- executeOperation(address,uint256,uint256,address,bytes) → (bool)
- pause()
- setExecutor(address)
- setMinProfitBps(uint256)
- setMultipleRouters(address[],bool[])
- setMultipleTokens(address[],bool[])
- setRouterAllowed(address,bool)
- setSlippageBps(uint256)
- setTokenAllowed(address,bool)
- startArbitrage(address,uint256,uint256,tuple[])
- sweepToken(address,address,uint256)
- unpause()
Events12
- ExecutionDelayed(uint256,uint256)
- ExecutorUpdated(address)
- FlashCompleted(address,uint256,uint256,uint256,bytes32)
- FlashRequested(address,uint256,uint256,uint256,bytes32)
- HopExecuted(uint256,uint8,address,address,address,uint256,uint256)
- MinProfitBpsUpdated(uint256)
- PauseStatusChanged(bool)
- ProfitWithdrawn(address,address,uint256)
- RouterWhitelistUpdated(address,bool)
- SlippageBpsUpdated(uint256)
- TokenRecovered(address,address,uint256)
- TokenWhitelistUpdated(address,bool)
Errors33
- AddressNotContract(address)
- ArithmeticOverflow()
- BadCallback()
- BatchTooLarge()
- ContractPaused()
- DeadlineExpired()
- DeadlineTooFar()
- EmptyRouterResult()
- ExecutionTimeout()
- HopMinOutZero()
- InsufficientLoanBalance()
- InvalidHopCount()
- LoanAlreadyOpen()
- MinProfitBpsZero()
- MustBePaused()
- NativeTransfersDisabled()
- NoLoanOpen()
- NoProfitableRouteFound()
- ProfitWithdrawalLocked()
- ReentrantCall()
- RouteMustStartAndEndOnAsset()
- RouterNotWhitelisted(address)
- SlippageBpsTooHigh()
- TokenCallMalformed(address)
- TokenCallReturnedFalse(address)
- TokenCallReverted(address,bytes)
- TokenNotWhitelisted(address)
- Unauthorized()
- UnlockTimeNotReached()
- UnsupportedDexType()
- ZeroAddress()
- ZeroAmount()
- ZeroRouterOutput()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "pool_",
"type": "address",
"internalType": "address"
},
{
"name": "executor_",
"type": "address",
"internalType": "address"
},
{
"name": "routers",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "nonpayable"
},
{
"name": "AddressNotContract",
"type": "error",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "ArithmeticOverflow",
"type": "error",
"inputs": []
},
{
"name": "BadCallback",
"type": "error",
"inputs": []
},
{
"name": "BatchTooLarge",
"type": "error",
"inputs": []
},
{
"name": "ContractPaused",
"type": "error",
"inputs": []
},
{
"name": "DeadlineExpired",
"type": "error",
"inputs": []
},
{
"name": "DeadlineTooFar",
"type": "error",
"inputs": []
},
{
"name": "EmptyRouterResult",
"type": "error",
"inputs": []
},
{
"name": "ExecutionTimeout",
"type": "error",
"inputs": []
},
{
"name": "HopMinOutZero",
"type": "error",
"inputs": []
},
{
"name": "InsufficientLoanBalance",
"type": "error",
"inputs": []
},
{
"name": "InvalidHopCount",
"type": "error",
"inputs": []
},
{
"name": "LoanAlreadyOpen",
"type": "error",
"inputs": []
},
{
"name": "MinProfitBpsZero",
"type": "error",
"inputs": []
},
{
"name": "MustBePaused",
"type": "error",
"inputs": []
},
{
"name": "NativeTransfersDisabled",
"type": "error",
"inputs": []
},
{
"name": "NoLoanOpen",
"type": "error",
"inputs": []
},
{
"name": "NoProfitableRouteFound",
"type": "error",
"inputs": []
},
{
"name": "ProfitWithdrawalLocked",
"type": "error",
"inputs": []
},
{
"name": "ReentrantCall",
"type": "error",
"inputs": []
},
{
"name": "RouteMustStartAndEndOnAsset",
"type": "error",
"inputs": []
},
{
"name": "RouterNotWhitelisted",
"type": "error",
"inputs": [
{
"name": "router",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "SlippageBpsTooHigh",
"type": "error",
"inputs": []
},
{
"name": "TokenCallMalformed",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TokenCallReturnedFalse",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TokenCallReverted",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "TokenNotWhitelisted",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "Unauthorized",
"type": "error",
"inputs": []
},
{
"name": "UnlockTimeNotReached",
"type": "error",
"inputs": []
},
{
"name": "UnsupportedDexType",
"type": "error",
"inputs": []
},
{
"name": "ZeroAddress",
"type": "error",
"inputs": []
},
{
"name": "ZeroAmount",
"type": "error",
"inputs": []
},
{
"name": "ZeroRouterOutput",
"type": "error",
"inputs": []
},
{
"name": "ExecutionDelayed",
"type": "event",
"inputs": [
{
"name": "elapsed",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "limit",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "ExecutorUpdated",
"type": "event",
"inputs": [
{
"name": "executor",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "FlashCompleted",
"type": "event",
"inputs": [
{
"name": "asset",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "premium",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "profit",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "requestHash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "FlashRequested",
"type": "event",
"inputs": [
{
"name": "asset",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "hopCount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "requestHash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "HopExecuted",
"type": "event",
"inputs": [
{
"name": "hopIndex",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "dexType",
"type": "uint8",
"indexed": false,
"internalType": "enum ArbitrageExecutor.DexType"
},
{
"name": "router",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amountIn",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MinProfitBpsUpdated",
"type": "event",
"inputs": [
{
"name": "bps",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PauseStatusChanged",
"type": "event",
"inputs": [
{
"name": "isPaused",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "ProfitWithdrawn",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RouterWhitelistUpdated",
"type": "event",
"inputs": [
{
"name": "router",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "SlippageBpsUpdated",
"type": "event",
"inputs": [
{
"name": "bps",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "TokenRecovered",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "TokenWhitelistUpdated",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "fallback",
"stateMutability": "payable"
},
{
"name": "BPS_DENOMINATOR",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MAX_BATCH_SIZE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MAX_EXECUTION_DELAY",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MAX_HOPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MAX_PLAN_LIFETIME",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MAX_SLIPPAGE_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MIN_HOPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "PROFIT_LOCK_PERIOD",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "aavePool",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "activeAmount",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "activeAsset",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "activeRequestHash",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "balanceBefore",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "emergencyProfitWithdraw",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "executeOperation",
"type": "function",
"inputs": [
{
"name": "asset",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "premium",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "initiator",
"type": "address",
"internalType": "address"
},
{
"name": "params",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "executionStartTime",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "executor",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "flashLoanPremiumBps",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "loanOpen",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "minProfitBps",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "paused",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "previewRoute",
"type": "function",
"inputs": [
{
"name": "amountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hops",
"type": "tuple[]",
"components": [
{
"name": "dexType",
"type": "uint8",
"internalType": "enum ArbitrageExecutor.DexType"
},
{
"name": "router",
"type": "address",
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint24",
"internalType": "uint24"
}
],
"internalType": "struct ArbitrageExecutor.Hop[]"
}
],
"outputs": [
{
"name": "amountsOut",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "profitUnlockTime",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "routerWhitelist",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "setExecutor",
"type": "function",
"inputs": [
{
"name": "executor_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMinProfitBps",
"type": "function",
"inputs": [
{
"name": "bps",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMultipleRouters",
"type": "function",
"inputs": [
{
"name": "routers",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "allowed",
"type": "bool[]",
"internalType": "bool[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMultipleTokens",
"type": "function",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "allowed",
"type": "bool[]",
"internalType": "bool[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setRouterAllowed",
"type": "function",
"inputs": [
{
"name": "router",
"type": "address",
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setSlippageBps",
"type": "function",
"inputs": [
{
"name": "bps",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setTokenAllowed",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "slippageBps",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "startArbitrage",
"type": "function",
"inputs": [
{
"name": "asset",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hops",
"type": "tuple[]",
"components": [
{
"name": "dexType",
"type": "uint8",
"internalType": "enum ArbitrageExecutor.DexType"
},
{
"name": "router",
"type": "address",
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint24",
"internalType": "uint24"
}
],
"internalType": "struct ArbitrageExecutor.Hop[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "sweepToken",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "tokenWhitelist",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "unpause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.