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 1,373 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake No Claim | 20588379 | 134 days ago | IN | 0 ETH | 0.00003067 | ||||
Unstake | 20588374 | 134 days ago | IN | 0 ETH | 0.00005167 | ||||
Unstake No Claim | 19108137 | 341 days ago | IN | 0 ETH | 0.00026928 | ||||
Unstake | 17034360 | 632 days ago | IN | 0 ETH | 0.00131804 | ||||
Unstake | 17034357 | 632 days ago | IN | 0 ETH | 0.00263184 | ||||
Unstake | 16742876 | 673 days ago | IN | 0 ETH | 0.00370015 | ||||
Unstake | 16705369 | 678 days ago | IN | 0 ETH | 0.00256046 | ||||
Unstake | 16686372 | 681 days ago | IN | 0 ETH | 0.00528539 | ||||
Unstake | 16634915 | 688 days ago | IN | 0 ETH | 0.00498812 | ||||
Unstake | 16610320 | 692 days ago | IN | 0 ETH | 0.00163342 | ||||
Unstake | 16472180 | 711 days ago | IN | 0 ETH | 0.00213573 | ||||
Unstake | 16441589 | 715 days ago | IN | 0 ETH | 0.00173253 | ||||
Unstake | 16413989 | 719 days ago | IN | 0 ETH | 0.00197511 | ||||
Unstake | 16384369 | 723 days ago | IN | 0 ETH | 0.00288661 | ||||
Unstake | 15845955 | 798 days ago | IN | 0 ETH | 0.00105657 | ||||
Unstake | 15837972 | 800 days ago | IN | 0 ETH | 0.00165476 | ||||
Unstake | 15820801 | 802 days ago | IN | 0 ETH | 0.00155773 | ||||
Unstake | 15819297 | 802 days ago | IN | 0 ETH | 0.00225274 | ||||
Unstake | 15819212 | 802 days ago | IN | 0 ETH | 0.00445861 | ||||
Unstake | 15819198 | 802 days ago | IN | 0 ETH | 0.00542996 | ||||
Unstake | 15810976 | 803 days ago | IN | 0 ETH | 0.00164771 | ||||
Unstake | 15732923 | 814 days ago | IN | 0 ETH | 0.00259852 | ||||
Unstake | 15684148 | 821 days ago | IN | 0 ETH | 0.00352738 | ||||
Unstake | 15683884 | 821 days ago | IN | 0 ETH | 0.00259103 | ||||
Unstake | 15675031 | 822 days ago | IN | 0 ETH | 0.0020159 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
20588379 | 134 days ago | 0 ETH | |||||
20588374 | 134 days ago | 0 ETH | |||||
20588374 | 134 days ago | 0 ETH | |||||
19108137 | 341 days ago | 0 ETH | |||||
17034360 | 632 days ago | 0 ETH | |||||
17034360 | 632 days ago | 0 ETH | |||||
17034357 | 632 days ago | 0 ETH | |||||
17034357 | 632 days ago | 0 ETH | |||||
17034357 | 632 days ago | 0 ETH | |||||
16742876 | 673 days ago | 0 ETH | |||||
16742876 | 673 days ago | 0 ETH | |||||
16742876 | 673 days ago | 0 ETH | |||||
16705369 | 678 days ago | 0 ETH | |||||
16705369 | 678 days ago | 0 ETH | |||||
16705369 | 678 days ago | 0 ETH | |||||
16686372 | 681 days ago | 0 ETH | |||||
16686372 | 681 days ago | 0 ETH | |||||
16686372 | 681 days ago | 0 ETH | |||||
16634915 | 688 days ago | 0 ETH | |||||
16634915 | 688 days ago | 0 ETH | |||||
16634915 | 688 days ago | 0 ETH | |||||
16610320 | 692 days ago | 0 ETH | |||||
16610320 | 692 days ago | 0 ETH | |||||
16610320 | 692 days ago | 0 ETH | |||||
16472180 | 711 days ago | 0 ETH |
Loading...
Loading
Contract Name:
StakingRouter
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-07-19 */ // File: contracts\interfaces\IPoolToken.sol pragma solidity >=0.5.0; interface IPoolToken { /*** Impermax ERC20 ***/ event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; /*** Pool Token ***/ event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens); event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens); event Sync(uint totalBalance); function underlying() external view returns (address); function factory() external view returns (address); function totalBalance() external view returns (uint); function MINIMUM_LIQUIDITY() external pure returns (uint); function exchangeRate() external returns (uint); function mint(address minter) external returns (uint mintTokens); function redeem(address redeemer) external returns (uint redeemAmount); function skim(address to) external; function sync() external; function _setFactory() external; } // File: contracts\interfaces\IERC20.sol pragma solidity >=0.5.0; interface IERC20 { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); } // File: contracts\interfaces\IReservesDistributor.sol pragma solidity >=0.5.0; interface IReservesDistributor { function imx() external view returns (address); function xImx() external view returns (address); function periodLength() external view returns (uint); function lastClaim() external view returns (uint); event Claim(uint previousBalance, uint timeElapsed, uint amount); event NewPeriodLength(uint oldPeriodLength, uint newPeriodLength); event Withdraw(uint previousBalance, uint amount); function claim() external returns (uint amount); function setPeriodLength(uint newPeriodLength) external; function withdraw(uint amount) external; } // File: contracts\interfaces\IStakingRouter.sol pragma solidity >=0.5.0; interface IStakingRouter { function imx() external view returns (address); function xImx() external view returns (address); function reservesDistributor() external view returns (address); function stakeNoClaim(uint amount) external returns (uint tokens); function stake(uint amount) external returns (uint tokens); function unstakeNoClaim(uint tokens) external returns (uint amount); function unstake(uint tokens) external returns (uint amount); } // File: contracts\StakingRouter.sol pragma solidity =0.5.16; contract StakingRouter is IStakingRouter { address public imx; address public xImx; address public reservesDistributor; constructor(address _imx, address _xImx, address _reservesDistributor) public { imx = _imx; xImx = _xImx; reservesDistributor = _reservesDistributor; } function stakeNoClaim(uint amount) public returns (uint tokens) { IERC20(imx).transferFrom(msg.sender, xImx, amount); tokens = IPoolToken(xImx).mint(msg.sender); } function stake(uint amount) external returns (uint tokens) { tokens = stakeNoClaim(amount); IReservesDistributor(reservesDistributor).claim(); } function unstakeNoClaim(uint tokens) public returns (uint amount) { IERC20(xImx).transferFrom(msg.sender, xImx, tokens); amount = IPoolToken(xImx).redeem(msg.sender); } function unstake(uint tokens) external returns (uint amount) { IReservesDistributor(reservesDistributor).claim(); amount = unstakeNoClaim(tokens); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_imx","type":"address"},{"internalType":"address","name":"_xImx","type":"address"},{"internalType":"address","name":"_reservesDistributor","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[],"name":"imx","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reservesDistributor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeNoClaim","outputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"unstake","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"unstakeNoClaim","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"xImx","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516106283803806106288339818101604052606081101561003357600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b03199182161790915560018054948416948216949094179093556002805492909116919092161790556105998061008f6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063594aa29f1161005b578063594aa29f146100ea5780637ed8f0f5146100f2578063a694fc3a1461010f578063b5a5266d1461012c5761007d565b80630c089774146100825780630f08025f146100b35780632e17de78146100bb575b600080fd5b61008a610149565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61008a610165565b6100d8600480360360208110156100d157600080fd5b5035610181565b60408051918252519081900360200190f35b61008a610229565b6100d86004803603602081101561010857600080fd5b5035610245565b6100d86004803603602081101561012557600080fd5b503561039b565b6100d86004803603602081101561014257600080fd5b5035610444565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600254604080517f4e71d92d000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691634e71d92d91600480830192602092919082900301818787803b1580156101ed57600080fd5b505af1158015610201573d6000803e3d6000fd5b505050506040513d602081101561021757600080fd5b50610223905082610444565b92915050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60008054600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff928316602482015260448101869052905191909216916323b872dd91606480830192602092919082900301818787803b1580156102ca57600080fd5b505af11580156102de573d6000803e3d6000fd5b505050506040513d60208110156102f457600080fd5b5050600154604080517f6a627842000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691636a627842916024808201926020929091908290030181600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b505192915050565b60006103a682610245565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e71d92d6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561041257600080fd5b505af1158015610426573d6000803e3d6000fd5b505050506040513d602081101561043c57600080fd5b509092915050565b600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909216602483018190526044830184905290516000926323b872dd91606480830192602092919082900301818787803b1580156104c557600080fd5b505af11580156104d9573d6000803e3d6000fd5b505050506040513d60208110156104ef57600080fd5b5050600154604080517f95a2251f000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff909216916395a2251f916024808201926020929091908290030181600087803b15801561036957600080fdfea265627a7a72315820fd6c2feed52d58978c709283b8e08843b24676644810c54631ec88f63617123264736f6c634300051000320000000000000000000000007b35ce522cb72e4077baeb96cb923a5529764a00000000000000000000000000363b2deac84f0100d63c7427335f8350f596bf59000000000000000000000000a6f3c27f1b503221f3a3c9d34f587252ecfb3160
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063594aa29f1161005b578063594aa29f146100ea5780637ed8f0f5146100f2578063a694fc3a1461010f578063b5a5266d1461012c5761007d565b80630c089774146100825780630f08025f146100b35780632e17de78146100bb575b600080fd5b61008a610149565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61008a610165565b6100d8600480360360208110156100d157600080fd5b5035610181565b60408051918252519081900360200190f35b61008a610229565b6100d86004803603602081101561010857600080fd5b5035610245565b6100d86004803603602081101561012557600080fd5b503561039b565b6100d86004803603602081101561014257600080fd5b5035610444565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600254604080517f4e71d92d000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691634e71d92d91600480830192602092919082900301818787803b1580156101ed57600080fd5b505af1158015610201573d6000803e3d6000fd5b505050506040513d602081101561021757600080fd5b50610223905082610444565b92915050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60008054600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff928316602482015260448101869052905191909216916323b872dd91606480830192602092919082900301818787803b1580156102ca57600080fd5b505af11580156102de573d6000803e3d6000fd5b505050506040513d60208110156102f457600080fd5b5050600154604080517f6a627842000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691636a627842916024808201926020929091908290030181600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b505192915050565b60006103a682610245565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e71d92d6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561041257600080fd5b505af1158015610426573d6000803e3d6000fd5b505050506040513d602081101561043c57600080fd5b509092915050565b600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909216602483018190526044830184905290516000926323b872dd91606480830192602092919082900301818787803b1580156104c557600080fd5b505af11580156104d9573d6000803e3d6000fd5b505050506040513d60208110156104ef57600080fd5b5050600154604080517f95a2251f000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff909216916395a2251f916024808201926020929091908290030181600087803b15801561036957600080fdfea265627a7a72315820fd6c2feed52d58978c709283b8e08843b24676644810c54631ec88f63617123264736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007b35ce522cb72e4077baeb96cb923a5529764a00000000000000000000000000363b2deac84f0100d63c7427335f8350f596bf59000000000000000000000000a6f3c27f1b503221f3a3c9d34f587252ecfb3160
-----Decoded View---------------
Arg [0] : _imx (address): 0x7b35Ce522CB72e4077BaeB96Cb923A5529764a00
Arg [1] : _xImx (address): 0x363B2DEaC84F0100d63C7427335F8350f596bf59
Arg [2] : _reservesDistributor (address): 0xa6f3C27f1b503221F3a3c9d34f587252ecFb3160
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007b35ce522cb72e4077baeb96cb923a5529764a00
Arg [1] : 000000000000000000000000363b2deac84f0100d63c7427335f8350f596bf59
Arg [2] : 000000000000000000000000a6f3c27f1b503221f3a3c9d34f587252ecfb3160
Deployed Bytecode Sourcemap
4196:973:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4196:973:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4286:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4241:18;;;:::i;5010:156::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5010:156:0;;:::i;:::-;;;;;;;;;;;;;;;;4263:19;;;:::i;4493:171::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4493:171:0;;:::i;4670:152::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4670:152:0;;:::i;4828:176::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4828:176:0;;:::i;4286:34::-;;;;;;:::o;4241:18::-;;;;;;:::o;5010:156::-;5097:19;;5076:49;;;;;;;;5058:11;;5097:19;;;5076:47;;:49;;;;;;;;;;;;;;5058:11;5097:19;5076:49;;;5:2:-1;;;;30:1;27;20:12;5:2;5076:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5076:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5139:22:0;;-1:-1:-1;5154:6:0;5139:14;:22::i;:::-;5130:31;5010:156;-1:-1:-1;;5010:156:0:o;4263:19::-;;;;;;:::o;4493:171::-;4544:11;4569:3;;;4599:4;4562:50;;;;;;4587:10;4562:50;;;;4569:3;4599:4;;;4562:50;;;;;;;;;;;;4569:3;;;;;4562:24;;:50;;;;;;;;;;;;;;4544:11;4569:3;4562:50;;;5:2:-1;;;;30:1;27;20:12;5:2;4562:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4562:50:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;4637:4:0;;4626:33;;;;;;4648:10;4626:33;;;;;;4637:4;;;;;4626:21;;:33;;;;;4562:50;;4626:33;;;;;;;;4637:4;;4626:33;;;5:2:-1;;;;30:1;27;20:12;5:2;4626:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4626:33:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4626:33:0;;4493:171;-1:-1:-1;;4493:171:0:o;4670:152::-;4716:11;4743:20;4756:6;4743:12;:20::i;:::-;4734:29;;4789:19;;;;;;;;;;;4768:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4768:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4768:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4670:152:0;;;-1:-1:-1;;4670:152:0:o;4828:176::-;4906:4;;4899:51;;;;;;4925:10;4899:51;;;;4906:4;;;;4899:51;;;;;;;;;;;;;;4881:11;;4899:25;;:51;;;;;;;;;;;;;;4881:11;4906:4;4899:51;;;5:2:-1;;;;30:1;27;20:12;5:2;4899:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4899:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;4975:4:0;;4964:35;;;;;;4988:10;4964:35;;;;;;4975:4;;;;;4964:23;;:35;;;;;4899:51;;4964:35;;;;;;;;4975:4;;4964:35;;;5:2:-1;;;;30:1;27;20:12
Swarm Source
bzzr://fd6c2feed52d58978c709283b8e08843b24676644810c54631ec88f636171232
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.