S Price: $0.031062 (+4.97%)
Gas: 55 Gwei

Contract

0x3867798769b281f8D64AbA368AE8C598A24d1F8f

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading
Source Code Verified Exact Match

Contract Name

AaveV3Adapter

Compiler Version
v0.8.19+commit.7dd6d404
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":"address","name":"admin_","type":"address"},{"internalType":"address","name":"swapRouter_","type":"address"},{"internalType":"address","name":"allowlist_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ETHTransferFailed","type":"error"},{"inputs":[],"name":"InvalidAaveStep","type":"error"},{"inputs":[],"name":"InvalidAaveToken","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"NotAdmin","type":"error"},{"inputs":[],"name":"NotSwapRouter","type":"error"},{"inputs":[],"name":"ReserveDataUnavailable","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminUpdated","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlist","outputs":[{"internalType":"contract IRouterAllowlist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"enum DexType","name":"dexType","type":"uint8"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"bytes","name":"dexData","type":"bytes"}],"internalType":"struct SwapStep","name":"step","type":"tuple"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract ISwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"stateMutability":"payable","type":"receive"}]
60c060405234801561001057600080fd5b50604051610ccd380380610ccd83398101604081905261002f916100f2565b8282826001600160a01b0383166100595760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b0382166100805760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b0381166100a75760405163e6c4247b60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b039485161790559082166080521660a05250610135915050565b80516001600160a01b03811681146100ed57600080fd5b919050565b60008060006060848603121561010757600080fd5b610110846100d6565b925061011e602085016100d6565b915061012c604085016100d6565b90509250925092565b60805160a051610b5161017c600039600060e501526000818161016d0152818161021401528181610436015281816105370152818161067a01526106f50152610b516000f3fe60806040526004361061007f5760003560e01c8063704b6c021161004e578063704b6c021461013b578063c31c9c071461015b578063cea9d26f1461018f578063f851a440146101af57600080fd5b806304824e701461008b57806325dd2dc4146100ad5780632b47da52146100d357806354fd4d501461011f57600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a63660046108b0565b6101cf565b005b6100c06100bb3660046108cb565b610207565b6040519081526020015b60405180910390f35b3480156100df57600080fd5b506101077f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100ca565b34801561012b57600080fd5b50604051600181526020016100ca565b34801561014757600080fd5b506100ab6101563660046108b0565b610265565b34801561016757600080fd5b506101077f000000000000000000000000000000000000000000000000000000000000000081565b34801561019b57600080fd5b506100ab6101aa366004610915565b610320565b3480156101bb57600080fd5b50600054610107906001600160a01b031681565b6000546001600160a01b031633146101fa57604051637bfa4b9f60e01b815260040160405180910390fd5b610204814761035b565b50565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146102525760405163db478f2960e01b815260040160405180910390fd5b61025c8383610387565b90505b92915050565b6000546001600160a01b0316331461029057604051637bfa4b9f60e01b815260040160405180910390fd5b6001600160a01b0381166102b75760405163e6c4247b60e01b815260040160405180910390fd5b600054604080516001600160a01b03928316815291831660208301527f101b8081ff3b56bbf45deb824d86a3b0fd38b7e3dd42421105cf8abe9106db0b910160405180910390a1600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461034b57604051637bfa4b9f60e01b815260040160405180910390fd5b6103568383836105b4565b505050565b600080600080600085875af19050806103565760405163b12d13eb60e01b815260040160405180910390fd5b60008061039a60408501602086016108b0565b905060106103ab6020860186610967565b60118111156103bc576103bc610951565b036104bc576103ea816103d560608701604088016108b0565b6103e560808801606089016108b0565b610611565b6104046103fd60608601604087016108b0565b828561064c565b61049681600061041a60608801604089016108b0565b6040516001600160a01b039182166024820152604481018890527f000000000000000000000000000000000000000000000000000000000000000090911660648201526000608482015260a40160408051601f198184030181529190526020810180516001600160e01b031663617ba03760e01b1790526106db565b506104b26104aa60608601604087016108b0565b82600061064c565b600091505061025f565b60116104cb6020860186610967565b60118111156104dc576104dc610951565b0361059b57610505816104f560808701606088016108b0565b6103e560608801604089016108b0565b61059081600061051b60808801606089016108b0565b6040516001600160a01b039182166024820152604481018890527f0000000000000000000000000000000000000000000000000000000000000000909116606482015260840160408051601f198184030181529190526020810180516001600160e01b0316631a4ca37b60e21b1790526106db565b50600091505061025f565b604051636df110c960e01b815260040160405180910390fd5b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508061060b576040516312171d8360e31b815260040160405180910390fd5b50505050565b806001600160a01b0316610625848461077d565b6001600160a01b031614610356576040516378b15f5d60e11b815260040160405180910390fd5b604051630deaa3ed60e31b81526001600160a01b0384811660048301528381166024830152604482018390527f00000000000000000000000000000000000000000000000000000000000000001690636f551f6890606401600060405180830381600087803b1580156106be57600080fd5b505af11580156106d2573d6000803e3d6000fd5b50505050505050565b60405163df01653760e01b81526060906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df0165379061072e908790879087906004016109b3565b6000604051808303816000875af115801561074d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107759190810190610a12565b949350505050565b604080516001600160a01b0383811660248084019190915283518084039091018152604490920183526020820180516001600160e01b03166335ea6a7560e01b179052915160009283928392918716916107d79190610abf565b600060405180830381855afa9150503d8060008114610812576040519150601f19603f3d011682016040523d82523d6000602084013e610817565b606091505b509150915081158061083f575061083060086001610af1565b61083b906020610b04565b8151105b1561085d57604051632ac1e86560e01b815260040160405180910390fd5b6101208101516001600160a01b031692508261088c576040516378b15f5d60e11b815260040160405180910390fd5b505092915050565b80356001600160a01b03811681146108ab57600080fd5b919050565b6000602082840312156108c257600080fd5b61025c82610894565b600080604083850312156108de57600080fd5b823567ffffffffffffffff8111156108f557600080fd5b830160a0818603121561090757600080fd5b946020939093013593505050565b60008060006060848603121561092a57600080fd5b61093384610894565b925061094160208501610894565b9150604084013590509250925092565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561097957600080fd5b81356012811061098857600080fd5b9392505050565b60005b838110156109aa578181015183820152602001610992565b50506000910152565b60018060a01b038416815282602082015260606040820152600082518060608401526109e681608085016020870161098f565b601f01601f191691909101608001949350505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610a2457600080fd5b815167ffffffffffffffff80821115610a3c57600080fd5b818401915084601f830112610a5057600080fd5b815181811115610a6257610a626109fc565b604051601f8201601f19908116603f01168101908382118183101715610a8a57610a8a6109fc565b81604052828152876020848701011115610aa357600080fd5b610ab483602083016020880161098f565b979650505050505050565b60008251610ad181846020870161098f565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561025f5761025f610adb565b808202811582820484141761025f5761025f610adb56fea264697066735822122030ce72185152b1ae25e153ca517ba1558878bc8e5a71ff3d736a8f0d007e597d64736f6c63430008130033000000000000000000000000bde48624f9e1dd4107df324d1ba3c070046402060000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c1000000000000000000000000cc6197eac5fcfd3a95df22f3ed9abea38d756a98
Deployed Bytecode
0x60806040526004361061007f5760003560e01c8063704b6c021161004e578063704b6c021461013b578063c31c9c071461015b578063cea9d26f1461018f578063f851a440146101af57600080fd5b806304824e701461008b57806325dd2dc4146100ad5780632b47da52146100d357806354fd4d501461011f57600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a63660046108b0565b6101cf565b005b6100c06100bb3660046108cb565b610207565b6040519081526020015b60405180910390f35b3480156100df57600080fd5b506101077f000000000000000000000000cc6197eac5fcfd3a95df22f3ed9abea38d756a9881565b6040516001600160a01b0390911681526020016100ca565b34801561012b57600080fd5b50604051600181526020016100ca565b34801561014757600080fd5b506100ab6101563660046108b0565b610265565b34801561016757600080fd5b506101077f0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c181565b34801561019b57600080fd5b506100ab6101aa366004610915565b610320565b3480156101bb57600080fd5b50600054610107906001600160a01b031681565b6000546001600160a01b031633146101fa57604051637bfa4b9f60e01b815260040160405180910390fd5b610204814761035b565b50565b6000336001600160a01b037f0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c116146102525760405163db478f2960e01b815260040160405180910390fd5b61025c8383610387565b90505b92915050565b6000546001600160a01b0316331461029057604051637bfa4b9f60e01b815260040160405180910390fd5b6001600160a01b0381166102b75760405163e6c4247b60e01b815260040160405180910390fd5b600054604080516001600160a01b03928316815291831660208301527f101b8081ff3b56bbf45deb824d86a3b0fd38b7e3dd42421105cf8abe9106db0b910160405180910390a1600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461034b57604051637bfa4b9f60e01b815260040160405180910390fd5b6103568383836105b4565b505050565b600080600080600085875af19050806103565760405163b12d13eb60e01b815260040160405180910390fd5b60008061039a60408501602086016108b0565b905060106103ab6020860186610967565b60118111156103bc576103bc610951565b036104bc576103ea816103d560608701604088016108b0565b6103e560808801606089016108b0565b610611565b6104046103fd60608601604087016108b0565b828561064c565b61049681600061041a60608801604089016108b0565b6040516001600160a01b039182166024820152604481018890527f0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c190911660648201526000608482015260a40160408051601f198184030181529190526020810180516001600160e01b031663617ba03760e01b1790526106db565b506104b26104aa60608601604087016108b0565b82600061064c565b600091505061025f565b60116104cb6020860186610967565b60118111156104dc576104dc610951565b0361059b57610505816104f560808701606088016108b0565b6103e560608801604089016108b0565b61059081600061051b60808801606089016108b0565b6040516001600160a01b039182166024820152604481018890527f0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c1909116606482015260840160408051601f198184030181529190526020810180516001600160e01b0316631a4ca37b60e21b1790526106db565b50600091505061025f565b604051636df110c960e01b815260040160405180910390fd5b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508061060b576040516312171d8360e31b815260040160405180910390fd5b50505050565b806001600160a01b0316610625848461077d565b6001600160a01b031614610356576040516378b15f5d60e11b815260040160405180910390fd5b604051630deaa3ed60e31b81526001600160a01b0384811660048301528381166024830152604482018390527f0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c11690636f551f6890606401600060405180830381600087803b1580156106be57600080fd5b505af11580156106d2573d6000803e3d6000fd5b50505050505050565b60405163df01653760e01b81526060906001600160a01b037f0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c1169063df0165379061072e908790879087906004016109b3565b6000604051808303816000875af115801561074d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107759190810190610a12565b949350505050565b604080516001600160a01b0383811660248084019190915283518084039091018152604490920183526020820180516001600160e01b03166335ea6a7560e01b179052915160009283928392918716916107d79190610abf565b600060405180830381855afa9150503d8060008114610812576040519150601f19603f3d011682016040523d82523d6000602084013e610817565b606091505b509150915081158061083f575061083060086001610af1565b61083b906020610b04565b8151105b1561085d57604051632ac1e86560e01b815260040160405180910390fd5b6101208101516001600160a01b031692508261088c576040516378b15f5d60e11b815260040160405180910390fd5b505092915050565b80356001600160a01b03811681146108ab57600080fd5b919050565b6000602082840312156108c257600080fd5b61025c82610894565b600080604083850312156108de57600080fd5b823567ffffffffffffffff8111156108f557600080fd5b830160a0818603121561090757600080fd5b946020939093013593505050565b60008060006060848603121561092a57600080fd5b61093384610894565b925061094160208501610894565b9150604084013590509250925092565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561097957600080fd5b81356012811061098857600080fd5b9392505050565b60005b838110156109aa578181015183820152602001610992565b50506000910152565b60018060a01b038416815282602082015260606040820152600082518060608401526109e681608085016020870161098f565b601f01601f191691909101608001949350505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610a2457600080fd5b815167ffffffffffffffff80821115610a3c57600080fd5b818401915084601f830112610a5057600080fd5b815181811115610a6257610a626109fc565b604051601f8201601f19908116603f01168101908382118183101715610a8a57610a8a6109fc565b81604052828152876020848701011115610aa357600080fd5b610ab483602083016020880161098f565b979650505050505050565b60008251610ad181846020870161098f565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561025f5761025f610adb565b808202811582820484141761025f5761025f610adb56fea264697066735822122030ce72185152b1ae25e153ca517ba1558878bc8e5a71ff3d736a8f0d007e597d64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bde48624f9e1dd4107df324d1ba3c070046402060000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c1000000000000000000000000cc6197eac5fcfd3a95df22f3ed9abea38d756a98

-----Decoded View---------------
Arg [0] : admin_ (address): 0xBDE48624F9E1dd4107df324D1BA3C07004640206
Arg [1] : swapRouter_ (address): 0x0998943D5CaEC304658B7Af3B4367e134C73A8C1
Arg [2] : allowlist_ (address): 0xcc6197EAC5Fcfd3A95dF22f3eD9aBeA38D756a98

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000bde48624f9e1dd4107df324d1ba3c07004640206
Arg [1] : 0000000000000000000000000998943d5caec304658b7af3b4367e134c73a8c1
Arg [2] : 000000000000000000000000cc6197eac5fcfd3a95df22f3ed9abea38d756a98

🤖 Code Reader

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

Block Transaction 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.