0 txs
1 call
constructor
constructor(address liquidationPairFactory_)
functions
flashSwapCallback
nonpayablefunction flashSwapCallback(address _sender, uint256 _amountIn, uint256, bytes _flashSwapData)
swapExactAmountOut
nonpayablefunction swapExactAmountOut(address _liquidationPair, address _receiver, uint256 _amountOut, uint256 _amountInMax, uint256 _deadline) returns (uint256)
events
LiquidationRouterCreated
event LiquidationRouterCreated(address indexed liquidationPairFactory)
SwappedExactAmountOut
event SwappedExactAmountOut(address indexed liquidationPair, address indexed sender, address indexed receiver, uint256 amountOut, uint256 amountInMax, uint256 amountIn, uint256 deadline)
errors
InvalidSender
error InvalidSender(address sender)
SwapExpired
error SwapExpired(uint256 deadline)
UndefinedTpdaLiquidationPairFactory
error UndefinedTpdaLiquidationPairFactory()
UnknownTpdaLiquidationPair
error UnknownTpdaLiquidationPair(address liquidationPair)
creation bytecode
0x60a060405234801561001057600080fd5b50604051610afd380380610afd83398101604081905261002f91610094565b6001600160a01b03811661005657604051631f430fc360e01b815260040160405180910390fd5b6001600160a01b03811660808190526040517f04337867c8cdd891953510b2e9be14ee44ea71956bc526708728f14bc6eef24190600090a2506100c4565b6000602082840312156100a657600080fd5b81516001600160a01b03811681146100bd57600080fd5b9392505050565b608051610a186100e560003960008181609901526102e00152610a186000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80631820b47f1461003b578063a5a6edad14610060575b600080fd5b61004e6100493660046107c9565b610075565b60405190815260200160405180910390f35b61007361006e36600461081a565b6102c8565b005b604051639cded5ab60e01b81526001600160a01b03808716600483015260009187917f00000000000000000000000000000000000000000000000000000000000000001690639cded5ab90602401602060405180830381865afa1580156100e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010491906108b0565b61013157604051636d4892bb60e11b81526001600160a01b03821660048201526024015b60405180910390fd5b82421115610155576040516372c18cf560e01b815260048101849052602401610128565b604080513360208201526000916001600160a01b038a1691631cf8287d9130918a918a91016040516020818303038152906040526040518563ffffffff1660e01b81526004016101a89493929190610929565b6020604051808303816000875af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610960565b905061026487878a6001600160a01b031663d0202d3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102549190610979565b6001600160a01b031691906104a6565b6040805187815260208101879052908101829052606081018590526001600160a01b038089169133918b16907fc3e764298a9fad13823b73a0d08df8366d14e2b62920b94b42c635f0ddd0d7b49060800160405180910390a4979650505050505050565b604051639cded5ab60e01b81523360048201819052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639cded5ab90602401602060405180830381865afa15801561032f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035391906108b0565b61037b57604051636d4892bb60e11b81526001600160a01b0382166004820152602401610128565b856001600160a01b03811630146103b0576040516313053d9360e21b81526001600160a01b0382166004820152602401610128565b60006103be84860186610996565b905061049c81336001600160a01b031663d4b839926040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104289190610979565b89336001600160a01b0316636daf390b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048b9190610979565b6001600160a01b031692919061050e565b5050505050505050565b6040516001600160a01b03831660248201526044810182905261050990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261054c565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526105469085906323b872dd60e01b906084016104d2565b50505050565b60006105a1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106219092919063ffffffff16565b90508051600014806105c25750808060200190518101906105c291906108b0565b6105095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610128565b60606106308484600085610638565b949350505050565b6060824710156106995760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610128565b600080866001600160a01b031685876040516106b591906109b3565b60006040518083038185875af1925050503d80600081146106f2576040519150601f19603f3d011682016040523d82523d6000602084013e6106f7565b606091505b509150915061070887838387610713565b979650505050505050565b6060831561078257825160000361077b576001600160a01b0385163b61077b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610128565b5081610630565b61063083838151156107975781518083602001fd5b8060405162461bcd60e51b815260040161012891906109cf565b6001600160a01b03811681146107c657600080fd5b50565b600080600080600060a086880312156107e157600080fd5b85356107ec816107b1565b945060208601356107fc816107b1565b94979496505050506040830135926060810135926080909101359150565b60008060008060006080868803121561083257600080fd5b853561083d816107b1565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561086857600080fd5b818801915088601f83011261087c57600080fd5b81358181111561088b57600080fd5b89602082850101111561089d57600080fd5b9699959850939650602001949392505050565b6000602082840312156108c257600080fd5b815180151581146108d257600080fd5b9392505050565b60005b838110156108f45781810151838201526020016108dc565b50506000910152565b600081518084526109158160208601602086016108d9565b601f01601f19169290920160200192915050565b60018060a01b038516815283602082015282604082015260806060820152600061095660808301846108fd565b9695505050505050565b60006020828403121561097257600080fd5b5051919050565b60006020828403121561098b57600080fd5b81516108d2816107b1565b6000602082840312156109a857600080fd5b81356108d2816107b1565b600082516109c58184602087016108d9565b9190910192915050565b6020815260006108d260208301846108fd56fea2646970667358221220c372ce6d7f90dfb872939324ee31e6d23d7180e40dffec671dfb9724cb0ad7aa64736f6c6343000818003300000000000000000000000043069a907a69ab1f66b1f8417ddc790346920323