Contract 0x5ed22cff24a6797fa854066f9ee31870fd33fa66

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb35fd5af0c8659db82dc6ae058a5a322e40fa7404eb77035cc850aab53a7dad0Retrieve203679522021-10-19 4:20:2996 days 16 hrs ago0xbce88af686d16375a8ebdc2def55aa95c5b1441d IN  0x5ed22cff24a6797fa854066f9ee31870fd33fa660 MATIC0.0006572730
0xb1dbfdbf7239d1a4d3c3d18db0c6b16e8f5eb559b6f6e3c8eb790a393d68edc3Retrieve203604862021-10-18 23:09:5896 days 22 hrs ago0x4531ebb76e4b14ae471c9b82f5071983bfd51941 IN  0x5ed22cff24a6797fa854066f9ee31870fd33fa660 MATIC0.00142252565
0x8e97f661d658776ab4b33618f973697cd1ebc16a671e0b68934026ed08ff9e43Retrieve203604382021-10-18 23:07:0096 days 22 hrs ago0x4531ebb76e4b14ae471c9b82f5071983bfd51941 IN  0x5ed22cff24a6797fa854066f9ee31870fd33fa660 MATIC0.0021861100
0xcae4babc920be157d7dcce98b4d63a57439122186de91a71612132603ec8b3b60x60c06040203254862021-10-17 22:01:4297 days 23 hrs agoKlimaDAO: Deployer IN  Create: StakingWarmup0 MATIC0.0049351830
[ 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, MIT license
/**
 *Submitted for verification at polygonscan.com on 2021-10-17
*/

/**
 *Submitted for verification at Etherscan.io on 2021-06-12
*/

// 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 sKLIMA;

    constructor ( address _staking, address _sKLIMA ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _sKLIMA != address(0) );
        sKLIMA = _sKLIMA;
    }

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_sKLIMA","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":"sKLIMA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b506040516102b43803806102b48339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166101fa6100ba6000398060c6528061011f52508060a2528060f352506101fa6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d91461004657806358d0c5171461006a578063c3a2a66514610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b506001600160a01b0381351690602001356100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461011d57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561019457600080fd5b505af11580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b5050505056fea264697066735822122036cc832b6be9c323965ce4068e1d1b6347e49a766aac554232e0b8d3289449a164736f6c6343000705003300000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d000000000000000000000000b0c22d8d350c67420f06f48936654f567c73e8c8

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

00000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d000000000000000000000000b0c22d8d350c67420f06f48936654f567c73e8c8

-----Decoded View---------------
Arg [0] : _staking (address): 0x25d28a24ceb6f81015bb0b2007d795acac411b4d
Arg [1] : _sKLIMA (address): 0xb0c22d8d350c67420f06f48936654f567c73e8c8

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d
Arg [1] : 000000000000000000000000b0c22d8d350c67420f06f48936654f567c73e8c8


Deployed ByteCode Sourcemap

2841:490:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2873:32;;;:::i;:::-;;;;-1:-1:-1;;;;;2873:32:0;;;;;;;;;;;;;;2912:31;;;:::i;3161:167::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3161:167:0;;;;;;;;:::i;:::-;;2873:32;;;:::o;2912:31::-;;;:::o;3161:167::-;3241:10;-1:-1:-1;;;;;3255:7:0;3241:21;;3232:32;;;;;;3283:6;-1:-1:-1;;;;;3275:25:0;;3302:7;3311;3275:45;;;;;;;;;;;;;-1:-1:-1;;;;;3275:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;3161:167:0:o

Swarm Source

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