Contract 0x6a0f4afb31e90c378fa2aaa40371a652578f339b

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x73e8c9f01686ab7dc6353a0a42a11c9abe993994e18f31b59d7886b247cd36c5Claim Rewards284846792022-10-05 10:03:108 hrs 24 mins ago0x6ad1986fe76f465eb0064d9ada2180dba1da9cc9 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00000662
0xa33266ff46976e68ec750ef3c425140547d6fd31511a238f67193d7a19b025bcWithdraw284845502022-10-05 10:02:348 hrs 25 mins ago0x6ad1986fe76f465eb0064d9ada2180dba1da9cc9 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001778
0xe485ed92efe8037c03dc8300b3af5e6ac8bd362a9f223a5856429b2ec86599cfStake276634742022-09-30 20:38:214 days 21 hrs ago0x8dcdb2db0268cde7b5c55492ef31e4fa3d187ac8 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00003879
0x9634e96dc02cf765647b25257425d1d842b5a7d65f5e8a9de1bd3edaa4c63d36Stake276630752022-09-30 20:34:274 days 21 hrs ago0x5f222918741500fabf6eed0bb16841d028d6d350 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00003913
0x73ce64c26a8c74502fb38c9872a61833227afc43ce335fde9bb2e46cd205482aWithdraw273042572022-09-29 0:20:076 days 18 hrs ago0x0702c3d8fba3a889f178a108da5af3c714c228a3 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001804
0x99b62a446ac8ec36611c7c0818a34722ca031eec37c6f40312d0d84e76ee20cfClaim Rewards273042282022-09-29 0:19:556 days 18 hrs ago0x0702c3d8fba3a889f178a108da5af3c714c228a3 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001753
0x1634e3c09ca9360f45524e233cc9a7f88d6a2577b8027bf2379d770d70e131c4Withdraw244829142022-09-13 19:05:1721 days 23 hrs ago0x3fa39a46e6bbea8ad2b53c95102e9f05cc78e0d8 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001772
0x1589dad0580ac264c98194c4b5d6ca4c2461d516770bba98749a17d61f9779a0Claim Rewards244826702022-09-13 19:03:1621 days 23 hrs ago0x3fa39a46e6bbea8ad2b53c95102e9f05cc78e0d8 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001584
0x2dc326d2eb00332071fbf7c95d5034e70708952be4cb08eb2108a37d6d941084Claim Rewards239076922022-09-10 8:16:5525 days 10 hrs ago0x63b5e5c1ee04c1c9e6d77e58c93907fce26b0142 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00000777
0xf4f17dae836d782c80e401229d63fe66f04abd9fb68cd1e95c6c8ca00be2b2efClaim Rewards239074072022-09-10 8:14:2725 days 10 hrs ago0x63b5e5c1ee04c1c9e6d77e58c93907fce26b0142 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001173
0xcdd3cc442ec43054fc0102f49e3cc513050fd2fd4cbd704fa25e95589441b25fClaim Rewards230181472022-09-05 19:40:5629 days 22 hrs ago0x3e2178cf851a0e5cbf84c0ff53f820ad7ead703b IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00001722
0x02c8a560eff07c2c699ed9831b72d3397c25b91102eeeb50f1838c52abff812dClaim Rewards225420792022-09-02 19:31:0932 days 22 hrs ago0xbff3d58c5868cd5fbd8d732baebd811ddec834ab IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00037277
0x2da3f3bf03537e03b1126b762841e41f12293a3c0bc0461ab0399670e9753ec9Withdraw225418172022-09-02 19:28:5032 days 22 hrs ago0xbff3d58c5868cd5fbd8d732baebd811ddec834ab IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00051676
0x189aa6cbf621746f57d8318c27f3576203d4285e70ee2ef6101288ac305a2877Withdraw222110572022-08-31 17:36:3435 days 51 mins ago0xf9a8676270164a681454cb4440888db8e44f1612 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00005047
0x9e98d87a1307cacf0fea7d32e7aba783e3238ceb1d272dc31655e7e5aa01d92aClaim Rewards222109722022-08-31 17:35:3335 days 52 mins ago0xf9a8676270164a681454cb4440888db8e44f1612 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00006661
0x9ee33aa7aad51e1481eada6929d290bd3e0697b0ac46c9a74085c48133914bb4Withdraw220451292022-08-30 21:01:4735 days 21 hrs ago0x1a8fd71ecf90e70e2fc6d9d85324eb9098689774 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000081753707 ETH
0x3fbde11da9e43e4955bbc89331c6c938c7fd810b9d44d6a71be741d40eb6421aClaim Rewards220448002022-08-30 20:59:3135 days 21 hrs ago0x1a8fd71ecf90e70e2fc6d9d85324eb9098689774 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00007301102 ETH
0x27a917e45b912bdc7599b8ea54ed04509c228db43bbd4d14c22b0eccfdc10566Claim Rewards211065432022-08-24 1:27:5742 days 16 hrs ago0x6e9dfc3252892ce8deda376c51431d14292f520d IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000055987754 ETH
0xce8cbbde313072e72f871d218f7ab96548b43311833ca0f0addb777624e62fb3Withdraw211065312022-08-24 1:27:5742 days 16 hrs ago0x6e9dfc3252892ce8deda376c51431d14292f520d IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.00006340642 ETH
0x210be8d7a564be9a2f3f96e103b8da73b527f73ec1716d947b2f501c98c476a0Stake209796012022-08-22 16:12:3344 days 2 hrs ago0x2fa03e75ebb2db82a5df756d5fbd1534cf928d3d IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000072932066 ETH
0xb49a01e54532cde9a8ded91fdc3d781489595135162914632f544652aa05ee40Claim Rewards208639212022-08-21 10:50:3145 days 7 hrs ago0x162c065ab5e5efbbc289e01dd7abc16d33cb484e IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000032714503 ETH
0xf5a56c25743956d145020d5bacafecad4707ae0b35590bd5d89390f8c44c9d0fWithdraw208195972022-08-20 22:36:3345 days 19 hrs ago0x203f3f18ad98e6f97e3d21cdffaa12d1edaa4a9e IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000069188323 ETH
0xf2597b8c4ab3a524dfbf75cf3bd2147b1301c040d081c6b2c82645256b717086Claim Rewards208195522022-08-20 22:34:4745 days 19 hrs ago0x203f3f18ad98e6f97e3d21cdffaa12d1edaa4a9e IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000068684432 ETH
0x053956fe3dbdc45e85812661531477770514a4cd0c51e7606b3126964b90907aWithdraw206260662022-08-18 21:28:5947 days 20 hrs ago0x63e0e8a3a9c59141843cc26e5433507b8a835999 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000080703654 ETH
0x1f5c8a927ae66099932916f0ad07323de0f39df482e45eae0ccbb7ceb173e876Claim Rewards206260422022-08-18 21:27:4747 days 21 hrs ago0x63e0e8a3a9c59141843cc26e5433507b8a835999 IN  0x6a0f4afb31e90c378fa2aaa40371a652578f339b0 ETH0.000080123247 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa33266ff46976e68ec750ef3c425140547d6fd31511a238f67193d7a19b025bc284845502022-10-05 10:02:348 hrs 25 mins ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0xa33266ff46976e68ec750ef3c425140547d6fd31511a238f67193d7a19b025bc284845502022-10-05 10:02:348 hrs 25 mins ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0xe485ed92efe8037c03dc8300b3af5e6ac8bd362a9f223a5856429b2ec86599cf276634742022-09-30 20:38:214 days 21 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x9634e96dc02cf765647b25257425d1d842b5a7d65f5e8a9de1bd3edaa4c63d36276630752022-09-30 20:34:274 days 21 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x73ce64c26a8c74502fb38c9872a61833227afc43ce335fde9bb2e46cd205482a273042572022-09-29 0:20:076 days 18 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x99b62a446ac8ec36611c7c0818a34722ca031eec37c6f40312d0d84e76ee20cf273042282022-09-29 0:19:556 days 18 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x1634e3c09ca9360f45524e233cc9a7f88d6a2577b8027bf2379d770d70e131c4244829142022-09-13 19:05:1721 days 23 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x1589dad0580ac264c98194c4b5d6ca4c2461d516770bba98749a17d61f9779a0244826702022-09-13 19:03:1621 days 23 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0xf4f17dae836d782c80e401229d63fe66f04abd9fb68cd1e95c6c8ca00be2b2ef239074072022-09-10 8:14:2725 days 10 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x2da3f3bf03537e03b1126b762841e41f12293a3c0bc0461ab0399670e9753ec9225418172022-09-02 19:28:5032 days 22 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x2da3f3bf03537e03b1126b762841e41f12293a3c0bc0461ab0399670e9753ec9225418172022-09-02 19:28:5032 days 22 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x189aa6cbf621746f57d8318c27f3576203d4285e70ee2ef6101288ac305a2877222110572022-08-31 17:36:3435 days 51 mins ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x9e98d87a1307cacf0fea7d32e7aba783e3238ceb1d272dc31655e7e5aa01d92a222109722022-08-31 17:35:3335 days 52 mins ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x9ee33aa7aad51e1481eada6929d290bd3e0697b0ac46c9a74085c48133914bb4220451292022-08-30 21:01:4735 days 21 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x3fbde11da9e43e4955bbc89331c6c938c7fd810b9d44d6a71be741d40eb6421a220448002022-08-30 20:59:3135 days 21 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0xce8cbbde313072e72f871d218f7ab96548b43311833ca0f0addb777624e62fb3211065312022-08-24 1:27:5742 days 16 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0xce8cbbde313072e72f871d218f7ab96548b43311833ca0f0addb777624e62fb3211065312022-08-24 1:27:5742 days 16 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x210be8d7a564be9a2f3f96e103b8da73b527f73ec1716d947b2f501c98c476a0209796012022-08-22 16:12:3344 days 2 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0xf5a56c25743956d145020d5bacafecad4707ae0b35590bd5d89390f8c44c9d0f208195972022-08-20 22:36:3345 days 19 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0xf2597b8c4ab3a524dfbf75cf3bd2147b1301c040d081c6b2c82645256b717086208195522022-08-20 22:34:4745 days 19 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x053956fe3dbdc45e85812661531477770514a4cd0c51e7606b3126964b90907a206260662022-08-18 21:28:5947 days 20 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x1f5c8a927ae66099932916f0ad07323de0f39df482e45eae0ccbb7ceb173e876206260422022-08-18 21:27:4747 days 21 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x5db4e623939ced1b4bdac309bf044b380a141e4b1cc00f2c09fba6ad1c008c94205935662022-08-18 12:40:3348 days 5 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
0x408d9df0ef2ef2758fc94a1e8a07624e37582a2beaef706adf0ee022d2536673205933802022-08-18 12:38:3748 days 5 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b Arbi's Finance: ARBIS Token0 ETH
0x6e388eab6341e6fcc64031ee4663cc442736891ca0133213e17a5e11a8928d1f205180862022-08-17 15:23:4549 days 3 hrs ago 0x6a0f4afb31e90c378fa2aaa40371a652578f339b 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MarinateStrategyFarm

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 88888 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : MarinateStrategyFarm.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//                                                                            //
//                              #@@@@@@@@@@@@&,                               //
//                      [email protected]@@@@   [email protected]@@@@@@@@@@@@@@@@@@*                        //
//                  %@@@,    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    //
//               @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                 //
//             @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@               //
//           *@@@#    [email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             //
//          *@@@%    &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            //
//          @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//                                                                            //
//          (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,           //
//          (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,           //
//                                                                            //
//          @@@@@   @@@@@@@@@   @@@@@@@@@   @@@@@@@@@   @@@@@@@@@             //
//            &@@@@@@@    #@@@@@@@.   ,@@@@@@@,   [email protected]@@@@@@/    @@@@           //
//                                                                            //
//          @@@@@      @@@%    *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          @@@@@      @@@@    %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          [email protected]@@@      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            //
//            @@@@@  &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             //
//                (&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&(                 //
//                                                                            //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

// Libraries
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";

// Interfaces
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title Umami Marinate Auto-compounder Farm
contract MarinateStrategyFarm is AccessControl, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /************************************************
     *  STORAGE
     ***********************************************/

    /// @notice the total tokens staked
    uint256 public totalStaked = 0;

    /// @notice the withdrawal fee
    uint256 public WITHDRAW_FEE_BIPS;

    /// @notice the fee divisor
    uint256 public BIPS_DIVISOR;

    /// @notice scale used for fractional rewards
    uint256 public SCALE = 1e40;

    /// @notice the lock levels for staking
    uint32 lockDuration;

    /// @notice the period in seconds a fee applies after deposit
    uint256 public feePeriod;

    /// @notice allow early unlocking
    bool public allowEarlyUnlock;

    /// @notice the destination address of fees
    address feeDestination;

    /// @notice the autocompounder share token
    address public immutable STOKEN;

    /// @notice info on the farmer
    mapping(address => Farmer) public farmerInfo;

    /// @notice the amount to be paid to the user per token
    mapping(address => mapping(address => uint256)) public toBePaid;

    /// @notice total rewards allocated per reward token
    mapping(address => uint256) public totalTokenRewardsPerStake;

    /// @notice pair token rewards per user
    mapping(address => mapping(address => uint256)) public paidTokenRewardsPerStake;

    /// @notice the staked balance of a user
    mapping(address => uint256) public stakedBalance;

    /// @notice if the token reward is approved
    mapping(address => bool) public isApprovedRewardToken;

    /// @notice the tokens to issue rewards in
    address[] public rewardTokens;

    /************************************************
     *  CONSTANTS
     ***********************************************/

    /// @notice the autocompounder share token
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    /************************************************
     *  STRUCTS
     ***********************************************/

    struct Farmer {
        uint256 lastDepositTime;
        uint256 amount;
        uint32 unlockTime;
    }

    /************************************************
     *  EVENTS
     ***********************************************/

    event Stake(uint256 lockDuration, address addr, uint256 amount);
    event Withdraw(address addr, uint256 amount);
    event RewardCollection(address token, address addr, uint256 amount);
    event RewardAdded(address token, uint256 amount, uint256 rps);

    /************************************************
     *  CONSTRUCTOR
     ***********************************************/

    constructor(
        address _STOKEN,
        address _feeDestination,
        uint32 _lockDuration
    ) {
        STOKEN = _STOKEN;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN_ROLE, msg.sender);
        feePeriod = 12 weeks;
        WITHDRAW_FEE_BIPS = 300;
        BIPS_DIVISOR = 10000;
        feeDestination = _feeDestination;
        lockDuration = _lockDuration;
        allowEarlyUnlock = false;
    }

    /************************************************
     *  DEPOSIT & WITHDRAW
     ***********************************************/

    /**
     * @notice stake autocompounder share tokens
     * @param amount the amount of umami to stake
     */
    function stake(uint256 amount) external {
        stakeFor(msg.sender, amount);
    }

    /**
     * @notice stake autocompounder share tokens for a user
     * @param user the user to stake for
     * @param amount the amount of umami to stake
     */
    function stakeFor(address user, uint256 amount) public {
        require(amount > 0, "Invalid stake amount");

        IERC20(STOKEN).safeTransferFrom(user, address(this), amount);

        // Store the sender's info
        Farmer memory info = farmerInfo[user];
        farmerInfo[user] = Farmer({
            lastDepositTime: block.timestamp,
            amount: info.amount + amount,
            unlockTime: uint32(block.timestamp + lockDuration)
        });

        if (stakedBalance[user] == 0) {
            // New user - not eligible for any previous rewards on any token
            for (uint256 i = 0; i < rewardTokens.length; i++) {
                address token = rewardTokens[i];
                paidTokenRewardsPerStake[token][user] = totalTokenRewardsPerStake[token];
            }
        } else {
            _collectRewards(user);
        }
        totalStaked += amount;
        stakedBalance[user] += amount;
        emit Stake(lockDuration, user, amount);
    }

    /**
     * @notice withdraw staked share tokens
     */
    function withdraw() public nonReentrant {
        require(farmerInfo[msg.sender].lastDepositTime != 0, "Haven't staked");
        require(allowEarlyUnlock || block.timestamp >= farmerInfo[msg.sender].unlockTime, "Too soon");

        _collectRewards(msg.sender);
        _payRewards(msg.sender);

        Farmer memory info = farmerInfo[msg.sender];
        delete farmerInfo[msg.sender];
        totalStaked -= info.amount;
        stakedBalance[msg.sender] = 0;

        uint256 withdrawFee = 0;

        if (block.timestamp <= info.lastDepositTime + feePeriod) {
            withdrawFee = (info.amount * WITHDRAW_FEE_BIPS) / BIPS_DIVISOR;
            require(IERC20(STOKEN).transfer(feeDestination, withdrawFee), "withdraw fee transfer failed");
        }

        IERC20(STOKEN).safeTransfer(msg.sender, info.amount - withdrawFee);

        emit Withdraw(msg.sender, info.amount - withdrawFee);
    }

    /************************************************
     *  REWARDS
     ***********************************************/

    /**
     * @notice claim rewards
     */
    function claimRewards() public nonReentrant {
        _collectRewards(msg.sender);
        _payRewards(msg.sender);
    }

    /**
     * @notice adds a reward token amount
     * @param token the token address of the reward
     * @param amount the amount of the token
     */
    function addReward(address token, uint256 amount) external nonReentrant {
        require(isApprovedRewardToken[token], "Token not approved for rewards");
        require(totalStaked > 0, "Total staked is zero");

        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);

        uint256 rewardPerStake = (amount * SCALE) / totalStaked;
        require(rewardPerStake > 0, "insufficient reward per stake");
        totalTokenRewardsPerStake[token] += rewardPerStake;
        emit RewardAdded(token, amount, rewardPerStake);
    }

    /**
     * @notice pay rewards to a marinator
     * @param user the user
     */
    function _payRewards(address user) private {
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            address token = rewardTokens[i];
            uint256 amount = toBePaid[token][user];
            if (amount > 0) {
                IERC20(token).safeTransfer(user, amount);
                delete toBePaid[token][user];
            }
        }
    }

    /**
     * @notice collect rewards for a farmer
     * @param user the amount of umami to stake
     */
    function _collectRewards(address user) private {
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            _collectRewardsForToken(rewardTokens[i], user);
        }
    }

    /**
     * @notice collect available token rewards
     * @param token the token to collect for
     * @param user the staker
     */
    function _collectRewardsForToken(address token, address user) private {
        uint256 balance = stakedBalance[user];
        if (balance > 0) {
            uint256 owedPerUnitStake = totalTokenRewardsPerStake[token] - paidTokenRewardsPerStake[token][user];
            uint256 totalRewards = (balance * owedPerUnitStake) / SCALE;
            paidTokenRewardsPerStake[token][user] = totalTokenRewardsPerStake[token];
            toBePaid[token][user] += totalRewards;
        }
    }

    /************************************************
     *  VIEWS
     ***********************************************/

    /**
     * @notice get the available token rewards
     * @param staker the farmer
     * @param token the token to check for
     * @return totalRewards - the available rewards for that token and farmer
     */
    function getAvailableTokenRewards(address staker, address token) external view returns (uint256 totalRewards) {
        uint256 owedPerUnitStake = totalTokenRewardsPerStake[token] - paidTokenRewardsPerStake[token][staker];
        uint256 pendingRewards = (stakedBalance[staker] * owedPerUnitStake) / SCALE;
        totalRewards = pendingRewards + toBePaid[token][staker];
    }

    /************************************************
     *  MUTATORS
     ***********************************************/

    /**
     * @notice set the lock level
     * @param _lockDurationInSeconds the duration in seconds
     */
    function setLockDuration(uint32 _lockDurationInSeconds) external onlyAdmin {
        require(_lockDurationInSeconds <= 52 weeks, "Too long");
        lockDuration = _lockDurationInSeconds;
    }

    /**
     * @notice set the fee period
     * @param _feePeriod the duration of the fee period in seconds
     */
    function setFeePeriod(uint256 _feePeriod) external onlyAdmin {
        require(_feePeriod <= 52 weeks, "Too long");
        feePeriod = _feePeriod;
    }

    /**
     * @notice set the fee destination
     * @param _feeDestination the new fee destination
     */
    function setFeeDestination(address _feeDestination) external onlyAdmin {
        require(_feeDestination != address(0), "invalid fee address");
        feeDestination = _feeDestination;
    }

    /**
     * @notice set the withdrawal fee
     * @param _fee the new withdrawal fee
     */
    function setWithdrawalFee(uint256 _fee) external onlyAdmin {
        require(_fee <= BIPS_DIVISOR, "admin fee too high");
        WITHDRAW_FEE_BIPS = _fee;
    }

    /**
     * @notice set the scale
     * @param _scale scale
     */
    function setScale(uint256 _scale) external onlyAdmin {
        SCALE = _scale;
    }

    /**
     * @notice add an approved reward token to be paid
     * @param token the address of the token to be paid in
     */
    function addApprovedRewardToken(address token) external onlyAdmin {
        require(!isApprovedRewardToken[token], "Reward token exists");
        isApprovedRewardToken[token] = true;
        rewardTokens.push(token);
    }

    /**
     * @notice remove a reward token
     * @param token the address of the token to remove
     */
    function removeApprovedRewardToken(address token) external onlyAdmin {
        require(isApprovedRewardToken[token], "Reward token does not exist");
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            if (rewardTokens[i] == token) {
                rewardTokens[i] = rewardTokens[rewardTokens.length - 1];
                rewardTokens.pop();
                isApprovedRewardToken[token] = false;
            }
        }
    }

    /**
     * @notice change early unlock
     * @param _earlyUnlock the duration in seconds
     */
    function setAllowEarlyUnlock(bool _earlyUnlock) external onlyAdmin {
        allowEarlyUnlock = _earlyUnlock;
    }

    /************************************************
     *  ADMIN
     ***********************************************/

    /**
     * @notice migrate a token to a different address
     * @param token the token address
     * @param destination the token destination
     * @param amount the token amount
     */
    function migrateToken(
        address token,
        address destination,
        uint256 amount
    ) external onlyAdmin {
        uint256 total = 0;
        if (amount == 0) {
            total = IERC20(token).balanceOf(address(this));
        } else {
            total = amount;
        }
        IERC20(token).safeTransfer(destination, total);
    }

    /**
     * @notice recover eth
     */
    function recoverEth() external onlyAdmin {
        // For recovering eth mistakenly sent to the contract
        (bool success, ) = msg.sender.call{ value: address(this).balance }("");
        require(success, "Withdraw failed");
    }

    /**
     * @dev Throws if not admin role
     */
    modifier onlyAdmin() {
        require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin");
        _;
    }
}

File 2 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

File 6 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 9 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 10 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 11 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 88888
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_STOKEN","type":"address"},{"internalType":"address","name":"_feeDestination","type":"address"},{"internalType":"uint32","name":"_lockDuration","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rps","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lockDuration","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BIPS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_FEE_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addApprovedRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowEarlyUnlock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"farmerInfo","outputs":[{"internalType":"uint256","name":"lastDepositTime","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint32","name":"unlockTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"getAvailableTokenRewards","outputs":[{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isApprovedRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrateToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"paidTokenRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeApprovedRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_earlyUnlock","type":"bool"}],"name":"setAllowEarlyUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDestination","type":"address"}],"name":"setFeeDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feePeriod","type":"uint256"}],"name":"setFeePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_lockDurationInSeconds","type":"uint32"}],"name":"setLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scale","type":"uint256"}],"name":"setScale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"toBePaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalTokenRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526000600255701d6329f1c35ca4bfabb9f56100000000006005553480156200002b57600080fd5b50604051620034e9380380620034e98339810160408190526200004e91620001c9565b600180556001600160601b0319606084901b1660805262000071600033620000fc565b6200009d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200010c565b626ebe0060075561012c600355612710600455600880546006805463ffffffff90941663ffffffff199094169390931790925560ff196001600160a01b0390931661010002929092166001600160a81b0319909116179055506200021d565b6200010882826200010c565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000108576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001683390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516001600160a01b0381168114620001c457600080fd5b919050565b600080600060608486031215620001de578283fd5b620001e984620001ac565b9250620001f960208501620001ac565b9150604084015163ffffffff8116811462000212578182fd5b809150509250925092565b60805160601c61329862000251600039600081816103730152818161077701528181610e2a0152610f3701526132986000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80638de03e6911610160578063bc35e3fa116100d8578063ca49ff651161008c578063e20318e111610071578063e20318e114610630578063eced552614610639578063fbe532341461064257600080fd5b8063ca49ff651461060a578063d547741f1461061d57600080fd5b8063bfe0bc98116100bd578063bfe0bc9814610576578063c5644c86146105a1578063ca2d4f29146105b457600080fd5b8063bc35e3fa14610543578063bcdb446b1461056e57600080fd5b80639feb8f501161012f578063a694fc3a11610114578063a694fc3a1461050a578063ac1e50251461051d578063b09233c81461053057600080fd5b80639feb8f50146104ef578063a217fddf1461050257600080fd5b80638de03e691461047c57806390b7568a1461048f57806391d148541461049857806393bfa282146104dc57600080fd5b806341a9d24e1161020e5780637095bffc116101c257806375b238fc116101a757806375b238fc146104395780637bb7bed114610460578063817b1cd21461047357600080fd5b80637095bffc1461040957806374a6ece31461042c57600080fd5b806360217267116101f357806360217267146103c357806366212b66146103e35780636f5d3a5a146103f657600080fd5b806341a9d24e1461036e57806345deeda6146103ba57600080fd5b80632f2ff15d11610265578063372500ab1161024a578063372500ab1461034b5780633ccfd60b146103535780633edc35191461035b57600080fd5b80632f2ff15d1461032557806336568abe1461033857600080fd5b806301b6c9691461029757806301ffc9a7146102ca578063248a9ca3146102ed5780632ee4090814610310575b600080fd5b6102b76102a5366004612e5a565b600b6020526000908152604090205481565b6040519081526020015b60405180910390f35b6102dd6102d8366004612f7c565b610655565b60405190151581526020016102c1565b6102b76102fb366004612f42565b60009081526020819052604090206001015490565b61032361031e366004612ee1565b6106ee565b005b610323610333366004612f5a565b610a11565b610323610346366004612f5a565b610a3c565b610323610aef565b610323610b79565b610323610369366004612f42565b610fc7565b6103957f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102c1565b6102b760075481565b6102b76103d1366004612e5a565b600d6020526000908152604090205481565b6103236103f1366004612f42565b611064565b610323610404366004612e5a565b61116f565b6102dd610417366004612e5a565b600e6020526000908152604090205460ff1681565b6008546102dd9060ff1681565b6102b77fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61039561046e366004612f42565b6114f9565b6102b760025481565b61032361048a366004612f0a565b611530565b6102b760045481565b6102dd6104a6366004612f5a565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103236104ea366004612ea6565b6115f9565b6103236104fd366004612ee1565b611766565b6102b7600081565b610323610518366004612f42565b611a18565b61032361052b366004612f42565b611a25565b61032361053e366004612fd4565b611b2e565b6102b7610551366004612e74565b600a60209081526000928352604080842090915290825290205481565b610323611c71565b6102b7610584366004612e74565b600c60209081526000928352604080842090915290825290205481565b6102b76105af366004612e74565b611dbb565b6105e96105c2366004612e5a565b60096020526000908152604090208054600182015460029092015490919063ffffffff1683565b60408051938452602084019290925263ffffffff16908201526060016102c1565b610323610618366004612e5a565b611e91565b61032361062b366004612f5a565b612062565b6102b760035481565b6102b760055481565b610323610650366004612e5a565b612088565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106e857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000811161075d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c6964207374616b6520616d6f756e7400000000000000000000000060448201526064015b60405180910390fd5b61079f73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168330846121e9565b73ffffffffffffffffffffffffffffffffffffffff821660009081526009602090815260409182902082516060808201855282548252600183015482850190815260029093015463ffffffff16828601528451908101909452428452905190929182019061080e9085906130e6565b81526006546020909101906108299063ffffffff16426130e6565b63ffffffff90811690915273ffffffffffffffffffffffffffffffffffffffff851660009081526009602090815260408083208551815585830151600182015594810151600290950180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000169590941694909417909255600d90915220546109535760005b600f5481101561094d576000600f82815481106108f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff9081168352600b8252604080842054600c8452818520928a168552919092529120555080610945816131ec565b9150506108af565b5061095c565b61095c836122c5565b816002600082825461096e91906130e6565b909155505073ffffffffffffffffffffffffffffffffffffffff83166000908152600d6020526040812080548492906109a89084906130e6565b90915550506006546040805163ffffffff909216825273ffffffffffffffffffffffffffffffffffffffff8516602083015281018390527f02567b2553aeb44e4ddd5d68462774dc3de158cb0f2c2da1740e729b22086aff9060600160405180910390a1505050565b600082815260208190526040902060010154610a2d8133612349565b610a378383612419565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610ae1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610754565b610aeb8282612509565b5050565b60026001541415610b5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610754565b6002600155610b6a336122c5565b610b73336125c0565b60018055565b60026001541415610be6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610754565b600260015533600090815260096020526040902054610c61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f486176656e2774207374616b65640000000000000000000000000000000000006044820152606401610754565b60085460ff1680610c8a57503360009081526009602052604090206002015463ffffffff164210155b610cf0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f546f6f20736f6f6e0000000000000000000000000000000000000000000000006044820152606401610754565b610cf9336122c5565b610d02336125c0565b3360008181526009602081815260408084208151606081018352815481526001820180548286019081526002808501805463ffffffff8116978601979097529989529690955291869055908590557fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000909116909455518154909290610d88908490613174565b9091555050336000908152600d602052604081208190556007548251610dae91906130e6565b4211610f0c576004546003548360200151610dc99190613137565b610dd391906130fe565b6008546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090920482166004820152602481018390529192507f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b158015610e6e57600080fd5b505af1158015610e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea69190612f26565b610f0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f776974686472617720666565207472616e73666572206661696c6564000000006044820152606401610754565b610f5e33828460200151610f209190613174565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691906126bd565b7f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436433828460200151610f909190613174565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835260208301919091520160405180910390a1505060018055565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff1661105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b600555565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff166110fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b6301dfe20081111561116a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f546f6f206c6f6e670000000000000000000000000000000000000000000000006044820152606401610754565b600755565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16611207576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e602052604090205460ff16611296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52657761726420746f6b656e20646f6573206e6f7420657869737400000000006044820152606401610754565b60005b600f54811015610aeb578173ffffffffffffffffffffffffffffffffffffffff16600f82815481106112f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156114e757600f805461132c90600190613174565b81548110611363577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154600f805473ffffffffffffffffffffffffffffffffffffffff90921691839081106113c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600f805480611443577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff84168252600e90526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b806114f1816131ec565b915050611299565b600f818154811061150957600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff166115c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16611691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b60008161173c576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b1580156116fd57600080fd5b505afa158015611711573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117359190612fbc565b905061173f565b50805b61176073ffffffffffffffffffffffffffffffffffffffff851684836126bd565b50505050565b600260015414156117d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610754565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600e602052604090205460ff16611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f546f6b656e206e6f7420617070726f76656420666f72207265776172647300006044820152606401610754565b6000600254116118d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f546f74616c207374616b6564206973207a65726f0000000000000000000000006044820152606401610754565b6118f573ffffffffffffffffffffffffffffffffffffffff83163330846121e9565b6000600254600554836119089190613137565b61191291906130fe565b90506000811161197e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f696e73756666696369656e742072657761726420706572207374616b650000006044820152606401610754565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020526040812080548392906119b39084906130e6565b90915550506040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018490529081018290527f6a6f77044107a33658235d41bedbbaf2fe9ccdceb313143c947a5e76e1ec84749060600160405180910390a150506001805550565b611a2233826106ee565b50565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16611abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b600454811115611b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f61646d696e2066656520746f6f206869676800000000000000000000000000006044820152606401610754565b600355565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16611bc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b6301dfe2008163ffffffff161115611c3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f546f6f206c6f6e670000000000000000000000000000000000000000000000006044820152606401610754565b600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000001663ffffffff92909216919091179055565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16611d09576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b604051600090339047908381818185875af1925050503d8060008114611d4b576040519150601f19603f3d011682016040523d82523d6000602084013e611d50565b606091505b5050905080611a22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610754565b73ffffffffffffffffffffffffffffffffffffffff8082166000818152600c60209081526040808320948716835293815283822054928252600b9052918220548291611e0691613174565b60055473ffffffffffffffffffffffffffffffffffffffff86166000908152600d602052604081205492935091611e3e908490613137565b611e4891906130fe565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600a60209081526040808320938a1683529290522054909150611e8890826130e6565b95945050505050565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16611f29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e602052604090205460ff1615611fb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f52657761726420746f6b656e20657869737473000000000000000000000000006044820152606401610754565b73ffffffffffffffffffffffffffffffffffffffff166000818152600e6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155600f805491820181559091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b60008281526020819052604090206001015461207e8133612349565b610a378383612509565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16612120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610754565b73ffffffffffffffffffffffffffffffffffffffff811661219d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f696e76616c6964206665652061646472657373000000000000000000000000006044820152606401610754565b6008805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526117609085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612713565b60005b600f54811015610aeb57612337600f828154811061230f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff168361281f565b80612341816131ec565b9150506122c8565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610aeb5761239f8173ffffffffffffffffffffffffffffffffffffffff166014612924565b6123aa836020612924565b6040516020016123bb929190613014565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261075491600401613095565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610aeb5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556124ab3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610aeb5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60005b600f54811015610aeb576000600f8281548110612609577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff908116808452600a835260408085209288168552919092529091205490915080156126a85761267273ffffffffffffffffffffffffffffffffffffffff831685836126bd565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600a602090815260408083209388168352929052908120555b505080806126b5906131ec565b9150506125c3565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610a379084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401612243565b6000612775826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612c319092919063ffffffff16565b805190915015610a3757808060200190518101906127939190612f26565b610a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d60205260409020548015610a375773ffffffffffffffffffffffffffffffffffffffff8084166000818152600c60209081526040808320948716835293815283822054928252600b9052918220546128959190613174565b9050600060055482846128a89190613137565b6128b291906130fe565b73ffffffffffffffffffffffffffffffffffffffff8087166000818152600b6020908152604080832054600c8352818420958b1680855295835281842055928252600a8152828220938252929092528120805492935083929091906129189084906130e6565b90915550505050505050565b60606000612933836002613137565b61293e9060026130e6565b67ffffffffffffffff81111561297d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129a7576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612a05577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612acb846002613137565b612ad69060016130e6565b90505b6001811115612bc1577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612b7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612bba816131b7565b9050612ad9565b508315612c2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610754565b9392505050565b6060612c408484600085612c48565b949350505050565b606082471015612cda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610754565b73ffffffffffffffffffffffffffffffffffffffff85163b612d58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610754565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612d819190612ff8565b60006040518083038185875af1925050503d8060008114612dbe576040519150601f19603f3d011682016040523d82523d6000602084013e612dc3565b606091505b5091509150612dd3828286612dde565b979650505050505050565b60608315612ded575081612c2a565b825115612dfd5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107549190613095565b803573ffffffffffffffffffffffffffffffffffffffff81168114612e5557600080fd5b919050565b600060208284031215612e6b578081fd5b612c2a82612e31565b60008060408385031215612e86578081fd5b612e8f83612e31565b9150612e9d60208401612e31565b90509250929050565b600080600060608486031215612eba578081fd5b612ec384612e31565b9250612ed160208501612e31565b9150604084013590509250925092565b60008060408385031215612ef3578182fd5b612efc83612e31565b946020939093013593505050565b600060208284031215612f1b578081fd5b8135612c2a81613254565b600060208284031215612f37578081fd5b8151612c2a81613254565b600060208284031215612f53578081fd5b5035919050565b60008060408385031215612f6c578182fd5b82359150612e9d60208401612e31565b600060208284031215612f8d578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114612c2a578182fd5b600060208284031215612fcd578081fd5b5051919050565b600060208284031215612fe5578081fd5b813563ffffffff81168114612c2a578182fd5b6000825161300a81846020870161318b565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161304c81601785016020880161318b565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161308981602884016020880161318b565b01602801949350505050565b60208152600082518060208401526130b481604085016020870161318b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600082198211156130f9576130f9613225565b500190565b600082613132577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561316f5761316f613225565b500290565b60008282101561318657613186613225565b500390565b60005b838110156131a657818101518382015260200161318e565b838111156117605750506000910152565b6000816131c6576131c6613225565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561321e5761321e613225565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8015158114611a2257600080fdfea2646970667358221220bdc65cd9bbbd099ad5c2340f374428f86132eefd93b064bf1592fff8549800ba64736f6c634300080400330000000000000000000000001922c36f3bc762ca300b4a46bb2102f84b1684ab000000000000000000000000b0b4bd94d656353a30773ac883591ddbabc0c0ba0000000000000000000000000000000000000000000000000000000000278d00

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

0000000000000000000000001922c36f3bc762ca300b4a46bb2102f84b1684ab000000000000000000000000b0b4bd94d656353a30773ac883591ddbabc0c0ba0000000000000000000000000000000000000000000000000000000000278d00

-----Decoded View---------------
Arg [0] : _STOKEN (address): 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab
Arg [1] : _feeDestination (address): 0xb0b4bd94d656353a30773ac883591ddbabc0c0ba
Arg [2] : _lockDuration (uint32): 2592000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001922c36f3bc762ca300b4a46bb2102f84b1684ab
Arg [1] : 000000000000000000000000b0b4bd94d656353a30773ac883591ddbabc0c0ba
Arg [2] : 0000000000000000000000000000000000000000000000000000000000278d00


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.