Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Latest 25 from a total of 526 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 14711135 | 1071 days ago | IN | 0 ETH | 0.0162786 | ||||
Stake | 14678111 | 1077 days ago | IN | 0 ETH | 0.00828631 | ||||
Stake | 14677634 | 1077 days ago | IN | 0 ETH | 0.01219441 | ||||
Stake | 14675897 | 1077 days ago | IN | 0 ETH | 0.00664028 | ||||
Stake | 14675585 | 1077 days ago | IN | 0 ETH | 0.01527444 | ||||
Stake | 14675345 | 1077 days ago | IN | 0 ETH | 0.01926291 | ||||
Stake | 14672470 | 1077 days ago | IN | 0 ETH | 0.01070888 | ||||
Stake | 14665422 | 1079 days ago | IN | 0 ETH | 0.00583085 | ||||
Stake | 14665387 | 1079 days ago | IN | 0 ETH | 0.00640861 | ||||
Stake | 14663433 | 1079 days ago | IN | 0 ETH | 0.00733808 | ||||
Stake | 14663431 | 1079 days ago | IN | 0 ETH | 0.01390318 | ||||
Stake | 14660394 | 1079 days ago | IN | 0 ETH | 0.01341074 | ||||
Stake | 14660214 | 1079 days ago | IN | 0 ETH | 0.00707222 | ||||
Stake | 14658617 | 1080 days ago | IN | 0 ETH | 0.00505522 | ||||
Stake | 14656563 | 1080 days ago | IN | 0 ETH | 0.00942694 | ||||
Stake | 14656426 | 1080 days ago | IN | 0 ETH | 0.01029502 | ||||
Stake | 14656356 | 1080 days ago | IN | 0 ETH | 0.01209506 | ||||
Stake | 14656264 | 1080 days ago | IN | 0 ETH | 0.01139596 | ||||
Stake | 14656070 | 1080 days ago | IN | 0 ETH | 0.01585807 | ||||
Stake | 14655940 | 1080 days ago | IN | 0 ETH | 0.01219823 | ||||
Stake | 14654014 | 1080 days ago | IN | 0 ETH | 0.0082669 | ||||
Stake | 14653992 | 1080 days ago | IN | 0 ETH | 0.00834103 | ||||
Stake | 14653983 | 1080 days ago | IN | 0 ETH | 0.00777034 | ||||
Stake | 14650297 | 1081 days ago | IN | 0 ETH | 0.01021438 | ||||
Stake | 14647965 | 1081 days ago | IN | 0 ETH | 0.01966262 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingHelper
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-18 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; interface IERC20 { function decimals() external view returns (uint8); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } interface IStaking { function stake( uint _amount, address _recipient ) external returns ( bool ); function claim( address _recipient ) external; } contract StakingHelper { address public immutable staking; address public immutable GWS; constructor ( address _staking, address _GWS ) { require( _staking != address(0) ); staking = _staking; require( _GWS != address(0) ); GWS = _GWS; } function stake( uint _amount, address _recipient ) external { IERC20( GWS ).transferFrom( _recipient, address(this), _amount ); IERC20( GWS ).approve( staking, _amount ); IStaking( staking ).stake( _amount, _recipient ); IStaking( staking ).claim( _recipient ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_GWS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"GWS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516104833803806104838339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166103ba6100c96000398060c6528060ea52806101e552508060a252806101b45280610285528061031e52506103ba6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063508f18321461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd8230856040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561017057600080fd5b505af1158015610184573d6000803e3d6000fd5b505050506040513d602081101561019a57600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820185905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561023057600080fd5b505af1158015610244573d6000803e3d6000fd5b505050506040513d602081101561025a57600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000000000000000000000000000000000000000000090921691637acb7757916044808201926020929091908290030181600087803b1580156102d057600080fd5b505af11580156102e4573d6000803e3d6000fd5b505050506040513d60208110156102fa57600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000000000000000000000000000000000000000000090921691631e83409a9160248082019260009290919082900301818387803b15801561036857600080fd5b505af115801561037c573d6000803e3d6000fd5b50505050505056fea2646970667358221220910f069eb3b6f786d67036eec95382a825c4f46c995bff84ab6b30900ba3495064736f6c63430007050033000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439300000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063508f18321461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439381565b7f00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d781565b7f00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d76001600160a01b03166323b872dd8230856040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561017057600080fd5b505af1158015610184573d6000803e3d6000fd5b505050506040513d602081101561019a57600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393811660048301526024820185905291517f00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d79092169163095ea7b3916044808201926020929091908290030181600087803b15801561023057600080fd5b505af1158015610244573d6000803e3d6000fd5b505050506040513d602081101561025a57600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439390921691637acb7757916044808201926020929091908290030181600087803b1580156102d057600080fd5b505af11580156102e4573d6000803e3d6000fd5b505050506040513d60208110156102fa57600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439390921691631e83409a9160248082019260009290919082900301818387803b15801561036857600080fd5b505af115801561037c573d6000803e3d6000fd5b50505050505056fea2646970667358221220910f069eb3b6f786d67036eec95382a825c4f46c995bff84ab6b30900ba3495064736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439300000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d7
-----Decoded View---------------
Arg [0] : _staking (address): 0x842222BbaEcEb854993c5AD3F63e98fdFf214393
Arg [1] : _GWS (address): 0x36F17BD0F7028c784b2e0C9B5a65dBe071a902d7
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393
Arg [1] : 00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d7
Deployed Bytecode Sourcemap
2812:612:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2844:32;;;:::i;:::-;;;;-1:-1:-1;;;;;2844:32:0;;;;;;;;;;;;;;2883:28;;;:::i;3117:304::-;;;;;;;;;;;;;;;;-1:-1:-1;3117:304:0;;;;;;-1:-1:-1;;;;;3117:304:0;;:::i;:::-;;2844:32;;;:::o;2883:28::-;;;:::o;3117:304::-;3196:3;-1:-1:-1;;;;;3188:26:0;;3216:10;3236:4;3243:7;3188:64;;;;;;;;;;;;;-1:-1:-1;;;;;3188:64:0;;;;;;-1:-1:-1;;;;;3188:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3263:41:0;;;-1:-1:-1;;;3263:41:0;;-1:-1:-1;;;;;3286:7:0;3263:41;;;;;;;;;;;;;;3271:3;3263:21;;;;;;:41;;;;;3188:64;;3263:41;;;;;;;;-1:-1:-1;3263:21:0;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3315:48:0;;;-1:-1:-1;;;3315:48:0;;;;;;;;-1:-1:-1;;;;;3315:48:0;;;;;;;;;3325:7;3315:25;;;;;;:48;;;;;3263:41;;3315:48;;;;;;;;-1:-1:-1;3315:25:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3374:39:0;;;-1:-1:-1;;;3374:39:0;;-1:-1:-1;;;;;3374:39:0;;;;;;;;;3384:7;3374:25;;;;;;:39;;;;;-1:-1:-1;;3374:39:0;;;;;;;;-1:-1:-1;3374:25:0;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3117:304;;:::o
Swarm Source
ipfs://910f069eb3b6f786d67036eec95382a825c4f46c995bff84ab6b30900ba34950
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.