0 txs
15 calls
constructor
constructor(address _zeroExProxy, address _wethAddress)
functions
decodeParams
purefunction decodeParams(bytes data) pure returns (tuple zeroExSwapParams)
getSpender
viewfunction getSpender() view returns (address)
wethAddress
viewfunction wethAddress() view returns (address)
zeroExAddress
viewfunction zeroExAddress() view returns (address)
swapCall
payablefunction swapCall(tuple params) payable returns (uint256, address)
swapDelegate
payablefunction swapDelegate(tuple params) payable returns (uint256, address)
swapUsingValidatedPathCall
payablefunction swapUsingValidatedPathCall(tuple params) payable returns (uint256, address)
events
Swap
event Swap(address indexed actor, address indexed inputToken, uint256 inputAmount, address indexed outputToken, uint256 outputAmount)
errors
InvalidERC20Address
error InvalidERC20Address()
InvalidExecutedOutputAmount
error InvalidExecutedOutputAmount()
InvalidMsgValue
error InvalidMsgValue()
InvalidSwapInputAmount
error InvalidSwapInputAmount()
SwapDeadlineExceeded
error SwapDeadlineExceeded()
creation bytecode
0x60e060405234801561001057600080fd5b5060405161156f38038061156f83398101604081905261002f9161006d565b60016000556001600160a01b039182166080819052911660a05260c0526100a0565b80516001600160a01b038116811461006857600080fd5b919050565b6000806040838503121561008057600080fd5b61008983610051565b915061009760208401610051565b90509250929050565b60805160a05160c0516114946100db600039600060e3015260006101470152600081816092015281816105cd01526109c001526114946000f3fe6080604052600436106100745760003560e01c80634f0e0ef31161004e5780634f0e0ef3146101355780636a89cd4914610169578063acd082de1461017c578063edfd6d00146101a957600080fd5b80632658b4ad14610080578063334fc289146100d157806340eb44091461010557600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100dd57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b610118610113366004611075565b6101bc565b604080519283526001600160a01b039091166020830152016100c8565b34801561014157600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b610118610177366004611075565b6101ed565b34801561018857600080fd5b5061019c6101973660046111c8565b61020b565b6040516100c8919061124d565b6101186101b7366004611075565b61023a565b6000806101c7610258565b6101da6101d384611289565b60016102b6565b915091506101e86001600055565b915091565b6000806101f8610258565b6101da61020484611289565b600061043b565b60408051808201909152600081526060602082015281806020019051810190610234919061132c565b92915050565b600080610245610258565b6101da61025184611289565b60006102b6565b6002600054036102af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055565b8151602083015160009182916001600160a01b039190911673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14908180156102f0575080155b1561030e5760405163e9152f6360e01b815260040160405180910390fd5b81801561031b5750348114155b1561033957604051631841b4e160e01b815260040160405180910390fd5b8115801561034657503415155b1561036457604051631841b4e160e01b815260040160405180910390fd5b6000811161037c5785516103779061049d565b61037e565b805b602087015285516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146103c5576103c533602088015188516001600160a01b031691903090610541565b6103ce8661059d565b508094505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b031686604001516001600160a01b0316036104135761040e33856106e7565b61042c565b61042c3360408801516001600160a01b031690866106f7565b50505060408301519250929050565b60208201516000908190818161045b5785516104569061074d565b61045d565b815b9050806000036104805760405163e9152f6360e01b815260040160405180910390fd5b602086018190526104908661059d565b9350935050509250929050565b6000806001600160a01b03831663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa1580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051e91906113e1565b9050806000036102345760405163e9152f6360e01b815260040160405180910390fd5b8373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610580576040516376fe282b60e11b815260040160405180910390fd5b81156105925761059285858585610801565b5050505050565b5050565b805160009081906001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461060457610604307f0000000000000000000000000000000000000000000000000000000000000000602086015186516001600160a01b031692919061089a565b6000610613846040015161074d565b905061061e8461096c565b8061062c856040015161074d565b6106369190611410565b90508360600151811015610676576040517fc73b8cbc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604084015184516001600160a01b039182169116336001600160a01b03167f5380cf97d8f645d3c4896da60c053458dca03a3a31cec642ac80e1ddf0d8d02a8760200151856040516106d2929190918252602082015260400190565b60405180910390a46040909301519293915050565b8015610599576105998282610a50565b8273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610736576040516376fe282b60e11b815260040160405180910390fd5b811561074757610747848484610ab0565b50505050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0383160161077b575047919050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156107d8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023491906113e1565b919050565b6040516001600160a01b03808516602483015283166044820152606481018290526107479085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152610af9565b8373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038216016108d9576040516376fe282b60e11b815260040160405180910390fd5b604051636eb1769f60e11b81526001600160a01b03858116600483015284811660248301526000919087169063dd62ed3e90604401602060405180830381865afa15801561092b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094f91906113e1565b11156109615761096185846000610be1565b610592858484610cfd565b600061097b826080015161020b565b905042816000015110156109bb576040517f7617263100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163484602001516040516109fb9190611423565b60006040518083038185875af1925050503d8060008114610a38576040519150601f19603f3d011682016040523d82523d6000602084013e610a3d565b606091505b5091509150816107475761074781610daa565b600080600080600085875af1905080610aab5760405162461bcd60e51b815260206004820152601360248201527f4554485f5452414e534645525f4641494c45440000000000000000000000000060448201526064016102a6565b505050565b6040516001600160a01b038316602482015260448101829052610aab9084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161084e565b6000610b4e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ece9092919063ffffffff16565b9050805160001480610b6f575080806020019051810190610b6f919061143f565b610aab5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102a6565b801580610c5b5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610c35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5991906113e1565b155b610ccd5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016102a6565b6040516001600160a01b038316602482015260448101829052610aab90849063095ea7b360e01b9060640161084e565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610d4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7191906113e1565b90506107478463095ea7b360e01b85610d8a8686611461565b6040516001600160a01b039092166024830152604482015260640161084e565b600481511015610dfc5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c5574696c733a2074617267657420726576657274282900000000000060448201526064016102a6565b60208101517fb1b7848f000000000000000000000000000000000000000000000000000000006001600160e01b0319821601610ec55760408051808201825260208082527f43616c6c5574696c733a207461726765742070616e69636b65643a2030785f5f90820190815260248501517f43616c6c5574696c733a207461726765742070616e69636b65643a2030780000600482811c600f908116603090810160081b918516011791909117909252925162461bcd60e51b81529192916102a691849101611474565b81518060208401fd5b6060610edd8484600085610ee5565b949350505050565b606082471015610f5d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102a6565b600080866001600160a01b03168587604051610f799190611423565b60006040518083038185875af1925050503d8060008114610fb6576040519150601f19603f3d011682016040523d82523d6000602084013e610fbb565b606091505b5091509150610fcc87838387610fd7565b979650505050505050565b6060831561104657825160000361103f576001600160a01b0385163b61103f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a6565b5081610edd565b610edd838381511561105b5781518083602001fd5b8060405162461bcd60e51b81526004016102a69190611474565b60006020828403121561108757600080fd5b813567ffffffffffffffff81111561109e57600080fd5b820160c081850312156110b057600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c0810167ffffffffffffffff811182821017156110f0576110f06110b7565b60405290565b6040805190810167ffffffffffffffff811182821017156110f0576110f06110b7565b604051601f8201601f1916810167ffffffffffffffff81118282101715611142576111426110b7565b604052919050565b600067ffffffffffffffff821115611164576111646110b7565b50601f01601f191660200190565b600082601f83011261118357600080fd5b81356111966111918261114a565b611119565b8181528460208386010111156111ab57600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156111da57600080fd5b813567ffffffffffffffff8111156111f157600080fd5b610edd84828501611172565b60005b83811015611218578181015183820152602001611200565b50506000910152565b600081518084526112398160208601602086016111fd565b601f01601f19169290920160200192915050565b602081528151602082015260006020830151604080840152610edd6060840182611221565b80356001600160a01b03811681146107fc57600080fd5b600060c0823603121561129b57600080fd5b6112a36110cd565b6112ac83611272565b8152602083013560208201526112c460408401611272565b604082015260608301356060820152608083013567ffffffffffffffff808211156112ee57600080fd5b6112fa36838701611172565b608084015260a085013591508082111561131357600080fd5b5061132036828601611172565b60a08301525092915050565b6000602080838503121561133f57600080fd5b825167ffffffffffffffff8082111561135757600080fd5b908401906040828703121561136b57600080fd5b6113736110f6565b82518152838301518281111561138857600080fd5b80840193505086601f84011261139d57600080fd5b825191506113ad6111918361114a565b82815287858486010111156113c157600080fd5b6113d0838683018787016111fd565b938101939093525090949350505050565b6000602082840312156113f357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610234576102346113fa565b600082516114358184602087016111fd565b9190910192915050565b60006020828403121561145157600080fd5b815180151581146110b057600080fd5b80820180821115610234576102346113fa565b6020815260006110b0602083018461122156fea164736f6c6343000812000a000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2