More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,089,055 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap ETH | 329303622 | 11 mins ago | IN | 0.00201736 ETH | 0.00000866 | ||||
Swap ETH | 329302988 | 13 mins ago | IN | 0.00101736 ETH | 0.00000783 | ||||
Swap ETH | 329300298 | 25 mins ago | IN | 0.00012836 ETH | 0.00000773 | ||||
Swap ETH | 329294559 | 49 mins ago | IN | 0.00031736 ETH | 0.00000712 | ||||
Swap ETH | 329294558 | 49 mins ago | IN | 0.00031736 ETH | 0.00000714 | ||||
Swap ETH | 329294556 | 49 mins ago | IN | 0.00031736 ETH | 0.00000711 | ||||
Swap ETH | 329294556 | 49 mins ago | IN | 0.00031736 ETH | 0.00000711 | ||||
Swap ETH | 329294556 | 49 mins ago | IN | 0.00031736 ETH | 0.00000715 | ||||
Swap ETH | 329289295 | 1 hr ago | IN | 0.00013936 ETH | 0.0000101 | ||||
Swap ETH | 329285951 | 1 hr ago | IN | 0.00025636 ETH | 0.00000735 | ||||
Swap ETH | 329282615 | 1 hr ago | IN | 0.00201738 ETH | 0.00000868 | ||||
Swap ETH | 329277802 | 1 hr ago | IN | 0.00014142 ETH | 0.00000824 | ||||
Swap ETH | 329275321 | 2 hrs ago | IN | 0.00331745 ETH | 0.0000096 | ||||
Swap ETH | 329271598 | 2 hrs ago | IN | 0.00063761 ETH | 0.00000975 | ||||
Swap ETH | 329268948 | 2 hrs ago | IN | 0.00016568 ETH | 0.00001791 | ||||
Swap ETH | 329266507 | 2 hrs ago | IN | 0.00028161 ETH | 0.00000491 | ||||
Swap ETH | 329259139 | 3 hrs ago | IN | 0.0002785 ETH | 0.00000577 | ||||
Swap ETH | 329253349 | 3 hrs ago | IN | 0.00013239 ETH | 0.00000498 | ||||
Swap ETH | 329252949 | 3 hrs ago | IN | 0.00321739 ETH | 0.00000496 | ||||
Swap ETH | 329243503 | 4 hrs ago | IN | 0.00101739 ETH | 0.00000716 | ||||
Swap ETH | 329234058 | 5 hrs ago | IN | 0.00012055 ETH | 0.00000973 | ||||
Swap ETH | 329227157 | 5 hrs ago | IN | 0.00018353 ETH | 0.00000717 | ||||
Swap ETH | 329226414 | 5 hrs ago | IN | 0.00014362 ETH | 0.00000572 | ||||
Swap ETH | 329221477 | 5 hrs ago | IN | 0.0030176 ETH | 0.00000709 | ||||
Swap ETH | 329219489 | 6 hrs ago | IN | 0.00019466 ETH | 0.00000677 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
329306210 | 30 secs ago | 0.00007471 ETH | ||||
329306210 | 30 secs ago | 0.1458717 ETH | ||||
329306210 | 30 secs ago | 0.14594641 ETH | ||||
329303622 | 11 mins ago | 0.00001736 ETH | ||||
329303622 | 11 mins ago | 0.002 ETH | ||||
329302988 | 13 mins ago | 0.00001736 ETH | ||||
329302988 | 13 mins ago | 0.001 ETH | ||||
329300298 | 25 mins ago | 0.00001736 ETH | ||||
329300298 | 25 mins ago | 0.000111 ETH | ||||
329299788 | 27 mins ago | 0.00008181 ETH | ||||
329299788 | 27 mins ago | 0.0160481 ETH | ||||
329299788 | 27 mins ago | 0.01612991 ETH | ||||
329294559 | 49 mins ago | 0.00001736 ETH | ||||
329294559 | 49 mins ago | 0.0003 ETH | ||||
329294558 | 49 mins ago | 0.00001736 ETH | ||||
329294558 | 49 mins ago | 0.0003 ETH | ||||
329294556 | 49 mins ago | 0.00001736 ETH | ||||
329294556 | 49 mins ago | 0.0003 ETH | ||||
329294556 | 49 mins ago | 0.00001736 ETH | ||||
329294556 | 49 mins ago | 0.0003 ETH | ||||
329294556 | 49 mins ago | 0.00001736 ETH | ||||
329294556 | 49 mins ago | 0.0003 ETH | ||||
329289295 | 1 hr ago | 0.00001736 ETH | ||||
329289295 | 1 hr ago | 0.000122 ETH | ||||
329285951 | 1 hr ago | 0.00001736 ETH |
Loading...
Loading
Contract Name:
RouterETH
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; import "./interfaces/IStargateRouter.sol"; import "./interfaces/IStargateEthVault.sol"; contract RouterETH { address public immutable stargateEthVault; IStargateRouter public immutable stargateRouter; uint16 public immutable poolId; constructor(address _stargateEthVault, address _stargateRouter, uint16 _poolId){ require(_stargateEthVault != address(0x0), "RouterETH: _stargateEthVault cant be 0x0"); require(_stargateRouter != address(0x0), "RouterETH: _stargateRouter cant be 0x0"); stargateEthVault = _stargateEthVault; stargateRouter = IStargateRouter(_stargateRouter); poolId = _poolId; } function addLiquidityETH() external payable { require(msg.value > 0, "Stargate: msg.value is 0"); uint256 amountLD = msg.value; // wrap the ETH into WETH IStargateEthVault(stargateEthVault).deposit{value: amountLD}(); IStargateEthVault(stargateEthVault).approve(address(stargateRouter), amountLD); // addLiquidity using the WETH that was just wrapped, // and mint the LP token to the msg.sender stargateRouter.addLiquidity( poolId, amountLD, msg.sender ); } // compose stargate to swap ETH on the source to ETH on the destination function swapETH( uint16 _dstChainId, // destination Stargate chainId address payable _refundAddress, // refund additional messageFee to this address bytes calldata _toAddress, // the receiver of the destination ETH uint256 _amountLD, // the amount, in Local Decimals, to be swapped uint256 _minAmountLD // the minimum amount accepted out on destination ) external payable { require(msg.value > _amountLD, "Stargate: msg.value must be > _amountLD"); // wrap the ETH into WETH IStargateEthVault(stargateEthVault).deposit{value: _amountLD}(); IStargateEthVault(stargateEthVault).approve(address(stargateRouter), _amountLD); // messageFee is the remainder of the msg.value after wrap uint256 messageFee = msg.value - _amountLD; // compose a stargate swap() using the WETH that was just wrapped stargateRouter.swap{value: messageFee}( _dstChainId, // destination Stargate chainId poolId, // WETH Stargate poolId on source poolId, // WETH Stargate poolId on destination _refundAddress, // message refund address if overpaid _amountLD, // the amount in Local Decimals to swap() _minAmountLD, // the minimum amount swap()er would allow to get out (ie: slippage) IStargateRouter.lzTxObj(0, 0, "0x"), _toAddress, // address on destination to send to bytes("") // empty payload, since sending to EOA ); } // this contract needs to accept ETH receive() external payable {} }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; interface IStargateRouter { struct lzTxObj { uint256 dstGasForCall; uint256 dstNativeAmount; bytes dstNativeAddr; } function addLiquidity( uint256 _poolId, uint256 _amountLD, address _to ) external; function swap( uint16 _dstChainId, uint256 _srcPoolId, uint256 _dstPoolId, address payable _refundAddress, uint256 _amountLD, uint256 _minAmountLD, lzTxObj memory _lzTxParams, bytes calldata _to, bytes calldata _payload ) external payable; function redeemRemote( uint16 _dstChainId, uint256 _srcPoolId, uint256 _dstPoolId, address payable _refundAddress, uint256 _amountLP, uint256 _minAmountLD, bytes calldata _to, lzTxObj memory _lzTxParams ) external payable; function instantRedeemLocal( uint16 _srcPoolId, uint256 _amountLP, address _to ) external returns (uint256); function redeemLocal( uint16 _dstChainId, uint256 _srcPoolId, uint256 _dstPoolId, address payable _refundAddress, uint256 _amountLP, bytes calldata _to, lzTxObj memory _lzTxParams ) external payable; function sendCredits( uint16 _dstChainId, uint256 _srcPoolId, uint256 _dstPoolId, address payable _refundAddress ) external payable; function quoteLayerZeroFee( uint16 _dstChainId, uint8 _functionType, bytes calldata _toAddress, bytes calldata _transferAndCallPayload, lzTxObj memory _lzTxParams ) external view returns (uint256, uint256); }
pragma solidity 0.7.6; interface IStargateEthVault { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; function approve(address guy, uint wad) external returns (bool); function transferFrom(address src, address dst, uint wad) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_stargateEthVault","type":"address"},{"internalType":"address","name":"_stargateRouter","type":"address"},{"internalType":"uint16","name":"_poolId","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"addLiquidityETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateEthVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateRouter","outputs":[{"internalType":"contract IStargateRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amountLD","type":"uint256"},{"internalType":"uint256","name":"_minAmountLD","type":"uint256"}],"name":"swapETH","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e060405234801561001057600080fd5b50604051610ae5380380610ae583398101604081905261002f916100d1565b6001600160a01b03831661005e5760405162461bcd60e51b81526004016100559061011d565b60405180910390fd5b6001600160a01b0382166100845760405162461bcd60e51b815260040161005590610165565b606092831b6001600160601b03199081166080529190921b1660a05260f01b6001600160f01b03191660c0526101ab565b80516001600160a01b03811681146100cc57600080fd5b919050565b6000806000606084860312156100e5578283fd5b6100ee846100b5565b92506100fc602085016100b5565b9150604084015161ffff81168114610112578182fd5b809150509250925092565b60208082526028908201527f526f757465724554483a205f73746172676174654574685661756c742063616e604082015267074206265203078360c41b606082015260800190565b60208082526026908201527f526f757465724554483a205f7374617267617465526f757465722063616e742060408201526506265203078360d41b606082015260800190565b60805160601c60a05160601c60c05160f01c6108ce610217600039806102705280610291528061038252806105665250806101b9528061023f52806103a652806104a552806105395250806101035280610189528061035e52806103ef528061047552506108ce6000f3fe60806040526004361061004e5760003560e01c80631114cd2a1461005a57806338e31d391461006f5780633e0dc34e1461009a578063a9e56f3c146100bc578063ed995307146100d157610055565b3661005557005b600080fd5b61006d6100683660046105ee565b6100d9565b005b34801561007b57600080fd5b5061008461035c565b6040516100919190610713565b60405180910390f35b3480156100a657600080fd5b506100af610380565b60405161009191906107be565b3480156100c857600080fd5b506100846103a4565b61006d6103c8565b8134116101015760405162461bcd60e51b81526004016100f890610777565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561015c57600080fd5b505af1158015610170573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b392506101e391507f0000000000000000000000000000000000000000000000000000000000000000908690600401610727565b602060405180830381600087803b1580156101fd57600080fd5b505af1158015610211573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023591906105c7565b50600082340390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639fbf10fc82897f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008b89896040518060600160405280600081526020016000815260200160405180604001604052806002815260200161060f60f31b8152508152508e8e604051806020016040528060008152506040518c63ffffffff1660e01b81526004016103219a999897969594939291906107cd565b6000604051808303818588803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600034116103e85760405162461bcd60e51b81526004016100f890610740565b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561044857600080fd5b505af115801561045c573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b392506104cf91507f0000000000000000000000000000000000000000000000000000000000000000908590600401610727565b602060405180830381600087803b1580156104e957600080fd5b505af11580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052191906105c7565b506040516321ec87bf60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906387b21efc90610592907f00000000000000000000000000000000000000000000000000000000000000009085903390600401610873565b600060405180830381600087803b1580156105ac57600080fd5b505af11580156105c0573d6000803e3d6000fd5b5050505050565b6000602082840312156105d8578081fd5b815180151581146105e7578182fd5b9392505050565b60008060008060008060a08789031215610606578182fd5b863561ffff81168114610617578283fd5b955060208701356001600160a01b0381168114610632578283fd5b9450604087013567ffffffffffffffff8082111561064e578384fd5b818901915089601f830112610661578384fd5b81358181111561066f578485fd5b8a6020828501011115610680578485fd5b979a9699505060200196606081013595608090910135945092505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452815b818110156106ed576020818501810151868301820152016106d1565b818111156106fe5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526018908201527f53746172676174653a206d73672e76616c756520697320300000000000000000604082015260600190565b60208082526027908201527f53746172676174653a206d73672e76616c7565206d757374206265203e205f616040820152661b5bdd5b9d131160ca1b606082015260800190565b61ffff91909116815260200190565b600061012061ffff808e168452808d166020850152808c1660408501525060018060a01b038a1660608401528860808401528760a08401528060c0840152865181840152506020860151610140830152604086015160606101608401526108386101808401826106c8565b905082810360e084015261084d81868861069e565b905082810361010084015261086281856106c8565b9d9c50505050505050505050505050565b61ffff93909316835260208301919091526001600160a01b031660408201526060019056fea2646970667358221220274e2c55cf173f358c7221d39a04d3deec4704409d995ae9cc76d93d4269e4ac64736f6c6343000706003300000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc000000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a41614000000000000000000000000000000000000000000000000000000000000000d
Deployed Bytecode
0x60806040526004361061004e5760003560e01c80631114cd2a1461005a57806338e31d391461006f5780633e0dc34e1461009a578063a9e56f3c146100bc578063ed995307146100d157610055565b3661005557005b600080fd5b61006d6100683660046105ee565b6100d9565b005b34801561007b57600080fd5b5061008461035c565b6040516100919190610713565b60405180910390f35b3480156100a657600080fd5b506100af610380565b60405161009191906107be565b3480156100c857600080fd5b506100846103a4565b61006d6103c8565b8134116101015760405162461bcd60e51b81526004016100f890610777565b60405180910390fd5b7f00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc06001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561015c57600080fd5b505af1158015610170573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc016935063095ea7b392506101e391507f00000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a41614908690600401610727565b602060405180830381600087803b1580156101fd57600080fd5b505af1158015610211573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023591906105c7565b50600082340390507f00000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a416146001600160a01b0316639fbf10fc82897f000000000000000000000000000000000000000000000000000000000000000d7f000000000000000000000000000000000000000000000000000000000000000d8b89896040518060600160405280600081526020016000815260200160405180604001604052806002815260200161060f60f31b8152508152508e8e604051806020016040528060008152506040518c63ffffffff1660e01b81526004016103219a999897969594939291906107cd565b6000604051808303818588803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b505050505050505050505050565b7f00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc081565b7f000000000000000000000000000000000000000000000000000000000000000d81565b7f00000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a4161481565b600034116103e85760405162461bcd60e51b81526004016100f890610740565b60003490507f00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc06001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561044857600080fd5b505af115801561045c573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc016935063095ea7b392506104cf91507f00000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a41614908590600401610727565b602060405180830381600087803b1580156104e957600080fd5b505af11580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052191906105c7565b506040516321ec87bf60e21b81526001600160a01b037f00000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a4161416906387b21efc90610592907f000000000000000000000000000000000000000000000000000000000000000d9085903390600401610873565b600060405180830381600087803b1580156105ac57600080fd5b505af11580156105c0573d6000803e3d6000fd5b5050505050565b6000602082840312156105d8578081fd5b815180151581146105e7578182fd5b9392505050565b60008060008060008060a08789031215610606578182fd5b863561ffff81168114610617578283fd5b955060208701356001600160a01b0381168114610632578283fd5b9450604087013567ffffffffffffffff8082111561064e578384fd5b818901915089601f830112610661578384fd5b81358181111561066f578485fd5b8a6020828501011115610680578485fd5b979a9699505060200196606081013595608090910135945092505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452815b818110156106ed576020818501810151868301820152016106d1565b818111156106fe5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526018908201527f53746172676174653a206d73672e76616c756520697320300000000000000000604082015260600190565b60208082526027908201527f53746172676174653a206d73672e76616c7565206d757374206265203e205f616040820152661b5bdd5b9d131160ca1b606082015260800190565b61ffff91909116815260200190565b600061012061ffff808e168452808d166020850152808c1660408501525060018060a01b038a1660608401528860808401528760a08401528060c0840152865181840152506020860151610140830152604086015160606101608401526108386101808401826106c8565b905082810360e084015261084d81868861069e565b905082810361010084015261086281856106c8565b9d9c50505050505050505050505050565b61ffff93909316835260208301919091526001600160a01b031660408201526060019056fea2646970667358221220274e2c55cf173f358c7221d39a04d3deec4704409d995ae9cc76d93d4269e4ac64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc000000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a41614000000000000000000000000000000000000000000000000000000000000000d
-----Decoded View---------------
Arg [0] : _stargateEthVault (address): 0x82CbeCF39bEe528B5476FE6d1550af59a9dB6Fc0
Arg [1] : _stargateRouter (address): 0x53Bf833A5d6c4ddA888F69c22C88C9f356a41614
Arg [2] : _poolId (uint16): 13
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000082cbecf39bee528b5476fe6d1550af59a9db6fc0
Arg [1] : 00000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a41614
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 46.31% | $1,783.09 | 10.4198 | $18,579.51 | |
BASE | 30.05% | $1,783.25 | 6.7593 | $12,053.47 | |
ARB | 14.64% | $1,782.97 | 3.2945 | $5,874.07 | |
ARB | 2.60% | $1 | 1,044.3417 | $1,044.34 | |
ARB | 0.82% | $0.999863 | 328.8026 | $328.76 | |
ZKSYNC | 2.96% | $1,783.13 | 0.6652 | $1,186.13 | |
ETH | 2.20% | $1,783.13 | 0.494 | $880.86 | |
LINEA | 0.25% | $1,783.13 | 0.0569 | $101.5 | |
SCROLL | 0.09% | $1,783.13 | 0.0207 | $36.88 | |
BSC | 0.07% | $616.91 | 0.047 | $29 | |
AVAX | <0.01% | $22.73 | 0.0485 | $1.1 | |
POL | <0.01% | $0.217485 | 1.7669 | $0.384281 | |
GNO | <0.01% | $0.999886 | 0.015 | $0.014998 |
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.