25 txs
1.2k calls
constructor
No constructor.
functions
getLimits
viewfunction getLimits(address eulerSwap, address tokenIn, address tokenOut) view returns (uint256, uint256)
quoteExactInput
viewfunction quoteExactInput(address eulerSwap, address tokenIn, address tokenOut, uint256 amountIn) view returns (uint256)
quoteExactOutput
viewfunction quoteExactOutput(address eulerSwap, address tokenIn, address tokenOut, uint256 amountOut) view returns (uint256)
swapExactIn
nonpayablefunction swapExactIn(address eulerSwap, address tokenIn, address tokenOut, uint256 amountIn, address receiver, uint256 amountOutMin, uint256 deadline)
swapExactOut
nonpayablefunction swapExactOut(address eulerSwap, address tokenIn, address tokenOut, uint256 amountOut, address receiver, uint256 amountInMax, uint256 deadline)
events
No events.
errors
AmountInMoreThanMax
error AmountInMoreThanMax()
AmountOutLessThanMin
error AmountOutLessThanMin()
DeadlineExpired
error DeadlineExpired()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x6080604052348015600e575f5ffd5b506109768061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610064575f3560e01c806365202c091161004d57806365202c09146100a3578063664b8d7a146100b6578063995d61aa146100de575f5ffd5b8063534eaf0f146100685780635d10bc221461008e575b5f5ffd5b61007b610076366004610812565b6100f1565b6040519081526020015b60405180910390f35b6100a161009c36600461085a565b6101a2565b005b6100a16100b136600461085a565b6102e0565b6100c96100c43660046108c7565b610414565b60408051928352602083019190915201610085565b61007b6100ec366004610812565b6104b9565b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152838116602483015260448201839052600160648301525f9190861690638e0dc28d906084015b602060405180830381865afa158015610175573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101999190610907565b95945050505050565b8015806101af5750428110155b6101e5576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301528681166024830152604482018690525f606483018190529190891690638e0dc28d90608401602060405180830381865afa158015610268573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028c9190610907565b9050828111156102c8576040517f6ba1b98500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102d6888888848989610526565b5050505050505050565b8015806102ed5750428110155b610323576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015260448201869052600160648301525f9190891690638e0dc28d90608401602060405180830381865afa1580156103a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ca9190610907565b905082811015610406576040517fdb28357200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102d6888888888589610526565b6040517faaed87a300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015282811660248301525f91829186169063aaed87a3906044016040805180830381865afa158015610489573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ad919061091e565b91509150935093915050565b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301528381166024830152604482018390525f606483018190529190861690638e0dc28d9060840161015a565b61054873ffffffffffffffffffffffffffffffffffffffff86163388866106ac565b73ffffffffffffffffffffffffffffffffffffffff8085169086161080610608576040517f022c0d9f000000000000000000000000000000000000000000000000000000008152600481018490525f6024820181905273ffffffffffffffffffffffffffffffffffffffff848116604484015260806064840152608483019190915288169063022c0d9f9060a4015f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050506106a3565b6040517f022c0d9f0000000000000000000000000000000000000000000000000000000081525f600482018190526024820185905273ffffffffffffffffffffffffffffffffffffffff848116604484015260806064840152608483019190915288169063022c0d9f9060a4015f604051808303815f87803b15801561068c575f5ffd5b505af115801561069e573d5f5f3e3d5ffd5b505050505b50505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610741908590610747565b50505050565b5f5f60205f8451602086015f885af180610766576040513d5f823e3d81fd5b50505f513d9150811561077d578060011415610797565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610741576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260240160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461080d575f5ffd5b919050565b5f5f5f5f60808587031215610825575f5ffd5b61082e856107ea565b935061083c602086016107ea565b925061084a604086016107ea565b9396929550929360600135925050565b5f5f5f5f5f5f5f60e0888a031215610870575f5ffd5b610879886107ea565b9650610887602089016107ea565b9550610895604089016107ea565b9450606088013593506108aa608089016107ea565b9699959850939692959460a0840135945060c09093013592915050565b5f5f5f606084860312156108d9575f5ffd5b6108e2846107ea565b92506108f0602085016107ea565b91506108fe604085016107ea565b90509250925092565b5f60208284031215610917575f5ffd5b5051919050565b5f5f6040838503121561092f575f5ffd5b50508051602090910151909290915056fea26469706673582212205a45a284597d2e95e6f8e6843e89f4a222713066fb2fa3da0800222c6fb4721b64736f6c634300081b0033