Contract 0xd68eed7a178069db86df8db77770ce5eb846dba0

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xcb578480a008e8c6cb88f2d12139b805d4f7d206dd4c544c27c32fea3533161584348532021-06-19 14:33:463 hrs 4 mins ago0xa71efa81f0c97d591af00798728145eece7814df IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000494075
0x4612f48c7d5556fbbe8c2c28a027767a86e2e467841a29a0777536646a4fac5284341582021-06-19 13:58:193 hrs 39 mins ago0x20c48349e3bf36326ec54c51f8e50e28378cb49c IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00279285
0x7db0a9a4b029b5fd76bf54dd663f33ed1fa5c65cdc586a6de804ed6f8b394efc84330602021-06-19 13:02:394 hrs 35 mins ago0x2927275599b79cf21112c25b333f3eb54ffe3a35 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00163418
0xd5f86547e9c75f82dbd563c3a7e99a60f0ba706e95ca3fac94291ded676d9c8e84327962021-06-19 12:49:114 hrs 48 mins ago0x2927275599b79cf21112c25b333f3eb54ffe3a35 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000569015
0xf469264c4761c0bff5924762cc804517e3fbea9917e52a0dc52aaebfbb140c3484312952021-06-19 11:32:176 hrs 5 mins ago0x45ec2ca047fd21f8d92e9ad7d03b839a6657bc08 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000419075
0x102b0351f9520ff55d8b81886c3a8c8ccb4f9d22ba1263cb23c9e76ee1beeb9684299302021-06-19 10:22:057 hrs 15 mins ago0x336c81621822bab3f07c55530daa60e2faa2e70d IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000494075
0xc908d6439297728ce991f350a823f702c7b89ba11e3ba18e98c6298edf5de23c84298442021-06-19 10:17:477 hrs 20 mins ago0xcc939e582315b37a9f291fe1d8f0929ebf93308c IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00287508
0x6a0b6a9dd4c56c9e03f3c2253f392982f2e8489d0e8c06b50537d4be116d102f84266052021-06-19 7:35:4610 hrs 2 mins ago0xb5654eedf06f6a9d634fede3b7da1e6f80451578 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00279285
0xf7e6fa76ebf6496089fabd1b9062fdef427adb8515243ca736ad01d4cbd41c0384255772021-06-19 6:44:2010 hrs 53 mins ago0xaf84f0de9dfc09afc0b2e2d37039474d029d00a3 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00021723
0x35664b87422629f0a2112186225f7661d8143874c229c27bfa5542752671797b84248142021-06-19 6:06:0911 hrs 31 mins ago0xcab226afc33881e5a7295b18b2fe6254a042ade2 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000419075
0xc8d54a11453d9a980bc941ab4e205a972c5d445f12a8e000c7a93cc6fb49927584245072021-06-19 5:50:4811 hrs 47 mins ago0x4557adba9ed5249a90c6aa5af855788414de2f15 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00259663
0xf3c962dc1319bfa7cccc0ea492d1eaf8d436cd2b4a7837f6173092093586c8c084244942021-06-19 5:50:0811 hrs 47 mins ago0x4557adba9ed5249a90c6aa5af855788414de2f15 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000419075
0xb7086ad844bbe3d4cd258aad3395a9a22a24ec234fc4ec8b8bbf35b013664b3784232952021-06-19 4:49:5212 hrs 48 mins ago0x558e3b357ea3555e49e3c8527be018de157a2063 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.002753315
0x0490f0a78edd049d9b0b0aad34c8f41ded00f239ae1d2affc6de81f809f3c86084193862021-06-19 1:33:1816 hrs 4 mins ago0x55578c86f798aec2a348c43648ad01125a56bf63 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000207665
0x9fddd4fb913dea82ebeebe518885d875a19d8f10966e74b0c5cbfd6b594676ff84193512021-06-19 1:31:3316 hrs 6 mins ago0x55578c86f798aec2a348c43648ad01125a56bf63 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.004763935
0xa27f1b92800fa30ab95d70541f26e322a9f8a84a730a298f5268ba7c1195c67384193372021-06-19 1:30:5116 hrs 7 mins ago0x55578c86f798aec2a348c43648ad01125a56bf63 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000419075
0xff4b0f033758ae64c7544ef0a19b07b13af2eb44c93750c4679e6d505f6cb3e484163222021-06-18 22:58:0818 hrs 39 mins ago0x59d26fc8304d0d84e1ff27ac98b5473bf93e1097 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00014223
0xa2cb1c7a076ac979783b88d9ade7b209be5c00f9bf701afaabd3d669dfbbd29684147372021-06-18 21:37:0720 hrs ago0xfda9bd74968120621506c61ff3f9313e33185d74 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00021723
0x5d653ea49a584d8e13756309e7d05a0c216667fe6c117dcfe4ec09d3f563c3f984136952021-06-18 20:43:5920 hrs 53 mins ago0x6383a4b593c733fb8e7aebc1e4880827d47fa7b3 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00083803
0xb204b15235b594fab52347d8b6121d387a05ebc84ff40e5dc00bcd07fd1f6e1f84134302021-06-18 20:30:4421 hrs 7 mins ago0x255faa8ffacbff18cc6cfca21c2138aaa718bf14 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.004366905
0x1ca924f173b8b8cdf266188174719cbdd7c7954c897879b78f718fea59a3b7bd84128022021-06-18 19:59:1921 hrs 38 mins ago0x26044c2e775d4945d19f9d13d0893903b29e9551 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.002159164
0x93ea2f9ecf7a6dd267dde807e69a53f12932d8cf523257629402351f29700d8784124772021-06-18 19:43:0421 hrs 54 mins ago0x26044c2e775d4945d19f9d13d0893903b29e9551 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000494075
0x362b0107b49459eaeae81d4cbdc1585bd8e79904d73d408c7796e5c496f0c4da84119362021-06-18 19:15:5822 hrs 21 mins ago0x507ee226535b4937b1b80a2de0c1782a4464befd IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.002366215
0xe9256f395e9732fcb8ddbf0163300f29468a8c222421a5b89ce2432acd0e51a184087612021-06-18 16:35:591 day 1 hr ago0x216530e3ed1a8c9b2c58e4da49941b1df0b6a2e5 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.00258989
0x0f6e778236b0259a28b52295dae8d5013be3e87a4bbb1f4f9779f5d956e5813d84085792021-06-18 16:26:451 day 1 hr ago0x216530e3ed1a8c9b2c58e4da49941b1df0b6a2e5 IN  0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB0.000419075
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa8807e028341a90b3393a5a0cf53484bfecdbbd440691643b0d8875fdeb2933454712442021-03-07 11:55:09104 days 5 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x505aab9e503d1f3dfa74c530a51a5f8a891344ce0206ccffa9a4d6c19cdcf9b654712042021-03-07 11:53:09104 days 5 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x505aab9e503d1f3dfa74c530a51a5f8a891344ce0206ccffa9a4d6c19cdcf9b654712042021-03-07 11:53:09104 days 5 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0x505aab9e503d1f3dfa74c530a51a5f8a891344ce0206ccffa9a4d6c19cdcf9b654712042021-03-07 11:53:09104 days 5 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
0xeee4d1a267b3a13d66538a164e3466e31386019b8db13ac05633100e2617419154711992021-03-07 11:52:54104 days 5 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0xeee4d1a267b3a13d66538a164e3466e31386019b8db13ac05633100e2617419154711992021-03-07 11:52:54104 days 5 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0xeee4d1a267b3a13d66538a164e3466e31386019b8db13ac05633100e2617419154711992021-03-07 11:52:54104 days 5 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
0x46604f8ea663d6322462cedd020bbf814a5e03d0082c6ef4e9397f41a21fcdfa54705652021-03-07 11:21:12104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x46604f8ea663d6322462cedd020bbf814a5e03d0082c6ef4e9397f41a21fcdfa54705652021-03-07 11:21:12104 days 6 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0x46604f8ea663d6322462cedd020bbf814a5e03d0082c6ef4e9397f41a21fcdfa54705652021-03-07 11:21:12104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
0x0804ae1b04d96bacf65945e9c090c2ce4d163a008b476dd82008e7d7c47224f454704172021-03-07 11:13:48104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x0804ae1b04d96bacf65945e9c090c2ce4d163a008b476dd82008e7d7c47224f454704172021-03-07 11:13:48104 days 6 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0x0804ae1b04d96bacf65945e9c090c2ce4d163a008b476dd82008e7d7c47224f454704172021-03-07 11:13:48104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
0xad0814f406ad7109cfd6d5979e04a21cc4c6dee5f497abcf55b902316442e21654704092021-03-07 11:13:24104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0xf2ea2c4ef766848495856df88e03b6e19cd7c7b91dc9eb29aa11448e9b264ed354703702021-03-07 11:11:27104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0xf2ea2c4ef766848495856df88e03b6e19cd7c7b91dc9eb29aa11448e9b264ed354703702021-03-07 11:11:27104 days 6 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0xf2ea2c4ef766848495856df88e03b6e19cd7c7b91dc9eb29aa11448e9b264ed354703702021-03-07 11:11:27104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
0x7e590e0abb7e0ee70683dec0ea00643dbf71a8322d24cdf80b0d5942ad7c987554703342021-03-07 11:09:39104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x382b70f5d5296be4ef3a791f9b7ca59a5dbfca29aa9ac137476553d9ce7e747554703022021-03-07 11:08:03104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x169bd7f3a4a72b25915bc1dab451b1715c1ae8fd277518847e8f55bfd0b9a14454702932021-03-07 11:07:36104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x169bd7f3a4a72b25915bc1dab451b1715c1ae8fd277518847e8f55bfd0b9a14454702932021-03-07 11:07:36104 days 6 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0x169bd7f3a4a72b25915bc1dab451b1715c1ae8fd277518847e8f55bfd0b9a14454702932021-03-07 11:07:36104 days 6 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
0x1da5c91f8e7387ece223dbc873835ca57d01ae9ab40851b9f3b46bf0252de84454694972021-03-07 10:27:48104 days 7 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 Multiplier: bMXX Token0 BNB
0x1da5c91f8e7387ece223dbc873835ca57d01ae9ab40851b9f3b46bf0252de84454694972021-03-07 10:27:48104 days 7 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0xd68eed7a178069db86df8db77770ce5eb846dba00 BNB
0x1da5c91f8e7387ece223dbc873835ca57d01ae9ab40851b9f3b46bf0252de84454694972021-03-07 10:27:48104 days 7 hrs ago 0xd68eed7a178069db86df8db77770ce5eb846dba0 0xbec588f8a4859065b45fcfcb1c8805f5584a22190 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakedbMXX

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-02-26
*/

// SPDX-License-Identifier: agpl-3.0

// File: contracts/interfaces/IERC20.sol

pragma solidity 0.6.12;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

// File: contracts/lib/SafeMath.sol

pragma solidity 0.6.12;

/**
 * @dev From https://github.com/OpenZeppelin/openzeppelin-contracts
 * Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, 'SafeMath: subtraction overflow');
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, 'SafeMath: multiplication overflow');

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, 'SafeMath: division by zero');
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, 'SafeMath: modulo by zero');
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts/interfaces/IStakedbMXX.sol

pragma solidity 0.6.12;

interface IStakedbMXX {
    function stake(address to, uint256 amount) external;

    function redeem(address to, uint256 amount) external;

    function cooldown() external;

    function claimRewards(address to, uint256 amount) external;
}

// File: contracts/interfaces/ITransferHook.sol

pragma solidity 0.6.12;

interface ITransferHook {
    function onTransfer(
        address from,
        address to,
        uint256 amount
    ) external;
}

// File: contracts/lib/Context.sol


pragma solidity 0.6.12;

/**
 * @dev From https://github.com/OpenZeppelin/openzeppelin-contracts
 * 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 GSN 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 virtual view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal virtual view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: contracts/interfaces/IERC20Detailed.sol

pragma solidity 0.6.12;


/**
 * @dev Interface for ERC20 including metadata
 **/
interface IERC20Detailed is IERC20 {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

// File: contracts/lib/ERC20.sol

pragma solidity 0.6.12;





/**
 * @title ERC20
 * @notice Basic ERC20 implementation
 * @author bMXX
 **/
contract ERC20 is Context, IERC20, IERC20Detailed {
  using SafeMath for uint256;

  mapping(address => uint256) private _balances;
  mapping(address => mapping(address => uint256)) private _allowances;
  uint256 private _totalSupply;
  string private _name;
  string private _symbol;
  uint8 private _decimals;

  constructor(
    string memory name,
    string memory symbol,
    uint8 decimals
  ) public {
    _name = name;
    _symbol = symbol;
    _decimals = decimals;
  }

  /**
   * @return the name of the token
   **/
  function name() public override view returns (string memory) {
    return _name;
  }

  /**
   * @return the symbol of the token
   **/
  function symbol() public override view returns (string memory) {
    return _symbol;
  }

  /**
   * @return the decimals of the token
   **/
  function decimals() public override view returns (uint8) {
    return _decimals;
  }

  /**
   * @return the total supply of the token
   **/
  function totalSupply() public override view returns (uint256) {
    return _totalSupply;
  }

  /**
   * @return the balance of the token
   **/
  function balanceOf(address account) public override view returns (uint256) {
    return _balances[account];
  }

  /**
   * @dev executes a transfer of tokens from msg.sender to recipient
   * @param recipient the recipient of the tokens
   * @param amount the amount of tokens being transferred
   * @return true if the transfer succeeds, false otherwise
   **/
  function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
    _transfer(_msgSender(), recipient, amount);
    return true;
  }

  /**
   * @dev returns the allowance of spender on the tokens owned by owner
   * @param owner the owner of the tokens
   * @param spender the user allowed to spend the owner's tokens
   * @return the amount of owner's tokens spender is allowed to spend
   **/
  function allowance(address owner, address spender)
    public
    virtual
    override
    view
    returns (uint256)
  {
    return _allowances[owner][spender];
  }

  /**
   * @dev allows spender to spend the tokens owned by msg.sender
   * @param spender the user allowed to spend msg.sender tokens
   * @return true
   **/
  function approve(address spender, uint256 amount) public virtual override returns (bool) {
    _approve(_msgSender(), spender, amount);
    return true;
  }

  /**
   * @dev executes a transfer of token from sender to recipient, if msg.sender is allowed to do so
   * @param sender the owner of the tokens
   * @param recipient the recipient of the tokens
   * @param amount the amount of tokens being transferred
   * @return true if the transfer succeeds, false otherwise
   **/
  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) public virtual override returns (bool) {
    _transfer(sender, recipient, amount);
    _approve(
      sender,
      _msgSender(),
      _allowances[sender][_msgSender()].sub(amount, 'ERC20: transfer amount exceeds allowance')
    );
    return true;
  }

  /**
   * @dev increases the allowance of spender to spend msg.sender tokens
   * @param spender the user allowed to spend on behalf of msg.sender
   * @param addedValue the amount being added to the allowance
   * @return true
   **/
  function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
    _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
    return true;
  }

  /**
   * @dev decreases the allowance of spender to spend msg.sender tokens
   * @param spender the user allowed to spend on behalf of msg.sender
   * @param subtractedValue the amount being subtracted to the allowance
   * @return true
   **/
  function decreaseAllowance(address spender, uint256 subtractedValue)
    public
    virtual
    returns (bool)
  {
    _approve(
      _msgSender(),
      spender,
      _allowances[_msgSender()][spender].sub(
        subtractedValue,
        'ERC20: decreased allowance below zero'
      )
    );
    return true;
  }

  function _transfer(
    address sender,
    address recipient,
    uint256 amount
  ) internal virtual {
    require(sender != address(0), 'ERC20: transfer from the zero address');
    require(recipient != address(0), 'ERC20: transfer to the zero address');

    _beforeTokenTransfer(sender, recipient, amount);

    _balances[sender] = _balances[sender].sub(amount, 'ERC20: transfer amount exceeds balance');
    _balances[recipient] = _balances[recipient].add(amount);
    emit Transfer(sender, recipient, amount);
  }

  function _mint(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: mint to the zero address');

    _beforeTokenTransfer(address(0), account, amount);

    _totalSupply = _totalSupply.add(amount);
    _balances[account] = _balances[account].add(amount);
    emit Transfer(address(0), account, amount);
  }

  function _burn(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: burn from the zero address');

    _beforeTokenTransfer(account, address(0), amount);

    _balances[account] = _balances[account].sub(amount, 'ERC20: burn amount exceeds balance');
    _totalSupply = _totalSupply.sub(amount);
    emit Transfer(account, address(0), amount);
  }

  function _approve(
    address owner,
    address spender,
    uint256 amount
  ) internal virtual {
    require(owner != address(0), 'ERC20: approve from the zero address');
    require(spender != address(0), 'ERC20: approve to the zero address');

    _allowances[owner][spender] = amount;
    emit Approval(owner, spender, amount);
  }

  function _setName(string memory newName) internal {
    _name = newName;
  }

  function _setSymbol(string memory newSymbol) internal {
    _symbol = newSymbol;
  }

  function _setDecimals(uint8 newDecimals) internal {
    _decimals = newDecimals;
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {}
}

// File: contracts/lib/ERC20WithSnapshot.sol

pragma solidity 0.6.12;



/**
 * @title ERC20WithSnapshot
 * @notice ERC20 including snapshots of balances on transfer-related actions
 * @author bMXX
 **/
contract ERC20WithSnapshot is ERC20 {

    /// @dev snapshot of a value on a specific block, used for balances
    struct Snapshot {
        uint128 blockNumber;
        uint128 value;
    }

    mapping (address => mapping (uint256 => Snapshot)) public _snapshots;
    mapping (address => uint256) public _countsSnapshots;
    /// @dev reference to the bMXX governance contract to call (if initialized) on _beforeTokenTransfer
    /// !!! IMPORTANT The bMXX governance is considered a trustable contract, being its responsibility
    /// to control all potential reentrancies by calling back the this contract
    ITransferHook public _bMXXGovernance;

    event SnapshotDone(address owner, uint128 oldValue, uint128 newValue);

    constructor(string memory name, string memory symbol, uint8 decimals) public ERC20(name, symbol, decimals) {}

    function _setbMXXGovernance(ITransferHook bMXXGovernance) internal virtual {
        _bMXXGovernance = bMXXGovernance;
    }

    /**
    * @dev Writes a snapshot for an owner of tokens
    * @param owner The owner of the tokens
    * @param oldValue The value before the operation that is gonna be executed after the snapshot
    * @param newValue The value after the operation
    */
    function _writeSnapshot(address owner, uint128 oldValue, uint128 newValue) internal virtual {
        uint128 currentBlock = uint128(block.number);

        uint256 ownerCountOfSnapshots = _countsSnapshots[owner];
        mapping (uint256 => Snapshot) storage snapshotsOwner = _snapshots[owner];

        // Doing multiple operations in the same block
        if (ownerCountOfSnapshots != 0 && snapshotsOwner[ownerCountOfSnapshots.sub(1)].blockNumber == currentBlock) {
            snapshotsOwner[ownerCountOfSnapshots.sub(1)].value = newValue;
        } else {
            snapshotsOwner[ownerCountOfSnapshots] = Snapshot(currentBlock, newValue);
            _countsSnapshots[owner] = ownerCountOfSnapshots.add(1);
        }

        emit SnapshotDone(owner, oldValue, newValue);
    }

    /**
    * @dev Writes a snapshot before any operation involving transfer of value: _transfer, _mint and _burn
    * - On _transfer, it writes snapshots for both "from" and "to"
    * - On _mint, only for _to
    * - On _burn, only for _from
    * @param from the from address
    * @param to the to address
    * @param amount the amount to transfer
    */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override {
        if (from == to) {
            return;
        }

        if (from != address(0)) {
            uint256 fromBalance = balanceOf(from);
            _writeSnapshot(from, uint128(fromBalance), uint128(fromBalance.sub(amount)));
        }
        if (to != address(0)) {
            uint256 toBalance = balanceOf(to);
            _writeSnapshot(to, uint128(toBalance), uint128(toBalance.add(amount)));
        }

        // caching the bMXX governance address to avoid multiple state loads
        ITransferHook bMXXGovernance = _bMXXGovernance;
        if (bMXXGovernance != ITransferHook(0)) {
            bMXXGovernance.onTransfer(from, to, amount);
        }
    }
}

// File: contracts/lib/Address.sol

pragma solidity 0.6.12;

/**
 * @dev Collection of functions related to the address type
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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');

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}('');
        require(success, 'Address: unable to send value, recipient may have reverted');
    }
}

// File: contracts/lib/SafeERC20.sol


pragma solidity 0.6.12;




/**
 * @title SafeERC20
 * @dev From https://github.com/OpenZeppelin/openzeppelin-contracts
 * 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 SafeMath for uint256;
    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));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        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 callOptionalReturn(IERC20 token, bytes memory data) private {
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/utils/VersionedInitializable.sol

pragma solidity 0.6.12;

/**
 * @title VersionedInitializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 *
 * @author bMXX, inspired by the OpenZeppelin Initializable contract
 */
abstract contract VersionedInitializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    uint256 internal lastInitializedRevision = 0;

    /**
     * @dev Modifier to use in the initializer function of a contract.
     */
    modifier initializer() {
        uint256 revision = getRevision();
        require(
            revision > lastInitializedRevision,
            'Contract instance has already been initialized'
        );

        lastInitializedRevision = revision;

        _;
    }

    /// @dev returns the revision number of the contract.
    /// Needs to be defined in the inherited class as a constant.
    function getRevision() internal virtual pure returns (uint256);

    // Reserved storage space to allow for layout changes in the future.
    uint256[50] private ______gap;
}

// File: contracts/lib/DistributionTypes.sol

pragma solidity 0.6.12;

library DistributionTypes {
  struct AssetConfigInput {
    uint128 emissionPerSecond;
    uint256 totalStaked;
    address underlyingAsset;
  }

  struct UserStakeInput {
    address underlyingAsset;
    uint256 stakedByUser;
    uint256 totalStaked;
  }
}

// File: contracts/interfaces/IbMXXDistributionManager.sol

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

interface IbMXXDistributionManager {
    function configureAssets(
        DistributionTypes.AssetConfigInput[] calldata assetsConfigInput
    ) external;
}

// File: contracts/stake/bMXXDistributionManager.sol

pragma solidity 0.6.12;

/**
 * @title bMXXDistributionManager
 * @notice Accounting contract to manage multiple staking distributions
 * @author bMXX
 **/
contract bMXXDistributionManager is IbMXXDistributionManager {
    using SafeMath for uint256;

    struct AssetData {
        uint128 emissionPerSecond;
        uint128 lastUpdateTimestamp;
        uint256 index;
        mapping(address => uint256) users;
    }

    uint256 public immutable DISTRIBUTION_END;

    address public immutable EMISSION_MANAGER;

    uint8 public constant PRECISION = 18;

    mapping(address => AssetData) public assets;

    event AssetConfigUpdated(address indexed asset, uint256 emission);
    event AssetIndexUpdated(address indexed asset, uint256 index);
    event UserIndexUpdated(
        address indexed user,
        address indexed asset,
        uint256 index
    );

    constructor(address emissionManager, uint256 distributionDuration) public {
        DISTRIBUTION_END = block.timestamp.add(distributionDuration);
        EMISSION_MANAGER = emissionManager;
    }

    /**
     * @dev Configures the distribution of rewards for a list of assets
     * @param assetsConfigInput The list of configurations to apply
     **/
    function configureAssets(
        DistributionTypes.AssetConfigInput[] calldata assetsConfigInput
    ) external override {
        require(msg.sender == EMISSION_MANAGER, "ONLY_EMISSION_MANAGER");

        for (uint256 i = 0; i < assetsConfigInput.length; i++) {
            AssetData storage assetConfig = assets[assetsConfigInput[i]
                .underlyingAsset];

            _updateAssetStateInternal(
                assetsConfigInput[i].underlyingAsset,
                assetConfig,
                assetsConfigInput[i].totalStaked
            );

            assetConfig.emissionPerSecond = assetsConfigInput[i]
                .emissionPerSecond;

            emit AssetConfigUpdated(
                assetsConfigInput[i].underlyingAsset,
                assetsConfigInput[i].emissionPerSecond
            );
        }
    }

    /**
     * @dev Updates the state of one distribution, mainly rewards index and timestamp
     * @param underlyingAsset The address used as key in the distribution, for example stBMXX or the bTokens addresses on bMXX
     * @param assetConfig Storage pointer to the distribution's config
     * @param totalStaked Current total of staked assets for this distribution
     * @return The new distribution index
     **/
    function _updateAssetStateInternal(
        address underlyingAsset,
        AssetData storage assetConfig,
        uint256 totalStaked
    ) internal returns (uint256) {
        uint256 oldIndex = assetConfig.index;
        uint128 lastUpdateTimestamp = assetConfig.lastUpdateTimestamp;

        if (block.timestamp == lastUpdateTimestamp) {
            return oldIndex;
        }

        uint256 newIndex = _getAssetIndex(
            oldIndex,
            assetConfig.emissionPerSecond,
            lastUpdateTimestamp,
            totalStaked
        );

        if (newIndex != oldIndex) {
            assetConfig.index = newIndex;
            emit AssetIndexUpdated(underlyingAsset, newIndex);
        }

        assetConfig.lastUpdateTimestamp = uint128(block.timestamp);

        return newIndex;
    }

    /**
     * @dev Updates the state of an user in a distribution
     * @param user The user's address
     * @param asset The address of the reference asset of the distribution
     * @param stakedByUser Amount of tokens staked by the user in the distribution at the moment
     * @param totalStaked Total tokens staked in the distribution
     * @return The accrued rewards for the user until the moment
     **/
    function _updateUserAssetInternal(
        address user,
        address asset,
        uint256 stakedByUser,
        uint256 totalStaked
    ) internal returns (uint256) {
        AssetData storage assetData = assets[asset];
        uint256 userIndex = assetData.users[user];
        uint256 accruedRewards = 0;

        uint256 newIndex = _updateAssetStateInternal(
            asset,
            assetData,
            totalStaked
        );

        if (userIndex != newIndex) {
            if (stakedByUser != 0) {
                accruedRewards = _getRewards(stakedByUser, newIndex, userIndex);
            }

            assetData.users[user] = newIndex;
            emit UserIndexUpdated(user, asset, newIndex);
        }

        return accruedRewards;
    }

    /**
     * @dev Used by "frontend" stake contracts to update the data of an user when claiming rewards from there
     * @param user The address of the user
     * @param stakes List of structs of the user data related with his stake
     * @return The accrued rewards for the user until the moment
     **/
    function _claimRewards(
        address user,
        DistributionTypes.UserStakeInput[] memory stakes
    ) internal returns (uint256) {
        uint256 accruedRewards = 0;

        for (uint256 i = 0; i < stakes.length; i++) {
            accruedRewards = accruedRewards.add(
                _updateUserAssetInternal(
                    user,
                    stakes[i].underlyingAsset,
                    stakes[i].stakedByUser,
                    stakes[i].totalStaked
                )
            );
        }

        return accruedRewards;
    }

    /**
     * @dev Return the accrued rewards for an user over a list of distribution
     * @param user The address of the user
     * @param stakes List of structs of the user data related with his stake
     * @return The accrued rewards for the user until the moment
     **/
    function _getUnclaimedRewards(
        address user,
        DistributionTypes.UserStakeInput[] memory stakes
    ) internal view returns (uint256) {
        uint256 accruedRewards = 0;

        for (uint256 i = 0; i < stakes.length; i++) {
            AssetData storage assetConfig = assets[stakes[i].underlyingAsset];
            uint256 assetIndex = _getAssetIndex(
                assetConfig.index,
                assetConfig.emissionPerSecond,
                assetConfig.lastUpdateTimestamp,
                stakes[i].totalStaked
            );

            accruedRewards = accruedRewards.add(
                _getRewards(
                    stakes[i].stakedByUser,
                    assetIndex,
                    assetConfig.users[user]
                )
            );
        }
        return accruedRewards;
    }

    /**
     * @dev Internal function for the calculation of user's rewards on a distribution
     * @param principalUserBalance Amount staked by the user on a distribution
     * @param reserveIndex Current index of the distribution
     * @param userIndex Index stored for the user, representation his staking moment
     * @return The rewards
     **/
    function _getRewards(
        uint256 principalUserBalance,
        uint256 reserveIndex,
        uint256 userIndex
    ) internal pure returns (uint256) {
        return
            principalUserBalance.mul(reserveIndex.sub(userIndex)).div(
                10**uint256(PRECISION)
            );
    }

    /**
     * @dev Calculates the next value of an specific distribution index, with validations
     * @param currentIndex Current index of the distribution
     * @param emissionPerSecond Representing the total rewards distributed per second per asset unit, on the distribution
     * @param lastUpdateTimestamp Last moment this distribution was updated
     * @param totalBalance of tokens considered for the distribution
     * @return The new index.
     **/
    function _getAssetIndex(
        uint256 currentIndex,
        uint256 emissionPerSecond,
        uint128 lastUpdateTimestamp,
        uint256 totalBalance
    ) internal view returns (uint256) {
        if (
            emissionPerSecond == 0 ||
            totalBalance == 0 ||
            lastUpdateTimestamp == block.timestamp ||
            lastUpdateTimestamp >= DISTRIBUTION_END
        ) {
            return currentIndex;
        }

        uint256 currentTimestamp = block.timestamp > DISTRIBUTION_END
            ? DISTRIBUTION_END
            : block.timestamp;
        uint256 timeDelta = currentTimestamp.sub(lastUpdateTimestamp);
        return
            emissionPerSecond
                .mul(timeDelta)
                .mul(10**uint256(PRECISION))
                .div(totalBalance)
                .add(currentIndex);
    }

    /**
     * @dev Returns the data of an user on a distribution
     * @param user Address of the user
     * @param asset The address of the reference asset of the distribution
     * @return The new index
     **/
    function getUserAssetData(address user, address asset)
        public
        view
        returns (uint256)
    {
        return assets[asset].users[user];
    }
}

// File: contracts/interfaces/ILendingPool.sol

pragma solidity 0.6.12;

interface ILendingPool {
    
    function updateGovernanceStakingRewards(address _user) external;
        
}

// File: contracts/stake/StakedToken.sol

pragma solidity 0.6.12;






/**
 * @title StakedToken
 * @notice Contract to stake bMXX token, tokenize the position and get rewards, inheriting from a distribution manager contract
 * @author bMXX
 **/
contract StakedToken is
    IStakedbMXX,
    ERC20WithSnapshot,
    VersionedInitializable,
    bMXXDistributionManager
{
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    uint256 public constant REVISION = 1;

    IERC20 public immutable STAKED_TOKEN;
    IERC20 public immutable REWARD_TOKEN;
    uint256 public immutable COOLDOWN_SECONDS;

    /// @notice Seconds available to redeem once the cooldown period is fullfilled
    uint256 public immutable UNSTAKE_WINDOW;

    /// @notice Address to pull from the rewards, needs to have approved this contract
    address public immutable REWARDS_VAULT;

    mapping(address => uint256) public stakerRewardsToClaim;
    mapping(address => uint256) public stakersCooldowns;

    event Staked(
        address indexed from,
        address indexed onBehalfOf,
        uint256 amount,
        uint256 timestamp
    );
    event Redeem(address indexed from, address indexed to, uint256 amount, uint256 timestamp);

    event RewardsAccrued(address user, uint256 amount);
    event RewardsClaimed(
        address indexed from,
        address indexed to,
        uint256 amount,
        uint256 timestamp
    );

    event Cooldown(address indexed user);

    ILendingPool private POOL;

    constructor(
        IERC20 stakedToken,
        IERC20 rewardToken,
        uint256 cooldownSeconds,
        uint256 unstakeWindow,
        address rewardsVault,
        address emissionManager,
        uint128 distributionDuration,
        address poolAddress,
        string memory name,
        string memory symbol,
        uint8 decimals
    )
        public
        ERC20WithSnapshot(name, symbol, decimals)
        bMXXDistributionManager(emissionManager, distributionDuration)
    {
        STAKED_TOKEN = stakedToken;
        REWARD_TOKEN = rewardToken;
        COOLDOWN_SECONDS = cooldownSeconds;
        UNSTAKE_WINDOW = unstakeWindow;
        REWARDS_VAULT = rewardsVault;
        POOL = ILendingPool(poolAddress); 
    }

    /**
     * @dev Called by the proxy contract
     **/
    function initialize(
        ITransferHook bMXXGovernance,
        address poolAddress,
        string calldata name,
        string calldata symbol,
        uint8 decimals
    ) external initializer {
        _setName(name);
        _setSymbol(symbol);
        _setDecimals(decimals);
        _setbMXXGovernance(bMXXGovernance);
        POOL = ILendingPool(poolAddress); 
    }

    function stake(address onBehalfOf, uint256 amount) external override {
        require(amount != 0, "INVALID_ZERO_AMOUNT");
        uint256 balanceOfUser = balanceOf(onBehalfOf);

        uint256 accruedRewards =
            _updateUserAssetInternal(
                onBehalfOf,
                address(this),
                balanceOfUser,
                totalSupply()
            );
        if (accruedRewards != 0) {
            emit RewardsAccrued(onBehalfOf, accruedRewards);
            stakerRewardsToClaim[onBehalfOf] = stakerRewardsToClaim[onBehalfOf]
                .add(accruedRewards);
        }

        stakersCooldowns[onBehalfOf] = getNextCooldownTimestamp(
            0,
            amount,
            onBehalfOf,
            balanceOfUser
        );

        POOL.updateGovernanceStakingRewards(onBehalfOf);

        _mint(onBehalfOf, amount);
        IERC20(STAKED_TOKEN).safeTransferFrom(
            msg.sender,
            address(this),
            amount
        );

        emit Staked(msg.sender, onBehalfOf, amount, block.timestamp);
    }

    /**
     * @dev Redeems staked tokens, and stop earning rewards
     * @param to Address to redeem to
     * @param amount Amount to redeem
     **/
    function redeem(address to, uint256 amount) external override {
        require(amount != 0, "INVALID_ZERO_AMOUNT");
        //solium-disable-next-line
        uint256 cooldownStartTimestamp = stakersCooldowns[msg.sender];
        require(
            block.timestamp > cooldownStartTimestamp.add(COOLDOWN_SECONDS),
            "INSUFFICIENT_COOLDOWN"
        );
        require(
            block.timestamp.sub(cooldownStartTimestamp.add(COOLDOWN_SECONDS)) <=
                UNSTAKE_WINDOW,
            "UNSTAKE_WINDOW_FINISHED"
        );
        uint256 balanceOfMessageSender = balanceOf(msg.sender);

        uint256 amountToRedeem =
            (amount > balanceOfMessageSender) ? balanceOfMessageSender : amount;

        _updateCurrentUnclaimedRewards(
            msg.sender,
            balanceOfMessageSender,
            true
        );

        POOL.updateGovernanceStakingRewards(msg.sender);

        _burn(msg.sender, amountToRedeem);

        if (balanceOfMessageSender.sub(amountToRedeem) == 0) {
            stakersCooldowns[msg.sender] = 0;
        }

        IERC20(STAKED_TOKEN).safeTransfer(to, amountToRedeem);

        emit Redeem(msg.sender, to, amountToRedeem, block.timestamp);
    }

    /**
     * @dev Activates the cooldown period to unstake
     * - It can't be called if the user is not staking
     **/
    function cooldown() external override {
        require(balanceOf(msg.sender) != 0, "INVALID_BALANCE_ON_COOLDOWN");
        //solium-disable-next-line
        stakersCooldowns[msg.sender] = block.timestamp;

        emit Cooldown(msg.sender);
    }

    /**
     * @dev Claims an `amount` of `REWARD_TOKEN` to the address `to`
     * @param to Address to stake for
     * @param amount Amount to stake
     **/
    function claimRewards(address to, uint256 amount) external override {
        uint256 newTotalRewards =
            _updateCurrentUnclaimedRewards(
                msg.sender,
                balanceOf(msg.sender),
                false
            );
        uint256 amountToClaim =
            (amount == type(uint256).max) ? newTotalRewards : amount;

        stakerRewardsToClaim[msg.sender] = newTotalRewards.sub(
            amountToClaim,
            "INVALID_AMOUNT"
        );

        REWARD_TOKEN.safeTransferFrom(REWARDS_VAULT, to, amountToClaim);

        emit RewardsClaimed(msg.sender, to, amountToClaim, block.timestamp);
    }

    /**
     * @dev Internal ERC20 _transfer of the tokenized staked tokens
     * @param from Address to transfer from
     * @param to Address to transfer to
     * @param amount Amount to transfer
     **/
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        uint256 balanceOfFrom = balanceOf(from);
        // Sender
        _updateCurrentUnclaimedRewards(from, balanceOfFrom, true);

        // Recipient
        if (from != to) {
            uint256 balanceOfTo = balanceOf(to);
            _updateCurrentUnclaimedRewards(to, balanceOfTo, true);

            uint256 previousSenderCooldown = stakersCooldowns[from];
            stakersCooldowns[to] = getNextCooldownTimestamp(
                previousSenderCooldown,
                amount,
                to,
                balanceOfTo
            );
            // if cooldown was set and whole balance of sender was transferred - clear cooldown
            if (balanceOfFrom == amount && previousSenderCooldown != 0) {
                stakersCooldowns[from] = 0;
            }
        }

        // Handle the rewards from RewardManager ( Depositor, Governance )
        POOL.updateGovernanceStakingRewards(from);
        POOL.updateGovernanceStakingRewards(to);

        super._transfer(from, to, amount);
    }

    /**
     * @dev Updates the user state related with his accrued rewards
     * @param user Address of the user
     * @param userBalance The current balance of the user
     * @param updateStorage Boolean flag used to update or not the stakerRewardsToClaim of the user
     * @return The unclaimed rewards that were added to the total accrued
     **/
    function _updateCurrentUnclaimedRewards(
        address user,
        uint256 userBalance,
        bool updateStorage
    ) internal returns (uint256) {
        uint256 accruedRewards =
            _updateUserAssetInternal(
                user,
                address(this),
                userBalance,
                totalSupply()
            );
        uint256 unclaimedRewards =
            stakerRewardsToClaim[user].add(accruedRewards);

        if (accruedRewards != 0) {
            if (updateStorage) {
                stakerRewardsToClaim[user] = unclaimedRewards;
            }
            emit RewardsAccrued(user, accruedRewards);
        }

        return unclaimedRewards;
    }

    /**
     * @dev Calculates the how is gonna be a new cooldown timestamp depending on the sender/receiver situation
     *  - If the timestamp of the sender is "better" or the timestamp of the recipient is 0, we take the one of the recipient
     *  - Weighted average of from/to cooldown timestamps if:
     *    # The sender doesn't have the cooldown activated (timestamp 0).
     *    # The sender timestamp is expired
     *    # The sender has a "worse" timestamp
     *  - If the receiver's cooldown timestamp expired (too old), the next is 0
     * @param fromCooldownTimestamp Cooldown timestamp of the sender
     * @param amountToReceive Amount
     * @param toAddress Address of the recipient
     * @param toBalance Current balance of the receiver
     * @return The new cooldown timestamp
     **/
    function getNextCooldownTimestamp(
        uint256 fromCooldownTimestamp,
        uint256 amountToReceive,
        address toAddress,
        uint256 toBalance
    ) public returns (uint256) {
        uint256 toCooldownTimestamp = stakersCooldowns[toAddress];
        if (toCooldownTimestamp == 0) {
            return 0;
        }

        uint256 minimalValidCooldownTimestamp =
            block.timestamp.sub(COOLDOWN_SECONDS).sub(UNSTAKE_WINDOW);

        if (minimalValidCooldownTimestamp > toCooldownTimestamp) {
            toCooldownTimestamp = 0;
        } else {
            uint256 fromCooldownTimestamp =
                (minimalValidCooldownTimestamp > fromCooldownTimestamp)
                    ? block.timestamp
                    : fromCooldownTimestamp;

            if (fromCooldownTimestamp < toCooldownTimestamp) {
                return toCooldownTimestamp;
            } else {
                toCooldownTimestamp = (
                    amountToReceive.mul(fromCooldownTimestamp).add(
                        toBalance.mul(toCooldownTimestamp)
                    )
                )
                    .div(amountToReceive.add(toBalance));
            }
        }
        stakersCooldowns[toAddress] = toCooldownTimestamp;

        return toCooldownTimestamp;
    }

    /**
     * @dev Return the total rewards pending to claim by an staker
     * @param staker The staker address
     * @return The rewards
     */
    function getTotalRewardsBalance(address staker)
        external
        view
        returns (uint256)
    {
        DistributionTypes.UserStakeInput[] memory userStakeInputs =
            new DistributionTypes.UserStakeInput[](1);
        userStakeInputs[0] = DistributionTypes.UserStakeInput({
            underlyingAsset: address(this),
            stakedByUser: balanceOf(staker),
            totalStaked: totalSupply()
        });
        return
            stakerRewardsToClaim[staker].add(
                _getUnclaimedRewards(staker, userStakeInputs)
            );
    }

    /**
     * @dev returns the revision of the implementation contract
     * @return The revision
     */
    function getRevision() internal pure override returns (uint256) {
        return REVISION;
    }
}

// File: contracts/stake/StakedbMXX.sol

pragma solidity 0.6.12;



/**
 * @title StakedbMXX
 * @notice StakedToken with bMXX token as staked token
 * @author Multiplier Finance
 **/
contract StakedbMXX is StakedToken {
    string internal constant NAME = "Staked bMXX";
    string internal constant SYMBOL = "stBMXX";
    uint8 internal constant DECIMALS = 18;

    constructor(
        IERC20 stakedToken,
        IERC20 rewardToken,
        uint256 cooldownSeconds,
        uint256 unstakeWindow,
        address rewardsVault,
        address emissionManager,
        uint128 distributionDuration,
        address poolAddress
    )
        public
        StakedToken(
            stakedToken,
            rewardToken,
            cooldownSeconds,
            unstakeWindow,
            rewardsVault,
            emissionManager,
            distributionDuration,
            poolAddress,
            NAME,
            SYMBOL,
            DECIMALS
        )
    {}
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"stakedToken","type":"address"},{"internalType":"contract IERC20","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"cooldownSeconds","type":"uint256"},{"internalType":"uint256","name":"unstakeWindow","type":"uint256"},{"internalType":"address","name":"rewardsVault","type":"address"},{"internalType":"address","name":"emissionManager","type":"address"},{"internalType":"uint128","name":"distributionDuration","type":"uint128"},{"internalType":"address","name":"poolAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"emission","type":"uint256"}],"name":"AssetConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"AssetIndexUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"Cooldown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsAccrued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint128","name":"oldValue","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"newValue","type":"uint128"}],"name":"SnapshotDone","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"onBehalfOf","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"UserIndexUpdated","type":"event"},{"inputs":[],"name":"COOLDOWN_SECONDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISTRIBUTION_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSION_MANAGER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARDS_VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKED_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNSTAKE_WINDOW","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_bMXXGovernance","outputs":[{"internalType":"contract ITransferHook","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_countsSnapshots","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_snapshots","outputs":[{"internalType":"uint128","name":"blockNumber","type":"uint128"},{"internalType":"uint128","name":"value","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assets","outputs":[{"internalType":"uint128","name":"emissionPerSecond","type":"uint128"},{"internalType":"uint128","name":"lastUpdateTimestamp","type":"uint128"},{"internalType":"uint256","name":"index","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint128","name":"emissionPerSecond","type":"uint128"},{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"address","name":"underlyingAsset","type":"address"}],"internalType":"struct DistributionTypes.AssetConfigInput[]","name":"assetsConfigInput","type":"tuple[]"}],"name":"configureAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromCooldownTimestamp","type":"uint256"},{"internalType":"uint256","name":"amountToReceive","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"toBalance","type":"uint256"}],"name":"getNextCooldownTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTotalRewardsBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"asset","type":"address"}],"name":"getUserAssetData","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITransferHook","name":"bMXXGovernance","type":"address"},{"internalType":"address","name":"poolAddress","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"onBehalfOf","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakerRewardsToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakersCooldowns","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

61016060405260006009553480156200001757600080fd5b5060405162002f4338038062002f438339810160408190526200003a9162000249565b87878787878787876040518060400160405280600b81526020016a0a6e8c2d6cac840c49ab0b60ab1b815250604051806040016040528060068152602001650e6e8849ab0b60d31b815250601285856001600160801b03168484848282828260039080519060200190620000b0929190620001ad565b508151620000c6906004906020850190620001ad565b5080600560006101000a81548160ff021916908360ff1602179055505050505050506200010281426200017560201b620012dc1790919060201c565b60805250606090811b6001600160601b031990811660a0529b811b8c1660c052998a1b8b1660e0525050506101009590955250506101209190915290911b90911661014052603f80546001600160a01b0319166001600160a01b03909216919091179055506200034c9650505050505050565b600082820183811015620001a65760405162461bcd60e51b81526004016200019d90620002fc565b60405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001f057805160ff191683800117855562000220565b8280016001018555821562000220579182015b828111156200022057825182559160200191906001019062000203565b506200022e92915062000232565b5090565b5b808211156200022e576000815560010162000233565b600080600080600080600080610100898b03121562000266578384fd5b8851620002738162000333565b60208a0151909850620002868162000333565b8097505060408901519550606089015194506080890151620002a88162000333565b60a08a0151909450620002bb8162000333565b60c08a01519093506001600160801b0381168114620002d8578283fd5b60e08a0151909250620002eb8162000333565b809150509295985092959890939650565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6001600160a01b03811681146200034957600080fd5b50565b60805160a05160601c60c05160601c60e05160601c61010051610120516101405160601c612b56620003ed60003980610b795280610cc75250806105bf528061088852806111f952508061057b52806105e75280610915528061121e525080610bfe5280610c9d5250806106f5528061082b5280610f28525080610fa0528061114a525080610b555280611ed35280611f0f5280611f3c5250612b566000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80638779588c11610125578063aaf5eb68116100ad578063cbcbb5071161007c578063cbcbb5071461041b578063dd62ed3e14610423578063dde43cba14610436578063f11b81881461043e578063f1cc432a1461046057610211565b8063aaf5eb68146103e5578063ad811840146103ed578063adc9772e146103f5578063b2a5dbfa1461040857610211565b806395d89b41116100f457806395d89b411461039c57806399248ea7146103a45780639a99b4f0146103ac578063a457c2d7146103bf578063a9059cbb146103d257610211565b80638779588c146103665780638dbefee214610379578063919cd40f1461038c578063946776cd1461039457610211565b8063313ce567116101a857806370a082311161017757806370a082311461031d57806372b49d6314610330578063787a08a6146103385780637e90d7ef146103405780638420ce991461035357610211565b8063313ce567146102da5780633373ee4c146102ef578063359c4a9614610302578063395093511461030a57610211565b80631e9a6950116101e45780631e9a69501461027c57806323b872dd146102915780632acbf823146102a4578063312f6b83146102c557610211565b806306fdde0314610216578063091030c314610234578063095ea7b31461025457806318160ddd14610274575b600080fd5b61021e610473565b60405161022b91906125a2565b60405180910390f35b6102476102423660046122a1565b610509565b60405161022b9190612a22565b610267610262366004612335565b61051b565b60405161022b9190612597565b610247610539565b61028f61028a366004612335565b61053f565b005b61026761029f3660046122f5565b610770565b6102b76102b2366004612335565b6107f8565b60405161022b9291906129e4565b6102cd610829565b60405161022b919061251c565b6102e261084d565b60405161022b9190612a39565b6102476102fd3660046122bd565b610856565b610247610886565b610267610318366004612335565b6108aa565b61024761032b3660046122a1565b6108f8565b610247610913565b61028f610937565b61024761034e3660046122a1565b610996565b61028f6103613660046123f0565b6109a8565b6102476103743660046122a1565b610a92565b6102476103873660046122a1565b610aa4565b610247610b53565b6102cd610b77565b61021e610b9b565b6102cd610bfc565b61028f6103ba366004612335565b610c20565b6102676103cd366004612335565b610d40565b6102676103e0366004612335565b610da8565b6102e2610dbc565b6102cd610dc1565b61028f610403366004612335565b610dd0565b61028f610416366004612360565b610f95565b6102cd611148565b6102476104313660046122bd565b61116c565b610247611197565b61045161044c3660046122a1565b61119c565b60405161022b939291906129fe565b61024761046e3660046124c2565b6111ca565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104ff5780601f106104d4576101008083540402835291602001916104ff565b820191906000526020600020905b8154815290600101906020018083116104e257829003601f168201915b5050505050905090565b603e6020526000908152604090205481565b600061052f610528611301565b8484611305565b5060015b92915050565b60025490565b806105655760405162461bcd60e51b815260040161055c90612691565b60405180910390fd5b336000908152603e602052604090205461059f817f00000000000000000000000000000000000000000000000000000000000000006112dc565b42116105bd5760405162461bcd60e51b815260040161055c906126f3565b7f000000000000000000000000000000000000000000000000000000000000000061061261060b837f00000000000000000000000000000000000000000000000000000000000000006112dc565b42906113b9565b11156106305760405162461bcd60e51b815260040161055c90612866565b600061063b336108f8565b9050600081841161064c578361064e565b815b905061065c338360016113fb565b50603f54604051632d24f6c760e01b81526001600160a01b0390911690632d24f6c79061068d90339060040161251c565b600060405180830381600087803b1580156106a757600080fd5b505af11580156106bb573d6000803e3d6000fd5b505050506106c933826114a0565b6106d382826113b9565b6106e857336000908152603e60205260408120555b61071c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168683611582565b846001600160a01b0316336001600160a01b03167f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc8342604051610761929190612a2b565b60405180910390a35050505050565b600061077d8484846115d8565b6107ed84610789611301565b6107e885604051806060016040528060288152602001612ad4602891396001600160a01b038a166000908152600160205260408120906107c7611301565b6001600160a01b031681526020810191909152604001600020549190611768565b611305565b5060015b9392505050565b60066020908152600092835260408084209091529082529020546001600160801b0380821691600160801b90041682565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055460ff1690565b6001600160a01b038082166000908152603c60209081526040808320938616835260029093019052205492915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061052f6108b7611301565b846107e885600160006108c8611301565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906112dc565b6001600160a01b031660009081526020819052604090205490565b7f000000000000000000000000000000000000000000000000000000000000000081565b610940336108f8565b61095c5760405162461bcd60e51b815260040161055c9061292b565b336000818152603e6020526040808220429055517ff52f50426b32362d3e6bb8cb36b7074756b224622def6352a59eac7f66ebe6e89190a2565b603d6020526000908152604090205481565b60006109b2611794565b905060095481116109d55760405162461bcd60e51b815260040161055c90612763565b6009819055604080516020601f8801819004810282018101909252868152610a1791889088908190840183828082843760009201919091525061179992505050565b610a5684848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117b092505050565b610a5f826117c3565b610a68886117d9565b5050603f80546001600160a01b0319166001600160a01b0396909616959095179094555050505050565b60076020526000908152604090205481565b60408051600180825281830190925260009160609190816020015b610ac761219d565b815260200190600190039081610abf5790505090506040518060600160405280306001600160a01b03168152602001610aff856108f8565b8152602001610b0c610539565b81525081600081518110610b1c57fe5b60200260200101819052506107f1610b3484836117fb565b6001600160a01b0385166000908152603d6020526040902054906112dc565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104ff5780601f106104d4576101008083540402835291602001916104ff565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610c3633610c2f336108f8565b60006113fb565b905060006000198314610c495782610c4b565b815b9050610c88816040518060400160405280600e81526020016d1253959053125117d05353d5539560921b815250846117689092919063ffffffff16565b336000908152603d6020526040902055610ced7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000086846118ec565b836001600160a01b0316336001600160a01b03167fd92c424393cb3ccdf7d5e36602e3bfa34f24490579ba47978f4bcfad496995f28342604051610d32929190612a2b565b60405180910390a350505050565b600061052f610d4d611301565b846107e885604051806060016040528060258152602001612afc6025913960016000610d77611301565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611768565b600061052f610db5611301565b84846115d8565b601281565b6008546001600160a01b031681565b80610ded5760405162461bcd60e51b815260040161055c90612691565b6000610df8836108f8565b90506000610e0f843084610e0a610539565b61190d565b90508015610e8d577f2468f9268c60ad90e2d49edb0032c8a001e733ae888b3ab8e982edf535be1a768482604051610e4892919061257e565b60405180910390a16001600160a01b0384166000908152603d6020526040902054610e7390826112dc565b6001600160a01b0385166000908152603d60205260409020555b610e9a60008486856111ca565b6001600160a01b038086166000908152603e60205260409081902092909255603f549151632d24f6c760e01b8152911690632d24f6c790610edf90879060040161251c565b600060405180830381600087803b158015610ef957600080fd5b505af1158015610f0d573d6000803e3d6000fd5b50505050610f1b84846119cc565b610f506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330866118ec565b836001600160a01b0316336001600160a01b03167f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc8542604051610d32929190612a2b565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610fdd5760405162461bcd60e51b815260040161055c906127b1565b60005b81811015611143576000603c6000858585818110610ffa57fe5b905060600201604001602081019061101291906122a1565b6001600160a01b03166001600160a01b03168152602001908152602001600020905061107784848481811061104357fe5b905060600201604001602081019061105b91906122a1565b8286868681811061106857fe5b90506060020160200135611a80565b5083838381811061108457fe5b61109a926020606090920201908101915061249b565b81546001600160801b0319166001600160801b03919091161781558383838181106110c157fe5b90506060020160400160208101906110d991906122a1565b6001600160a01b03167f87fa03892a0556cb6b8f97e6d533a150d4d55fcbf275fff5fa003fa636bcc7fa85858581811061110f57fe5b611125926020606090920201908101915061249b565b60405161113291906129d0565b60405180910390a250600101610fe0565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600181565b603c60205260009081526040902080546001909101546001600160801b0380831692600160801b9004169083565b6001600160a01b0382166000908152603e6020526040812054806111f25760009150506112d4565b60006112487f0000000000000000000000000000000000000000000000000000000000000000611242427f00000000000000000000000000000000000000000000000000000000000000006113b9565b906113b9565b90508181111561125b57600091506112b5565b600087821161126a578761126c565b425b905082811015611281578293505050506112d4565b6112b161128e88876112dc565b6112ab61129b8887611b3d565b6112a58b86611b3d565b906112dc565b90611b77565b9250505b506001600160a01b0384166000908152603e6020526040902081905590505b949350505050565b6000828201838110156107f15760405162461bcd60e51b815260040161055c9061265a565b3390565b6001600160a01b03831661132b5760405162461bcd60e51b815260040161055c9061289d565b6001600160a01b0382166113515760405162461bcd60e51b815260040161055c90612618565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906113ac908590612a22565b60405180910390a3505050565b60006107f183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611768565b60008061140c853086610e0a610539565b6001600160a01b0386166000908152603d60205260408120549192509061143390836112dc565b9050811561149757831561145d576001600160a01b0386166000908152603d602052604090208190555b7f2468f9268c60ad90e2d49edb0032c8a001e733ae888b3ab8e982edf535be1a76868360405161148e92919061257e565b60405180910390a15b95945050505050565b6001600160a01b0382166114c65760405162461bcd60e51b815260040161055c906127e0565b6114d282600083611bb9565b61150f81604051806060016040528060228152602001612a8c602291396001600160a01b0385166000908152602081905260409020549190611768565b6001600160a01b03831660009081526020819052604090205560025461153590826113b9565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611576908590612a22565b60405180910390a35050565b6111438363a9059cbb60e01b84846040516024016115a192919061257e565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611cb1565b60006115e3846108f8565b90506115f1848260016113fb565b50826001600160a01b0316846001600160a01b031614611693576000611616846108f8565b9050611624848260016113fb565b506001600160a01b0385166000908152603e602052604090205461164a818587856111ca565b6001600160a01b0386166000908152603e6020526040902055828414801561167157508015155b15611690576001600160a01b0386166000908152603e60205260408120555b50505b603f54604051632d24f6c760e01b81526001600160a01b0390911690632d24f6c7906116c390879060040161251c565b600060405180830381600087803b1580156116dd57600080fd5b505af11580156116f1573d6000803e3d6000fd5b5050603f54604051632d24f6c760e01b81526001600160a01b039091169250632d24f6c7915061172590869060040161251c565b600060405180830381600087803b15801561173f57600080fd5b505af1158015611753573d6000803e3d6000fd5b50505050611762848484611d96565b50505050565b6000818484111561178c5760405162461bcd60e51b815260040161055c91906125a2565b505050900390565b600190565b80516117ac9060039060208401906121c7565b5050565b80516117ac9060049060208401906121c7565b6005805460ff191660ff92909216919091179055565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600080805b83518110156118e4576000603c600086848151811061181b57fe5b602090810291909101810151516001600160a01b031682528101919091526040016000908120600181015481548851929450611883926001600160801b0380831692600160801b900416908a908890811061187257fe5b602002602001015160400151611eab565b90506118d86118d187858151811061189757fe5b602002602001015160200151838560020160008c6001600160a01b03166001600160a01b0316815260200190815260200160002054611fa4565b85906112dc565b93505050600101611800565b509392505050565b611762846323b872dd60e01b8585856040516024016115a193929190612530565b6001600160a01b038084166000908152603c602090815260408083209388168352600284019091528120549091908280611948888588611a80565b90508083146119c057861561196557611962878285611fa4565b91505b6001600160a01b03808a1660008181526002870160205260409081902084905551918a16917fbb123b5c06d5408bbea3c4fef481578175cfb432e3b482c6186f02ed9086585b906119b7908590612a22565b60405180910390a35b50979650505050505050565b6001600160a01b0382166119f25760405162461bcd60e51b815260040161055c90612999565b6119fe60008383611bb9565b600254611a0b90826112dc565b6002556001600160a01b038216600090815260208190526040902054611a3190826112dc565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611576908590612a22565b6001820154825460009190600160801b90046001600160801b031642811415611aab575090506107f1565b8454600090611ac69084906001600160801b03168488611eab565b9050828114611b1a57808660010181905550866001600160a01b03167f5777ca300dfe5bead41006fbce4389794dbc0ed8d6cccebfaf94630aa04184bc82604051611b119190612a22565b60405180910390a25b85546001600160801b03428116600160801b029116178655925050509392505050565b600082611b4c57506000610533565b82820282848281611b5957fe5b04146107f15760405162461bcd60e51b815260040161055c90612722565b60006107f183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611fc6565b816001600160a01b0316836001600160a01b03161415611bd857611143565b6001600160a01b03831615611c0a576000611bf2846108f8565b9050611c088482611c0381866113b9565b611ffd565b505b6001600160a01b03821615611c37576000611c24836108f8565b9050611c358382611c0381866112dc565b505b6008546001600160a01b0316801561176257604051634a39314960e01b81526001600160a01b03821690634a39314990611c7990879087908790600401612530565b600060405180830381600087803b158015611c9357600080fd5b505af1158015611ca7573d6000803e3d6000fd5b5050505050505050565b611cc3826001600160a01b0316612164565b611cdf5760405162461bcd60e51b815260040161055c90612962565b60006060836001600160a01b031683604051611cfb9190612500565b6000604051808303816000865af19150503d8060008114611d38576040519150601f19603f3d011682016040523d82523d6000602084013e611d3d565b606091505b509150915081611d5f5760405162461bcd60e51b815260040161055c906126be565b8051156117625780806020019051810190611d7a91906123d0565b6117625760405162461bcd60e51b815260040161055c906128e1565b6001600160a01b038316611dbc5760405162461bcd60e51b815260040161055c90612821565b6001600160a01b038216611de25760405162461bcd60e51b815260040161055c906125d5565b611ded838383611bb9565b611e2a81604051806060016040528060268152602001612aae602691396001600160a01b0386166000908152602081905260409020549190611768565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611e5990826112dc565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906113ac908590612a22565b6000831580611eb8575081155b80611ecb575042836001600160801b0316145b80611eff57507f0000000000000000000000000000000000000000000000000000000000000000836001600160801b031610155b15611f0b5750836112d4565b60007f00000000000000000000000000000000000000000000000000000000000000004211611f3a5742611f5c565b7f00000000000000000000000000000000000000000000000000000000000000005b90506000611f73826001600160801b0387166113b9565b9050611f99876112a5866112ab670de0b6b3a7640000611f938c88611b3d565b90611b3d565b979650505050505050565b60006112d4670de0b6b3a76400006112ab611fbf86866113b9565b8790611b3d565b60008183611fe75760405162461bcd60e51b815260040161055c91906125a2565b506000838581611ff357fe5b0495945050505050565b6001600160a01b0383166000908152600760209081526040808320546006909252909120439190811580159061206257506001600160801b0383168160006120468560016113b9565b81526020810191909152604001600020546001600160801b0316145b156120a657838160006120768560016113b9565b8152602081019190915260400160002080546001600160801b03928316600160801b029216919091179055612121565b6040805180820182526001600160801b0380861682528681166020808401918252600087815290869052939093209151825493518216600160801b029082166001600160801b031990941693909317169190911790556121078260016112dc565b6001600160a01b0387166000908152600760205260409020555b7f2cd3c83ddac2953ee75f53265d9ea4463eaf05030e5459a1b7e63819b7ce88f786868660405161215493929190612554565b60405180910390a1505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906112d4575050151592915050565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061220857805160ff1916838001178555612235565b82800160010185558215612235579182015b8281111561223557825182559160200191906001019061221a565b50612241929150612245565b5090565b5b808211156122415760008155600101612246565b60008083601f84011261226b578182fd5b50813567ffffffffffffffff811115612282578182fd5b60208301915083602082850101111561229a57600080fd5b9250929050565b6000602082840312156122b2578081fd5b81356107f181612a73565b600080604083850312156122cf578081fd5b82356122da81612a73565b915060208301356122ea81612a73565b809150509250929050565b600080600060608486031215612309578081fd5b833561231481612a73565b9250602084013561232481612a73565b929592945050506040919091013590565b60008060408385031215612347578182fd5b823561235281612a73565b946020939093013593505050565b60008060208385031215612372578182fd5b823567ffffffffffffffff80821115612389578384fd5b818501915085601f83011261239c578384fd5b8135818111156123aa578485fd5b8660206060830285010111156123be578485fd5b60209290920196919550909350505050565b6000602082840312156123e1578081fd5b815180151581146107f1578182fd5b600080600080600080600060a0888a03121561240a578283fd5b873561241581612a73565b9650602088013561242581612a73565b9550604088013567ffffffffffffffff80821115612441578485fd5b61244d8b838c0161225a565b909750955060608a0135915080821115612465578485fd5b506124728a828b0161225a565b909450925050608088013560ff8116811461248b578182fd5b8091505092959891949750929550565b6000602082840312156124ac578081fd5b81356001600160801b03811681146107f1578182fd5b600080600080608085870312156124d7578384fd5b843593506020850135925060408501356124f081612a73565b9396929550929360600135925050565b60008251612512818460208701612a47565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b039390931683526001600160801b03918216602084015216604082015260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006020825282518060208401526125c1816040850160208701612a47565b601f01601f19169190910160400192915050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601390820152721253959053125117d6915493d7d05353d55395606a1b604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b60208082526015908201527424a729aaa32324a1a4a2a72a2fa1a7a7a62227aba760591b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526015908201527427a7262cafa2a6a4a9a9a4a7a72fa6a0a720a3a2a960591b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526017908201527f554e5354414b455f57494e444f575f46494e4953484544000000000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601b908201527f494e56414c49445f42414c414e43455f4f4e5f434f4f4c444f574e0000000000604082015260600190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b6001600160801b0391909116815260200190565b6001600160801b0392831681529116602082015260400190565b6001600160801b039384168152919092166020820152604081019190915260600190565b90815260200190565b918252602082015260400190565b60ff91909116815260200190565b60005b83811015612a62578181015183820152602001612a4a565b838111156117625750506000910152565b6001600160a01b0381168114612a8857600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d45487ba77b37d87472606ebeed5a1e856918e08dec5ae8d9a5cc5ca0ddd0a3464736f6c634300060c00330000000000000000000000004131b87f74415190425ccd873048c708f80058230000000000000000000000004131b87f74415190425ccd873048c708f8005823000000000000000000000000000000000000000000000000000000000003f48000000000000000000000000000000000000000000000000000000000000151800000000000000000000000007205f3dc9f355ca43c5c745541b87ab354abc0f80000000000000000000000007205f3dc9f355ca43c5c745541b87ab354abc0f80000000000000000000000000000000000000000000000000000000005a39a80000000000000000000000000bec588f8a4859065b45fcfcb1c8805f5584a2219

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

0000000000000000000000004131b87f74415190425ccd873048c708f80058230000000000000000000000004131b87f74415190425ccd873048c708f8005823000000000000000000000000000000000000000000000000000000000003f48000000000000000000000000000000000000000000000000000000000000151800000000000000000000000007205f3dc9f355ca43c5c745541b87ab354abc0f80000000000000000000000007205f3dc9f355ca43c5c745541b87ab354abc0f80000000000000000000000000000000000000000000000000000000005a39a80000000000000000000000000bec588f8a4859065b45fcfcb1c8805f5584a2219

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000004131b87f74415190425ccd873048c708f8005823
Arg [1] : 0000000000000000000000004131b87f74415190425ccd873048c708f8005823
Arg [2] : 000000000000000000000000000000000000000000000000000000000003f480
Arg [3] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [4] : 0000000000000000000000007205f3dc9f355ca43c5c745541b87ab354abc0f8
Arg [5] : 0000000000000000000000007205f3dc9f355ca43c5c745541b87ab354abc0f8
Arg [6] : 0000000000000000000000000000000000000000000000000000000005a39a80
Arg [7] : 000000000000000000000000bec588f8a4859065b45fcfcb1c8805f5584a2219


Deployed ByteCode Sourcemap

49204:815:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11189:86;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;37829:51;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;12948:159::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;11636:94::-;;;:::i;40913:1247::-;;;;;;:::i;:::-;;:::i;:::-;;13443:355;;;;;;:::i;:::-;;:::i;17311:68::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;37364:36::-;;;:::i;:::-;;;;;;;:::i;11485:86::-;;;:::i;:::-;;;;;;;:::i;36489:168::-;;;;;;:::i;:::-;;:::i;37584:39::-;;;:::i;14046:208::-;;;;;;:::i;:::-;;:::i;11790:113::-;;;;;;:::i;:::-;;:::i;37450:41::-;;;:::i;42297:254::-;;;:::i;37767:55::-;;;;;;:::i;:::-;;:::i;39245:390::-;;;;;;:::i;:::-;;:::i;17386:52::-;;;;;;:::i;:::-;;:::i;48189:596::-;;;;;;:::i;:::-;;:::i;27985:41::-;;;:::i;37720:38::-;;;:::i;11334:90::-;;;:::i;37407:36::-;;;:::i;42725:661::-;;;;;;:::i;:::-;;:::i;14512:332::-;;;;;;:::i;:::-;;:::i;12165:165::-;;;;;;:::i;:::-;;:::i;28085:36::-;;;:::i;17735:::-;;;:::i;39643:1104::-;;;;;;:::i;:::-;;:::i;28814:860::-;;;;;;:::i;:::-;;:::i;28035:41::-;;;:::i;12604:173::-;;;;;;:::i;:::-;;:::i;37319:36::-;;;:::i;28130:43::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;46698:1328::-;;;;;;:::i;:::-;;:::i;11189:86::-;11264:5;11257:12;;;;;;;;-1:-1:-1;;11257:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11235:13;;11257:12;;11264:5;;11257:12;;11264:5;11257:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11189:86;:::o;37829:51::-;;;;;;;;;;;;;:::o;12948:159::-;13031:4;13044:39;13053:12;:10;:12::i;:::-;13067:7;13076:6;13044:8;:39::i;:::-;-1:-1:-1;13097:4:0;12948:159;;;;;:::o;11636:94::-;11712:12;;11636:94;:::o;40913:1247::-;40994:11;40986:43;;;;-1:-1:-1;;;40986:43:0;;;;;;;:::i;:::-;;;;;;;;;41126:10;41076:30;41109:28;;;:16;:28;;;;;;41188:44;41109:28;41215:16;41188:26;:44::i;:::-;41170:15;:62;41148:133;;;;-1:-1:-1;;;41148:133:0;;;;;;;:::i;:::-;41400:14;41314:65;41334:44;:22;41361:16;41334:26;:44::i;:::-;41314:15;;:19;:65::i;:::-;:100;;41292:173;;;;-1:-1:-1;;;41292:173:0;;;;;;;:::i;:::-;41476:30;41509:21;41519:10;41509:9;:21::i;:::-;41476:54;;41543:22;41591;41582:6;:31;41581:67;;41642:6;41581:67;;;41617:22;41581:67;41543:105;;41661:122;41706:10;41731:22;41768:4;41661:30;:122::i;:::-;-1:-1:-1;41796:4:0;;:47;;-1:-1:-1;;;41796:47:0;;-1:-1:-1;;;;;41796:4:0;;;;:35;;:47;;41832:10;;41796:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41856:33;41862:10;41874:14;41856:5;:33::i;:::-;41906:42;:22;41933:14;41906:26;:42::i;:::-;41902:112;;41987:10;42001:1;41970:28;;;:16;:28;;;;;:32;41902:112;42026:53;-1:-1:-1;;;;;42033:12:0;42026:33;42060:2;42064:14;42026:33;:53::i;:::-;42116:2;-1:-1:-1;;;;;42097:55:0;42104:10;-1:-1:-1;;;;;42097:55:0;;42120:14;42136:15;42097:55;;;;;;;:::i;:::-;;;;;;;;40913:1247;;;;;:::o;13443:355::-;13569:4;13582:36;13592:6;13600:9;13611:6;13582:9;:36::i;:::-;13625:149;13642:6;13657:12;:10;:12::i;:::-;13678:89;13716:6;13678:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13678:19:0;;;;;;:11;:19;;;;;;13698:12;:10;:12::i;:::-;-1:-1:-1;;;;;13678:33:0;;;;;;;;;;;;-1:-1:-1;13678:33:0;;;:89;:37;:89::i;:::-;13625:8;:149::i;:::-;-1:-1:-1;13788:4:0;13443:355;;;;;;:::o;17311:68::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17311:68:0;;;;-1:-1:-1;;;17311:68:0;;;;:::o;37364:36::-;;;:::o;11485:86::-;11556:9;;;;11485:86;:::o;36489:168::-;-1:-1:-1;;;;;36624:13:0;;;36592:7;36624:13;;;:6;:13;;;;;;;;:25;;;;;:19;;;;:25;;;;36489:168;;;;:::o;37584:39::-;;;:::o;14046:208::-;14134:4;14147:83;14156:12;:10;:12::i;:::-;14170:7;14179:50;14218:10;14179:11;:25;14191:12;:10;:12::i;:::-;-1:-1:-1;;;;;14179:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;14179:25:0;;;:34;;;;;;;;;;;:38;:50::i;11790:113::-;-1:-1:-1;;;;;11879:18:0;11856:7;11879:18;;;;;;;;;;;;11790:113::o;37450:41::-;;;:::o;42297:254::-;42354:21;42364:10;42354:9;:21::i;:::-;42346:66;;;;-1:-1:-1;;;42346:66:0;;;;;;;:::i;:::-;42476:10;42459:28;;;;:16;:28;;;;;;42490:15;42459:46;;42523:20;;;42459:28;42523:20;42297:254::o;37767:55::-;;;;;;;;;;;;;:::o;39245:390::-;26294:16;26313:13;:11;:13::i;:::-;26294:32;;26370:23;;26359:8;:34;26337:130;;;;-1:-1:-1;;;26337:130:0;;;;;;;:::i;:::-;26480:23;:34;;;39462:14:::1;::::0;;::::1;;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;::::1;::::0;39471:4;;;;;;39462:14;::::1;39471:4:::0;;;;39462:14;::::1;;::::0;::::1;::::0;;;;-1:-1:-1;39462:8:0::1;::::0;-1:-1:-1;;;39462:14:0:i:1;:::-;39487:18;39498:6;;39487:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;39487:10:0::1;::::0;-1:-1:-1;;;39487:18:0:i:1;:::-;39516:22;39529:8;39516:12;:22::i;:::-;39549:34;39568:14;39549:18;:34::i;:::-;-1:-1:-1::0;;39594:4:0::1;:32:::0;;-1:-1:-1;;;;;;39594:32:0::1;-1:-1:-1::0;;;;;39594:32:0;;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;;;;;39245:390:0:o;17386:52::-;;;;;;;;;;;;;:::o;48189:596::-;48385:41;;;48424:1;48385:41;;;;;;;;;48287:7;;48312:57;;48385:41;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;48312:114;;48458:177;;;;;;;;48531:4;-1:-1:-1;;;;;48458:177:0;;;;;48565:17;48575:6;48565:9;:17::i;:::-;48458:177;;;;48610:13;:11;:13::i;:::-;48458:177;;;48437:15;48453:1;48437:18;;;;;;;;;;;;;:198;;;;48666:111;48717:45;48738:6;48746:15;48717:20;:45::i;:::-;-1:-1:-1;;;;;48666:28:0;;;;;;:20;:28;;;;;;;:32;:111::i;27985:41::-;;;:::o;37720:38::-;;;:::o;11334:90::-;11411:7;11404:14;;;;;;;;-1:-1:-1;;11404:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11382:13;;11404:14;;11411:7;;11404:14;;11411:7;11404:14;;;;;;;;;;;;;;;;;;;;;;;;37407:36;;;:::o;42725:661::-;42804:23;42843:138;42892:10;42921:21;42931:10;42921:9;:21::i;:::-;42961:5;42843:30;:138::i;:::-;42804:177;;42992:21;-1:-1:-1;;43030:6:0;:27;43029:56;;43079:6;43029:56;;;43061:15;43029:56;42992:93;;43133:89;43167:13;43133:89;;;;;;;;;;;;;-1:-1:-1;;;43133:89:0;;;:15;:19;;:89;;;;;:::i;:::-;43119:10;43098:32;;;;:20;:32;;;;;:124;43235:63;:12;-1:-1:-1;;;;;43235:29:0;43265:13;43280:2;43284:13;43235:29;:63::i;:::-;43343:2;-1:-1:-1;;;;;43316:62:0;43331:10;-1:-1:-1;;;;;43316:62:0;;43347:13;43362:15;43316:62;;;;;;;:::i;:::-;;;;;;;;42725:661;;;;:::o;14512:332::-;14620:4;14636:184;14653:12;:10;:12::i;:::-;14674:7;14690:123;14739:15;14690:123;;;;;;;;;;;;;;;;;:11;:25;14702:12;:10;:12::i;:::-;-1:-1:-1;;;;;14690:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;14690:25:0;;;:34;;;;;;;;;;;:123;:38;:123::i;12165:165::-;12251:4;12264:42;12274:12;:10;:12::i;:::-;12288:9;12299:6;12264:9;:42::i;28085:36::-;28119:2;28085:36;:::o;17735:::-;;;-1:-1:-1;;;;;17735:36:0;;:::o;39643:1104::-;39731:11;39723:43;;;;-1:-1:-1;;;39723:43:0;;;;;;;:::i;:::-;39777:21;39801;39811:10;39801:9;:21::i;:::-;39777:45;;39835:22;39873:164;39916:10;39953:4;39977:13;40009;:11;:13::i;:::-;39873:24;:164::i;:::-;39835:202;-1:-1:-1;40052:19:0;;40048:219;;40093:42;40108:10;40120:14;40093:42;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;40185:32:0;;;;;;:20;:32;;;;;;:70;;40240:14;40185:54;:70::i;:::-;-1:-1:-1;;;;;40150:32:0;;;;;;:20;:32;;;;;:105;40048:219;40310:125;40349:1;40365:6;40386:10;40411:13;40310:24;:125::i;:::-;-1:-1:-1;;;;;40279:28:0;;;;;;;:16;:28;;;;;;;:156;;;;40448:4;;:47;;-1:-1:-1;;;40448:47:0;;:4;;;:35;;:47;;40296:10;;40448:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40508:25;40514:10;40526:6;40508:5;:25::i;:::-;40544:122;-1:-1:-1;;;;;40551:12:0;40544:37;40596:10;40629:4;40649:6;40544:37;:122::i;:::-;40703:10;-1:-1:-1;;;;;40684:55:0;40691:10;-1:-1:-1;;;;;40684:55:0;;40715:6;40723:15;40684:55;;;;;;;:::i;28814:860::-;28957:10;-1:-1:-1;;;;;28971:16:0;28957:30;;28949:64;;;;-1:-1:-1;;;28949:64:0;;;;;;;:::i;:::-;29031:9;29026:641;29046:28;;;29026:641;;;29096:29;29128:6;:62;29135:17;;29153:1;29135:20;;;;;;;;;;;;:54;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29128:62:0;-1:-1:-1;;;;;29128:62:0;;;;;;;;;;;;29096:94;;29207:176;29251:17;;29269:1;29251:20;;;;;;;;;;;;:36;;;;;;;;;;:::i;:::-;29306:11;29336:17;;29354:1;29336:20;;;;;;;;;;;;:32;;;29207:25;:176::i;:::-;;29432:17;;29450:1;29432:20;;;;;;;:56;;;:20;;;;;:56;;;;-1:-1:-1;29432:56:0;:::i;:::-;29400:88;;-1:-1:-1;;;;;;29400:88:0;-1:-1:-1;;;;;29400:88:0;;;;;;;29547:17;;29565:1;29547:20;;;;;;;;;;;;:36;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29510:145:0;;29602:17;;29620:1;29602:20;;;;;;;:38;;;:20;;;;;:38;;;;-1:-1:-1;29602:38:0;:::i;:::-;29510:145;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;29076:3:0;;29026:641;;;;28814:860;;:::o;28035:41::-;;;:::o;12604:173::-;-1:-1:-1;;;;;12744:18:0;;;12718:7;12744:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;12604:173::o;37319:36::-;37354:1;37319:36;:::o;28130:43::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28130:43:0;;;;-1:-1:-1;;;28130:43:0;;;;;:::o;46698:1328::-;-1:-1:-1;;;;;46935:27:0;;46885:7;46935:27;;;:16;:27;;;;;;46977:24;46973:65;;47025:1;47018:8;;;;;46973:65;47050:37;47103:57;47145:14;47103:37;:15;47123:16;47103:19;:37::i;:::-;:41;;:57::i;:::-;47050:110;;47209:19;47177:29;:51;47173:747;;;47267:1;47245:23;;47173:747;;;47301:29;47383:21;47351:29;:53;47350:139;;47468:21;47350:139;;;47429:15;47350:139;47301:188;;47534:19;47510:21;:43;47506:403;;;47581:19;47574:26;;;;;;;47506:403;47663:230;47862:30;:15;47882:9;47862:19;:30::i;:::-;47686:130;47759:34;:9;47773:19;47759:13;:34::i;:::-;47686:42;:15;47706:21;47686:19;:42::i;:::-;:46;;:130::i;:::-;47663:198;;:230::i;:::-;47641:252;;47173:747;;-1:-1:-1;;;;;;47930:27:0;;;;;;:16;:27;;;;;:49;;;47960:19;-1:-1:-1;46698:1328:0;;;;;;;:::o;3963:181::-;4021:7;4053:5;;;4077:6;;;;4069:46;;;;-1:-1:-1;;;4069:46:0;;;;;;;:::i;9761:106::-;9849:10;9761:106;:::o;16153:348::-;-1:-1:-1;;;;;16271:19:0;;16263:68;;;;-1:-1:-1;;;16263:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;16346:21:0;;16338:68;;;;-1:-1:-1;;;16338:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;16415:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;16463:32;;;;;16445:6;;16463:32;:::i;:::-;;;;;;;;16153:348;;;:::o;4419:136::-;4477:7;4504:43;4508:1;4511;4504:43;;;;;;;;;;;;;;;;;:3;:43::i;45142:720::-;45289:7;45309:22;45347:156;45390:4;45421;45445:11;45475:13;:11;:13::i;45347:156::-;-1:-1:-1;;;;;45554:26:0;;45514:24;45554:26;;;:20;:26;;;;;;45309:194;;-1:-1:-1;45514:24:0;45554:46;;45309:194;45554:30;:46::i;:::-;45514:86;-1:-1:-1;45617:19:0;;45613:206;;45657:13;45653:99;;;-1:-1:-1;;;;;45691:26:0;;;;;;:20;:26;;;;;:45;;;45653:99;45771:36;45786:4;45792:14;45771:36;;;;;;;:::i;:::-;;;;;;;;45613:206;45838:16;45142:720;-1:-1:-1;;;;;45142:720:0:o;15751:396::-;-1:-1:-1;;;;;15831:21:0;;15823:67;;;;-1:-1:-1;;;15823:67:0;;;;;;;:::i;:::-;15899:49;15920:7;15937:1;15941:6;15899:20;:49::i;:::-;15978:68;16001:6;15978:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15978:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;15957:18:0;;:9;:18;;;;;;;;;;:89;16068:12;;:24;;16085:6;16068:16;:24::i;:::-;16053:12;:39;16104:37;;16130:1;;-1:-1:-1;;;;;16104:37:0;;;;;;;16134:6;;16104:37;:::i;:::-;;;;;;;;15751:396;;:::o;23829:176::-;23912:85;23931:5;23961:23;;;23986:2;23990:5;23938:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;23938:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;23938:58:0;-1:-1:-1;;;;;;23938:58:0;;;;;;;;;;23912:18;:85::i;43609:1162::-;43733:21;43757:15;43767:4;43757:9;:15::i;:::-;43733:39;;43802:57;43833:4;43839:13;43854:4;43802:30;:57::i;:::-;;43906:2;-1:-1:-1;;;;;43898:10:0;:4;-1:-1:-1;;;;;43898:10:0;;43894:644;;43925:19;43947:13;43957:2;43947:9;:13::i;:::-;43925:35;;43975:53;44006:2;44010:11;44023:4;43975:30;:53::i;:::-;-1:-1:-1;;;;;;44078:22:0;;44045:30;44078:22;;;:16;:22;;;;;;44138:156;44078:22;44222:6;44247:2;44268:11;44138:24;:156::i;:::-;-1:-1:-1;;;;;44115:20:0;;;;;;:16;:20;;;;;:179;44410:23;;;:54;;;;-1:-1:-1;44437:27:0;;;44410:54;44406:121;;;-1:-1:-1;;;;;44485:22:0;;44510:1;44485:22;;;:16;:22;;;;;:26;44406:121;43894:644;;;44626:4;;:41;;-1:-1:-1;;;44626:41:0;;-1:-1:-1;;;;;44626:4:0;;;;:35;;:41;;44662:4;;44626:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;44678:4:0;;:39;;-1:-1:-1;;;44678:39:0;;-1:-1:-1;;;;;44678:4:0;;;;-1:-1:-1;44678:35:0;;-1:-1:-1;44678:39:0;;44714:2;;44678:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44730:33;44746:4;44752:2;44756:6;44730:15;:33::i;:::-;43609:1162;;;;:::o;4850:226::-;4970:7;5006:12;4998:6;;;;4990:29;;;;-1:-1:-1;;;4990:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;5042:5:0;;;4850:226::o;48905:98::-;37354:1;48905:98;:::o;16507:78::-;16564:15;;;;:5;;:15;;;;;:::i;:::-;;16507:78;:::o;16591:86::-;16652:19;;;;:7;;:19;;;;;:::i;16683:86::-;16740:9;:23;;-1:-1:-1;;16740:23:0;;;;;;;;;;;;16683:86::o;17975:126::-;18061:15;:32;;-1:-1:-1;;;;;;18061:32:0;-1:-1:-1;;;;;18061:32:0;;;;;;;;;;17975:126::o;33373:855::-;33515:7;;;33574:615;33598:6;:13;33594:1;:17;33574:615;;;33633:29;33665:6;:33;33672:6;33679:1;33672:9;;;;;;;;;;;;;;;;;;;:25;-1:-1:-1;;;;;33665:33:0;;;;;;;;;;;33672:25;33665:33;;;33767:17;;;;33803:29;;33901:9;;33665:33;;-1:-1:-1;33734:203:0;;-1:-1:-1;;;;;33803:29:0;;;;-1:-1:-1;;;33851:31:0;;;;33901:6;;33908:1;;33901:9;;;;;;;;;;;;:21;;;33734:14;:203::i;:::-;33713:224;;33971:206;34008:154;34042:6;34049:1;34042:9;;;;;;;;;;;;;;:22;;;34087:10;34120:11;:17;;:23;34138:4;-1:-1:-1;;;;;34120:23:0;-1:-1:-1;;;;;34120:23:0;;;;;;;;;;;;;34008:11;:154::i;:::-;33971:14;;:18;:206::i;:::-;33954:223;-1:-1:-1;;;33613:3:0;;33574:615;;;-1:-1:-1;34206:14:0;33373:855;-1:-1:-1;;;33373:855:0:o;24013:204::-;24114:95;24133:5;24163:27;;;24192:4;24198:2;24202:5;24140:68;;;;;;;;;;:::i;31382:793::-;-1:-1:-1;;;;;31599:13:0;;;31549:7;31599:13;;;:6;:13;;;;;;;;31643:21;;;;;:15;;;:21;;;;;;31549:7;;31599:13;31549:7;;31733:106;31606:5;31599:13;31817:11;31733:25;:106::i;:::-;31714:125;;31869:8;31856:9;:21;31852:282;;31898:17;;31894:121;;31953:46;31965:12;31979:8;31989:9;31953:11;:46::i;:::-;31936:63;;31894:121;-1:-1:-1;;;;;32031:21:0;;;;;;;:15;;;:21;;;;;;;:32;;;32083:39;;;;;;;;;32055:8;;32083:39;:::i;:::-;;;;;;;;31852:282;-1:-1:-1;32153:14:0;31382:793;-1:-1:-1;;;;;;;31382:793:0:o;15389:356::-;-1:-1:-1;;;;;15469:21:0;;15461:65;;;;-1:-1:-1;;;15461:65:0;;;;;;;:::i;:::-;15535:49;15564:1;15568:7;15577:6;15535:20;:49::i;:::-;15608:12;;:24;;15625:6;15608:16;:24::i;:::-;15593:12;:39;-1:-1:-1;;;;;15660:18:0;;:9;:18;;;;;;;;;;;:30;;15683:6;15660:22;:30::i;:::-;-1:-1:-1;;;;;15639:18:0;;:9;:18;;;;;;;;;;;:51;;;;15702:37;;15639:18;;:9;15702:37;;;;15732:6;;15702:37;:::i;30111:838::-;30314:17;;;;30372:31;;30275:7;;30314:17;-1:-1:-1;;;30372:31:0;;-1:-1:-1;;;;;30372:31:0;30420:15;:38;;30416:86;;;-1:-1:-1;30482:8:0;-1:-1:-1;30475:15:0;;30416:86;30585:29;;30514:16;;30533:152;;30562:8;;-1:-1:-1;;;;;30585:29:0;30629:19;30663:11;30533:14;:152::i;:::-;30514:171;;30714:8;30702;:20;30698:145;;30759:8;30739:11;:17;;:28;;;;30805:15;-1:-1:-1;;;;;30787:44:0;;30822:8;30787:44;;;;;;:::i;:::-;;;;;;;;30698:145;30855:58;;-1:-1:-1;;;;;30897:15:0;30855:58;;-1:-1:-1;;;30855:58:0;;;;;;30933:8;-1:-1:-1;;;30111:838:0;;;;;:::o;5327:471::-;5385:7;5630:6;5626:47;;-1:-1:-1;5660:1:0;5653:8;;5626:47;5697:5;;;5701:1;5697;:5;:1;5721:5;;;;;:10;5713:56;;;;-1:-1:-1;;;5713:56:0;;;;;;;:::i;6266:132::-;6324:7;6351:39;6355:1;6358;6351:39;;;;;;;;;;;;;;;;;:3;:39::i;19554:782::-;19667:2;-1:-1:-1;;;;;19659:10:0;:4;-1:-1:-1;;;;;19659:10:0;;19655:49;;;19686:7;;19655:49;-1:-1:-1;;;;;19720:18:0;;;19716:179;;19755:19;19777:15;19787:4;19777:9;:15::i;:::-;19755:37;-1:-1:-1;19807:76:0;19822:4;19755:37;19858:23;19755:37;19874:6;19858:15;:23::i;:::-;19807:14;:76::i;:::-;19716:179;;-1:-1:-1;;;;;19909:16:0;;;19905:167;;19942:17;19962:13;19972:2;19962:9;:13::i;:::-;19942:33;-1:-1:-1;19990:70:0;20005:2;19942:33;20037:21;19942:33;20051:6;20037:13;:21::i;19990:70::-;19905:167;;20193:15;;-1:-1:-1;;;;;20193:15:0;20223:34;;20219:110;;20274:43;;-1:-1:-1;;;20274:43:0;;-1:-1:-1;;;;;20274:25:0;;;;;:43;;20300:4;;20306:2;;20310:6;;20274:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19554:782;;;;:::o;24584:598::-;24672:27;24680:5;-1:-1:-1;;;;;24672:25:0;;:27::i;:::-;24664:71;;;;-1:-1:-1;;;24664:71:0;;;;;;;:::i;:::-;24809:12;24823:23;24858:5;-1:-1:-1;;;;;24850:19:0;24870:4;24850:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24808:67;;;;24894:7;24886:52;;;;-1:-1:-1;;;24886:52:0;;;;;;;:::i;:::-;24955:17;;:21;24951:224;;25097:10;25086:30;;;;;;;;;;;;:::i;:::-;25078:85;;;;-1:-1:-1;;;25078:85:0;;;;;;;:::i;14850:533::-;-1:-1:-1;;;;;14972:20:0;;14964:70;;;;-1:-1:-1;;;14964:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;15049:23:0;;15041:71;;;;-1:-1:-1;;;15041:71:0;;;;;;;:::i;:::-;15121:47;15142:6;15150:9;15161:6;15121:20;:47::i;:::-;15197:71;15219:6;15197:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15197:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;15177:17:0;;;:9;:17;;;;;;;;;;;:91;;;;15298:20;;;;;;;:32;;15323:6;15298:24;:32::i;:::-;-1:-1:-1;;;;;15275:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;15342:35;;;;;;;;;;15370:6;;15342:35;:::i;35389:868::-;35579:7;35617:22;;;:56;;-1:-1:-1;35656:17:0;;35617:56;:111;;;;35713:15;35690:19;-1:-1:-1;;;;;35690:38:0;;35617:111;:167;;;;35768:16;35745:19;-1:-1:-1;;;;;35745:39:0;;;35617:167;35599:243;;;-1:-1:-1;35818:12:0;35811:19;;35599:243;35854:24;35899:16;35881:15;:34;:97;;35963:15;35881:97;;;35931:16;35881:97;35854:124;-1:-1:-1;35989:17:0;36009:41;35854:124;-1:-1:-1;;;;;36009:41:0;;:20;:41::i;:::-;35989:61;-1:-1:-1;36081:168:0;36236:12;36081:132;36200:12;36081:96;36154:22;36081:50;:17;35989:61;36081:39;:50::i;:::-;:72;;:96::i;:168::-;36061:188;35389:868;-1:-1:-1;;;;;;;35389:868:0:o;34598:310::-;34747:7;34787:113;34863:22;34787:53;34812:27;:12;34829:9;34812:16;:27::i;:::-;34787:20;;:24;:53::i;6886:379::-;7006:7;7108:12;7101:5;7093:28;;;;-1:-1:-1;;;7093:28:0;;;;;;;;:::i;:::-;;7132:9;7148:1;7144;:5;;;;;;;6886:379;-1:-1:-1;;;;;6886:379:0:o;18375:801::-;-1:-1:-1;;;;;18567:23:0;;18478:20;18567:23;;;:16;:23;;;;;;;;;18656:10;:17;;;;;;18509:12;;18567:23;18746:26;;;;;:102;;-1:-1:-1;;;;;;18776:72:0;;:14;:44;18791:28;:21;18817:1;18791:25;:28::i;:::-;18776:44;;;;;;;;;;;-1:-1:-1;18776:44:0;:56;-1:-1:-1;;;;;18776:56:0;:72;18746:102;18742:370;;;18918:8;18865:14;:44;18880:28;:21;18906:1;18880:25;:28::i;:::-;18865:44;;;;;;;;;;;-1:-1:-1;18865:44:0;:61;;-1:-1:-1;;;;;18865:61:0;;;-1:-1:-1;;;18865:61:0;;;;;;;;;18742:370;;;18999:32;;;;;;;;-1:-1:-1;;;;;18999:32:0;;;;;;;;;;;;;;;-1:-1:-1;18959:37:0;;;;;;;;;;;:72;;;;;;;;-1:-1:-1;;;18959:72:0;;;;-1:-1:-1;;;;;;18959:72:0;;;;;;;;;;;;;;19072:28;18974:21;18959:72;19072:25;:28::i;:::-;-1:-1:-1;;;;;19046:23:0;;;;;;:16;:23;;;;;:54;18742:370;19129:39;19142:5;19149:8;19159;19129:39;;;;;;;;:::i;:::-;;;;;;;;18375:801;;;;;;:::o;21153:641::-;21213:4;21694:20;;21524:66;21743:23;;;;;;:42;;-1:-1:-1;;21770:15:0;;;21735:51;-1:-1:-1;;21153:641:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;919:337;;;1034:3;1027:4;1019:6;1015:17;1011:27;1001:2;;-1:-1;;1042:12;1001:2;-1:-1;1072:20;;1112:18;1101:30;;1098:2;;;-1:-1;;1134:12;1098:2;1178:4;1170:6;1166:17;1154:29;;1229:3;1178:4;1209:17;1170:6;1195:32;;1192:41;1189:2;;;1246:1;;1236:12;1189:2;994:262;;;;;:::o;1671:241::-;;1775:2;1763:9;1754:7;1750:23;1746:32;1743:2;;;-1:-1;;1781:12;1743:2;85:6;72:20;97:33;124:5;97:33;:::i;1919:366::-;;;2040:2;2028:9;2019:7;2015:23;2011:32;2008:2;;;-1:-1;;2046:12;2008:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2098:63;-1:-1;2198:2;2237:22;;72:20;97:33;72:20;97:33;:::i;:::-;2206:63;;;;2002:283;;;;;:::o;2292:491::-;;;;2430:2;2418:9;2409:7;2405:23;2401:32;2398:2;;;-1:-1;;2436:12;2398:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2488:63;-1:-1;2588:2;2627:22;;72:20;97:33;72:20;97:33;:::i;:::-;2392:391;;2596:63;;-1:-1;;;2696:2;2735:22;;;;1468:20;;2392:391::o;2790:366::-;;;2911:2;2899:9;2890:7;2886:23;2882:32;2879:2;;;-1:-1;;2917:12;2879:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2969:63;3069:2;3108:22;;;;1468:20;;-1:-1;;;2873:283::o;3163:469::-;;;3338:2;3326:9;3317:7;3313:23;3309:32;3306:2;;;-1:-1;;3344:12;3306:2;3402:17;3389:31;3440:18;;3432:6;3429:30;3426:2;;;-1:-1;;3462:12;3426:2;3599:6;3588:9;3584:22;;;360:3;353:4;345:6;341:17;337:27;327:2;;-1:-1;;368:12;327:2;411:6;398:20;3440:18;430:6;427:30;424:2;;;-1:-1;;460:12;424:2;555:3;3338:2;547:4;539:6;535:17;496:6;521:32;;518:41;515:2;;;-1:-1;;562:12;515:2;3338;492:17;;;;;3482:134;;-1:-1;3300:332;;-1:-1;;;;3300:332::o;3639:257::-;;3751:2;3739:9;3730:7;3726:23;3722:32;3719:2;;;-1:-1;;3757:12;3719:2;671:6;665:13;28840:5;26611:13;26604:21;28818:5;28815:32;28805:2;;-1:-1;;28851:12;3903:1033;;;;;;;;4134:3;4122:9;4113:7;4109:23;4105:33;4102:2;;;-1:-1;;4141:12;4102:2;826:6;813:20;838:54;886:5;838:54;:::i;:::-;4193:84;-1:-1;4314:2;4353:22;;72:20;97:33;72:20;97:33;:::i;:::-;4322:63;-1:-1;4450:2;4435:18;;4422:32;4474:18;4463:30;;;4460:2;;;-1:-1;;4496:12;4460:2;4534:65;4591:7;4582:6;4571:9;4567:22;4534:65;:::i;:::-;4516:83;;-1:-1;4516:83;-1:-1;4664:2;4649:18;;4636:32;;-1:-1;4677:30;;;4674:2;;;-1:-1;;4710:12;4674:2;;4748:65;4805:7;4796:6;4785:9;4781:22;4748:65;:::i;:::-;4730:83;;-1:-1;4730:83;-1:-1;;4850:3;4888:22;;1603:20;27154:4;27143:16;;29348:33;;29338:2;;-1:-1;;29385:12;29338:2;4859:61;;;;4096:840;;;;;;;;;;:::o;4943:241::-;;5047:2;5035:9;5026:7;5022:23;5018:32;5015:2;;;-1:-1;;5053:12;5015:2;1344:6;1331:20;-1:-1;;;;;29130:5;26818:46;29105:5;29102:35;29092:2;;-1:-1;;29141:12;5191:617;;;;;5346:3;5334:9;5325:7;5321:23;5317:33;5314:2;;;-1:-1;;5353:12;5314:2;5436:22;1468:20;5405:63;;5505:2;5548:9;5544:22;1468:20;5513:63;;5613:2;5656:9;5652:22;72:20;97:33;124:5;97:33;:::i;:::-;5308:500;;;;-1:-1;5621:63;;5721:2;5760:22;1468:20;;-1:-1;;5308:500::o;13810:271::-;;6355:5;25952:12;6466:52;6511:6;6506:3;6499:4;6492:5;6488:16;6466:52;:::i;:::-;6530:16;;;;;13944:137;-1:-1;;13944:137::o;14088:222::-;-1:-1;;;;;26938:54;;;;6035:37;;14215:2;14200:18;;14186:124::o;14562:444::-;-1:-1;;;;;26938:54;;;6035:37;;26938:54;;;;14909:2;14894:18;;6035:37;14992:2;14977:18;;13647:37;;;;14745:2;14730:18;;14716:290::o;15013:444::-;-1:-1;;;;;26938:54;;;;6035:37;;-1:-1;;;;;26818:46;;;15360:2;15345:18;;13394:37;26818:46;15443:2;15428:18;;13394:37;15196:2;15181:18;;15167:290::o;15464:333::-;-1:-1;;;;;26938:54;;;;6035:37;;15783:2;15768:18;;13647:37;15619:2;15604:18;;15590:207::o;15804:210::-;26611:13;;26604:21;6149:34;;15925:2;15910:18;;15896:118::o;16547:310::-;;16694:2;16715:17;16708:47;7037:5;25952:12;26391:6;16694:2;16683:9;16679:18;26379:19;7131:52;7176:6;26419:14;16683:9;26419:14;16694:2;7157:5;7153:16;7131:52;:::i;:::-;28614:7;28598:14;-1:-1;;28594:28;7195:39;;;;26419:14;7195:39;;16665:192;-1:-1;;16665:192::o;16864:416::-;17064:2;17078:47;;;7471:2;17049:18;;;26379:19;7507:34;26419:14;;;7487:55;-1:-1;;;7562:12;;;7555:27;7601:12;;;17035:245::o;17287:416::-;17487:2;17501:47;;;7852:2;17472:18;;;26379:19;7888:34;26419:14;;;7868:55;-1:-1;;;7943:12;;;7936:26;7981:12;;;17458:245::o;17710:416::-;17910:2;17924:47;;;8232:2;17895:18;;;26379:19;8268:29;26419:14;;;8248:50;8317:12;;;17881:245::o;18133:416::-;18333:2;18347:47;;;8568:2;18318:18;;;26379:19;-1:-1;;;26419:14;;;8584:42;8645:12;;;18304:245::o;18556:416::-;18756:2;18770:47;;;18741:18;;;26379:19;8932:34;26419:14;;;8912:55;8986:12;;;18727:245::o;18979:416::-;19179:2;19193:47;;;9237:2;19164:18;;;26379:19;-1:-1;;;26419:14;;;9253:44;9316:12;;;19150:245::o;19402:416::-;19602:2;19616:47;;;9567:2;19587:18;;;26379:19;9603:34;26419:14;;;9583:55;-1:-1;;;9658:12;;;9651:25;9695:12;;;19573:245::o;19825:416::-;20025:2;20039:47;;;9946:2;20010:18;;;26379:19;9982:34;26419:14;;;9962:55;-1:-1;;;10037:12;;;10030:38;10087:12;;;19996:245::o;20248:416::-;20448:2;20462:47;;;10338:2;20433:18;;;26379:19;-1:-1;;;26419:14;;;10354:44;10417:12;;;20419:245::o;20671:416::-;20871:2;20885:47;;;10668:2;20856:18;;;26379:19;10704:34;26419:14;;;10684:55;-1:-1;;;10759:12;;;10752:25;10796:12;;;20842:245::o;21094:416::-;21294:2;21308:47;;;11047:2;21279:18;;;26379:19;11083:34;26419:14;;;11063:55;-1:-1;;;11138:12;;;11131:29;11179:12;;;21265:245::o;21517:416::-;21717:2;21731:47;;;11430:2;21702:18;;;26379:19;11466:25;26419:14;;;11446:46;11511:12;;;21688:245::o;21940:416::-;22140:2;22154:47;;;11762:2;22125:18;;;26379:19;11798:34;26419:14;;;11778:55;-1:-1;;;11853:12;;;11846:28;11893:12;;;22111:245::o;22363:416::-;22563:2;22577:47;;;12144:2;22548:18;;;26379:19;12180:34;26419:14;;;12160:55;-1:-1;;;12235:12;;;12228:34;12281:12;;;22534:245::o;22786:416::-;22986:2;23000:47;;;12532:2;22971:18;;;26379:19;12568:29;26419:14;;;12548:50;12617:12;;;22957:245::o;23209:416::-;23409:2;23423:47;;;12868:2;23394:18;;;26379:19;12904:33;26419:14;;;12884:54;12957:12;;;23380:245::o;23632:416::-;23832:2;23846:47;;;13208:2;23817:18;;;26379:19;13244:33;26419:14;;;13224:54;13297:12;;;23803:245::o;24055:222::-;-1:-1;;;;;26818:46;;;;13514:50;;24182:2;24167:18;;24153:124::o;24284:333::-;-1:-1;;;;;26818:46;;;13394:37;;26818:46;;24603:2;24588:18;;13394:37;24439:2;24424:18;;24410:207::o;24624:444::-;-1:-1;;;;;26818:46;;;13394:37;;26818:46;;;;24971:2;24956:18;;13394:37;25054:2;25039:18;;13647:37;;;;24807:2;24792:18;;24778:290::o;25075:222::-;13647:37;;;25202:2;25187:18;;25173:124::o;25304:333::-;13647:37;;;25623:2;25608:18;;13647:37;25459:2;25444:18;;25430:207::o;25644:214::-;27154:4;27143:16;;;;13763:35;;25767:2;25752:18;;25738:120::o;28254:268::-;28319:1;28326:101;28340:6;28337:1;28334:13;28326:101;;;28407:11;;;28401:18;28388:11;;;28381:39;28362:2;28355:10;28326:101;;;28442:6;28439:1;28436:13;28433:2;;;-1:-1;;28319:1;28489:16;;28482:27;28303:219::o;28635:117::-;-1:-1;;;;;26938:54;;28694:35;;28684:2;;28743:1;;28733:12;28684:2;28678:74;:::o

Swarm Source

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