ETH Price: $1,776.19 (-2.44%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Age:1H
Reset Filter

Transaction Hash
Block
From
To

There are no matching entries

> 10 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading
Source Code Verified Exact Match

Contract Name

TpdaLiquidationRouter

Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled
Yes with 200 runs
Other Settings
paris EvmVersion
License
-NA-
Contract Source Code (Solidity Standard Json-Input format)
Contract Security Audit
No Contract Security Audit SubmittedSubmit Audit Here
Contract ABI
API
[{"inputs":[{"internalType":"contract TpdaLiquidationPairFactory","name":"liquidationPairFactory_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"SwapExpired","type":"error"},{"inputs":[],"name":"UndefinedTpdaLiquidationPairFactory","type":"error"},{"inputs":[{"internalType":"address","name":"liquidationPair","type":"address"}],"name":"UnknownTpdaLiquidationPair","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract TpdaLiquidationPairFactory","name":"liquidationPairFactory","type":"address"}],"name":"LiquidationRouterCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract TpdaLiquidationPair","name":"liquidationPair","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountInMax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"SwappedExactAmountOut","type":"event"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"_flashSwapData","type":"bytes"}],"name":"flashSwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TpdaLiquidationPair","name":"_liquidationPair","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"uint256","name":"_amountInMax","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"swapExactAmountOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]
60a060405234801561001057600080fd5b50604051610afd380380610afd83398101604081905261002f91610094565b6001600160a01b03811661005657604051631f430fc360e01b815260040160405180910390fd5b6001600160a01b03811660808190526040517f04337867c8cdd891953510b2e9be14ee44ea71956bc526708728f14bc6eef24190600090a2506100c4565b6000602082840312156100a657600080fd5b81516001600160a01b03811681146100bd57600080fd5b9392505050565b608051610a186100e560003960008181609901526102e00152610a186000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80631820b47f1461003b578063a5a6edad14610060575b600080fd5b61004e6100493660046107c9565b610075565b60405190815260200160405180910390f35b61007361006e36600461081a565b6102c8565b005b604051639cded5ab60e01b81526001600160a01b03808716600483015260009187917f00000000000000000000000000000000000000000000000000000000000000001690639cded5ab90602401602060405180830381865afa1580156100e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010491906108b0565b61013157604051636d4892bb60e11b81526001600160a01b03821660048201526024015b60405180910390fd5b82421115610155576040516372c18cf560e01b815260048101849052602401610128565b604080513360208201526000916001600160a01b038a1691631cf8287d9130918a918a91016040516020818303038152906040526040518563ffffffff1660e01b81526004016101a89493929190610929565b6020604051808303816000875af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610960565b905061026487878a6001600160a01b031663d0202d3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102549190610979565b6001600160a01b031691906104a6565b6040805187815260208101879052908101829052606081018590526001600160a01b038089169133918b16907fc3e764298a9fad13823b73a0d08df8366d14e2b62920b94b42c635f0ddd0d7b49060800160405180910390a4979650505050505050565b604051639cded5ab60e01b81523360048201819052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639cded5ab90602401602060405180830381865afa15801561032f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035391906108b0565b61037b57604051636d4892bb60e11b81526001600160a01b0382166004820152602401610128565b856001600160a01b03811630146103b0576040516313053d9360e21b81526001600160a01b0382166004820152602401610128565b60006103be84860186610996565b905061049c81336001600160a01b031663d4b839926040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104289190610979565b89336001600160a01b0316636daf390b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048b9190610979565b6001600160a01b031692919061050e565b5050505050505050565b6040516001600160a01b03831660248201526044810182905261050990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261054c565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526105469085906323b872dd60e01b906084016104d2565b50505050565b60006105a1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106219092919063ffffffff16565b90508051600014806105c25750808060200190518101906105c291906108b0565b6105095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610128565b60606106308484600085610638565b949350505050565b6060824710156106995760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610128565b600080866001600160a01b031685876040516106b591906109b3565b60006040518083038185875af1925050503d80600081146106f2576040519150601f19603f3d011682016040523d82523d6000602084013e6106f7565b606091505b509150915061070887838387610713565b979650505050505050565b6060831561078257825160000361077b576001600160a01b0385163b61077b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610128565b5081610630565b61063083838151156107975781518083602001fd5b8060405162461bcd60e51b815260040161012891906109cf565b6001600160a01b03811681146107c657600080fd5b50565b600080600080600060a086880312156107e157600080fd5b85356107ec816107b1565b945060208601356107fc816107b1565b94979496505050506040830135926060810135926080909101359150565b60008060008060006080868803121561083257600080fd5b853561083d816107b1565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561086857600080fd5b818801915088601f83011261087c57600080fd5b81358181111561088b57600080fd5b89602082850101111561089d57600080fd5b9699959850939650602001949392505050565b6000602082840312156108c257600080fd5b815180151581146108d257600080fd5b9392505050565b60005b838110156108f45781810151838201526020016108dc565b50506000910152565b600081518084526109158160208601602086016108d9565b601f01601f19169290920160200192915050565b60018060a01b038516815283602082015282604082015260806060820152600061095660808301846108fd565b9695505050505050565b60006020828403121561097257600080fd5b5051919050565b60006020828403121561098b57600080fd5b81516108d2816107b1565b6000602082840312156109a857600080fd5b81356108d2816107b1565b600082516109c58184602087016108d9565b9190910192915050565b6020815260006108d260208301846108fd56fea26469706673582212209f39173abf5e8249c9b573a5335a8fd8c88b09a2bc2f09f7491bcf355cb1e05164736f6c6343000818003300000000000000000000000080f86691632d9863e6bcaa472e5c34574f77c7d1
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c80631820b47f1461003b578063a5a6edad14610060575b600080fd5b61004e6100493660046107c9565b610075565b60405190815260200160405180910390f35b61007361006e36600461081a565b6102c8565b005b604051639cded5ab60e01b81526001600160a01b03808716600483015260009187917f00000000000000000000000080f86691632d9863e6bcaa472e5c34574f77c7d11690639cded5ab90602401602060405180830381865afa1580156100e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010491906108b0565b61013157604051636d4892bb60e11b81526001600160a01b03821660048201526024015b60405180910390fd5b82421115610155576040516372c18cf560e01b815260048101849052602401610128565b604080513360208201526000916001600160a01b038a1691631cf8287d9130918a918a91016040516020818303038152906040526040518563ffffffff1660e01b81526004016101a89493929190610929565b6020604051808303816000875af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610960565b905061026487878a6001600160a01b031663d0202d3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102549190610979565b6001600160a01b031691906104a6565b6040805187815260208101879052908101829052606081018590526001600160a01b038089169133918b16907fc3e764298a9fad13823b73a0d08df8366d14e2b62920b94b42c635f0ddd0d7b49060800160405180910390a4979650505050505050565b604051639cded5ab60e01b81523360048201819052907f00000000000000000000000080f86691632d9863e6bcaa472e5c34574f77c7d16001600160a01b031690639cded5ab90602401602060405180830381865afa15801561032f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035391906108b0565b61037b57604051636d4892bb60e11b81526001600160a01b0382166004820152602401610128565b856001600160a01b03811630146103b0576040516313053d9360e21b81526001600160a01b0382166004820152602401610128565b60006103be84860186610996565b905061049c81336001600160a01b031663d4b839926040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104289190610979565b89336001600160a01b0316636daf390b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048b9190610979565b6001600160a01b031692919061050e565b5050505050505050565b6040516001600160a01b03831660248201526044810182905261050990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261054c565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526105469085906323b872dd60e01b906084016104d2565b50505050565b60006105a1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106219092919063ffffffff16565b90508051600014806105c25750808060200190518101906105c291906108b0565b6105095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610128565b60606106308484600085610638565b949350505050565b6060824710156106995760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610128565b600080866001600160a01b031685876040516106b591906109b3565b60006040518083038185875af1925050503d80600081146106f2576040519150601f19603f3d011682016040523d82523d6000602084013e6106f7565b606091505b509150915061070887838387610713565b979650505050505050565b6060831561078257825160000361077b576001600160a01b0385163b61077b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610128565b5081610630565b61063083838151156107975781518083602001fd5b8060405162461bcd60e51b815260040161012891906109cf565b6001600160a01b03811681146107c657600080fd5b50565b600080600080600060a086880312156107e157600080fd5b85356107ec816107b1565b945060208601356107fc816107b1565b94979496505050506040830135926060810135926080909101359150565b60008060008060006080868803121561083257600080fd5b853561083d816107b1565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561086857600080fd5b818801915088601f83011261087c57600080fd5b81358181111561088b57600080fd5b89602082850101111561089d57600080fd5b9699959850939650602001949392505050565b6000602082840312156108c257600080fd5b815180151581146108d257600080fd5b9392505050565b60005b838110156108f45781810151838201526020016108dc565b50506000910152565b600081518084526109158160208601602086016108d9565b601f01601f19169290920160200192915050565b60018060a01b038516815283602082015282604082015260806060820152600061095660808301846108fd565b9695505050505050565b60006020828403121561097257600080fd5b5051919050565b60006020828403121561098b57600080fd5b81516108d2816107b1565b6000602082840312156109a857600080fd5b81356108d2816107b1565b600082516109c58184602087016108d9565b9190910192915050565b6020815260006108d260208301846108fd56fea26469706673582212209f39173abf5e8249c9b573a5335a8fd8c88b09a2bc2f09f7491bcf355cb1e05164736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000080f86691632d9863e6bcaa472e5c34574f77c7d1

-----Decoded View---------------
Arg [0] : liquidationPairFactory_ (address): 0x80F86691632d9863E6bCaa472e5c34574F77c7D1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000080f86691632d9863e6bcaa472e5c34574f77c7d1

🤖 Code Reader

Generate instant answers for your smart contract questions using Al Models. Read more.

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.