Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 74 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Migrate_to_new_p... | 17399015 | 523 days ago | IN | 0 ETH | 0.00148819 | ||||
Migrate_to_new_p... | 17399007 | 523 days ago | IN | 0 ETH | 0.00123977 | ||||
Migrate_to_new_p... | 15749436 | 754 days ago | IN | 0 ETH | 0.00470963 | ||||
Migrate_to_new_p... | 15749414 | 754 days ago | IN | 0 ETH | 0.00512148 | ||||
Migrate_to_new_p... | 15749373 | 754 days ago | IN | 0 ETH | 0.00494968 | ||||
Migrate_to_new_p... | 15749133 | 754 days ago | IN | 0 ETH | 0.00523328 | ||||
Migrate_to_new_p... | 12981886 | 1187 days ago | IN | 0 ETH | 0.01543985 | ||||
Migrate_to_new_p... | 12938765 | 1194 days ago | IN | 0 ETH | 0.00527436 | ||||
Migrate_to_new_p... | 12657424 | 1238 days ago | IN | 0 ETH | 0.00300093 | ||||
Migrate_to_new_p... | 12656003 | 1238 days ago | IN | 0 ETH | 0.00363127 | ||||
Migrate_to_new_p... | 12633531 | 1241 days ago | IN | 0 ETH | 0.00453158 | ||||
Migrate_to_new_p... | 12606907 | 1245 days ago | IN | 0 ETH | 0.00322536 | ||||
Migrate_to_new_p... | 12569404 | 1251 days ago | IN | 0 ETH | 0.00585891 | ||||
Migrate_to_new_p... | 12527675 | 1258 days ago | IN | 0 ETH | 0.00858089 | ||||
Migrate_to_new_p... | 12506731 | 1261 days ago | IN | 0 ETH | 0.01145816 | ||||
Migrate_to_new_p... | 12483855 | 1264 days ago | IN | 0 ETH | 0.01035667 | ||||
Migrate_to_new_p... | 12476427 | 1266 days ago | IN | 0 ETH | 0.01361163 | ||||
Migrate_to_new_p... | 12457732 | 1269 days ago | IN | 0 ETH | 0.0147132 | ||||
Migrate_to_new_p... | 12451252 | 1270 days ago | IN | 0 ETH | 0.01479525 | ||||
Migrate_to_new_p... | 12444046 | 1271 days ago | IN | 0 ETH | 0.0156024 | ||||
Migrate_to_new_p... | 12440176 | 1271 days ago | IN | 0 ETH | 0.02286102 | ||||
Migrate_to_new_p... | 12424434 | 1274 days ago | IN | 0 ETH | 0.03034827 | ||||
Migrate_to_new_p... | 12394207 | 1278 days ago | IN | 0 ETH | 0.05618714 | ||||
Migrate_to_new_p... | 12390059 | 1279 days ago | IN | 0 ETH | 0.01231959 | ||||
Migrate_to_new_p... | 12381578 | 1280 days ago | IN | 0 ETH | 0.02133393 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.2.11
Contract Source Code (Vyper language format)
# @version 0.2.11 """ @title Pool Migrator @author Curve.fi @notice Zap for moving liquidity between Curve factory pools in a single transaction @license MIT """ interface ERC20: def approve(_spender: address, _amount: uint256): nonpayable interface Swap: def transferFrom(_owner: address, _spender: address, _amount: uint256) -> bool: nonpayable def add_liquidity(_amounts: uint256[2], _min_mint_amount: uint256, _receiver: address) -> uint256: nonpayable def remove_liquidity(_burn_amount: uint256, _min_amounts: uint256[2]) -> uint256[2]: nonpayable def coins(i: uint256) -> address: view # pool -> coins are approved? is_approved: HashMap[address, bool] @external def migrate_to_new_pool(_old_pool: address, _new_pool: address, _amount: uint256) -> uint256: """ @notice Migrate liquidity between two pools @dev Each pool must be deployed by the curve factory and contain identical assets. The migrator must have approval to transfer `_old_pool` tokens on behalf of the caller. @param _old_pool Address of the pool to migrate from @param _new_pool Address of the pool to migrate into @param _amount Number of `_old_pool` LP tokens to migrate @return uint256 Number of `_new_pool` LP tokens received """ Swap(_old_pool).transferFrom(msg.sender, self, _amount) amounts: uint256[2] = Swap(_old_pool).remove_liquidity(_amount, [0, 0]) if not self.is_approved[_new_pool]: for i in range(2): coin: address = Swap(_new_pool).coins(i) ERC20(coin).approve(_new_pool, MAX_UINT256) self.is_approved[_new_pool] = True return Swap(_new_pool).add_liquidity(amounts, 0, msg.sender)
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"stateMutability":"nonpayable","type":"function","name":"migrate_to_new_pool","inputs":[{"name":"_old_pool","type":"address"},{"name":"_new_pool","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":43866}]
Contract Creation Code
61023c56600436101561000d57610232565b600035601c52600051341561002157600080fd5b63c1c4d12b8114156102305760043560a01c1561003d57600080fd5b60243560a01c1561004d57600080fd5b602061020060646323b872dd61014052336101605230610180526044356101a05261015c60006004355af161008157600080fd5b601f3d1161008e57600080fd5b6000506102005060406102406064635b36389c610180526044356101a05260006101c05260006101e05261019c60006004355af16100cb57600080fd5b603f3d116100d857600080fd5b60005061024080516101405280602001516101605250600060243560e05260c052604060c0205415156101d55761018060006002818352015b6020610240602463c66106576101c052610180516101e0526101dc6024355afa61013a57600080fd5b601f3d1161014757600080fd5b600050610240516101a0526101a0513b61016057600080fd5b60006000604463095ea7b36101c0526024356101e0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610200526101dc60006101a0515af16101af57600080fd5b8151600101808352811415610111575b50506001600060243560e05260c052604060c020555b60206102606084630c3e4b5461018052610140516101a052610160516101c05260006101e052336102005261019c60006024355af161021357600080fd5b601f3d1161022057600080fd5b6000506102605160005260206000f35b505b60006000fd5b61000461023c0361000460003961000461023c036000f3
Deployed Bytecode
0x600436101561000d57610232565b600035601c52600051341561002157600080fd5b63c1c4d12b8114156102305760043560a01c1561003d57600080fd5b60243560a01c1561004d57600080fd5b602061020060646323b872dd61014052336101605230610180526044356101a05261015c60006004355af161008157600080fd5b601f3d1161008e57600080fd5b6000506102005060406102406064635b36389c610180526044356101a05260006101c05260006101e05261019c60006004355af16100cb57600080fd5b603f3d116100d857600080fd5b60005061024080516101405280602001516101605250600060243560e05260c052604060c0205415156101d55761018060006002818352015b6020610240602463c66106576101c052610180516101e0526101dc6024355afa61013a57600080fd5b601f3d1161014757600080fd5b600050610240516101a0526101a0513b61016057600080fd5b60006000604463095ea7b36101c0526024356101e0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610200526101dc60006101a0515af16101af57600080fd5b8151600101808352811415610111575b50506001600060243560e05260c052604060c020555b60206102606084630c3e4b5461018052610140516101a052610160516101c05260006101e052336102005261019c60006024355af161021357600080fd5b601f3d1161022057600080fd5b6000506102605160005260206000f35b505b60006000fd
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
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.