Overview
AVAX Balance
AVAX Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 15,453 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 33885008 | 618 days ago | IN | 0 AVAX | 0.01358883 | ||||
Stake | 24927237 | 830 days ago | IN | 0 AVAX | 0.01358883 | ||||
Stake | 20248109 | 941 days ago | IN | 0 AVAX | 0.01358883 | ||||
Stake | 16503339 | 1032 days ago | IN | 0 AVAX | 0.01358847 | ||||
Stake | 15637108 | 1052 days ago | IN | 0 AVAX | 0.01196206 | ||||
Stake | 11788424 | 1143 days ago | IN | 0 AVAX | 0.00500184 | ||||
Stake | 11785844 | 1143 days ago | IN | 0 AVAX | 0.00631413 | ||||
Stake | 11705223 | 1145 days ago | IN | 0 AVAX | 0.00577213 | ||||
Stake | 11703957 | 1145 days ago | IN | 0 AVAX | 0.01358847 | ||||
Stake | 11692832 | 1145 days ago | IN | 0 AVAX | 0.0161951 | ||||
Stake | 11684187 | 1145 days ago | IN | 0 AVAX | 0.03197373 | ||||
Stake | 11655124 | 1146 days ago | IN | 0 AVAX | 0.0131767 | ||||
Stake | 11654993 | 1146 days ago | IN | 0 AVAX | 0.02732787 | ||||
Stake | 11654858 | 1146 days ago | IN | 0 AVAX | 0.02954932 | ||||
Stake | 11649866 | 1146 days ago | IN | 0 AVAX | 0.02815248 | ||||
Stake | 11441332 | 1151 days ago | IN | 0 AVAX | 0.01857873 | ||||
Stake | 11389110 | 1152 days ago | IN | 0 AVAX | 0.02827014 | ||||
Stake | 11384027 | 1152 days ago | IN | 0 AVAX | 0.01888562 | ||||
Stake | 11354701 | 1153 days ago | IN | 0 AVAX | 0.01720125 | ||||
Stake | 11295550 | 1154 days ago | IN | 0 AVAX | 0.02421679 | ||||
Stake | 11295096 | 1154 days ago | IN | 0 AVAX | 0.02000508 | ||||
Stake | 11091440 | 1159 days ago | IN | 0 AVAX | 0.01132342 | ||||
Stake | 11054990 | 1160 days ago | IN | 0 AVAX | 0.00610246 | ||||
Stake | 11054876 | 1160 days ago | IN | 0 AVAX | 0.01952192 | ||||
Stake | 11050363 | 1160 days ago | IN | 0 AVAX | 0.00996318 |
Loading...
Loading
Contract Name:
StakingHelper
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at snowscan.xyz on 2021-12-14 */ // 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 RGK; constructor ( address _staking, address _RGK ) { require( _staking != address(0) ); staking = _staking; require( _RGK != address(0) ); RGK = _RGK; } function stake( uint _amount ) external { IERC20( RGK ).transferFrom( msg.sender, address(this), _amount ); IERC20( RGK ).approve( staking, _amount ); IStaking( staking ).stake( _amount, msg.sender ); IStaking( staking ).claim( msg.sender ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_RGK","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"RGK","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516106163803806106168339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104a36101736000398061010252806101ed528061044b52508060de528061022952806102da52806103a752506104a36000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063f93ce28f146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea2646970667358221220825709cdefd62ec992c213d6c56fe4587f7b33dd1a83f60342cfe9882fcd561164736f6c63430007050033000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca00000000000000000000000046fccf447f74ec97a521615fce111118597071f7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063f93ce28f146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca81565b7f00000000000000000000000046fccf447f74ec97a521615fce111118597071f773ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f00000000000000000000000046fccf447f74ec97a521615fce111118597071f773ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca73ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca73ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000046fccf447f74ec97a521615fce111118597071f78156fea2646970667358221220825709cdefd62ec992c213d6c56fe4587f7b33dd1a83f60342cfe9882fcd561164736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca00000000000000000000000046fccf447f74ec97a521615fce111118597071f7
-----Decoded View---------------
Arg [0] : _staking (address): 0xeb6B44834E002ECDEAdF9E61448B21cCc33284ca
Arg [1] : _RGK (address): 0x46fCCf447f74ec97a521615fcE111118597071f7
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca
Arg [1] : 00000000000000000000000046fccf447f74ec97a521615fce111118597071f7
Deployed Bytecode Sourcemap
2810:592:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2842:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3115:284;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2881:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2842:32;;;:::o;3115:284::-;3174:3;3166:26;;;3194:10;3214:4;3221:7;3166:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3249:3;3241:21;;;3264:7;3273;3241:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3303:7;3293:25;;;3320:7;3329:10;3293:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3362:7;3352:25;;;3379:10;3352:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3115:284;:::o;2881:28::-;;;:::o
Swarm Source
ipfs://825709cdefd62ec992c213d6c56fe4587f7b33dd1a83f60342cfe9882fcd5611
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.