My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
RouterETH
Compiler Version
v0.7.6+commit.7338295f
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 { struct SwapAmount { uint256 amountLD; // the amount, in Local Decimals, to be swapped uint256 minAmountLD; // the minimum amount accepted out on destination } 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. // this is a legacy method, that does not accept a payload. 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 ); } ///@notice compose stargate to swap ETH on the source to ETH on the destination and arbitrary call. // this method can compose stargate, to send an arbitrary payload to your contract on remote chain // that implements sgReceive() function swapETHAndCall( uint16 _dstChainId, // destination Stargate chainId address payable _refundAddress, // refund additional messageFee to this address bytes calldata _toAddress, // the receiver of the destination ETH SwapAmount memory _swapAmount, // the amount and the minimum swap amount IStargateRouter.lzTxObj memory _lzTxParams, // the LZ tx params bytes calldata _payload // the payload to send to the destination ) external payable { require(msg.value > _swapAmount.amountLD, "Stargate: msg.value must be > _swapAmount.amountLD"); IStargateEthVault(stargateEthVault).deposit{value: _swapAmount.amountLD}(); IStargateEthVault(stargateEthVault).approve(address(stargateRouter), _swapAmount.amountLD); stargateRouter.swap{value: (msg.value - _swapAmount.amountLD)}( _dstChainId, // destination Stargate chainId poolId, // WETH Stargate poolId on source poolId, // WETH Stargate poolId on destination _refundAddress, // message refund address if overpaid _swapAmount.amountLD, // the amount in Local Decimals to swap() _swapAmount.minAmountLD, // the minimum amount swap()er would allow to get out (ie: slippage) _lzTxParams, // the LZ tx params _toAddress, // address on destination to send to _payload // payload to send to the destination ); } // 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); }
// SPDX-License-Identifier: BUSL-1.1 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", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"components":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"internalType":"struct RouterETH.SwapAmount","name":"_swapAmount","type":"tuple"},{"components":[{"internalType":"uint256","name":"dstGasForCall","type":"uint256"},{"internalType":"uint256","name":"dstNativeAmount","type":"uint256"},{"internalType":"bytes","name":"dstNativeAddr","type":"bytes"}],"internalType":"struct IStargateRouter.lzTxObj","name":"_lzTxParams","type":"tuple"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"swapETHAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e060405234801561001057600080fd5b506040516200106b3803806200106b833981016040819052610031916100d3565b6001600160a01b0383166100605760405162461bcd60e51b81526004016100579061011f565b60405180910390fd5b6001600160a01b0382166100865760405162461bcd60e51b815260040161005790610167565b606092831b6001600160601b03199081166080529190921b1660a05260f01b6001600160f01b03191660c0526101ad565b80516001600160a01b03811681146100ce57600080fd5b919050565b6000806000606084860312156100e7578283fd5b6100f0846100b7565b92506100fe602085016100b7565b9150604084015161ffff81168114610114578182fd5b809150509250925092565b60208082526028908201527f526f757465724554483a205f73746172676174654574685661756c742063616e604082015267074206265203078360c41b606082015260800190565b60208082526026908201527f526f757465724554483a205f7374617267617465526f757465722063616e742060408201526506265203078360d41b606082015260800190565b60805160601c60a05160601c60c05160f01c610e33620002386000398061028e52806102af52806103a05280610579528061059a52806107c95250806101d7528061025d52806103c452806104c452806105425280610708528061079c52508061012152806101a7528061037c52806104085280610494528061065252806106d85250610e336000f3fe6080604052600436106100595760003560e01c80631114cd2a1461006557806338e31d391461007a5780633e0dc34e146100a5578063a9e56f3c146100c7578063e6226889146100dc578063ed995307146100ef57610060565b3661006057005b600080fd5b610078610073366004610a7f565b6100f7565b005b34801561008657600080fd5b5061008f61037a565b60405161009c9190610b96565b60405180910390f35b3480156100b157600080fd5b506100ba61039e565b60405161009c9190610c93565b3480156100d357600080fd5b5061008f6103c2565b6100786100ea366004610984565b6103e6565b61007861062b565b81341161011f5760405162461bcd60e51b815260040161011690610c4c565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561017a57600080fd5b505af115801561018e573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925061020191507f0000000000000000000000000000000000000000000000000000000000000000908690600401610baa565b602060405180830381600087803b15801561021b57600080fd5b505af115801561022f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610253919061095d565b50600082340390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639fbf10fc82897f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008b89896040518060600160405280600081526020016000815260200160405180604001604052806002815260200161060f60f31b8152508152508e8e604051806020016040528060008152506040518c63ffffffff1660e01b815260040161033f9a99989796959493929190610d2c565b6000604051808303818588803b15801561035857600080fd5b505af115801561036c573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b835134116104065760405162461bcd60e51b815260040161011690610bfa565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db085600001516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561046557600080fd5b505af1158015610479573d6000803e3d6000fd5b5050865160405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016945063095ea7b393506104ed92507f00000000000000000000000000000000000000000000000000000000000000009190600401610baa565b602060405180830381600087803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053f919061095d565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639fbf10fc856000015134038a7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008c8a600001518b602001518b8f8f8d8d6040518d63ffffffff1660e01b81526004016105ef9b9a99989796959493929190610ca2565b6000604051808303818588803b15801561060857600080fd5b505af115801561061c573d6000803e3d6000fd5b50505050505050505050505050565b6000341161064b5760405162461bcd60e51b815260040161011690610bc3565b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925061073291507f0000000000000000000000000000000000000000000000000000000000000000908590600401610baa565b602060405180830381600087803b15801561074c57600080fd5b505af1158015610760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610784919061095d565b506040516321ec87bf60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906387b21efc906107f5907f00000000000000000000000000000000000000000000000000000000000000009085903390600401610db4565b600060405180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b5050505050565b80356001600160a01b038116811461084157600080fd5b919050565b60008083601f840112610857578081fd5b50813567ffffffffffffffff81111561086e578182fd5b60208301915083602082850101111561088657600080fd5b9250929050565b60006060828403121561089e578081fd5b6040516060810167ffffffffffffffff82821081831117156108bc57fe5b81604052829350843583526020915081850135828401526040850135818111156108e557600080fd5b8501601f810187136108f657600080fd5b80358281111561090257fe5b610914601f8201601f19168501610dd9565b9250808352878482840101111561092a57600080fd5b80848301858501376000848285010152505080604084015250505092915050565b803561ffff8116811461084157600080fd5b60006020828403121561096e578081fd5b8151801515811461097d578182fd5b9392505050565b600080600080600080600080888a0360e08112156109a0578485fd5b6109a98a61094b565b98506109b760208b0161082a565b975060408a013567ffffffffffffffff808211156109d3578687fd5b6109df8d838e01610846565b90995097508791506040605f19840112156109f8578687fd5b60405192506040830191508282108183111715610a1157fe5b8160405260608c0135835260808c0135602084015282965060a08c0135925080831115610a3c578586fd5b610a488d848e0161088d565b955060c08c0135925080831115610a5d578485fd5b5050610a6b8b828c01610846565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610a97578182fd5b610aa08761094b565b9550610aae6020880161082a565b9450604087013567ffffffffffffffff811115610ac9578283fd5b610ad589828a01610846565b979a9699509760608101359660809091013595509350505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452815b81811015610b3f57602081850181015186830182015201610b23565b81811115610b505782602083870101525b50601f01601f19169290920160200192915050565b60008151835260208201516020840152604082015160606040850152610b8e6060850182610b1a565b949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526018908201527f53746172676174653a206d73672e76616c756520697320300000000000000000604082015260600190565b60208082526032908201527f53746172676174653a206d73672e76616c7565206d757374206265203e205f736040820152711dd85c105b5bdd5b9d0b985b5bdd5b9d131160721b606082015260800190565b60208082526027908201527f53746172676174653a206d73672e76616c7565206d757374206265203e205f616040820152661b5bdd5b9d131160ca1b606082015260800190565b61ffff91909116815260200190565b61ffff8c811682528b811660208301528a1660408201526001600160a01b03891660608201526080810188905260a0810187905261012060c08201819052600090610cef83820189610b65565b905082810360e0840152610d04818789610af0565b9050828103610100840152610d1a818587610af0565b9e9d5050505050505050505050505050565b61ffff8b811682528a81166020830152891660408201526001600160a01b03881660608201526080810187905260a0810186905261012060c08201819052600090610d7983820188610b65565b905082810360e0840152610d8e818688610af0565b9050828103610100840152610da38185610b1a565b9d9c50505050505050505050505050565b61ffff93909316835260208301919091526001600160a01b0316604082015260600190565b60405181810167ffffffffffffffff81118282101715610df557fe5b60405291905056fea26469706673582212201baa95e93e0645912168ad2ba1b439718e28b7a747022e4b5ca7b6beb9334dff64736f6c63430007060033000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f0300000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b000000000000000000000000000000000000000000000000000000000000000d
Deployed Bytecode
0x6080604052600436106100595760003560e01c80631114cd2a1461006557806338e31d391461007a5780633e0dc34e146100a5578063a9e56f3c146100c7578063e6226889146100dc578063ed995307146100ef57610060565b3661006057005b600080fd5b610078610073366004610a7f565b6100f7565b005b34801561008657600080fd5b5061008f61037a565b60405161009c9190610b96565b60405180910390f35b3480156100b157600080fd5b506100ba61039e565b60405161009c9190610c93565b3480156100d357600080fd5b5061008f6103c2565b6100786100ea366004610984565b6103e6565b61007861062b565b81341161011f5760405162461bcd60e51b815260040161011690610c4c565b60405180910390fd5b7f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f036001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561017a57600080fd5b505af115801561018e573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f0316935063095ea7b3925061020191507f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b908690600401610baa565b602060405180830381600087803b15801561021b57600080fd5b505af115801561022f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610253919061095d565b50600082340390507f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b6001600160a01b0316639fbf10fc82897f000000000000000000000000000000000000000000000000000000000000000d7f000000000000000000000000000000000000000000000000000000000000000d8b89896040518060600160405280600081526020016000815260200160405180604001604052806002815260200161060f60f31b8152508152508e8e604051806020016040528060008152506040518c63ffffffff1660e01b815260040161033f9a99989796959493929190610d2c565b6000604051808303818588803b15801561035857600080fd5b505af115801561036c573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f0381565b7f000000000000000000000000000000000000000000000000000000000000000d81565b7f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b81565b835134116104065760405162461bcd60e51b815260040161011690610bfa565b7f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f036001600160a01b031663d0e30db085600001516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561046557600080fd5b505af1158015610479573d6000803e3d6000fd5b5050865160405163095ea7b360e01b81526001600160a01b037f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f0316945063095ea7b393506104ed92507f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b9190600401610baa565b602060405180830381600087803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053f919061095d565b507f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b6001600160a01b0316639fbf10fc856000015134038a7f000000000000000000000000000000000000000000000000000000000000000d7f000000000000000000000000000000000000000000000000000000000000000d8c8a600001518b602001518b8f8f8d8d6040518d63ffffffff1660e01b81526004016105ef9b9a99989796959493929190610ca2565b6000604051808303818588803b15801561060857600080fd5b505af115801561061c573d6000803e3d6000fd5b50505050505050505050505050565b6000341161064b5760405162461bcd60e51b815260040161011690610bc3565b60003490507f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f036001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f0316935063095ea7b3925061073291507f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b908590600401610baa565b602060405180830381600087803b15801561074c57600080fd5b505af1158015610760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610784919061095d565b506040516321ec87bf60e21b81526001600160a01b037f00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b16906387b21efc906107f5907f000000000000000000000000000000000000000000000000000000000000000d9085903390600401610db4565b600060405180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b5050505050565b80356001600160a01b038116811461084157600080fd5b919050565b60008083601f840112610857578081fd5b50813567ffffffffffffffff81111561086e578182fd5b60208301915083602082850101111561088657600080fd5b9250929050565b60006060828403121561089e578081fd5b6040516060810167ffffffffffffffff82821081831117156108bc57fe5b81604052829350843583526020915081850135828401526040850135818111156108e557600080fd5b8501601f810187136108f657600080fd5b80358281111561090257fe5b610914601f8201601f19168501610dd9565b9250808352878482840101111561092a57600080fd5b80848301858501376000848285010152505080604084015250505092915050565b803561ffff8116811461084157600080fd5b60006020828403121561096e578081fd5b8151801515811461097d578182fd5b9392505050565b600080600080600080600080888a0360e08112156109a0578485fd5b6109a98a61094b565b98506109b760208b0161082a565b975060408a013567ffffffffffffffff808211156109d3578687fd5b6109df8d838e01610846565b90995097508791506040605f19840112156109f8578687fd5b60405192506040830191508282108183111715610a1157fe5b8160405260608c0135835260808c0135602084015282965060a08c0135925080831115610a3c578586fd5b610a488d848e0161088d565b955060c08c0135925080831115610a5d578485fd5b5050610a6b8b828c01610846565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610a97578182fd5b610aa08761094b565b9550610aae6020880161082a565b9450604087013567ffffffffffffffff811115610ac9578283fd5b610ad589828a01610846565b979a9699509760608101359660809091013595509350505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452815b81811015610b3f57602081850181015186830182015201610b23565b81811115610b505782602083870101525b50601f01601f19169290920160200192915050565b60008151835260208201516020840152604082015160606040850152610b8e6060850182610b1a565b949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526018908201527f53746172676174653a206d73672e76616c756520697320300000000000000000604082015260600190565b60208082526032908201527f53746172676174653a206d73672e76616c7565206d757374206265203e205f736040820152711dd85c105b5bdd5b9d0b985b5bdd5b9d131160721b606082015260800190565b60208082526027908201527f53746172676174653a206d73672e76616c7565206d757374206265203e205f616040820152661b5bdd5b9d131160ca1b606082015260800190565b61ffff91909116815260200190565b61ffff8c811682528b811660208301528a1660408201526001600160a01b03891660608201526080810188905260a0810187905261012060c08201819052600090610cef83820189610b65565b905082810360e0840152610d04818789610af0565b9050828103610100840152610d1a818587610af0565b9e9d5050505050505050505050505050565b61ffff8b811682528a81166020830152891660408201526001600160a01b03881660608201526080810187905260a0810186905261012060c08201819052600090610d7983820188610b65565b905082810360e0840152610d8e818688610af0565b9050828103610100840152610da38185610b1a565b9d9c50505050505050505050505050565b61ffff93909316835260208301919091526001600160a01b0316604082015260600190565b60405181810167ffffffffffffffff81118282101715610df557fe5b60405291905056fea26469706673582212201baa95e93e0645912168ad2ba1b439718e28b7a747022e4b5ca7b6beb9334dff64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f0300000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b000000000000000000000000000000000000000000000000000000000000000d
-----Decoded View---------------
Arg [0] : _stargateEthVault (address): 0x224D8Fd7aB6AD4c6eb4611Ce56EF35Dec2277F03
Arg [1] : _stargateRouter (address): 0x45f1A95A4D3f3836523F5c83673c797f4d4d263B
Arg [2] : _poolId (uint16): 13
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000224d8fd7ab6ad4c6eb4611ce56ef35dec2277f03
Arg [1] : 00000000000000000000000045f1a95a4d3f3836523f5c83673c797f4d4d263b
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000d
Deployed ByteCode Sourcemap
171:5040:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1602:1822;;;;;;:::i;:::-;;:::i;:::-;;380:41;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;480:30;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;427:47::-;;;;;;;;;;;;;:::i;3672:1461::-;;;;;;:::i;:::-;;:::i;929:526::-;;;:::i;1602:1822::-;2150:9;2138;:21;2130:73;;;;-1:-1:-1;;;2130:73:0;;;;;;;:::i;:::-;;;;;;;;;2266:16;-1:-1:-1;;;;;2248:43:0;;2299:9;2248:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2321:79:0;;-1:-1:-1;;;2321:79:0;;-1:-1:-1;;;;;2339:16:0;2321:43;;-1:-1:-1;2321:43:0;;-1:-1:-1;2321:79:0;;-1:-1:-1;2373:14:0;;2390:9;;2321:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2478:18;2511:9;2499;:21;2478:42;;2605:14;-1:-1:-1;;;;;2605:19:0;;2632:10;2657:11;2737:6;2819;2906:14;2992:9;3082:12;3199:35;;;;;;;;3223:1;3199:35;;;;3226:1;3199:35;;;;;;;;;;;;;;;;;-1:-1:-1;;;3199:35:0;;;;;;3248:10;;3333:9;;;;;;;;;;;;2605:812;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1602:1822;;;;;;;:::o;380:41::-;;;:::o;480:30::-;;;:::o;427:47::-;;;:::o;3672:1461::-;4199:20;;4187:9;:32;4179:95;;;;-1:-1:-1;;;4179:95:0;;;;;;;:::i;:::-;4303:16;-1:-1:-1;;;;;4285:43:0;;4336:11;:20;;;4285:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4438:20:0;;4369:90;;-1:-1:-1;;;4369:90:0;;-1:-1:-1;;;;;4387:16:0;4369:43;;-1:-1:-1;4369:43:0;;-1:-1:-1;4369:90:0;;-1:-1:-1;4421:14:0;;4438:20;4369:90;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4470:14;-1:-1:-1;;;;;4470:19:0;;4510:11;:20;;;4498:9;:32;4546:11;4603:6;4657;4716:14;4782:11;:20;;;4858:11;:23;;;4964:11;5009:10;;5070:8;;4470:656;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3672:1461;;;;;;;;:::o;929:526::-;1003:1;991:9;:13;983:50;;;;-1:-1:-1;;;983:50:0;;;;;;;:::i;:::-;1044:16;1063:9;1044:28;;1135:16;-1:-1:-1;;;;;1117:43:0;;1168:8;1117:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1189:78:0;;-1:-1:-1;;;1189:78:0;;-1:-1:-1;;;;;1207:16:0;1189:43;;-1:-1:-1;1189:43:0;;-1:-1:-1;1189:78:0;;-1:-1:-1;1241:14:0;;1258:8;;1189:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1391:57:0;;-1:-1:-1;;;1391:57:0;;-1:-1:-1;;;;;1391:14:0;:27;;;;:57;;1419:6;;1427:8;;1437:10;;1391:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;929:526;:::o;14:183:3:-;92:20;;-1:-1:-1;;;;;141:31:3;;131:42;;121:2;;187:1;184;177:12;121:2;73:124;;;:::o;202:373::-;;;319:3;312:4;304:6;300:17;296:27;286:2;;342:6;334;327:22;286:2;-1:-1:-1;370:20:3;;413:18;402:30;;399:2;;;452:8;442;435:26;399:2;496:4;488:6;484:17;472:29;;548:3;541:4;532:6;524;520:19;516:30;513:39;510:2;;;565:1;562;555:12;510:2;276:299;;;;;:::o;580:1080::-;;685:4;673:9;668:3;664:19;660:30;657:2;;;707:5;700;693:20;657:2;744;738:9;786:4;778:6;774:17;810:18;878:6;866:10;863:22;858:2;846:10;843:18;840:46;837:2;;;889:9;837:2;920:10;916:2;909:22;949:6;940:15;;992:9;979:23;971:6;964:39;1022:2;1012:12;;1085:2;1074:9;1070:18;1057:32;1052:2;1044:6;1040:15;1033:57;1141:2;1130:9;1126:18;1113:32;1168:2;1160:6;1157:14;1154:2;;;1184:1;1181;1174:12;1154:2;1207:22;;1260:4;1252:13;;1248:23;-1:-1:-1;1238:2:3;;1285:1;1282;1275:12;1238:2;1321;1308:16;1343:2;1339;1336:10;1333:2;;;1349:9;1333:2;1382:52;1424:2;1405:13;;-1:-1:-1;;1401:27:3;1397:36;;1382:52;:::i;:::-;1369:65;;1457:2;1450:5;1443:17;1497:3;1492:2;1487;1483;1479:11;1475:20;1472:29;1469:2;;;1514:1;1511;1504:12;1469:2;1569;1564;1560;1556:11;1551:2;1544:5;1540:14;1527:45;1613:1;1608:2;1603;1596:5;1592:14;1588:23;1581:34;;;1648:5;1643:2;1635:6;1631:15;1624:30;;;;647:1013;;;;:::o;1665:161::-;1734:20;;1794:6;1783:18;;1773:29;;1763:2;;1816:1;1813;1806:12;1831:297;;1951:2;1939:9;1930:7;1926:23;1922:32;1919:2;;;1972:6;1964;1957:22;1919:2;2009:9;2003:16;2062:5;2055:13;2048:21;2041:5;2038:32;2028:2;;2089:6;2081;2074:22;2028:2;2117:5;1909:219;-1:-1:-1;;;1909:219:3:o;2133:1608::-;;;;;;;;;2415:9;2406:7;2402:23;2445:3;2441:2;2437:12;2434:2;;;2467:6;2459;2452:22;2434:2;2495:30;2515:9;2495:30;:::i;:::-;2485:40;;2544:48;2588:2;2577:9;2573:18;2544:48;:::i;:::-;2534:58;;2643:2;2632:9;2628:18;2615:32;2666:18;2707:2;2699:6;2696:14;2693:2;;;2728:6;2720;2713:22;2693:2;2772:60;2824:7;2815:6;2804:9;2800:22;2772:60;:::i;:::-;2851:8;;-1:-1:-1;2746:86:3;-1:-1:-1;2746:86:3;;-1:-1:-1;2920:2:3;-1:-1:-1;;2902:16:3;;2898:25;2895:2;;;2941:6;2933;2926:22;2895:2;2979;2973:9;2959:23;;3021:2;3013:6;3009:15;2991:33;;3074:6;3062:10;3059:22;3054:2;3042:10;3039:18;3036:46;3033:2;;;3085:9;3033:2;3116:10;3112:2;3105:22;3179:2;3168:9;3164:18;3151:32;3143:6;3136:48;3245:3;3234:9;3230:19;3217:33;3212:2;3204:6;3200:15;3193:58;3270:6;3260:16;;3329:3;3318:9;3314:19;3301:33;3285:49;;3359:2;3349:8;3346:16;3343:2;;;3380:6;3372;3365:22;3343:2;3408:63;3463:7;3452:8;3441:9;3437:24;3408:63;:::i;:::-;3398:73;;3524:3;3513:9;3509:19;3496:33;3480:49;;3554:2;3544:8;3541:16;3538:2;;;3575:6;3567;3560:22;3538:2;;;3619:62;3673:7;3662:8;3651:9;3647:24;3619:62;:::i;:::-;2382:1359;;;;-1:-1:-1;2382:1359:3;;-1:-1:-1;2382:1359:3;;;;;;3700:8;-1:-1:-1;;;2382:1359:3:o;3746:735::-;;;;;;;3952:3;3940:9;3931:7;3927:23;3923:33;3920:2;;;3974:6;3966;3959:22;3920:2;4002:30;4022:9;4002:30;:::i;:::-;3992:40;;4051:48;4095:2;4084:9;4080:18;4051:48;:::i;:::-;4041:58;;4150:2;4139:9;4135:18;4122:32;4177:18;4169:6;4166:30;4163:2;;;4214:6;4206;4199:22;4163:2;4258:60;4310:7;4301:6;4290:9;4286:22;4258:60;:::i;:::-;3910:571;;;;-1:-1:-1;4337:8:3;4419:2;4404:18;;4391:32;;4470:3;4455:19;;;4442:33;;-1:-1:-1;3910:571:3;-1:-1:-1;;;;3910:571:3:o;4486:270::-;;4576:6;4571:3;4564:19;4628:6;4621:5;4614:4;4609:3;4605:14;4592:43;4680:3;4673:4;4664:6;4659:3;4655:16;4651:27;4644:40;4745:4;4738:2;4734:7;4729:2;4721:6;4717:15;4713:29;4708:3;4704:39;4700:50;4693:57;;4554:202;;;;;:::o;4761:477::-;;4842:5;4836:12;4869:6;4864:3;4857:19;4894:3;4906:162;4920:6;4917:1;4914:13;4906:162;;;4982:4;5038:13;;;5034:22;;5028:29;5010:11;;;5006:20;;4999:59;4935:12;4906:162;;;5086:6;5083:1;5080:13;5077:2;;;5152:3;5145:4;5136:6;5131:3;5127:16;5123:27;5116:40;5077:2;-1:-1:-1;5220:2:3;5199:15;-1:-1:-1;;5195:29:3;5186:39;;;;5227:4;5182:50;;4812:426;-1:-1:-1;;4812:426:3:o;5243:311::-;;5332:5;5326:12;5321:3;5314:25;5388:4;5381:5;5377:16;5371:23;5364:4;5359:3;5355:14;5348:47;5441:4;5434:5;5430:16;5424:23;5479:4;5472;5467:3;5463:14;5456:28;5500:48;5542:4;5537:3;5533:14;5519:12;5500:48;:::i;:::-;5493:55;5304:250;-1:-1:-1;;;;5304:250:3:o;5559:203::-;-1:-1:-1;;;;;5723:32:3;;;;5705:51;;5693:2;5678:18;;5660:102::o;5767:274::-;-1:-1:-1;;;;;5959:32:3;;;;5941:51;;6023:2;6008:18;;6001:34;5929:2;5914:18;;5896:145::o;6277:348::-;6479:2;6461:21;;;6518:2;6498:18;;;6491:30;6557:26;6552:2;6537:18;;6530:54;6616:2;6601:18;;6451:174::o;6630:414::-;6832:2;6814:21;;;6871:2;6851:18;;;6844:30;6910:34;6905:2;6890:18;;6883:62;-1:-1:-1;;;6976:2:3;6961:18;;6954:48;7034:3;7019:19;;6804:240::o;7049:403::-;7251:2;7233:21;;;7290:2;7270:18;;;7263:30;7329:34;7324:2;7309:18;;7302:62;-1:-1:-1;;;7395:2:3;7380:18;;7373:37;7442:3;7427:19;;7223:229::o;7457:188::-;7631:6;7619:19;;;;7601:38;;7589:2;7574:18;;7556:89::o;7650:1182::-;8134:6;8167:15;;;8149:34;;8219:15;;;8214:2;8199:18;;8192:43;8271:15;;8266:2;8251:18;;8244:43;-1:-1:-1;;;;;8323:32:3;;8318:2;8303:18;;8296:60;8387:3;8372:19;;8365:35;;;8343:3;8416:19;;8409:35;;;8112:3;8475;8460:19;;8453:31;;;7650:1182;;8507:56;8544:18;;;8536:6;8507:56;:::i;:::-;8493:70;;8612:9;8604:6;8600:22;8594:3;8583:9;8579:19;8572:51;8646;8690:6;8682;8674;8646:51;:::i;:::-;8632:65;;8746:9;8738:6;8734:22;8728:3;8717:9;8713:19;8706:51;8774:52;8819:6;8810:7;8802:6;8774:52;:::i;:::-;8766:60;8092:740;-1:-1:-1;;;;;;;;;;;;;;8092:740:3:o;8837:1153::-;9310:6;9343:15;;;9325:34;;9395:15;;;9390:2;9375:18;;9368:43;9447:15;;9442:2;9427:18;;9420:43;-1:-1:-1;;;;;9499:32:3;;9494:2;9479:18;;9472:60;9563:3;9548:19;;9541:35;;;9519:3;9592:19;;9585:35;;;9288:3;9651;9636:19;;9629:31;;;8837:1153;;9683:56;9720:18;;;9712:6;9683:56;:::i;:::-;9669:70;;9788:9;9780:6;9776:22;9770:3;9759:9;9755:19;9748:51;9822;9866:6;9858;9850;9822:51;:::i;:::-;9808:65;;9922:9;9914:6;9910:22;9904:3;9893:9;9889:19;9882:51;9950:34;9977:6;9969;9950:34;:::i;:::-;9942:42;9268:722;-1:-1:-1;;;;;;;;;;;;;9268:722:3:o;9995:365::-;10234:6;10222:19;;;;10204:38;;10273:2;10258:18;;10251:34;;;;-1:-1:-1;;;;;10321:32:3;10316:2;10301:18;;10294:60;10192:2;10177:18;;10159:201::o;10365:242::-;10435:2;10429:9;10465:17;;;10512:18;10497:34;;10533:22;;;10494:62;10491:2;;;10559:9;10491:2;10586;10579:22;10409:198;;-1:-1:-1;10409:198:3:o
Swarm Source
ipfs://1baa95e93e0645912168ad2ba1b439718e28b7a747022e4b5ca7b6beb9334dff
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.