Contract 0x4c8411c5bba98223297388798d6d04ea6da7728a 11

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0ef4ea565dabeae5f22d11f8ae06b9e7e56af935f2206f09454dec6cd08731cfExit1633207202023-12-24 16:27:1158 days 21 hrs ago0xd3953cdd9b6b9ed2a9e99722e974731f27528765 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.0000486 0.1
0x2954e86159592f81205bc8630fa7b205988fd61d1b7ccbc04565748d97eb5dc3Withdraw1523922742023-11-20 20:46:2192 days 17 hrs ago0xa9e14c1df751dc3e710fcb3a92019667ae7fcf2d IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00005636 0.1
0x9f17c52c0cab6302067958dc1d202d10156d2811fbb6ab4e74fcec338ec9f808Get Reward1523921572023-11-20 20:45:5092 days 17 hrs ago0xa9e14c1df751dc3e710fcb3a92019667ae7fcf2d IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00004488 0.1
0xfb2873fb542c177e305d3aa34336c4a84b1b6d1fa353de5bfa53e17b57526e89Stake1523918972023-11-20 20:44:4192 days 17 hrs ago0xa9e14c1df751dc3e710fcb3a92019667ae7fcf2d IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00006057 0.1
0xf502dc1e10cc9752ea33f510d61eaf1b7d2f468c0d78c1138d6fcc403d635a3dWithdraw1517087662023-11-18 16:59:4494 days 21 hrs ago0x4a228f14d2130e8e4636418b52aaf3d6b4e887d3 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000060710.1
0x226de6835cf8dec5b6dbdd30ea74854f12616d362f6bd8cb1aa7789fbdadf5d3Get Reward1517046782023-11-18 16:41:5594 days 21 hrs ago0x4a228f14d2130e8e4636418b52aaf3d6b4e887d3 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000040070.1
0xa04209cf804c0288e20373ab8c2a0b426519a6d15aac04bbb33a6bbed8f4a8bcWithdraw1516491862023-11-18 12:45:1095 days 1 hr ago0x5c183b6b02444977c7db8498bd608a9add62924a IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00003936 0.1
0x5ae3ab15f76764959d8231d18e53002a9fed25878f86adb463e9a884073060bbGet Reward1516489502023-11-18 12:44:0995 days 1 hr ago0x5c183b6b02444977c7db8498bd608a9add62924a IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00003152 0.1
0x038c356efa406ec6be4d7c707c7416ff83f48b6e1bb993afcc700376103c2c0cStake1514474382023-11-17 21:55:0095 days 16 hrs ago0x4a228f14d2130e8e4636418b52aaf3d6b4e887d3 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00004880.1
0x6acf79a635d6bc9646e0ce6cc749599a1a9a727b3c1356eaf579f466ef65c0a0Withdraw1514217932023-11-17 19:58:2795 days 18 hrs ago0x9bd215c2530df574657510b2f991d5c326df7c50 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00006667 0.1
0x4279c947fd5e0e3b59ced02a08367dee52adb27d7ed6245d0a60ed4635619851Stake1514214342023-11-17 19:56:4795 days 18 hrs ago0x9bd215c2530df574657510b2f991d5c326df7c50 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00007184 0.1
0xafe8bb9efc79e8d251893cd9940d2d9667846e231ae47bcd8ee55c215fd65a42Exit1513742112023-11-17 16:26:4395 days 21 hrs ago0xde0223237ae9776a0654fda6816cdac50edd72b5 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000086320.1
0x1a41c760d47cd67156c0e0a204b484decaad8559c5deec38db6d14c891fb14f6Exit1427460592023-10-22 0:40:01122 days 13 hrs ago0xe867cc15f6d6839d1e479041fda51ffc6db764e6 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00002403 0.1
0x3c46c1d5106892fdf56f22c95e953d9ce17c577a34afdef46d0a6ddb489be295Exit1424443912023-10-21 0:35:37123 days 13 hrs ago0x2b83ac024b0a4ba3f93776cacb61d98310614afe IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000027380.1
0xef6af26898c60c814a64c2dcaf262faa7808be907b3e0444bfc6283381be8aacStake1421292862023-10-19 22:54:54124 days 15 hrs ago0x5c183b6b02444977c7db8498bd608a9add62924a IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00003373 0.1
0x414ed2ef6d93cdf154169d327407fc42844fb4dd738e382b9d51e9008f557cbeExit1408152712023-10-15 13:06:00129 days 1 hr ago0x0246b0a279dd8466ecba9b3b0af5f51076763e09 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000027120.1
0x25b38a8a8076eb6f0a7b5434220e12dacfbc0da0ae65625e7517a563125e4a29Exit1406564902023-10-14 22:14:48129 days 16 hrs ago0x860fb541eca5869cf09cc2812d130df64d2becdf IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00002167 0.1
0xbb149174f7b4437526d67f54f900aa39df3256c0f36f2da40f3f4a636fe69667Get Reward1406564392023-10-14 22:14:15129 days 16 hrs ago0x860fb541eca5869cf09cc2812d130df64d2becdf IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00002175 0.1
0x8b0b88a9bf2b00e5ea5dbd96145057b4522b17beb18843d7740211afc6ee29deExit1405086122023-10-14 9:44:05130 days 4 hrs ago0x5f42a44fe2d0a98f8860b65d59697f9ca332e85b IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00002484 0.1
0x55d842658c3e02bcb59563d6e7cd6c40ae2914e81a24b696b3b86d5577e2730bExit1404705772023-10-14 6:45:51130 days 7 hrs ago0xe1a5317484a6831b80e6d0b0d57e737460d398b5 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00002293 0.1
0xfdc991ae3105aca47b89b6b94c669cb8648df37d266310d8339a96848225b4d8Stake1404171052023-10-14 1:53:27130 days 12 hrs ago0x2b83ac024b0a4ba3f93776cacb61d98310614afe IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000022960.1
0x8b871e13d92cd245f8fce595b67d6ff3b37ae0e8f85eab24fa21c66dc9e48fa6Exit1403188692023-10-13 16:48:45130 days 21 hrs ago0xc2e16ff2649ac58b1494de688c5bcda40d629397 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00004072 0.1
0x24807243ada506589b6770f6243ab6d7d1afe6490beccf757ac0fd685f2e2e0dGet Reward1401763972023-10-13 5:55:49131 days 8 hrs ago0xe867cc15f6d6839d1e479041fda51ffc6db764e6 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.00001945 0.1
0xaf1d419cbb6ce3ad6dc760bed6a586fffec6e64ecfdfe5dd0925137e56371cbaGet Reward1400475482023-10-12 18:23:00131 days 19 hrs ago0x0246b0a279dd8466ecba9b3b0af5f51076763e09 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000033770.1
0x77f178b8639c58eb04a377c1b27bf174b23d83df595a7fe52463123d89ce8944Withdraw1400467422023-10-12 18:19:06131 days 20 hrs ago0x0246b0a279dd8466ecba9b3b0af5f51076763e09 IN  0x4c8411c5bba98223297388798d6d04ea6da7728a0 ETH0.000041550.1
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x0F54A2b462aAF2F37A1C9771c7D9A1d8f9d10A6C
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StakingRewardsMulti

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2023-04-19
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`.
        // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`.
        // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`.
        // Using an algorithm similar to the msb computation, we are able to compute `result = 2**(k/2)` which is a
        // good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1;
        uint256 x = a;
        if (x >> 128 > 0) {
            x >>= 128;
            result <<= 64;
        }
        if (x >> 64 > 0) {
            x >>= 64;
            result <<= 32;
        }
        if (x >> 32 > 0) {
            x >>= 32;
            result <<= 16;
        }
        if (x >> 16 > 0) {
            x >>= 16;
            result <<= 8;
        }
        if (x >> 8 > 0) {
            x >>= 8;
            result <<= 4;
        }
        if (x >> 4 > 0) {
            x >>= 4;
            result <<= 2;
        }
        if (x >> 2 > 0) {
            result <<= 1;
        }

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        uint256 result = sqrt(a);
        if (rounding == Rounding.Up && result * result < a) {
            result += 1;
        }
        return result;
    }
}

// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

    /**
     * @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 a - b;
    }

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// Inheritance

// https://docs.synthetix.io/contracts/source/interfaces/istakingrewards
interface IStakingRewards {
    // Views
    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function getRewardForDuration() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    // Mutative

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function getReward() external;

    function exit() external;
}

// https://docs.synthetix.io/contracts/source/contracts/stakingrewards
contract StakingRewardsMulti is ReentrancyGuard, Pausable, Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20Metadata;

    /* ========== STATE VARIABLES ========== */

    IERC20Metadata[] public rewardsTokens;
    IERC20Metadata public stakingToken;
    uint256 public periodFinish = 0;
    uint256[] public rewardRates;
    uint256 public rewardsDuration = 4 weeks;
    uint256 public lastUpdateTime;
    uint256[] public rewardsPerTokenStored;

    mapping(address => mapping (uint256 => uint256)) public userRewardPerTokenPaid;
    mapping(address => mapping (uint256 => uint256)) public rewards;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        IERC20Metadata[] memory _rewardsTokens,
        IERC20Metadata _stakingToken
    ) Ownable() {
        rewardsTokens = _rewardsTokens;
        stakingToken = IERC20Metadata(_stakingToken);

        rewardRates = new uint256[](_rewardsTokens.length);
        rewardsPerTokenStored = new uint256[](_rewardsTokens.length);
    }

    /* ========== VIEWS ========== */

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardsPerToken() public view returns (uint256[] memory) {
        if (_totalSupply == 0) {
            return rewardsPerTokenStored;
        }

        uint256[] memory r = new uint256[](rewardsTokens.length);
        for (uint256 i = 0; i < r.length; i++) {
            r[i] = rewardsPerTokenStored[i].add(
                lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRates[i]).mul(1e18).div(_totalSupply)
            );
        }

        return r;
    }

    function earned(address account) public view returns (uint256[] memory) {
        uint256[] memory r = rewardsPerToken();

        for (uint256 i = 0; i < r.length; i++) {
            r[i] = _balances[account].mul(r[i].sub(userRewardPerTokenPaid[account][i])).div(1e18).add(rewards[account][i]);
        }

        return r;
    }

    function getRewardForDuration() external view returns (uint256[] memory) {
        uint256[] memory r = new uint256[](rewardsTokens.length);

        for (uint256 i = 0; i < r.length; i++) {
            r[i] = rewardRates[i].mul(rewardsDuration);
        }

        return r;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount) external nonReentrant whenNotPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward;

        for (uint256 i = 0; i < rewardsTokens.length; i++) {
            reward = rewards[msg.sender][i];
            if (rewardsTokens[i].decimals() < 18) {
                uint256 normalization = 10**(uint256(18).sub(uint256(rewardsTokens[i].decimals())));
                reward = reward.div(normalization);
            }
            if (reward > 0) {
                rewards[msg.sender][i] = 0;
                rewardsTokens[i].safeTransfer(msg.sender, reward);
                emit RewardPaid(address(rewardsTokens[i]), msg.sender, reward);
            }
        }
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount(uint256[] calldata _rewards) external onlyOwner updateReward(address(0)) {
        assert(_rewards.length == rewardsTokens.length);

        uint256 normalization;
        uint256[] memory reward = _rewards;
        for (uint256 i = 0; i < rewardsTokens.length; i++) {
            uint256 balance = rewardsTokens[i].balanceOf(address(this));
            if (rewardsTokens[i].decimals() < 18) {
                normalization = 10**(uint256(18).sub(uint256(rewardsTokens[i].decimals())));
                reward[i] = _rewards[i].mul(normalization);
                balance = balance.mul(normalization);
            }
            // Ensure the provided reward amount is not more than the balance in the contract.
            // This keeps the reward rate in the right range, preventing overflows due to
            // very high values of rewardRate in the earned and rewardsPerToken functions;
            // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
            require(rewardRates[i] <= balance.div(rewardsDuration), "Provided reward too high");
        }
         
        if (block.timestamp >= periodFinish) {
            for (uint256 i = 0; i < rewardsTokens.length; i++) {
                rewardRates[i] = reward[i].div(rewardsDuration);
            }
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);

            uint256 leftover;
            for (uint256 i = 0; i < rewardsTokens.length; i++) {
                leftover = remaining.mul(rewardRates[i]);
                rewardRates[i] = reward[i].add(leftover).div(rewardsDuration);
            }
        }

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token");
        IERC20Metadata(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardsPerTokenStored = rewardsPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            uint256[] memory accountEarned = earned(account);
            for (uint256 i = 0; i < rewardsTokens.length; i++) {
                rewards[account][i] = accountEarned[i];
                userRewardPerTokenPaid[account][i] = rewardsPerTokenStored[i];
            }
        }
        _;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256[] reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed token, address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20Metadata[]","name":"_rewardsTokens","type":"address[]"},{"internalType":"contract IERC20Metadata","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"reward","type":"uint256[]"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_rewards","type":"uint256[]"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerToken","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardsPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardsTokens","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018d5760003560e01c806380faa57d116100de578063c8f33c9111610097578063e9fad8ee11610071578063e9fad8ee14610364578063ebe2b12b1461036c578063f2caeb1e14610375578063f2fde38b1461038857600080fd5b8063c8f33c9114610335578063cc1a378f1461033e578063e71e7f781461035157600080fd5b806380faa57d146102b35780638980f11f146102bb5780638da5cb5b146102ce578063a694fc3a146102e4578063b6d0dcd8146102f7578063b933ceac1461030a57600080fd5b80635c975abb1161014b57806370641a361161012557806370641a361461024f57806370a0823114610257578063715018a61461028057806372f702f31461028857600080fd5b80635c975abb146101fb57806364373aa8146102115780636bc9b5611461022457600080fd5b80628cc2621461019257806318160ddd146101bb5780631c1f78eb146101cd5780632e1a7d4d146101d5578063386a9525146101ea5780633d18b912146101f3575b600080fd5b6101a56101a0366004611a79565b61039b565b6040516101b29190611a94565b60405180910390f35b600b545b6040519081526020016101b2565b6101a5610493565b6101e86101e3366004611ad8565b610553565b005b6101bf60065481565b6101e8610726565b60015460ff1660405190151581526020016101b2565b6101bf61021f366004611ad8565b610a65565b6101bf610232366004611af1565b600960209081526000928352604080842090915290825290205481565b6101a5610a86565b6101bf610265366004611a79565b6001600160a01b03166000908152600c602052604090205490565b6101e8610be9565b60035461029b906001600160a01b031681565b6040516001600160a01b0390911681526020016101b2565b6101bf610bfb565b6101e86102c9366004611af1565b610c0e565b60015461010090046001600160a01b031661029b565b6101e86102f2366004611ad8565b610cea565b61029b610305366004611ad8565b610eac565b6101bf610318366004611af1565b600a60209081526000928352604080842090915290825290205481565b6101bf60075481565b6101e861034c366004611ad8565b610ed6565b6101e861035f366004611b1b565b610fb6565b6101e86114a6565b6101bf60045481565b6101bf610383366004611ad8565b6114c7565b6101e8610396366004611a79565b6114d7565b606060006103a7610a86565b905060005b815181101561048c576001600160a01b0384166000818152600a6020908152604080832085845282528083205493835260098252808320858452909152902054835161045d929161045791670de0b6b3a76400009161045191610432919089908990811061041c5761041c611b90565b602002602001015161154d90919063ffffffff16565b6001600160a01b038a166000908152600c602052604090205490611562565b9061156e565b9061157a565b82828151811061046f5761046f611b90565b60209081029190910101528061048481611bbc565b9150506103ac565b5092915050565b60025460609060009067ffffffffffffffff8111156104b4576104b4611bd5565b6040519080825280602002602001820160405280156104dd578160200160208202803683370190505b50905060005b815181101561054d5761051e6006546005838154811061050557610505611b90565b906000526020600020015461156290919063ffffffff16565b82828151811061053057610530611b90565b60209081029190910101528061054581611bbc565b9150506104e3565b50919050565b61055b611586565b33610564610a86565b8051610578916008916020909101906119fd565b50610581610bfb565b6007556001600160a01b0381161561064357600061059e8261039b565b905060005b600254811015610640578181815181106105bf576105bf611b90565b6020908102919091018101516001600160a01b0385166000908152600a835260408082208583529093529190912055600880548290811061060257610602611b90565b60009182526020808320909101546001600160a01b03861683526009825260408084208585529092529120558061063881611bbc565b9150506105a3565b50505b6000821161068c5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064015b60405180910390fd5b600b54610699908361154d565b600b55336000908152600c60205260409020546106b6908361154d565b336000818152600c60205260409020919091556003546106e2916001600160a01b0390911690846115df565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2506107236001600055565b50565b61072e611586565b33610737610a86565b805161074b916008916020909101906119fd565b50610754610bfb565b6007556001600160a01b038116156108165760006107718261039b565b905060005b6002548110156108135781818151811061079257610792611b90565b6020908102919091018101516001600160a01b0385166000908152600a83526040808220858352909352919091205560088054829081106107d5576107d5611b90565b60009182526020808320909101546001600160a01b03861683526009825260408084208585529092529120558061080b81611bbc565b915050610776565b50505b6000805b600254811015610a5657336000908152600a60209081526040808320848452909152902054600280549193506012918390811061085957610859611b90565b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce567926004808401938290030181865afa1580156108a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cb9190611beb565b60ff161015610984576000610969600283815481106108ec576108ec611b90565b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce567926004808401938290030181865afa15801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190611beb565b60129060ff1661154d565b61097490600a611cf9565b9050610980838261156e565b9250505b8115610a4457336000818152600a60209081526040808320858452909152812055600280546109dc92918591859081106109c0576109c0611b90565b6000918252602090912001546001600160a01b031691906115df565b336001600160a01b0316600282815481106109f9576109f9611b90565b600091825260209182902001546040518581526001600160a01b03909116917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e910160405180910390a35b80610a4e81611bbc565b91505061081a565b505050610a636001600055565b565b60088181548110610a7557600080fd5b600091825260209091200154905081565b6060600b54600003610ae8576008805480602002602001604051908101604052809291908181526020018280548015610ade57602002820191906000526020600020905b815481526020019060010190808311610aca575b5050505050905090565b60025460009067ffffffffffffffff811115610b0657610b06611bd5565b604051908082528060200260200182016040528015610b2f578160200160208202803683370190505b50905060005b815181101561054d57610bba610b8e600b54610451670de0b6b3a7640000610b8860058781548110610b6957610b69611b90565b9060005260206000200154610b88600754610b82610bfb565b9061154d565b90611562565b60088381548110610ba157610ba1611b90565b906000526020600020015461157a90919063ffffffff16565b828281518110610bcc57610bcc611b90565b602090810291909101015280610be181611bbc565b915050610b35565b610bf1611647565b610a6360006116a7565b6000610c0942600454611701565b905090565b610c16611647565b6003546001600160a01b0390811690831603610c7e5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b6064820152608401610683565b600154610ca49061010090046001600160a01b03166001600160a01b03841690836115df565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b610cf2611586565b610cfa611717565b33610d03610a86565b8051610d17916008916020909101906119fd565b50610d20610bfb565b6007556001600160a01b03811615610de2576000610d3d8261039b565b905060005b600254811015610ddf57818181518110610d5e57610d5e611b90565b6020908102919091018101516001600160a01b0385166000908152600a8352604080822085835290935291909120556008805482908110610da157610da1611b90565b60009182526020808320909101546001600160a01b038616835260098252604080842085855290925291205580610dd781611bbc565b915050610d42565b50505b60008211610e235760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b6044820152606401610683565b600b54610e30908361157a565b600b55336000908152600c6020526040902054610e4d908361157a565b336000818152600c6020526040902091909155600354610e7a916001600160a01b0390911690308561175d565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610710565b60028181548110610ebc57600080fd5b6000918252602090912001546001600160a01b0316905081565b610ede611647565b6004544211610f7b5760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a401610683565b60068190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39060200160405180910390a150565b610fbe611647565b6000610fc8610a86565b8051610fdc916008916020909101906119fd565b50610fe5610bfb565b6007556001600160a01b038116156110a75760006110028261039b565b905060005b6002548110156110a45781818151811061102357611023611b90565b6020908102919091018101516001600160a01b0385166000908152600a835260408082208583529093529190912055600880548290811061106657611066611b90565b60009182526020808320909101546001600160a01b03861683526009825260408084208585529092529120558061109c81611bbc565b915050611007565b50505b60025482146110b8576110b8611d05565b60008084848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b60025481101561131c5760006002828154811061111057611110611b90565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611161573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111859190611d1b565b905060126002838154811061119c5761119c611b90565b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce567926004808401938290030181865afa1580156111ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120e9190611beb565b60ff16101561128f5761122d600283815481106108ec576108ec611b90565b61123890600a611cf9565b93506112658488888581811061125057611250611b90565b9050602002013561156290919063ffffffff16565b83838151811061127757611277611b90565b602090810291909101015261128c8185611562565b90505b60065461129d90829061156e565b600583815481106112b0576112b0611b90565b906000526020600020015411156113095760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610683565b508061131481611bbc565b9150506110f1565b5060045442106113985760005b6002548110156113925761136160065483838151811061134b5761134b611b90565b602002602001015161156e90919063ffffffff16565b6005828154811061137457611374611b90565b6000918252602090912001558061138a81611bbc565b915050611329565b50611451565b6004546000906113a8904261154d565b90506000805b60025481101561144d576113e8600582815481106113ce576113ce611b90565b90600052602060002001548461156290919063ffffffff16565b915061141c6006546104518487858151811061140657611406611b90565b602002602001015161157a90919063ffffffff16565b6005828154811061142f5761142f611b90565b6000918252602090912001558061144581611bbc565b9150506113ae565b5050505b426007819055600654611464919061157a565b6004556040517f56e044f46d9f4cfbd2e35f9c3be90fdd82133d7ac461f5b91eeff83cd4035ff190611497908390611a94565b60405180910390a15050505050565b336000908152600c60205260409020546114bf90610553565b610a63610726565b60058181548110610a7557600080fd5b6114df611647565b6001600160a01b0381166115445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610683565b610723816116a7565b60006115598284611d34565b90505b92915050565b60006115598284611d47565b60006115598284611d5e565b60006115598284611d80565b6002600054036115d85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610683565b6002600055565b6040516001600160a01b03831660248201526044810182905261164290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261179b565b505050565b6001546001600160a01b03610100909104163314610a635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610683565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106117105781611559565b5090919050565b60015460ff1615610a635760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610683565b6040516001600160a01b03808516602483015283166044820152606481018290526117959085906323b872dd60e01b9060840161160b565b50505050565b60006117f0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661186d9092919063ffffffff16565b805190915015611642578080602001905181019061180e9190611d93565b6116425760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610683565b606061187c8484600085611884565b949350505050565b6060824710156118e55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610683565b600080866001600160a01b031685876040516119019190611dd9565b60006040518083038185875af1925050503d806000811461193e576040519150601f19603f3d011682016040523d82523d6000602084013e611943565b606091505b50915091506119548783838761195f565b979650505050505050565b606083156119ce5782516000036119c7576001600160a01b0385163b6119c75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610683565b508161187c565b61187c83838151156119e35781518083602001fd5b8060405162461bcd60e51b81526004016106839190611df5565b828054828255906000526020600020908101928215611a38579160200282015b82811115611a38578251825591602001919060010190611a1d565b50611a44929150611a48565b5090565b5b80821115611a445760008155600101611a49565b80356001600160a01b0381168114611a7457600080fd5b919050565b600060208284031215611a8b57600080fd5b61155982611a5d565b6020808252825182820181905260009190848201906040850190845b81811015611acc57835183529284019291840191600101611ab0565b50909695505050505050565b600060208284031215611aea57600080fd5b5035919050565b60008060408385031215611b0457600080fd5b611b0d83611a5d565b946020939093013593505050565b60008060208385031215611b2e57600080fd5b823567ffffffffffffffff80821115611b4657600080fd5b818501915085601f830112611b5a57600080fd5b813581811115611b6957600080fd5b8660208260051b8501011115611b7e57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611bce57611bce611ba6565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611bfd57600080fd5b815160ff81168114611c0e57600080fd5b9392505050565b600181815b80851115611c50578160001904821115611c3657611c36611ba6565b80851615611c4357918102915b93841c9390800290611c1a565b509250929050565b600082611c675750600161155c565b81611c745750600061155c565b8160018114611c8a5760028114611c9457611cb0565b600191505061155c565b60ff841115611ca557611ca5611ba6565b50506001821b61155c565b5060208310610133831016604e8410600b8410161715611cd3575081810a61155c565b611cdd8383611c15565b8060001904821115611cf157611cf1611ba6565b029392505050565b60006115598383611c58565b634e487b7160e01b600052600160045260246000fd5b600060208284031215611d2d57600080fd5b5051919050565b8181038181111561155c5761155c611ba6565b808202811582820484141761155c5761155c611ba6565b600082611d7b57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561155c5761155c611ba6565b600060208284031215611da557600080fd5b81518015158114611c0e57600080fd5b60005b83811015611dd0578181015183820152602001611db8565b50506000910152565b60008251611deb818460208701611db5565b9190910192915050565b6020815260008251806020840152611e14816040850160208701611db5565b601f01601f1916919091016040019291505056fea26469706673582212209b791eb2f46e82c47faf719c63808856abf801a1d83e01e3703de1dd3b277cf664736f6c63430008130033

Deployed ByteCode Sourcemap

45072:7923:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47117:338;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;46258:93;46331:12;;46258:93;;;1166:25:1;;;1154:2;1139:18;46258:93:0;1020:177:1;47463:289:0;;;:::i;48205:357::-;;;;;;:::i;:::-;;:::i;:::-;;45431:40;;;;;;48570:683;;;:::i;40651:86::-;40722:7;;;;40651:86;;1552:14:1;;1545:22;1527:41;;1515:2;1500:18;40651:86:0;1387:187:1;45514:38:0;;;;;;:::i;:::-;;:::i;45561:78::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;46618:491;;;:::i;46359:112::-;;;;;;:::i;:::-;-1:-1:-1;;;;;46445:18:0;46418:7;46445:18;;;:9;:18;;;;;;;46359:112;43430:103;;;:::i;45317:34::-;;;;;-1:-1:-1;;;;;45317:34:0;;;;;;-1:-1:-1;;;;;2024:32:1;;;2006:51;;1994:2;1979:18;45317:34:0;1838:225:1;46479:131:0;;;:::i;51368:312::-;;;;;;:::i;:::-;;:::i;42782:87::-;42855:6;;;;;-1:-1:-1;;;;;42855:6:0;42782:87;;47814:383;;;;;;:::i;:::-;;:::i;45273:37::-;;;;;;:::i;:::-;;:::i;45646:63::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;45478:29;;;;;;51688:360;;;;;;:::i;:::-;;:::i;49422:1831::-;;;;;;:::i;:::-;;:::i;49261:97::-;;;:::i;45358:31::-;;;;;;45396:28;;;;;;:::i;:::-;;:::i;43688:201::-;;;;;;:::i;:::-;;:::i;47117:338::-;47171:16;47200:18;47221:17;:15;:17::i;:::-;47200:38;;47256:9;47251:176;47275:1;:8;47271:1;:12;47251:176;;;-1:-1:-1;;;;;47395:16:0;;;;;;:7;:16;;;;;;;;:19;;;;;;;;;47344:31;;;:22;:31;;;;;:34;;;;;;;;;47335:4;;47312:103;;47395:19;47312:78;;47385:4;;47312:68;;47335:44;;47344:34;47335:1;;47412;;47335:4;;;;;;:::i;:::-;;;;;;;:8;;:44;;;;:::i;:::-;-1:-1:-1;;;;;47312:18:0;;;;;;:9;:18;;;;;;;:22;:68::i;:::-;:72;;:78::i;:::-;:82;;:103::i;:::-;47305:1;47307;47305:4;;;;;;;;:::i;:::-;;;;;;;;;;:110;47285:3;;;;:::i;:::-;;;;47251:176;;;-1:-1:-1;47446:1:0;47117:338;-1:-1:-1;;47117:338:0:o;47463:289::-;47582:13;:20;47518:16;;47547:18;;47568:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47568:35:0;;47547:56;;47621:9;47616:108;47640:1;:8;47636:1;:12;47616:108;;;47677:35;47696:15;;47677:11;47689:1;47677:14;;;;;;;;:::i;:::-;;;;;;;;;:18;;:35;;;;:::i;:::-;47670:1;47672;47670:4;;;;;;;;:::i;:::-;;;;;;;;;;:42;47650:3;;;;:::i;:::-;;;;47616:108;;;-1:-1:-1;47743:1:0;47463:289;-1:-1:-1;47463:289:0:o;48205:357::-;37660:21;:19;:21::i;:::-;48272:10:::1;52175:17;:15;:17::i;:::-;52151:41:::0;;::::1;::::0;:21:::1;::::0;:41:::1;::::0;;::::1;::::0;::::1;:::i;:::-;;52220:26;:24;:26::i;:::-;52203:14;:43:::0;-1:-1:-1;;;;;52261:21:0;::::1;::::0;52257:320:::1;;52299:30;52332:15;52339:7;52332:6;:15::i;:::-;52299:48;;52367:9;52362:204;52386:13;:20:::0;52382:24;::::1;52362:204;;;52454:13;52468:1;52454:16;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;52432:16:0;::::1;;::::0;;;:7:::1;:16:::0;;;;;;:19;;;;;;;;;;:38;52526:21:::1;:24:::0;;52449:1;;52526:24;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;52489:31:0;::::1;::::0;;:22:::1;:31:::0;;;;;;:34;;;;;;;;:61;52521:1;52408:3:::1;52521:1:::0;52408:3:::1;:::i;:::-;;;;52362:204;;;;52284:293;52257:320;48312:1:::2;48303:6;:10;48295:40;;;::::0;-1:-1:-1;;;48295:40:0;;3634:2:1;48295:40:0::2;::::0;::::2;3616:21:1::0;3673:2;3653:18;;;3646:30;-1:-1:-1;;;3692:18:1;;;3685:47;3749:18;;48295:40:0::2;;;;;;;;;48361:12;::::0;:24:::2;::::0;48378:6;48361:16:::2;:24::i;:::-;48346:12;:39:::0;48430:10:::2;48420:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;48446:6;48420:25:::2;:33::i;:::-;48406:10;48396:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;48464:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;48464:12:0;;::::2;::::0;48502:6;48464:25:::2;:45::i;:::-;48525:29;::::0;1166:25:1;;;48535:10:0::2;::::0;48525:29:::2;::::0;1154:2:1;1139:18;48525:29:0::2;;;;;;;;37692:1:::1;37704:20:::0;37098:1;38220:7;:22;38037:213;37704:20;48205:357;:::o;48570:683::-;37660:21;:19;:21::i;:::-;48624:10:::1;52175:17;:15;:17::i;:::-;52151:41:::0;;::::1;::::0;:21:::1;::::0;:41:::1;::::0;;::::1;::::0;::::1;:::i;:::-;;52220:26;:24;:26::i;:::-;52203:14;:43:::0;-1:-1:-1;;;;;52261:21:0;::::1;::::0;52257:320:::1;;52299:30;52332:15;52339:7;52332:6;:15::i;:::-;52299:48;;52367:9;52362:204;52386:13;:20:::0;52382:24;::::1;52362:204;;;52454:13;52468:1;52454:16;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;52432:16:0;::::1;;::::0;;;:7:::1;:16:::0;;;;;;:19;;;;;;;;;;:38;52526:21:::1;:24:::0;;52449:1;;52526:24;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;52489:31:0;::::1;::::0;;:22:::1;:31:::0;;;;;;:34;;;;;;;;:61;52521:1;52408:3:::1;52521:1:::0;52408:3:::1;:::i;:::-;;;;52362:204;;;;52284:293;52257:320;48647:14:::2;::::0;48674:572:::2;48698:13;:20:::0;48694:24;::::2;48674:572;;;48757:10;48749:19;::::0;;;:7:::2;:19;::::0;;;;;;;:22;;;;;;;;;48790:13:::2;:16:::0;;48749:22;;-1:-1:-1;48820:2:0::2;::::0;48769:1;;48790:16;::::2;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;;::::2;::::0;:27:::2;::::0;;-1:-1:-1;;;48790:27:0;;;;-1:-1:-1;;;;;48790:16:0;;::::2;::::0;:25:::2;::::0;:27:::2;::::0;;::::2;::::0;;;;;;:16;:27:::2;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:32;;;48786:209;;;48843:21;48872:53;48896:13;48910:1;48896:16;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;;::::2;::::0;:27:::2;::::0;;-1:-1:-1;;;48896:27:0;;;;-1:-1:-1;;;;;48896:16:0;;::::2;::::0;:25:::2;::::0;:27:::2;::::0;;::::2;::::0;;;;;;:16;:27:::2;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48880:2;::::0;48888:36:::2;;48872:15;:53::i;:::-;48867:59;::::0;:2:::2;:59;:::i;:::-;48843:83:::0;-1:-1:-1;48954:25:0::2;:6:::0;48843:83;48954:10:::2;:25::i;:::-;48945:34;;48824:171;48786:209;49013:10:::0;;49009:226:::2;;49052:10;49069:1;49044:19:::0;;;:7:::2;:19;::::0;;;;;;;:22;;;;;;;;:26;49089:13:::2;:16:::0;;:49:::2;::::0;49052:10;49131:6;;49064:1;;49089:16;::::2;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;::::0;-1:-1:-1;;;;;49089:16:0::2;::::0;:49;:29:::2;:49::i;:::-;49200:10;-1:-1:-1::0;;;;;49162:57:0::2;49181:13;49195:1;49181:16;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;;::::2;::::0;49162:57:::2;::::0;1166:25:1;;;-1:-1:-1;;;;;49181:16:0;;::::2;::::0;49162:57:::2;::::0;1139:18:1;49162:57:0::2;;;;;;;49009:226;48720:3:::0;::::2;::::0;::::2;:::i;:::-;;;;48674:572;;;;48636:617;37692:1:::1;37704:20:::0;37098:1;38220:7;:22;38037:213;37704:20;48570:683::o;45514:38::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45514:38:0;:::o;46618:491::-;46666:16;46699:12;;46715:1;46699:17;46695:78;;46740:21;46733:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46618:491;:::o;46695:78::-;46820:13;:20;46785:18;;46806:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46806:35:0;;46785:56;;46857:9;46852:229;46876:1;:8;46872:1;:12;46852:229;;;46913:156;46960:94;47041:12;;46960:76;47031:4;46960:66;47011:11;47023:1;47011:14;;;;;;;;:::i;:::-;;;;;;;;;46960:46;46991:14;;46960:26;:24;:26::i;:::-;:30;;:46::i;:::-;:50;;:66::i;:94::-;46913:21;46935:1;46913:24;;;;;;;;:::i;:::-;;;;;;;;;:28;;:156;;;;:::i;:::-;46906:1;46908;46906:4;;;;;;;;:::i;:::-;;;;;;;;;;:163;46886:3;;;;:::i;:::-;;;;46852:229;;43430:103;42668:13;:11;:13::i;:::-;43495:30:::1;43522:1;43495:18;:30::i;46479:131::-:0;46536:7;46563:39;46572:15;46589:12;;46563:8;:39::i;:::-;46556:46;;46479:131;:::o;51368:312::-;42668:13;:11;:13::i;:::-;51495:12:::1;::::0;-1:-1:-1;;;;;51495:12:0;;::::1;51471:37:::0;;::::1;::::0;51463:83:::1;;;::::0;-1:-1:-1;;;51463:83:0;;5632:2:1;51463:83:0::1;::::0;::::1;5614:21:1::0;5671:2;5651:18;;;5644:30;5710:34;5690:18;;;5683:62;-1:-1:-1;;;5761:18:1;;;5754:31;5802:19;;51463:83:0::1;5430:397:1::0;51463:83:0::1;42855:6:::0;;51557:63:::1;::::0;42855:6;;;-1:-1:-1;;;;;42855:6:0;-1:-1:-1;;;;;51557:41:0;::::1;::::0;51608:11;51557:41:::1;:63::i;:::-;51636:36;::::0;;-1:-1:-1;;;;;6024:32:1;;6006:51;;6088:2;6073:18;;6066:34;;;51636:36:0::1;::::0;5979:18:1;51636:36:0::1;;;;;;;51368:312:::0;;:::o;47814:383::-;37660:21;:19;:21::i;:::-;40256:19:::1;:17;:19::i;:::-;47894:10:::2;52175:17;:15;:17::i;:::-;52151:41:::0;;::::2;::::0;:21:::2;::::0;:41:::2;::::0;;::::2;::::0;::::2;:::i;:::-;;52220:26;:24;:26::i;:::-;52203:14;:43:::0;-1:-1:-1;;;;;52261:21:0;::::2;::::0;52257:320:::2;;52299:30;52332:15;52339:7;52332:6;:15::i;:::-;52299:48;;52367:9;52362:204;52386:13;:20:::0;52382:24;::::2;52362:204;;;52454:13;52468:1;52454:16;;;;;;;;:::i;:::-;;::::0;;::::2;::::0;;;;;;;-1:-1:-1;;;;;52432:16:0;::::2;;::::0;;;:7:::2;:16:::0;;;;;;:19;;;;;;;;;;:38;52526:21:::2;:24:::0;;52449:1;;52526:24;::::2;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;;;::::2;::::0;-1:-1:-1;;;;;52489:31:0;::::2;::::0;;:22:::2;:31:::0;;;;;;:34;;;;;;;;:61;52521:1;52408:3:::2;52521:1:::0;52408:3:::2;:::i;:::-;;;;52362:204;;;;52284:293;52257:320;47934:1:::3;47925:6;:10;47917:37;;;::::0;-1:-1:-1;;;47917:37:0;;6313:2:1;47917:37:0::3;::::0;::::3;6295:21:1::0;6352:2;6332:18;;;6325:30;-1:-1:-1;;;6371:18:1;;;6364:44;6425:18;;47917:37:0::3;6111:338:1::0;47917:37:0::3;47980:12;::::0;:24:::3;::::0;47997:6;47980:16:::3;:24::i;:::-;47965:12;:39:::0;48049:10:::3;48039:21;::::0;;;:9:::3;:21;::::0;;;;;:33:::3;::::0;48065:6;48039:25:::3;:33::i;:::-;48025:10;48015:21;::::0;;;:9:::3;:21;::::0;;;;:57;;;;48083:12:::3;::::0;:64:::3;::::0;-1:-1:-1;;;;;48083:12:0;;::::3;::::0;48133:4:::3;48140:6:::0;48083:29:::3;:64::i;:::-;48163:26;::::0;1166:25:1;;;48170:10:0::3;::::0;48163:26:::3;::::0;1154:2:1;1139:18;48163:26:0::3;1020:177:1::0;45273:37:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45273:37:0;;-1:-1:-1;45273:37:0;:::o;51688:360::-;42668:13;:11;:13::i;:::-;51812:12:::1;;51794:15;:30;51772:168;;;::::0;-1:-1:-1;;;51772:168:0;;6656:2:1;51772:168:0::1;::::0;::::1;6638:21:1::0;6695:2;6675:18;;;6668:30;6734:34;6714:18;;;6707:62;6805:34;6785:18;;;6778:62;6877:26;6856:19;;;6849:55;6921:19;;51772:168:0::1;6454:492:1::0;51772:168:0::1;51951:15;:34:::0;;;52001:39:::1;::::0;1166:25:1;;;52001:39:0::1;::::0;1154:2:1;1139:18;52001:39:0::1;;;;;;;51688:360:::0;:::o;49422:1831::-;42668:13;:11;:13::i;:::-;49519:1:::1;52175:17;:15;:17::i;:::-;52151:41:::0;;::::1;::::0;:21:::1;::::0;:41:::1;::::0;;::::1;::::0;::::1;:::i;:::-;;52220:26;:24;:26::i;:::-;52203:14;:43:::0;-1:-1:-1;;;;;52261:21:0;::::1;::::0;52257:320:::1;;52299:30;52332:15;52339:7;52332:6;:15::i;:::-;52299:48;;52367:9;52362:204;52386:13;:20:::0;52382:24;::::1;52362:204;;;52454:13;52468:1;52454:16;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;52432:16:0;::::1;;::::0;;;:7:::1;:16:::0;;;;;;:19;;;;;;;;;;:38;52526:21:::1;:24:::0;;52449:1;;52526:24;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;52489:31:0;::::1;::::0;;:22:::1;:31:::0;;;;;;:34;;;;;;;;:61;52521:1;52408:3:::1;52521:1:::0;52408:3:::1;:::i;:::-;;;;52362:204;;;;52284:293;52257:320;49560:13:::2;:20:::0;49541:39;::::2;49534:47;;;;:::i;:::-;49594:21;49626:23:::0;49652:8:::2;;49626:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;-1:-1:-1;49626:34:0;;-1:-1:-1;;;;49671:877:0::2;49695:13;:20:::0;49691:24;::::2;49671:877;;;49737:15;49755:13;49769:1;49755:16;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;::::0;:41:::2;::::0;-1:-1:-1;;;49755:41:0;;49790:4:::2;49755:41;::::0;::::2;2006:51:1::0;-1:-1:-1;;;;;49755:16:0;;::::2;::::0;:26:::2;::::0;1979:18:1;;49755:41:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49737:59;;49845:2;49815:13;49829:1;49815:16;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;;::::2;::::0;:27:::2;::::0;;-1:-1:-1;;;49815:27:0;;;;-1:-1:-1;;;;;49815:16:0;;::::2;::::0;:25:::2;::::0;:27:::2;::::0;;::::2;::::0;;;;;;:16;:27:::2;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:32;;;49811:264;;;49889:53;49913:13;49927:1;49913:16;;;;;;;;:::i;49889:53::-;49884:59;::::0;:2:::2;:59;:::i;:::-;49868:75;;49974:30;49990:13;49974:8;;49983:1;49974:11;;;;;;;:::i;:::-;;;;;;;:15;;:30;;;;:::i;:::-;49962:6;49969:1;49962:9;;;;;;;;:::i;:::-;;::::0;;::::2;::::0;;;;;:42;50033:26:::2;:7:::0;50045:13;50033:11:::2;:26::i;:::-;50023:36;;49811:264;50491:15;::::0;50479:28:::2;::::0;:7;;:11:::2;:28::i;:::-;50461:11;50473:1;50461:14;;;;;;;;:::i;:::-;;;;;;;;;:46;;50453:83;;;::::0;-1:-1:-1;;;50453:83:0;;7474:2:1;50453:83:0::2;::::0;::::2;7456:21:1::0;7513:2;7493:18;;;7486:30;7552:26;7532:18;;;7525:54;7596:18;;50453:83:0::2;7272:348:1::0;50453:83:0::2;-1:-1:-1::0;49717:3:0;::::2;::::0;::::2;:::i;:::-;;;;49671:877;;;;50592:12;;50573:15;:31;50569:535;;50626:9;50621:133;50645:13;:20:::0;50641:24;::::2;50621:133;;;50708:30;50722:15;;50708:6;50715:1;50708:9;;;;;;;;:::i;:::-;;;;;;;:13;;:30;;;;:::i;:::-;50691:11;50703:1;50691:14;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;:47:::0;50667:3;::::2;::::0;::::2;:::i;:::-;;;;50621:133;;;;50569:535;;;50806:12;::::0;50786:17:::2;::::0;50806:33:::2;::::0;50823:15:::2;50806:16;:33::i;:::-;50786:53:::0;-1:-1:-1;50856:16:0::2;::::0;50887:206:::2;50911:13;:20:::0;50907:24;::::2;50887:206;;;50968:29;50982:11;50994:1;50982:14;;;;;;;;:::i;:::-;;;;;;;;;50968:9;:13;;:29;;;;:::i;:::-;50957:40;;51033:44;51061:15;;51033:23;51047:8;51033:6;51040:1;51033:9;;;;;;;;:::i;:::-;;;;;;;:13;;:23;;;;:::i;:44::-;51016:11;51028:1;51016:14;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;:61:::0;50933:3;::::2;::::0;::::2;:::i;:::-;;;;50887:206;;;;50771:333;;50569:535;51133:15;51116:14;:32:::0;;;51194:15:::2;::::0;51174:36:::2;::::0;51133:15;51174:19:::2;:36::i;:::-;51159:12;:51:::0;51226:19:::2;::::0;::::2;::::0;::::2;::::0;51238:6;;51226:19:::2;:::i;:::-;;;;;;;;49523:1730;;42692:1:::1;49422:1831:::0;;:::o;49261:97::-;49316:10;49306:21;;;;:9;:21;;;;;;49297:31;;:8;:31::i;:::-;49339:11;:9;:11::i;45396:28::-;;;;;;;;;;;;43688:201;42668:13;:11;:13::i;:::-;-1:-1:-1;;;;;43777:22:0;::::1;43769:73;;;::::0;-1:-1:-1;;;43769:73:0;;7827:2:1;43769:73:0::1;::::0;::::1;7809:21:1::0;7866:2;7846:18;;;7839:30;7905:34;7885:18;;;7878:62;-1:-1:-1;;;7956:18:1;;;7949:36;8002:19;;43769:73:0::1;7625:402:1::0;43769:73:0::1;43853:28;43872:8;43853:18;:28::i;12223:98::-:0;12281:7;12308:5;12312:1;12308;:5;:::i;:::-;12301:12;;12223:98;;;;;:::o;12580:::-;12638:7;12665:5;12669:1;12665;:5;:::i;12979:98::-;13037:7;13064:5;13068:1;13064;:5;:::i;11842:98::-;11900:7;11927:5;11931:1;11927;:5;:::i;37740:289::-;37142:1;37870:7;;:19;37862:63;;;;-1:-1:-1;;;37862:63:0;;8892:2:1;37862:63:0;;;8874:21:1;8931:2;8911:18;;;8904:30;8970:33;8950:18;;;8943:61;9021:18;;37862:63:0;8690:355:1;37862:63:0;37142:1;38003:7;:18;37740:289::o;31634:211::-;31778:58;;-1:-1:-1;;;;;6024:32:1;;31778:58:0;;;6006:51:1;6073:18;;;6066:34;;;31751:86:0;;31771:5;;-1:-1:-1;;;31801:23:0;5979:18:1;;31778:58:0;;;;-1:-1:-1;;31778:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;31778:58:0;-1:-1:-1;;;;;;31778:58:0;;;;;;;;;;31751:19;:86::i;:::-;31634:211;;;:::o;42947:132::-;42855:6;;-1:-1:-1;;;;;42855:6:0;;;;;39008:10;43011:23;43003:68;;;;-1:-1:-1;;;43003:68:0;;9252:2:1;43003:68:0;;;9234:21:1;;;9271:18;;;9264:30;9330:34;9310:18;;;9303:62;9382:18;;43003:68:0;9050:356:1;44049:191:0;44142:6;;;-1:-1:-1;;;;;44159:17:0;;;44142:6;44159:17;;;-1:-1:-1;;;;;;44159:17:0;;;;;;44192:40;;44142:6;;;;;;;;44192:40;;44123:16;;44192:40;44112:128;44049:191;:::o;614:106::-;672:7;703:1;699;:5;:13;;711:1;699:13;;;-1:-1:-1;707:1:0;;614:106;-1:-1:-1;614:106:0:o;40810:108::-;40722:7;;;;40880:9;40872:38;;;;-1:-1:-1;;;40872:38:0;;9613:2:1;40872:38:0;;;9595:21:1;9652:2;9632:18;;;9625:30;-1:-1:-1;;;9671:18:1;;;9664:46;9727:18;;40872:38:0;9411:340:1;31853:248:0;32024:68;;-1:-1:-1;;;;;10014:15:1;;;32024:68:0;;;9996:34:1;10066:15;;10046:18;;;10039:43;10098:18;;;10091:34;;;31997:96:0;;32017:5;;-1:-1:-1;;;32047:27:0;9931:18:1;;32024:68:0;9756:375:1;31997:96:0;31853:248;;;;:::o;34701:716::-;35125:23;35151:69;35179:4;35151:69;;;;;;;;;;;;;;;;;35159:5;-1:-1:-1;;;;;35151:27:0;;;:69;;;;;:::i;:::-;35235:17;;35125:95;;-1:-1:-1;35235:21:0;35231:179;;35332:10;35321:30;;;;;;;;;;;;:::i;:::-;35313:85;;;;-1:-1:-1;;;35313:85:0;;10620:2:1;35313:85:0;;;10602:21:1;10659:2;10639:18;;;10632:30;10698:34;10678:18;;;10671:62;-1:-1:-1;;;10749:18:1;;;10742:40;10799:19;;35313:85:0;10418:406:1;25670:229:0;25807:12;25839:52;25861:6;25869:4;25875:1;25878:12;25839:21;:52::i;:::-;25832:59;25670:229;-1:-1:-1;;;;25670:229:0:o;26790:455::-;26960:12;27018:5;26993:21;:30;;26985:81;;;;-1:-1:-1;;;26985:81:0;;11031:2:1;26985:81:0;;;11013:21:1;11070:2;11050:18;;;11043:30;11109:34;11089:18;;;11082:62;-1:-1:-1;;;11160:18:1;;;11153:36;11206:19;;26985:81:0;10829:402:1;26985:81:0;27078:12;27092:23;27119:6;-1:-1:-1;;;;;27119:11:0;27138:5;27145:4;27119:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27077:73;;;;27168:69;27195:6;27203:7;27212:10;27224:12;27168:26;:69::i;:::-;27161:76;26790:455;-1:-1:-1;;;;;;;26790:455:0:o;29363:644::-;29548:12;29577:7;29573:427;;;29605:10;:17;29626:1;29605:22;29601:290;;-1:-1:-1;;;;;23208:19:0;;;29815:60;;;;-1:-1:-1;;;29815:60:0;;11985:2:1;29815:60:0;;;11967:21:1;12024:2;12004:18;;;11997:30;12063:31;12043:18;;;12036:59;12112:18;;29815:60:0;11783:353:1;29815:60:0;-1:-1:-1;29912:10:0;29905:17;;29573:427;29955:33;29963:10;29975:12;30710:17;;:21;30706:388;;30942:10;30936:17;30999:15;30986:10;30982:2;30978:19;30971:44;30706:388;31069:12;31062:20;;-1:-1:-1;;;31062:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;383:632::-;554:2;606:21;;;676:13;;579:18;;;698:22;;;525:4;;554:2;777:15;;;;751:2;736:18;;;525:4;820:169;834:6;831:1;828:13;820:169;;;895:13;;883:26;;964:15;;;;929:12;;;;856:1;849:9;820:169;;;-1:-1:-1;1006:3:1;;383:632;-1:-1:-1;;;;;;383:632:1:o;1202:180::-;1261:6;1314:2;1302:9;1293:7;1289:23;1285:32;1282:52;;;1330:1;1327;1320:12;1282:52;-1:-1:-1;1353:23:1;;1202:180;-1:-1:-1;1202:180:1:o;1579:254::-;1647:6;1655;1708:2;1696:9;1687:7;1683:23;1679:32;1676:52;;;1724:1;1721;1714:12;1676:52;1747:29;1766:9;1747:29;:::i;:::-;1737:39;1823:2;1808:18;;;;1795:32;;-1:-1:-1;;;1579:254:1:o;2276:615::-;2362:6;2370;2423:2;2411:9;2402:7;2398:23;2394:32;2391:52;;;2439:1;2436;2429:12;2391:52;2479:9;2466:23;2508:18;2549:2;2541:6;2538:14;2535:34;;;2565:1;2562;2555:12;2535:34;2603:6;2592:9;2588:22;2578:32;;2648:7;2641:4;2637:2;2633:13;2629:27;2619:55;;2670:1;2667;2660:12;2619:55;2710:2;2697:16;2736:2;2728:6;2725:14;2722:34;;;2752:1;2749;2742:12;2722:34;2805:7;2800:2;2790:6;2787:1;2783:14;2779:2;2775:23;2771:32;2768:45;2765:65;;;2826:1;2823;2816:12;2765:65;2857:2;2849:11;;;;;2879:6;;-1:-1:-1;2276:615:1;;-1:-1:-1;;;;2276:615:1:o;2896:127::-;2957:10;2952:3;2948:20;2945:1;2938:31;2988:4;2985:1;2978:15;3012:4;3009:1;3002:15;3028:127;3089:10;3084:3;3080:20;3077:1;3070:31;3120:4;3117:1;3110:15;3144:4;3141:1;3134:15;3160:135;3199:3;3220:17;;;3217:43;;3240:18;;:::i;:::-;-1:-1:-1;3287:1:1;3276:13;;3160:135::o;3300:127::-;3361:10;3356:3;3352:20;3349:1;3342:31;3392:4;3389:1;3382:15;3416:4;3413:1;3406:15;3778:273;3846:6;3899:2;3887:9;3878:7;3874:23;3870:32;3867:52;;;3915:1;3912;3905:12;3867:52;3947:9;3941:16;3997:4;3990:5;3986:16;3979:5;3976:27;3966:55;;4017:1;4014;4007:12;3966:55;4040:5;3778:273;-1:-1:-1;;;3778:273:1:o;4056:422::-;4145:1;4188:5;4145:1;4202:270;4223:7;4213:8;4210:21;4202:270;;;4282:4;4278:1;4274:6;4270:17;4264:4;4261:27;4258:53;;;4291:18;;:::i;:::-;4341:7;4331:8;4327:22;4324:55;;;4361:16;;;;4324:55;4440:22;;;;4400:15;;;;4202:270;;;4206:3;4056:422;;;;;:::o;4483:806::-;4532:5;4562:8;4552:80;;-1:-1:-1;4603:1:1;4617:5;;4552:80;4651:4;4641:76;;-1:-1:-1;4688:1:1;4702:5;;4641:76;4733:4;4751:1;4746:59;;;;4819:1;4814:130;;;;4726:218;;4746:59;4776:1;4767:10;;4790:5;;;4814:130;4851:3;4841:8;4838:17;4835:43;;;4858:18;;:::i;:::-;-1:-1:-1;;4914:1:1;4900:16;;4929:5;;4726:218;;5028:2;5018:8;5015:16;5009:3;5003:4;5000:13;4996:36;4990:2;4980:8;4977:16;4972:2;4966:4;4963:12;4959:35;4956:77;4953:159;;;-1:-1:-1;5065:19:1;;;5097:5;;4953:159;5144:34;5169:8;5163:4;5144:34;:::i;:::-;5214:6;5210:1;5206:6;5202:19;5193:7;5190:32;5187:58;;;5225:18;;:::i;:::-;5263:20;;4483:806;-1:-1:-1;;;4483:806:1:o;5294:131::-;5354:5;5383:36;5410:8;5404:4;5383:36;:::i;6951:127::-;7012:10;7007:3;7003:20;7000:1;6993:31;7043:4;7040:1;7033:15;7067:4;7064:1;7057:15;7083:184;7153:6;7206:2;7194:9;7185:7;7181:23;7177:32;7174:52;;;7222:1;7219;7212:12;7174:52;-1:-1:-1;7245:16:1;;7083:184;-1:-1:-1;7083:184:1:o;8032:128::-;8099:9;;;8120:11;;;8117:37;;;8134:18;;:::i;8165:168::-;8238:9;;;8269;;8286:15;;;8280:22;;8266:37;8256:71;;8307:18;;:::i;8338:217::-;8378:1;8404;8394:132;;8448:10;8443:3;8439:20;8436:1;8429:31;8483:4;8480:1;8473:15;8511:4;8508:1;8501:15;8394:132;-1:-1:-1;8540:9:1;;8338:217::o;8560:125::-;8625:9;;;8646:10;;;8643:36;;;8659:18;;:::i;10136:277::-;10203:6;10256:2;10244:9;10235:7;10231:23;10227:32;10224:52;;;10272:1;10269;10262:12;10224:52;10304:9;10298:16;10357:5;10350:13;10343:21;10336:5;10333:32;10323:60;;10379:1;10376;10369:12;11236:250;11321:1;11331:113;11345:6;11342:1;11339:13;11331:113;;;11421:11;;;11415:18;11402:11;;;11395:39;11367:2;11360:10;11331:113;;;-1:-1:-1;;11478:1:1;11460:16;;11453:27;11236:250::o;11491:287::-;11620:3;11658:6;11652:13;11674:66;11733:6;11728:3;11721:4;11713:6;11709:17;11674:66;:::i;:::-;11756:16;;;;;11491:287;-1:-1:-1;;11491:287:1:o;12141:396::-;12290:2;12279:9;12272:21;12253:4;12322:6;12316:13;12365:6;12360:2;12349:9;12345:18;12338:34;12381:79;12453:6;12448:2;12437:9;12433:18;12428:2;12420:6;12416:15;12381:79;:::i;:::-;12521:2;12500:15;-1:-1:-1;;12496:29:1;12481:45;;;;12528:2;12477:54;;12141:396;-1:-1:-1;;12141:396:1:o

Metadata Hash

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