Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingWarmup
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-18 */ // SPDX-License-Identifier: MIT 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); } contract StakingWarmup { address public immutable staking; address public immutable sGWS; constructor ( address _staking, address _sGWS ) { require( _staking != address(0) ); staking = _staking; require( _sGWS != address(0) ); sGWS = _sGWS; } function retrieve( address _staker, uint _amount ) external { require( msg.sender == staking ); IERC20( sGWS ).transfer( _staker, _amount ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_sGWS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sGWS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516102b43803806102b48339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166101fa6100ba6000398060c6528061011f52508060a2528060f352506101fa6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780636efe6f521461006a578063c3a2a66514610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b506001600160a01b0381351690602001356100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461011d57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561019457600080fd5b505af11580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b5050505056fea264697066735822122023b1a368904d7c7c18a536a9901e9d5fd804e717a6ab744222c7c479f065c5e064736f6c63430007050033000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393000000000000000000000000afaf6d0503c093e80403ba9fdafbcd4b180e8162
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780636efe6f521461006a578063c3a2a66514610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b506001600160a01b0381351690602001356100e8565b005b7f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439381565b7f000000000000000000000000afaf6d0503c093e80403ba9fdafbcd4b180e816281565b336001600160a01b037f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393161461011d57600080fd5b7f000000000000000000000000afaf6d0503c093e80403ba9fdafbcd4b180e81626001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561019457600080fd5b505af11580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b5050505056fea264697066735822122023b1a368904d7c7c18a536a9901e9d5fd804e717a6ab744222c7c479f065c5e064736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393000000000000000000000000afaf6d0503c093e80403ba9fdafbcd4b180e8162
-----Decoded View---------------
Arg [0] : _staking (address): 0x842222BbaEcEb854993c5AD3F63e98fdFf214393
Arg [1] : _sGWS (address): 0xAfAF6d0503c093E80403Ba9FDAFBCD4B180e8162
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393
Arg [1] : 000000000000000000000000afaf6d0503c093e80403ba9fdafbcd4b180e8162
Deployed Bytecode Sourcemap
2638:478:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2670:32;;;:::i;:::-;;;;-1:-1:-1;;;;;2670:32:0;;;;;;;;;;;;;;2709:29;;;:::i;2948:165::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2948:165:0;;;;;;;;:::i;:::-;;2670:32;;;:::o;2709:29::-;;;:::o;2948:165::-;3028:10;-1:-1:-1;;;;;3042:7:0;3028:21;;3019:32;;;;;;3070:4;-1:-1:-1;;;;;3062:23:0;;3087:7;3096;3062:43;;;;;;;;;;;;;-1:-1:-1;;;;;3062:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;2948:165:0:o
Swarm Source
ipfs://23b1a368904d7c7c18a536a9901e9d5fd804e717a6ab744222c7c479f065c5e0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.