Contract 0x4D70a031Fc76DA6a9bC0C922101A05FA95c3A227 8

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x65026b55da20f1e8750d672096d1c40efc38d710375b24cb5dfc1bc3b1bb55c8Stake432591562023-05-28 18:37:1210 mins ago0x98f3fad74433cab1296697149f6c793cfa67ebfb IN  KlimaDAO: Staking0 MATIC0.024158598924 135.443209365
0x148ea850d1cebdd8eb7b7cb8edb40c21004bf62f46e7668a1c00f6dbb8fce02fStake432581112023-05-28 17:58:3648 mins ago0xe81e39b49f530eea961dea9a6d072748be5565be IN  KlimaDAO: Staking0 MATIC0.024120969628 135.23224379
0x60fe58566215d61ccf0f23f373cbb3762607b33140284ce846380d110f565d2aStake432580172023-05-28 17:55:1852 mins ago0xc66e954764e5ea9580226ef89a9d60e2071cf289 IN  KlimaDAO: Staking0 MATIC0.028399614782 159.229045018
0xea6fd2a510a0bdb358a83a2826c1e47523f22db166efabc1a14ab6ab51098b25Stake432579242023-05-28 17:52:0055 mins ago0xae411448c84388a4df35fd7a50e825d8aed8e9f0 IN  KlimaDAO: Staking0 MATIC0.024833417163 139.234328697
0xd152d85bed0b8327a0283a559be507b4e516b6d5671a08663f068053d81f5c7eStake432577712023-05-28 17:46:341 hr ago0x290e22391f2cfc3a21ce2b75c77408f50b138868 IN  KlimaDAO: Staking0 MATIC0.024239434263 135.89640608
0x506803c22e4f1b67afa12ccbea70fc16c1989526da519ca4de10808826ba394dStake432570142023-05-28 17:19:421 hr 27 mins ago0xb6ced4ddc43c4adbe8b8f1aa9c463c140cd7a423 IN  KlimaDAO: Staking0 MATIC0.023616090825 132.415787255
0x4487582fa729f4c4c364f7a71dc1e07e21e2e1f781d9729fe73e358d8cb7beacStake432560992023-05-28 16:47:002 hrs ago0x46362f584df307fc5a4cbe4c55e20be7b389f9df IN  KlimaDAO: Staking0 MATIC0.025828789817 144.806998032
0xc3f9318655b767b30b0ad388e5071cb72f8d3b5f992a95849bc174f71a1e05d1Stake432558352023-05-28 16:37:292 hrs 9 mins ago0xddb7f523eba06447c3be9a9725a4d308f06ea6e4 IN  KlimaDAO: Staking0 MATIC0.025625227271 143.681046444
0x819e6dc59ec54cc2e4c961e34098eb8ffd1fb3e04b8d1023cda4f23a1b91a27aStake432557052023-05-28 16:32:532 hrs 14 mins ago0xd3e1fe8c0e507ac1279fa1c466652773366369eb IN  KlimaDAO: Staking0 MATIC0.025194932623 141.261249197
0xe854cd5db47b30b9dda9a5609dfe68a12ea20d58bfb1e5ae5b948aeba6c3b373Stake432554092023-05-28 16:22:252 hrs 24 mins ago0x4013c5bc5da5ae348d4ad32f30a6064f3021ee04 IN  KlimaDAO: Staking0 MATIC0.02630686879 147.495577918
0x99496d76e5c95211856c64f123a37c8fb6d3eb095503b38369f21aa230599a09Stake432552752023-05-28 16:17:352 hrs 29 mins ago0xbef621c792d6a17798d0a9d4f153cbeb6add231d IN  KlimaDAO: Staking0 MATIC0.0334357431 187.465269659
0xdcded621a06370a993d678e0de72808fd7c0a6283ef8b744f27a21e2165d0219Stake432550132023-05-28 16:08:192 hrs 39 mins ago0xd74d7654fb85dcb329930ef760494ad138feeecd IN  KlimaDAO: Staking0 MATIC0.029258072941 164.042190334
0xdddff069ad4a31624e131e3fcdb5d8188163f9075b80fb9a3c13cb166a027a9eStake432546072023-05-28 15:53:532 hrs 53 mins ago0xe47633741aa4be0a667966fda5c1bb41316f728c IN  KlimaDAO: Staking0 MATIC0.02958584159 165.879901492
0xa0967285199084e7e4cfb1e6fc371b0fad4c4c350d06f46124e193ada9a14f3eStake432543672023-05-28 15:45:053 hrs 2 mins ago0x53ca154fde725159978db39ed89131c040e90bf3 IN  KlimaDAO: Staking0 MATIC0.027887520373 156.357868623
0x68e16b0ca34c038862088f7a46f7fbe79f29ebc9052b427b92cfae44c72856ffStake432513792023-05-28 13:58:594 hrs 48 mins ago0x6c3cba49215f2c5a5983ec6e985d41c05c2ba621 IN  KlimaDAO: Staking0 MATIC0.023115120352 140.350223156
0x27f33e48845845183c5b24cda18212560615ce570c213879d979b4332db9406fStake432494382023-05-28 12:47:515 hrs 59 mins ago0xcb3ef466d71b44204215fab2e058c3c8fe878bac IN  KlimaDAO: Staking0 MATIC0.030340221951 170.099973379
0x823f04d0c05f3d7471414ab82811c156f9bcf84fc44b5a67ad3d88963f4c13cbStake432487752023-05-28 12:23:306 hrs 23 mins ago0x9e54df2028b39f27eed6fb6fa8bf6a832ef1b9e8 IN  KlimaDAO: Staking0 MATIC0.026085086076 146.243902045
0x28ea7fd8456365808bf6b5bc3e7e49f6e9327a3f42e98a7b4924c1caa457dd16Stake432480832023-05-28 11:58:236 hrs 49 mins ago0x2d1dc92c57a0030702c140135939e57e6a0db3a0 IN  KlimaDAO: Staking0 MATIC0.03847281707 215.694702892
0x11541c0afb378ba518cc472f13a9b8195ed2e4573300e5504f442c59617cf641Stake432480532023-05-28 11:57:196 hrs 50 mins ago0xa5ac716ea3b74129211b87c43c269e83ffd261c9 IN  KlimaDAO: Staking0 MATIC0.028396090744 159.200360744
0x5c03dfd3b776a3c9a193e7da5a57b4299261275e98c37930d923acca11897b40Stake432477212023-05-28 11:44:417 hrs 2 mins ago0x59c699fa6728f8d00671ca6b5d8ae8f6826e2e5c IN  KlimaDAO: Staking0 MATIC0.026819311589 150.360277348
0x49fc0967b9c8b54d3c4281f0145086117d22e8ed61036edd79f86a9f6c936f32Stake432469012023-05-28 11:14:157 hrs 33 mins ago0x2c6e296b8912359a356f1cb287f6933c246f7ad0 IN  KlimaDAO: Staking0 MATIC0.029658327996 166.276990678
0xe743923d08d92fff4d5b9b4f403e27f2b23a9b8018c1aa2f755fdaedde8aa807Stake432468502023-05-28 11:12:277 hrs 34 mins ago0x304faa82670b4a0b8a7ad2676251090279a17bed IN  KlimaDAO: Staking0 MATIC0.025873887092 145.067965329
0xdaa87fc563bd118074a7837d2cfa3aa1e4b3ae2af0ecee4d57f229722a08b928Stake432458772023-05-28 10:37:248 hrs 10 mins ago0x5c79613545f5575c17b3b3ad28489ac4cba4ad36 IN  KlimaDAO: Staking0 MATIC0.027482304053 154.093704743
0x931578128b7729aea96d0f2a6854cea24ffc33dea26dcbfbdb608bf345856802Stake432452892023-05-28 10:16:298 hrs 30 mins ago0x401e4211414d8286212d9c0bc77f5f54b15972c7 IN  KlimaDAO: Staking0 MATIC0.029229105662 163.879778549
0x9d8818f64c1ac79922a9eed4afb352a73d348f12bc351ad61831158440a91541Stake432451072023-05-28 10:09:458 hrs 37 mins ago0xf54ec863566371629c7e788303ca6e6e043611ec IN  KlimaDAO: Staking0 MATIC0.027107983272 164.613050227
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x74f7607d9fdf1fdb375060a2dd035edd0ae52ba3d55cd0fdfa0c5f72d8698c92372374922022-12-24 23:53:29154 days 18 hrs ago 0x121330fa1e71cd3053e4c5f675feb4182c934514 KlimaDAO: Staking0.01 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingHelper

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
*/

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

    constructor ( address _staking, address _KLIMA ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _KLIMA != address(0) );
        KLIMA = _KLIMA;
    }

    function stake( uint _amount ) external {
        IERC20( KLIMA ).transferFrom( msg.sender, address(this), _amount );
        IERC20( KLIMA ).approve( staking, _amount );
        IStaking( staking ).stake( _amount, msg.sender );
        IStaking( staking ).claim( msg.sender );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_KLIMA","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KLIMA","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"}]

60c060405234801561001057600080fd5b506040516104573803806104578339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b031661038d6100ca6000398060e2528061019f52806103355250806093528061016e528061023d52806102d1525061038d6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461006a578063e3ed12a014610089575b600080fd5b61004e610091565b604080516001600160a01b039092168252519081900360200190f35b6100876004803603602081101561008057600080fd5b50356100b5565b005b61004e610333565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201523060248201526044810183905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561012a57600080fd5b505af115801561013e573d6000803e3d6000fd5b505050506040513d602081101561015457600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b1580156101ea57600080fd5b505af11580156101fe573d6000803e3d6000fd5b505050506040513d602081101561021457600080fd5b505060408051637acb775760e01b81526004810183905233602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691637acb77579160448083019260209291908290030181600087803b15801561028557600080fd5b505af1158015610299573d6000803e3d6000fd5b505050506040513d60208110156102af57600080fd5b505060408051630f41a04d60e11b815233600482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691631e83409a91602480830192600092919082900301818387803b15801561031857600080fd5b505af115801561032c573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122034b887c7bc93336984245defc5894e6f4f5a36ae04284de75cb8e3a6ac22b12764736f6c6343000705003300000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815

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

00000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815

-----Decoded View---------------
Arg [0] : _staking (address): 0x25d28a24ceb6f81015bb0b2007d795acac411b4d
Arg [1] : _KLIMA (address): 0x4e78011ce80ee02d2c3e649fb657e45898257815

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d
Arg [1] : 0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815


Deployed ByteCode Sourcemap

2932:606:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2964:32;;;:::i;:::-;;;;-1:-1:-1;;;;;2964:32:0;;;;;;;;;;;;;;3247:288;;;;;;;;;;;;;;;;-1:-1:-1;3247:288:0;;:::i;:::-;;3003:30;;;:::i;2964:32::-;;;:::o;3247:288::-;3298:66;;;-1:-1:-1;;;3298:66:0;;3328:10;3298:66;;;;3348:4;3298:66;;;;;;;;;;;;-1:-1:-1;;;;;3306:5:0;3298:28;;;;:66;;;;;;;;;;;;;;-1:-1:-1;3298:28:0;:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3375:43:0;;;-1:-1:-1;;;3375:43:0;;-1:-1:-1;;;;;3400:7:0;3375:43;;;;;;;;;;;;;;3383:5;3375:23;;;;;;:43;;;;;3298:66;;3375:43;;;;;;;;-1:-1:-1;3375:23:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3429:48:0;;;-1:-1:-1;;;3429:48:0;;;;;;;;3465:10;3429:48;;;;;;-1:-1:-1;;;;;3439:7:0;3429:25;;;;:48;;;;;3375:43;;3429:48;;;;;;;-1:-1:-1;3429:25:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3488:39:0;;;-1:-1:-1;;;3488:39:0;;3515:10;3488:39;;;;;;-1:-1:-1;;;;;3498:7:0;3488:25;;;;:39;;;;;-1:-1:-1;;3488:39:0;;;;;;;-1:-1:-1;3488:25:0;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3247:288;:::o;3003:30::-;;;:::o

Swarm Source

ipfs://34b887c7bc93336984245defc5894e6f4f5a36ae04284de75cb8e3a6ac22b127
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.