Contract 0xdafc6158ed75d14abc8f82108f583b8338254b76

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc7df5acc51c8dc17e6e15531ed449a63132fb7bc1d186a41c7b0249a6a631d830x60c0604069977502021-11-15 23:04:56224 days 1 hr ago0x304a97c9a85c92c93ca24e0a85b69f892b67355e IN  Create: StakingWarmup0 AVAX0.00453255724927.552534552
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingWarmup

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at snowtrace.io on 2021-11-15
*/

// 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);
}

contract StakingWarmup {

    address public immutable staking;
    address public immutable MEMOries;

    constructor ( address _staking, address _MEMOries ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _MEMOries != address(0) );
        MEMOries = _MEMOries;
    }

    function retrieve( address _staker, uint _amount ) external {
        require( msg.sender == staking );
        IERC20( MEMOries ).transfer( _staker, _amount );
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_MEMOries","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MEMOries","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b506040516102b43803806102b48339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166101fa6100ba6000398060a2528061011f52508060c6528060f352506101fa6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806349880e52146100465780634cf088d91461006a578063c3a2a66514610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b506001600160a01b0381351690602001356100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461011d57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561019457600080fd5b505af11580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b5050505056fea264697066735822122036be8e2d7fe99ff48731c4464433d7215bcfbe9ec5c8405b376d2d791ec0f6f664736f6c6343000705003300000000000000000000000047953c729a571ef331e92d537adc45985976c756000000000000000000000000f3caa368b06033a83a49317549b3c1b47e7d5f8f

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000047953c729a571ef331e92d537adc45985976c756000000000000000000000000f3caa368b06033a83a49317549b3c1b47e7d5f8f

-----Decoded View---------------
Arg [0] : _staking (address): 0x47953c729a571ef331e92d537adc45985976c756
Arg [1] : _MEMOries (address): 0xf3caa368b06033a83a49317549b3c1b47e7d5f8f

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000047953c729a571ef331e92d537adc45985976c756
Arg [1] : 000000000000000000000000f3caa368b06033a83a49317549b3c1b47e7d5f8f


Deployed ByteCode Sourcemap

2648:502:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2719:33;;;:::i;:::-;;;;-1:-1:-1;;;;;2719:33:0;;;;;;;;;;;;;;2680:32;;;:::i;2978:169::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2978:169:0;;;;;;;;:::i;:::-;;2719:33;;;:::o;2680:32::-;;;:::o;2978:169::-;3058:10;-1:-1:-1;;;;;3072:7:0;3058:21;;3049:32;;;;;;3100:8;-1:-1:-1;;;;;3092:27:0;;3121:7;3130;3092:47;;;;;;;;;;;;;-1:-1:-1;;;;;3092:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;2978:169:0:o

Swarm Source

ipfs://36be8e2d7fe99ff48731c4464433d7215bcfbe9ec5c8405b376d2d791ec0f6f6
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.