Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AaveV3FlashLoan
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2025-12-03
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
// Minimal interfaces defined locally so the contract compiles without external imports
interface IERC20 {
function approve(address spender, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
}
interface IUniswapV2Router02 {
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function factory() external pure returns (address);
}
// Minimal pool interface exposing flashLoanSimple used in the original code
interface IPool {
function flashLoanSimple(
address receiverAddress,
address asset,
uint256 amount,
bytes calldata params,
uint16 referralCode
) external;
}
contract AaveV3FlashLoan {
address public owner;
IUniswapV2Router02 public immutable router;
IPool public immutable POOL;
event FlashLoanRequested(address indexed asset, uint256 amount);
event SwapExecuted(address indexed fromToken, address indexed toToken, uint256 amountIn, uint256 amountOut);
event ProfitWithdrawn(address indexed to, address token, uint256 amount);
modifier onlyOwner() {
require(msg.sender == owner, "Only owner");
_;
}
// Accept a pool address directly (simpler for local testing) and a router address
constructor(address _pool, address _router) {
owner = msg.sender;
POOL = IPool(_pool);
router = IUniswapV2Router02(_router);
}
// Request a flash loan from Pool
function requestFlashLoan(address asset, uint256 amount, bytes calldata params) external onlyOwner {
emit FlashLoanRequested(asset, amount);
POOL.flashLoanSimple(address(this), asset, amount, params, 0);
}
// Callback executed by Pool after sending funds
// This function follows the same signature as the original example
function executeOperation(
address asset,
uint256 amount,
uint256 premium,
address initiator,
bytes calldata params
) external returns (bool) {
require(msg.sender == address(POOL), "Caller must be pool");
require(initiator == address(this), "Initiator must be this contract");
// Decode params expected format: abi.encode(address[] path, uint256 amountOutMin)
(address[] memory path, uint256 amountOutMin) = abi.decode(params, (address[], uint256));
// Approve router to pull 'asset'
IERC20(asset).approve(address(router), amount);
uint256 beforeBalance = IERC20(path[path.length - 1]).balanceOf(address(this));
// Perform the swap on UniswapV2-compatible router
uint[] memory amounts = router.swapExactTokensForTokens(
amount,
amountOutMin,
path,
address(this),
block.timestamp
);
uint256 afterBalance = IERC20(path[path.length - 1]).balanceOf(address(this));
uint256 amountOut = 0;
if (afterBalance > beforeBalance) {
amountOut = afterBalance - beforeBalance;
} else if (amounts.length > 0) {
amountOut = amounts[amounts.length - 1];
}
emit SwapExecuted(asset, path[path.length - 1], amount, amountOut);
// Repay loan + premium
uint256 totalDebt = amount + premium;
// Approve pool to pull the owed amount
IERC20(asset).approve(address(POOL), totalDebt);
return true;
}
/* ---------- Owner helpers ---------- */
// Withdraw ERC20 profits to owner
function withdrawToken(address token) external onlyOwner {
uint256 bal = IERC20(token).balanceOf(address(this));
require(bal > 0, "No balance");
IERC20(token).transfer(owner, bal);
emit ProfitWithdrawn(owner, token, bal);
}
// Update owner
function setOwner(address newOwner) external onlyOwner {
require(newOwner != address(0), "Zero address");
owner = newOwner;
}
// Withdraw native ETH balance to an address (owner only)
function withdrawETH(address payable to, uint256 amount) external onlyOwner {
require(to != address(0), "Zero address");
require(address(this).balance >= amount, "Insufficient ETH");
to.transfer(amount);
// reuse ProfitWithdrawn event with token = address(0) to indicate ETH
emit ProfitWithdrawn(to, address(0), amount);
}
// Receive fallback
receive() external payable {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FlashLoanRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ProfitWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromToken","type":"address"},{"indexed":true,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"SwapExecuted","type":"event"},{"inputs":[],"name":"POOL","outputs":[{"internalType":"contract IPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"address","name":"initiator","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"requestFlashLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60c060405234801561001057600080fd5b506040516110d63803806110d683398101604081905261002f91610074565b600080546001600160a01b031916331790556001600160a01b0391821660a052166080526100a7565b80516001600160a01b038116811461006f57600080fd5b919050565b6000806040838503121561008757600080fd5b61009083610058565b915061009e60208401610058565b90509250929050565b60805160a051610fe76100ef6000396000818161013401528181610289015281816106a601526108f20152600081816101c00152818161036a01526104890152610fe76000f3fe60806040526004361061007f5760003560e01c80637535d2461161004e5780637535d24614610122578063894760691461016e5780638da5cb5b1461018e578063f887ea40146101ae57600080fd5b806313af40351461008b5780631b11d0ff146100ad5780634782f779146100e25780635107d61e1461010257600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b15565b6101e2565b005b3480156100b957600080fd5b506100cd6100c8366004610b82565b61027c565b60405190151581526020015b60405180910390f35b3480156100ee57600080fd5b506100ab6100fd366004610bfe565b61073b565b34801561010e57600080fd5b506100ab61011d366004610c2a565b61086e565b34801561012e57600080fd5b506101567f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100d9565b34801561017a57600080fd5b506100ab610189366004610b15565b61096a565b34801561019a57600080fd5b50600054610156906001600160a01b031681565b3480156101ba57600080fd5b506101567f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146102155760405162461bcd60e51b815260040161020c90610c86565b60405180910390fd5b6001600160a01b03811661025a5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161020c565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146102ec5760405162461bcd60e51b815260206004820152601360248201527210d85b1b195c881b5d5cdd081899481c1bdbdb606a1b604482015260640161020c565b6001600160a01b03841630146103445760405162461bcd60e51b815260206004820152601f60248201527f496e69746961746f72206d757374206265207468697320636f6e747261637400604482015260640161020c565b60008061035384860186610d15565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018c9052929450909250908a169063095ea7b3906044016020604051808303816000875af11580156103c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ed9190610dba565b50600082600184516103ff9190610df2565b8151811061040f5761040f610e09565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561045f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104839190610e1f565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166338ed17398b858730426040518663ffffffff1660e01b81526004016104db959493929190610e38565b6000604051808303816000875af11580156104fa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105229190810190610ea9565b9050600084600186516105359190610df2565b8151811061054557610545610e09565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b99190610e1f565b90506000838211156105d6576105cf8483610df2565b9050610607565b8251156106075782600184516105ec9190610df2565b815181106105fc576105fc610e09565b602002602001015190505b85600187516106169190610df2565b8151811061062657610626610e09565b60200260200101516001600160a01b03168d6001600160a01b03167fdd36740e2a012d93061a0d99eaa9107860955de4e90027d3cf465a055026c4078e8460405161067b929190918252602082015260400190565b60405180910390a3600061068f8c8e610f3a565b60405163095ea7b360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260248201839052919250908f169063095ea7b3906044016020604051808303816000875af1158015610702573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107269190610dba565b5060019e9d5050505050505050505050505050565b6000546001600160a01b031633146107655760405162461bcd60e51b815260040161020c90610c86565b6001600160a01b0382166107aa5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161020c565b804710156107ed5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b604482015260640161020c565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610823573d6000803e3d6000fd5b506040805160008152602081018390526001600160a01b038416917f7bb82e438f370442cda439f45e4106c95803a259cb3d8464d35cdfc78978cd5391015b60405180910390a25050565b6000546001600160a01b031633146108985760405162461bcd60e51b815260040161020c90610c86565b836001600160a01b03167f36b2acb66143c7d81ece04083e3157526cab9360d579ecd6ed68c9e7481123f1846040516108d391815260200190565b60405180910390a26040516310ac2ddf60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342b0b77c906109329030908890889088908890600090600401610f52565b600060405180830381600087803b15801561094c57600080fd5b505af1158015610960573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146109945760405162461bcd60e51b815260040161020c90610c86565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff9190610e1f565b905060008111610a3e5760405162461bcd60e51b815260206004820152600a6024820152694e6f2062616c616e636560b01b604482015260640161020c565b60005460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af1158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190610dba565b50600054604080516001600160a01b03858116825260208201859052909216917f7bb82e438f370442cda439f45e4106c95803a259cb3d8464d35cdfc78978cd539101610862565b6001600160a01b0381168114610b1257600080fd5b50565b600060208284031215610b2757600080fd5b8135610b3281610afd565b9392505050565b60008083601f840112610b4b57600080fd5b50813567ffffffffffffffff811115610b6357600080fd5b602083019150836020828501011115610b7b57600080fd5b9250929050565b60008060008060008060a08789031215610b9b57600080fd5b8635610ba681610afd565b955060208701359450604087013593506060870135610bc481610afd565b9250608087013567ffffffffffffffff811115610be057600080fd5b610bec89828a01610b39565b979a9699509497509295939492505050565b60008060408385031215610c1157600080fd5b8235610c1c81610afd565b946020939093013593505050565b60008060008060608587031215610c4057600080fd5b8435610c4b81610afd565b935060208501359250604085013567ffffffffffffffff811115610c6e57600080fd5b610c7a87828801610b39565b95989497509550505050565b6020808252600a908201526927b7363c9037bbb732b960b11b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610ce957610ce9610caa565b604052919050565b600067ffffffffffffffff821115610d0b57610d0b610caa565b5060051b60200190565b60008060408385031215610d2857600080fd5b823567ffffffffffffffff811115610d3f57600080fd5b8301601f81018513610d5057600080fd5b80356020610d65610d6083610cf1565b610cc0565b82815260059290921b83018101918181019088841115610d8457600080fd5b938201935b83851015610dab578435610d9c81610afd565b82529382019390820190610d89565b98969091013596505050505050565b600060208284031215610dcc57600080fd5b81518015158114610b3257600080fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610e0457610e04610ddc565b500390565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610e3157600080fd5b5051919050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610e885784516001600160a01b031683529383019391830191600101610e63565b50506001600160a01b03969096166060850152505050608001529392505050565b60006020808385031215610ebc57600080fd5b825167ffffffffffffffff811115610ed357600080fd5b8301601f81018513610ee457600080fd5b8051610ef2610d6082610cf1565b81815260059190911b82018301908381019087831115610f1157600080fd5b928401925b82841015610f2f57835182529284019290840190610f16565b979650505050505050565b60008219821115610f4d57610f4d610ddc565b500190565b6001600160a01b038781168252861660208201526040810185905260a06060820181905281018390526000838560c0840137600060c0858401015260c0601f19601f860116830101905061ffff8316608083015297965050505050505056fea26469706673582212208b30eb677d7d8207ec65c079d795fedc54a6d5658232b2cb88da8fa077068bd964736f6c634300080a00330000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff738951000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe3
Deployed Bytecode
0x60806040526004361061007f5760003560e01c80637535d2461161004e5780637535d24614610122578063894760691461016e5780638da5cb5b1461018e578063f887ea40146101ae57600080fd5b806313af40351461008b5780631b11d0ff146100ad5780634782f779146100e25780635107d61e1461010257600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b15565b6101e2565b005b3480156100b957600080fd5b506100cd6100c8366004610b82565b61027c565b60405190151581526020015b60405180910390f35b3480156100ee57600080fd5b506100ab6100fd366004610bfe565b61073b565b34801561010e57600080fd5b506100ab61011d366004610c2a565b61086e565b34801561012e57600080fd5b506101567f0000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff73895181565b6040516001600160a01b0390911681526020016100d9565b34801561017a57600080fd5b506100ab610189366004610b15565b61096a565b34801561019a57600080fd5b50600054610156906001600160a01b031681565b3480156101ba57600080fd5b506101567f000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe381565b6000546001600160a01b031633146102155760405162461bcd60e51b815260040161020c90610c86565b60405180910390fd5b6001600160a01b03811661025a5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161020c565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000336001600160a01b037f0000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff73895116146102ec5760405162461bcd60e51b815260206004820152601360248201527210d85b1b195c881b5d5cdd081899481c1bdbdb606a1b604482015260640161020c565b6001600160a01b03841630146103445760405162461bcd60e51b815260206004820152601f60248201527f496e69746961746f72206d757374206265207468697320636f6e747261637400604482015260640161020c565b60008061035384860186610d15565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe381166004830152602482018c9052929450909250908a169063095ea7b3906044016020604051808303816000875af11580156103c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ed9190610dba565b50600082600184516103ff9190610df2565b8151811061040f5761040f610e09565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561045f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104839190610e1f565b905060007f000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe36001600160a01b03166338ed17398b858730426040518663ffffffff1660e01b81526004016104db959493929190610e38565b6000604051808303816000875af11580156104fa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105229190810190610ea9565b9050600084600186516105359190610df2565b8151811061054557610545610e09565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b99190610e1f565b90506000838211156105d6576105cf8483610df2565b9050610607565b8251156106075782600184516105ec9190610df2565b815181106105fc576105fc610e09565b602002602001015190505b85600187516106169190610df2565b8151811061062657610626610e09565b60200260200101516001600160a01b03168d6001600160a01b03167fdd36740e2a012d93061a0d99eaa9107860955de4e90027d3cf465a055026c4078e8460405161067b929190918252602082015260400190565b60405180910390a3600061068f8c8e610f3a565b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff7389518116600483015260248201839052919250908f169063095ea7b3906044016020604051808303816000875af1158015610702573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107269190610dba565b5060019e9d5050505050505050505050505050565b6000546001600160a01b031633146107655760405162461bcd60e51b815260040161020c90610c86565b6001600160a01b0382166107aa5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161020c565b804710156107ed5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b604482015260640161020c565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610823573d6000803e3d6000fd5b506040805160008152602081018390526001600160a01b038416917f7bb82e438f370442cda439f45e4106c95803a259cb3d8464d35cdfc78978cd5391015b60405180910390a25050565b6000546001600160a01b031633146108985760405162461bcd60e51b815260040161020c90610c86565b836001600160a01b03167f36b2acb66143c7d81ece04083e3157526cab9360d579ecd6ed68c9e7481123f1846040516108d391815260200190565b60405180910390a26040516310ac2ddf60e21b81526001600160a01b037f0000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff73895116906342b0b77c906109329030908890889088908890600090600401610f52565b600060405180830381600087803b15801561094c57600080fd5b505af1158015610960573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146109945760405162461bcd60e51b815260040161020c90610c86565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff9190610e1f565b905060008111610a3e5760405162461bcd60e51b815260206004820152600a6024820152694e6f2062616c616e636560b01b604482015260640161020c565b60005460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af1158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190610dba565b50600054604080516001600160a01b03858116825260208201859052909216917f7bb82e438f370442cda439f45e4106c95803a259cb3d8464d35cdfc78978cd539101610862565b6001600160a01b0381168114610b1257600080fd5b50565b600060208284031215610b2757600080fd5b8135610b3281610afd565b9392505050565b60008083601f840112610b4b57600080fd5b50813567ffffffffffffffff811115610b6357600080fd5b602083019150836020828501011115610b7b57600080fd5b9250929050565b60008060008060008060a08789031215610b9b57600080fd5b8635610ba681610afd565b955060208701359450604087013593506060870135610bc481610afd565b9250608087013567ffffffffffffffff811115610be057600080fd5b610bec89828a01610b39565b979a9699509497509295939492505050565b60008060408385031215610c1157600080fd5b8235610c1c81610afd565b946020939093013593505050565b60008060008060608587031215610c4057600080fd5b8435610c4b81610afd565b935060208501359250604085013567ffffffffffffffff811115610c6e57600080fd5b610c7a87828801610b39565b95989497509550505050565b6020808252600a908201526927b7363c9037bbb732b960b11b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610ce957610ce9610caa565b604052919050565b600067ffffffffffffffff821115610d0b57610d0b610caa565b5060051b60200190565b60008060408385031215610d2857600080fd5b823567ffffffffffffffff811115610d3f57600080fd5b8301601f81018513610d5057600080fd5b80356020610d65610d6083610cf1565b610cc0565b82815260059290921b83018101918181019088841115610d8457600080fd5b938201935b83851015610dab578435610d9c81610afd565b82529382019390820190610d89565b98969091013596505050505050565b600060208284031215610dcc57600080fd5b81518015158114610b3257600080fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610e0457610e04610ddc565b500390565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610e3157600080fd5b5051919050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610e885784516001600160a01b031683529383019391830191600101610e63565b50506001600160a01b03969096166060850152505050608001529392505050565b60006020808385031215610ebc57600080fd5b825167ffffffffffffffff811115610ed357600080fd5b8301601f81018513610ee457600080fd5b8051610ef2610d6082610cf1565b81815260059190911b82018301908381019087831115610f1157600080fd5b928401925b82841015610f2f57835182529284019290840190610f16565b979650505050505050565b60008219821115610f4d57610f4d610ddc565b500190565b6001600160a01b038781168252861660208201526040810185905260a06060820181905281018390526000838560c0840137600060c0858401015260c0601f19601f860116830101905061ffff8316608083015297965050505050505056fea26469706673582212208b30eb677d7d8207ec65c079d795fedc54a6d5658232b2cb88da8fa077068bd964736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff738951000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe3
-----Decoded View---------------
Arg [0] : _pool (address): 0x6Ae43d3271ff6888e7Fc43Fd7321a503ff738951
Arg [1] : _router (address): 0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006ae43d3271ff6888e7fc43fd7321a503ff738951
Arg [1] : 000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe3
Deployed Bytecode Sourcemap
1012:3837:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4193:148;;;;;;;;;;-1:-1:-1;4193:148:0;;;;;:::i;:::-;;:::i;:::-;;2179:1624;;;;;;;;;;-1:-1:-1;2179:1624:0;;;;;:::i;:::-;;:::i;:::-;;;1747:14:1;;1740:22;1722:41;;1710:2;1695:18;2179:1624:0;;;;;;;;4412:372;;;;;;;;;;-1:-1:-1;4412:372:0;;;;;:::i;:::-;;:::i;1816:228::-;;;;;;;;;;-1:-1:-1;1816:228:0;;;;;:::i;:::-;;:::i;1120:27::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2895:32:1;;;2877:51;;2865:2;2850:18;1120:27:0;2719:215:1;3900:264:0;;;;;;;;;;-1:-1:-1;3900:264:0;;;;;:::i;:::-;;:::i;1044:20::-;;;;;;;;;;-1:-1:-1;1044:20:0;;;;-1:-1:-1;;;;;1044:20:0;;;1071:42;;;;;;;;;;;;;;;4193:148;1475:5;;-1:-1:-1;;;;;1475:5:0;1461:10;:19;1453:42;;;;-1:-1:-1;;;1453:42:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;4267:22:0;::::1;4259:47;;;::::0;-1:-1:-1;;;4259:47:0;;3921:2:1;4259:47:0::1;::::0;::::1;3903:21:1::0;3960:2;3940:18;;;3933:30;-1:-1:-1;;;3979:18:1;;;3972:42;4031:18;;4259:47:0::1;3719:336:1::0;4259:47:0::1;4317:5;:16:::0;;-1:-1:-1;;;;;;4317:16:0::1;-1:-1:-1::0;;;;;4317:16:0;;;::::1;::::0;;;::::1;::::0;;4193:148::o;2179:1624::-;2365:4;2390:10;-1:-1:-1;;;;;2412:4:0;2390:27;;2382:59;;;;-1:-1:-1;;;2382:59:0;;4262:2:1;2382:59:0;;;4244:21:1;4301:2;4281:18;;;4274:30;-1:-1:-1;;;4320:18:1;;;4313:49;4379:18;;2382:59:0;4060:343:1;2382:59:0;-1:-1:-1;;;;;2460:26:0;;2481:4;2460:26;2452:70;;;;-1:-1:-1;;;2452:70:0;;4610:2:1;2452:70:0;;;4592:21:1;4649:2;4629:18;;;4622:30;4688:33;4668:18;;;4661:61;4739:18;;2452:70:0;4408:355:1;2452:70:0;2628:21;;2675:40;;;;2686:6;2675:40;:::i;:::-;2771:46;;-1:-1:-1;;;2771:46:0;;-1:-1:-1;;;;;2801:6:0;6601:32:1;;2771:46:0;;;6583:51:1;6650:18;;;6643:34;;;2627:88:0;;-1:-1:-1;2627:88:0;;-1:-1:-1;2771:21:0;;;;;;6556:18:1;;2771:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2830:21;2861:4;2880:1;2866:4;:11;:15;;;;:::i;:::-;2861:21;;;;;;;;:::i;:::-;;;;;;;;;;;2854:54;;-1:-1:-1;;;2854:54:0;;2902:4;2854:54;;;2877:51:1;-1:-1:-1;;;;;2854:39:0;;;;;;2850:18:1;;2854:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2830:78;;2981:21;3005:6;-1:-1:-1;;;;;3005:31:0;;3051:6;3072:12;3099:4;3126;3146:15;3005:167;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3005:167:0;;;;;;;;;;;;:::i;:::-;2981:191;;3185:20;3215:4;3234:1;3220:4;:11;:15;;;;:::i;:::-;3215:21;;;;;;;;:::i;:::-;;;;;;;;;;;3208:54;;-1:-1:-1;;;3208:54:0;;3256:4;3208:54;;;2877:51:1;-1:-1:-1;;;;;3208:39:0;;;;;;2850:18:1;;3208:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3185:77;;3273:17;3324:13;3309:12;:28;3305:197;;;3366:28;3381:13;3366:12;:28;:::i;:::-;3354:40;;3305:197;;;3416:14;;:18;3412:90;;3463:7;3488:1;3471:7;:14;:18;;;;:::i;:::-;3463:27;;;;;;;;:::i;:::-;;;;;;;3451:39;;3412:90;3539:4;3558:1;3544:4;:11;:15;;;;:::i;:::-;3539:21;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;3519:61:0;3532:5;-1:-1:-1;;;;;3519:61:0;;3562:6;3570:9;3519:61;;;;;;9590:25:1;;;9646:2;9631:18;;9624:34;9578:2;9563:18;;9416:248;3519:61:0;;;;;;;;3626:17;3646:16;3655:7;3646:6;:16;:::i;:::-;3724:47;;-1:-1:-1;;;3724:47:0;;-1:-1:-1;;;;;3754:4:0;6601:32:1;;3724:47:0;;;6583:51:1;6650:18;;;6643:34;;;;;-1:-1:-1;3724:21:0;;;;;;6556:18:1;;3724:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;3791:4:0;;2179:1624;-1:-1:-1;;;;;;;;;;;;;;2179:1624:0:o;4412:372::-;1475:5;;-1:-1:-1;;;;;1475:5:0;1461:10;:19;1453:42;;;;-1:-1:-1;;;1453:42:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;4507:16:0;::::1;4499:41;;;::::0;-1:-1:-1;;;4499:41:0;;3921:2:1;4499:41:0::1;::::0;::::1;3903:21:1::0;3960:2;3940:18;;;3933:30;-1:-1:-1;;;3979:18:1;;;3972:42;4031:18;;4499:41:0::1;3719:336:1::0;4499:41:0::1;4584:6;4559:21;:31;;4551:60;;;::::0;-1:-1:-1;;;4551:60:0;;10004:2:1;4551:60:0::1;::::0;::::1;9986:21:1::0;10043:2;10023:18;;;10016:30;-1:-1:-1;;;10062:18:1;;;10055:46;10118:18;;4551:60:0::1;9802:340:1::0;4551:60:0::1;4622:19;::::0;-1:-1:-1;;;;;4622:11:0;::::1;::::0;:19;::::1;;;::::0;4634:6;;4622:19:::1;::::0;;;4634:6;4622:11;:19;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;4737:39:0::1;::::0;;4765:1:::1;6583:51:1::0;;6665:2;6650:18;;6643:34;;;-1:-1:-1;;;;;4737:39:0;::::1;::::0;::::1;::::0;6556:18:1;4737:39:0::1;;;;;;;;4412:372:::0;;:::o;1816:228::-;1475:5;;-1:-1:-1;;;;;1475:5:0;1461:10;:19;1453:42;;;;-1:-1:-1;;;1453:42:0;;;;;;;:::i;:::-;1950:5:::1;-1:-1:-1::0;;;;;1931:33:0::1;;1957:6;1931:33;;;;10293:25:1::0;;10281:2;10266:18;;10147:177;1931:33:0::1;;;;;;;;1975:61;::::0;-1:-1:-1;;;1975:61:0;;-1:-1:-1;;;;;1975:4:0::1;:20;::::0;::::1;::::0;:61:::1;::::0;2004:4:::1;::::0;2011:5;;2018:6;;2026;;;;2034:1:::1;::::0;1975:61:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;1816:228:::0;;;;:::o;3900:264::-;1475:5;;-1:-1:-1;;;;;1475:5:0;1461:10;:19;1453:42;;;;-1:-1:-1;;;1453:42:0;;;;;;;:::i;:::-;3982:38:::1;::::0;-1:-1:-1;;;3982:38:0;;4014:4:::1;3982:38;::::0;::::1;2877:51:1::0;3968:11:0::1;::::0;-1:-1:-1;;;;;3982:23:0;::::1;::::0;::::1;::::0;2850:18:1;;3982:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3968:52;;4045:1;4039:3;:7;4031:30;;;::::0;-1:-1:-1;;;4031:30:0;;11290:2:1;4031:30:0::1;::::0;::::1;11272:21:1::0;11329:2;11309:18;;;11302:30;-1:-1:-1;;;11348:18:1;;;11341:40;11398:18;;4031:30:0::1;11088:334:1::0;4031:30:0::1;4095:5;::::0;4072:34:::1;::::0;-1:-1:-1;;;4072:34:0;;-1:-1:-1;;;;;4095:5:0;;::::1;4072:34;::::0;::::1;6583:51:1::0;6650:18;;;6643:34;;;4072:22:0;;::::1;::::0;::::1;::::0;6556:18:1;;4072:34:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;4138:5:0::1;::::0;4122:34:::1;::::0;;-1:-1:-1;;;;;6601:32:1;;;6583:51;;6665:2;6650:18;;6643:34;;;4138:5:0;;::::1;::::0;4122:34:::1;::::0;6556:18:1;4122:34:0::1;6409:274:1::0;14:131;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:247::-;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;:::-;386:5;150:247;-1:-1:-1;;;150:247:1:o;402:347::-;453:8;463:6;517:3;510:4;502:6;498:17;494:27;484:55;;535:1;532;525:12;484:55;-1:-1:-1;558:20:1;;601:18;590:30;;587:50;;;633:1;630;623:12;587:50;670:4;662:6;658:17;646:29;;722:3;715:4;706:6;698;694:19;690:30;687:39;684:59;;;739:1;736;729:12;684:59;402:347;;;;;:::o;754:823::-;860:6;868;876;884;892;900;953:3;941:9;932:7;928:23;924:33;921:53;;;970:1;967;960:12;921:53;1009:9;996:23;1028:31;1053:5;1028:31;:::i;:::-;1078:5;-1:-1:-1;1130:2:1;1115:18;;1102:32;;-1:-1:-1;1181:2:1;1166:18;;1153:32;;-1:-1:-1;1237:2:1;1222:18;;1209:32;1250:33;1209:32;1250:33;:::i;:::-;1302:7;-1:-1:-1;1360:3:1;1345:19;;1332:33;1388:18;1377:30;;1374:50;;;1420:1;1417;1410:12;1374:50;1459:58;1509:7;1500:6;1489:9;1485:22;1459:58;:::i;:::-;754:823;;;;-1:-1:-1;754:823:1;;-1:-1:-1;754:823:1;;1536:8;;754:823;-1:-1:-1;;;754:823:1:o;1774:323::-;1850:6;1858;1911:2;1899:9;1890:7;1886:23;1882:32;1879:52;;;1927:1;1924;1917:12;1879:52;1966:9;1953:23;1985:31;2010:5;1985:31;:::i;:::-;2035:5;2087:2;2072:18;;;;2059:32;;-1:-1:-1;;;1774:323:1:o;2102:612::-;2190:6;2198;2206;2214;2267:2;2255:9;2246:7;2242:23;2238:32;2235:52;;;2283:1;2280;2273:12;2235:52;2322:9;2309:23;2341:31;2366:5;2341:31;:::i;:::-;2391:5;-1:-1:-1;2443:2:1;2428:18;;2415:32;;-1:-1:-1;2498:2:1;2483:18;;2470:32;2525:18;2514:30;;2511:50;;;2557:1;2554;2547:12;2511:50;2596:58;2646:7;2637:6;2626:9;2622:22;2596:58;:::i;:::-;2102:612;;;;-1:-1:-1;2673:8:1;-1:-1:-1;;;;2102:612:1:o;3380:334::-;3582:2;3564:21;;;3621:2;3601:18;;;3594:30;-1:-1:-1;;;3655:2:1;3640:18;;3633:40;3705:2;3690:18;;3380:334::o;4768:127::-;4829:10;4824:3;4820:20;4817:1;4810:31;4860:4;4857:1;4850:15;4884:4;4881:1;4874:15;4900:275;4971:2;4965:9;5036:2;5017:13;;-1:-1:-1;;5013:27:1;5001:40;;5071:18;5056:34;;5092:22;;;5053:62;5050:88;;;5118:18;;:::i;:::-;5154:2;5147:22;4900:275;;-1:-1:-1;4900:275:1:o;5180:183::-;5240:4;5273:18;5265:6;5262:30;5259:56;;;5295:18;;:::i;:::-;-1:-1:-1;5340:1:1;5336:14;5352:4;5332:25;;5180:183::o;5368:1036::-;5461:6;5469;5522:2;5510:9;5501:7;5497:23;5493:32;5490:52;;;5538:1;5535;5528:12;5490:52;5578:9;5565:23;5611:18;5603:6;5600:30;5597:50;;;5643:1;5640;5633:12;5597:50;5666:22;;5719:4;5711:13;;5707:27;-1:-1:-1;5697:55:1;;5748:1;5745;5738:12;5697:55;5784:2;5771:16;5806:4;5830:60;5846:43;5886:2;5846:43;:::i;:::-;5830:60;:::i;:::-;5924:15;;;6006:1;6002:10;;;;5994:19;;5990:28;;;5955:12;;;;6030:19;;;6027:39;;;6062:1;6059;6052:12;6027:39;6086:11;;;;6106:217;6122:6;6117:3;6114:15;6106:217;;;6202:3;6189:17;6219:31;6244:5;6219:31;:::i;:::-;6263:18;;6139:12;;;;6301;;;;6106:217;;;6342:5;6379:18;;;;6366:32;;-1:-1:-1;;;;;;5368:1036:1:o;6688:277::-;6755:6;6808:2;6796:9;6787:7;6783:23;6779:32;6776:52;;;6824:1;6821;6814:12;6776:52;6856:9;6850:16;6909:5;6902:13;6895:21;6888:5;6885:32;6875:60;;6931:1;6928;6921:12;6970:127;7031:10;7026:3;7022:20;7019:1;7012:31;7062:4;7059:1;7052:15;7086:4;7083:1;7076:15;7102:125;7142:4;7170:1;7167;7164:8;7161:34;;;7175:18;;:::i;:::-;-1:-1:-1;7212:9:1;;7102:125::o;7232:127::-;7293:10;7288:3;7284:20;7281:1;7274:31;7324:4;7321:1;7314:15;7348:4;7345:1;7338:15;7364:184;7434:6;7487:2;7475:9;7466:7;7462:23;7458:32;7455:52;;;7503:1;7500;7493:12;7455:52;-1:-1:-1;7526:16:1;;7364:184;-1:-1:-1;7364:184:1:o;7553:972::-;7807:4;7855:3;7844:9;7840:19;7886:6;7875:9;7868:25;7912:2;7950:6;7945:2;7934:9;7930:18;7923:34;7993:3;7988:2;7977:9;7973:18;7966:31;8017:6;8052;8046:13;8083:6;8075;8068:22;8121:3;8110:9;8106:19;8099:26;;8160:2;8152:6;8148:15;8134:29;;8181:1;8191:195;8205:6;8202:1;8199:13;8191:195;;;8270:13;;-1:-1:-1;;;;;8266:39:1;8254:52;;8361:15;;;;8326:12;;;;8302:1;8220:9;8191:195;;;-1:-1:-1;;;;;;;8442:32:1;;;;8437:2;8422:18;;8415:60;-1:-1:-1;;;8506:3:1;8491:19;8484:35;8403:3;7553:972;-1:-1:-1;;;7553:972:1:o;8530:881::-;8625:6;8656:2;8699;8687:9;8678:7;8674:23;8670:32;8667:52;;;8715:1;8712;8705:12;8667:52;8748:9;8742:16;8781:18;8773:6;8770:30;8767:50;;;8813:1;8810;8803:12;8767:50;8836:22;;8889:4;8881:13;;8877:27;-1:-1:-1;8867:55:1;;8918:1;8915;8908:12;8867:55;8947:2;8941:9;8970:60;8986:43;9026:2;8986:43;:::i;8970:60::-;9064:15;;;9146:1;9142:10;;;;9134:19;;9130:28;;;9095:12;;;;9170:19;;;9167:39;;;9202:1;9199;9192:12;9167:39;9226:11;;;;9246:135;9262:6;9257:3;9254:15;9246:135;;;9328:10;;9316:23;;9279:12;;;;9359;;;;9246:135;;;9400:5;8530:881;-1:-1:-1;;;;;;;8530:881:1:o;9669:128::-;9709:3;9740:1;9736:6;9733:1;9730:13;9727:39;;;9746:18;;:::i;:::-;-1:-1:-1;9782:9:1;;9669:128::o;10329:754::-;-1:-1:-1;;;;;10643:15:1;;;10625:34;;10695:15;;10690:2;10675:18;;10668:43;10742:2;10727:18;;10720:34;;;10605:3;10785:2;10770:18;;10763:31;;;10810:19;;10803:35;;;10568:4;10831:6;10881;10875:3;10860:19;;10847:49;10946:1;10940:3;10931:6;10920:9;10916:22;10912:32;10905:43;11016:3;11009:2;11005:7;11000:2;10992:6;10988:15;10984:29;10973:9;10969:45;10965:55;10957:63;;11069:6;11061;11057:19;11051:3;11040:9;11036:19;11029:48;10329:754;;;;;;;;;:::o
Swarm Source
ipfs://8b30eb677d7d8207ec65c079d795fedc54a6d5658232b2cb88da8fa077068bd9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.