Contract 0x74654c7ce02e3604bb4d64734608afa5b0b62511

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6800be5323026ac2bf47b8a45b529821d9423935391f647f220f3a9e00cf07e0Get Reward516911672022-12-01 2:49:222 days 9 hrs ago0x84d0f74d21a89f86b67e9a38d8559d0b4e10f12d IN  0x74654c7ce02e3604bb4d64734608afa5b0b625110 FTM0.018192
0x49d616151b4f8ac29b561a828df252ff3babaf91a537eadaf110b652e06628d1Batch Reward Per...516911592022-12-01 2:49:132 days 9 hrs ago0x84d0f74d21a89f86b67e9a38d8559d0b4e10f12d IN  0x74654c7ce02e3604bb4d64734608afa5b0b625110 FTM0.00330495
0x3662d5c56b4f6715e33ae40ec325650030eaae723026c633bf6302bdf6ea6f31Batch Reward Per...513828572022-11-24 9:52:149 days 2 hrs ago0x5c146cd18fa53914580573c9b9604588529406ca IN  0x74654c7ce02e3604bb4d64734608afa5b0b625110 FTM0.002256987156
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xa436932463c5321f39209fc8785347b239979e466aac56affdd92600c30fa0e9508544702022-11-14 8:19:4819 days 3 hrs ago 0x8868ae6de5e723e6840cdc21370e415bf5123684  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InternalBribe

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2022-11-24
*/

/**

Guru Network (🦾 , 🚀)
https://ftm.guru/solidly
https://discord.gg/QpyfMarNrV
$ELITE + $ETH earns $SOLID

Vote for vAMM-WETH/ELITE
https://solidly.exchange/vote


FFFFF  TTTTTTT  M   M         GGGGG  U    U  RRRRR     U    U
FF       TTT   M M M M       G       U    U  RR   R    U    U
FFFFF    TTT   M  M  M      G  GGG   U    U  RRRRR     U    U
FF       TTT   M  M  M   O  G    G   U    U  RR R      U    U
FF       TTT   M     M       GGGGG    UUUU   RR  RRR    UUUU
*/

// File: contracts/interfaces/IGauge.sol


pragma solidity 0.8.9;

interface IGauge {
    function notifyRewardAmount(address token, uint amount) external;
    function getReward(address account, address[] memory tokens) external;
    function claimFees() external returns (uint claimed0, uint claimed1);
    function left(address token) external view returns (uint);
    function isForPair() external view returns (bool);
}

// File: contracts/interfaces/IVotingEscrow.sol


pragma solidity 0.8.9;

interface IVotingEscrow {

    struct Point {
        int128 bias;
        int128 slope; // # -dweight / dt
        uint256 ts;
        uint256 blk; // block
    }

    function token() external view returns (address);
    function team() external returns (address);
    function epoch() external view returns (uint);
    function point_history(uint loc) external view returns (Point memory);
    function user_point_history(uint tokenId, uint loc) external view returns (Point memory);
    function user_point_epoch(uint tokenId) external view returns (uint);

    function ownerOf(uint) external view returns (address);
    function isApprovedOrOwner(address, uint) external view returns (bool);
    function transferFrom(address, address, uint) external;

    function voting(uint tokenId) external;
    function abstain(uint tokenId) external;
    function attach(uint tokenId) external;
    function detach(uint tokenId) external;

    function checkpoint() external;
    function deposit_for(uint tokenId, uint value) external;
    function create_lock_for(uint, uint, address) external returns (uint);

    function balanceOfNFT(uint) external view returns (uint);
    function totalSupply() external view returns (uint);
}

// File: contracts/interfaces/IVoter.sol


pragma solidity 0.8.9;

interface IVoter {
    function _ve() external view returns (address);
    function governor() external view returns (address);
    function emergencyCouncil() external view returns (address);
    function attachTokenToGauge(uint _tokenId, address account) external;
    function detachTokenFromGauge(uint _tokenId, address account) external;
    function emitDeposit(uint _tokenId, address account, uint amount) external;
    function emitWithdraw(uint _tokenId, address account, uint amount) external;
    function isWhitelisted(address token) external view returns (bool);
    function notifyRewardAmount(uint amount) external;
    function distribute(address _gauge) external;
}
// File: contracts/interfaces/IERC20.sol


pragma solidity 0.8.9;

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function transfer(address recipient, uint amount) external returns (bool);
    function decimals() external view returns (uint8);
    function symbol() external view returns (string memory);
    function balanceOf(address) external view returns (uint);
    function transferFrom(address sender, address recipient, uint amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint);
    function approve(address spender, uint value) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
}

// File: contracts/libraries/Math.sol


pragma solidity 0.8.9;

library Math {
    function max(uint a, uint b) internal pure returns (uint) {
        return a >= b ? a : b;
    }
    function min(uint a, uint b) internal pure returns (uint) {
        return a < b ? a : b;
    }
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
    function cbrt(uint256 n) internal pure returns (uint256) { unchecked {
        uint256 x = 0;
        for (uint256 y = 1 << 255; y > 0; y >>= 3) {
            x <<= 1;
            uint256 z = 3 * x * (x + 1) + 1;
            if (n / y >= z) {
                n -= y * z;
                x += 1;
            }
        }
        return x;
    }}
}

// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol


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

pragma solidity ^0.8.2;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }
}

// File: contracts/ExternalBribe.sol


pragma solidity 0.8.9;







/**
 * @notice Bribes pay out rewards for a given pool based on the votes that were received from the user
 * goes hand in hand with Voter.vote()
 */

contract ExternalBribe is Initializable {
    
    /// @notice A checkpoint for marking balance
    struct Checkpoint {
        uint timestamp;
        uint balanceOf;
    }

    /// @notice A checkpoint for marking supply
    struct SupplyCheckpoint {
        uint timestamp;
        uint supply;
    }

    address public voter; // only voter can modify balances (since it only happens on vote())
    address public _ve;

    uint internal constant DURATION = 7 days; // rewards are released over the voting period
    uint internal constant MAX_REWARD_TOKENS = 16;

    uint internal constant PRECISION = 10 ** 18;

    uint public totalSupply;
    mapping(uint => uint) public balanceOf;
    mapping(address => mapping(uint => uint)) public tokenRewardsPerEpoch;
    mapping(address => uint) public periodFinish;
    mapping(address => mapping(uint => uint)) public lastEarn;

    address[] public rewards;
    mapping(address => bool) public isReward;
    /// @notice A record of balance checkpoints for each account, by index
    mapping (uint => mapping (uint => Checkpoint)) public checkpoints;
    /// @notice The number of checkpoints for each account
    mapping (uint => uint) public numCheckpoints;
    /// @notice A record of balance checkpoints for each token, by index
    mapping (uint => SupplyCheckpoint) public supplyCheckpoints;
    /// @notice The number of checkpoints
    uint public supplyNumCheckpoints;
    /// @notice simple re-entrancy check
    bool internal _locked;

    event Deposit(address indexed from, uint tokenId, uint amount);
    event Withdraw(address indexed from, uint tokenId, uint amount);
    event NotifyReward(address indexed from, address indexed reward, uint epoch, uint amount);
    event ClaimRewards(address indexed from, address indexed reward, uint amount);

    modifier lock() {
        require(!_locked,  "No re-entrancy");
        _locked = true;
        _;
        _locked = false;
    }

    function initialize(address _voter, address[] memory _allowedRewardTokens) public initializer {
        voter = _voter;
        _ve = IVoter(_voter)._ve();

        for (uint i; i < _allowedRewardTokens.length; i++) {
            if (_allowedRewardTokens[i] != address(0)) {
                isReward[_allowedRewardTokens[i]] = true;
                rewards.push(_allowedRewardTokens[i]);
            }
        }
    }

    function _bribeStart(uint timestamp) internal pure returns (uint) {
        return timestamp - (timestamp % (7 days));
    }

    function getEpochStart(uint timestamp) public pure returns (uint) {
        uint bribeStart = _bribeStart(timestamp);
        uint bribeEnd = bribeStart + DURATION;
        return timestamp < bribeEnd ? bribeStart : bribeStart + 7 days;
    }

    /**
    * @notice Determine the prior balance for an account as of a block number
    * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
    * @param tokenId The token of the NFT to check
    * @param timestamp The timestamp to get the balance at
    * @return The balance the account had as of the given block
    */
    function getPriorBalanceIndex(uint tokenId, uint timestamp) public view returns (uint) {
        uint nCheckpoints = numCheckpoints[tokenId];
        if (nCheckpoints == 0) {
            return 0;
        }
        // First check most recent balance
        if (checkpoints[tokenId][nCheckpoints - 1].timestamp <= timestamp) {
            return (nCheckpoints - 1);
        }
        // Next check implicit zero balance
        if (checkpoints[tokenId][0].timestamp > timestamp) {
            return 0;
        }

        uint lower = 0;
        uint upper = nCheckpoints - 1;
        while (upper > lower) {
            uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[tokenId][center];
            if (cp.timestamp == timestamp) {
                return center;
            } else if (cp.timestamp < timestamp) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return lower;
    }

    function getPriorSupplyIndex(uint timestamp) public view returns (uint) {
        uint nCheckpoints = supplyNumCheckpoints;
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (supplyCheckpoints[nCheckpoints - 1].timestamp <= timestamp) {
            return (nCheckpoints - 1);
        }

        // Next check implicit zero balance
        if (supplyCheckpoints[0].timestamp > timestamp) {
            return 0;
        }

        uint lower = 0;
        uint upper = nCheckpoints - 1;
        while (upper > lower) {
            uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            SupplyCheckpoint memory cp = supplyCheckpoints[center];
            if (cp.timestamp == timestamp) {
                return center;
            } else if (cp.timestamp < timestamp) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return lower;
    }

    function _writeCheckpoint(uint tokenId, uint balance) internal {
        uint _timestamp = block.timestamp;
        uint _nCheckPoints = numCheckpoints[tokenId];
        if (_nCheckPoints > 0 && checkpoints[tokenId][_nCheckPoints - 1].timestamp == _timestamp) {
            checkpoints[tokenId][_nCheckPoints - 1].balanceOf = balance;
        } else {
            checkpoints[tokenId][_nCheckPoints] = Checkpoint(_timestamp, balance);
            numCheckpoints[tokenId] = _nCheckPoints + 1;
        }
    }

    function _writeSupplyCheckpoint() internal {
        uint _nCheckPoints = supplyNumCheckpoints;
        uint _timestamp = block.timestamp;

        if (_nCheckPoints > 0 && supplyCheckpoints[_nCheckPoints - 1].timestamp == _timestamp) {
            supplyCheckpoints[_nCheckPoints - 1].supply = totalSupply;
        } else {
            supplyCheckpoints[_nCheckPoints] = SupplyCheckpoint(_timestamp, totalSupply);
            supplyNumCheckpoints = _nCheckPoints + 1;
        }
    }

    function rewardsListLength() external view returns (uint) {
        return rewards.length;
    }

    // returns the last time the reward was modified or periodFinish if the reward has ended
    function lastTimeRewardApplicable(address token) public view returns (uint) {
        return Math.min(block.timestamp, periodFinish[token]);
    }

    // allows a user to claim rewards for a given token
    function getReward(uint tokenId, address[] memory tokens) external lock  {
        require(IVotingEscrow(_ve).isApprovedOrOwner(msg.sender, tokenId), "Neither approved nor owner");
        for (uint i = 0; i < tokens.length; i++) {
            uint _reward = earned(tokens[i], tokenId);
            lastEarn[tokens[i]][tokenId] = block.timestamp;
            if (_reward > 0) _safeTransfer(tokens[i], msg.sender, _reward);

            emit ClaimRewards(msg.sender, tokens[i], _reward);
        }
    }

    // used by Voter to allow batched reward claims
    function getRewardForOwner(uint tokenId, address[] memory tokens) external lock  {
        require(msg.sender == voter, "Not voter");
        address _owner = IVotingEscrow(_ve).ownerOf(tokenId);
        for (uint i = 0; i < tokens.length; i++) {
            uint _reward = earned(tokens[i], tokenId);
            lastEarn[tokens[i]][tokenId] = block.timestamp;
            if (_reward > 0) _safeTransfer(tokens[i], _owner, _reward);

            emit ClaimRewards(_owner, tokens[i], _reward);
        }
    }

    function earned(address token, uint tokenId) public view returns (uint) {
        if (numCheckpoints[tokenId] == 0) {
            return 0;
        }

        uint reward = 0;
        uint _ts = 0;
        uint _bal = 0;
        uint _supply = 1;
        uint _index = 0;
        uint _currTs = _bribeStart(lastEarn[token][tokenId]); // take epoch last claimed in as starting point

        _index = getPriorBalanceIndex(tokenId, _currTs);
        _ts = checkpoints[tokenId][_index].timestamp;
        _bal = checkpoints[tokenId][_index].balanceOf;
        // accounts for case where lastEarn is before first checkpoint
        _currTs = Math.max(_currTs, _bribeStart(_ts)); 

        // get epochs between current epoch and first checkpoint in same epoch as last claim
        uint numEpochs = (_bribeStart(block.timestamp) - _currTs) / DURATION;

        if (numEpochs > 0) {
            for (uint256 i = 0; i < numEpochs; i++) {
                // get index of last checkpoint in this epoch
                _index = getPriorBalanceIndex(tokenId, _currTs + DURATION); 
                // get checkpoint in this epoch
                _ts = checkpoints[tokenId][_index].timestamp;
                _bal = checkpoints[tokenId][_index].balanceOf;
                // get supply of last checkpoint in this epoch
                _supply = supplyCheckpoints[getPriorSupplyIndex(_currTs + DURATION)].supply;
                reward += _bal * tokenRewardsPerEpoch[token][_currTs] / _supply;
                _currTs += DURATION;
            }
        }

        return reward;
    }

    // This is an external function, but internal notation is used since it can only be called "internally" from Gauges
    function _deposit(uint amount, uint tokenId) external {
        require(msg.sender == voter, "Not voter");

        totalSupply += amount;
        balanceOf[tokenId] += amount;

        _writeCheckpoint(tokenId, balanceOf[tokenId]);
        _writeSupplyCheckpoint();

        emit Deposit(msg.sender, tokenId, amount);
    }

    function _withdraw(uint amount, uint tokenId) external {
        require(msg.sender == voter, "Not voter");

        totalSupply -= amount;
        balanceOf[tokenId] -= amount;

        _writeCheckpoint(tokenId, balanceOf[tokenId]);
        _writeSupplyCheckpoint();

        emit Withdraw(msg.sender, tokenId, amount);
    }

    function left(address token) external view returns (uint) {
        uint adjustedTstamp = getEpochStart(block.timestamp);
        return tokenRewardsPerEpoch[token][adjustedTstamp];
    }

    function notifyRewardAmount(address token, uint amount) external lock {
        require(amount > 0, "Amount must be greater than 0");
        if (!isReward[token]) {
          require(IVoter(voter).isWhitelisted(token), "bribe tokens must be whitelisted");
          require(rewards.length < MAX_REWARD_TOKENS, "too many rewards tokens");
        }
        // bribes kick in at the start of next bribe period
        uint adjustedTstamp = getEpochStart(block.timestamp);
        uint epochRewards = tokenRewardsPerEpoch[token][adjustedTstamp];

        _safeTransferFrom(token, msg.sender, address(this), amount);
        tokenRewardsPerEpoch[token][adjustedTstamp] = epochRewards + amount;

        periodFinish[token] = adjustedTstamp + DURATION;

        if (!isReward[token]) {
            isReward[token] = true;
            rewards.push(token);
        }

        emit NotifyReward(msg.sender, token, adjustedTstamp, amount);
    }

    function swapOutRewardToken(uint i, address oldToken, address newToken) external {
        require(msg.sender == IVotingEscrow(_ve).team(), "only team");
        require(rewards[i] == oldToken);
        isReward[oldToken] = false;
        isReward[newToken] = true;
        rewards[i] = newToken;
    }

    function _safeTransfer(address token, address to, uint256 value) internal {
        require(token.code.length > 0, "Invalid token address");
        (bool success, bytes memory data) =
        token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "ExternalBribe: TransferFrom failed");
    }

    function _safeTransferFrom(address token, address from, address to, uint256 value) internal {
        require(token.code.length > 0, "Invalid token address");
        (bool success, bytes memory data) =
        token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "ExternalBribe: TransferFrom failed");
    }
}

// File: contracts/InternalBribe.sol


pragma solidity 0.8.9;






/**
 * @notice Bribes pay out rewards for a given pool based on the votes that were received from the user
 * goes hand in hand with Voter.vote()
 */

contract InternalBribe is Initializable {

    /// @notice A checkpoint for marking balance
    struct Checkpoint {
        uint timestamp;
        uint balanceOf;
    }

    /// @notice A checkpoint for marking reward rate
    struct RewardPerTokenCheckpoint {
        uint timestamp;
        uint rewardPerToken;
    }

    /// @notice A checkpoint for marking supply
    struct SupplyCheckpoint {
        uint timestamp;
        uint supply;
    }

    address public voter; // only voter can modify balances (since it only happens on vote())
    address public _ve;

    uint public constant DURATION = 7 days; // rewards are released over 7 days
    uint public constant PRECISION = 10 ** 18;
    uint internal constant MAX_REWARD_TOKENS = 16;

    // default snx staking contract implementation
    mapping(address => uint) public rewardRate;
    mapping(address => uint) public periodFinish;
    mapping(address => uint) public lastUpdateTime;
    mapping(address => uint) public rewardPerTokenStored;

    mapping(address => mapping(uint => uint)) public lastEarn;
    mapping(address => mapping(uint => uint)) public userRewardPerTokenStored;

    address[] public rewards;
    mapping(address => bool) public isReward;

    uint public totalSupply;
    mapping(uint => uint) public balanceOf;

    /// @notice A record of balance checkpoints for each account, by index
    mapping (uint => mapping (uint => Checkpoint)) public checkpoints;
    /// @notice The number of checkpoints for each account
    mapping (uint => uint) public numCheckpoints;
    /// @notice A record of balance checkpoints for each token, by index
    mapping (uint => SupplyCheckpoint) public supplyCheckpoints;
    /// @notice The number of checkpoints
    uint public supplyNumCheckpoints;
    /// @notice A record of balance checkpoints for each token, by index
    mapping (address => mapping (uint => RewardPerTokenCheckpoint)) public rewardPerTokenCheckpoints;
    /// @notice The number of checkpoints for each token
    mapping (address => uint) public rewardPerTokenNumCheckpoints;

    /// @notice simple re-entrancy check
    bool internal _locked;

    event Deposit(address indexed from, uint tokenId, uint amount);
    event Withdraw(address indexed from, uint tokenId, uint amount);
    event NotifyReward(address indexed from, address indexed reward, uint amount);
    event ClaimRewards(address indexed from, address indexed reward, uint amount);

    modifier lock() {
        require(!_locked,  "No re-entrancy");
        _locked = true;
        _;
        _locked = false;
    }

    function initialize(address _voter, address[] memory _allowedRewardTokens) public initializer {
        voter = _voter;
        _ve = IVoter(_voter)._ve();

        for (uint i; i < _allowedRewardTokens.length; i++) {
            if (_allowedRewardTokens[i] != address(0)) {
                isReward[_allowedRewardTokens[i]] = true;
                rewards.push(_allowedRewardTokens[i]);
            }
        }
    }

    /**
    * @notice Determine the prior balance for an account as of a block number
    * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
    * @param tokenId The token of the NFT to check
    * @param timestamp The timestamp to get the balance at
    * @return The balance the account had as of the given block
    */
    function getPriorBalanceIndex(uint tokenId, uint timestamp) public view returns (uint) {
        uint nCheckpoints = numCheckpoints[tokenId];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[tokenId][nCheckpoints - 1].timestamp <= timestamp) {
            return (nCheckpoints - 1);
        }

        // Next check implicit zero balance
        if (checkpoints[tokenId][0].timestamp > timestamp) {
            return 0;
        }

        uint lower = 0;
        uint upper = nCheckpoints - 1;
        while (upper > lower) {
            uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[tokenId][center];
            if (cp.timestamp == timestamp) {
                return center;
            } else if (cp.timestamp < timestamp) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return lower;
    }

    function getPriorSupplyIndex(uint timestamp) public view returns (uint) {
        uint nCheckpoints = supplyNumCheckpoints;
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (supplyCheckpoints[nCheckpoints - 1].timestamp <= timestamp) {
            return (nCheckpoints - 1);
        }

        // Next check implicit zero balance
        if (supplyCheckpoints[0].timestamp > timestamp) {
            return 0;
        }

        uint lower = 0;
        uint upper = nCheckpoints - 1;
        while (upper > lower) {
            uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            SupplyCheckpoint memory cp = supplyCheckpoints[center];
            if (cp.timestamp == timestamp) {
                return center;
            } else if (cp.timestamp < timestamp) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return lower;
    }

    function getPriorRewardPerToken(address token, uint timestamp) public view returns (uint, uint) {
        uint nCheckpoints = rewardPerTokenNumCheckpoints[token];
        if (nCheckpoints == 0) {
            return (0,0);
        }

        // First check most recent balance
        if (rewardPerTokenCheckpoints[token][nCheckpoints - 1].timestamp <= timestamp) {
            return (rewardPerTokenCheckpoints[token][nCheckpoints - 1].rewardPerToken, rewardPerTokenCheckpoints[token][nCheckpoints - 1].timestamp);
        }

        // Next check implicit zero balance
        if (rewardPerTokenCheckpoints[token][0].timestamp > timestamp) {
            return (0,0);
        }

        uint lower = 0;
        uint upper = nCheckpoints - 1;
        while (upper > lower) {
            uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            RewardPerTokenCheckpoint memory cp = rewardPerTokenCheckpoints[token][center];
            if (cp.timestamp == timestamp) {
                return (cp.rewardPerToken, cp.timestamp);
            } else if (cp.timestamp < timestamp) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return (rewardPerTokenCheckpoints[token][lower].rewardPerToken, rewardPerTokenCheckpoints[token][lower].timestamp);
    }

    function _writeCheckpoint(uint tokenId, uint balance) internal {
        uint _timestamp = block.timestamp;
        uint _nCheckPoints = numCheckpoints[tokenId];

        if (_nCheckPoints > 0 && checkpoints[tokenId][_nCheckPoints - 1].timestamp == _timestamp) {
            checkpoints[tokenId][_nCheckPoints - 1].balanceOf = balance;
        } else {
            checkpoints[tokenId][_nCheckPoints] = Checkpoint(_timestamp, balance);
            numCheckpoints[tokenId] = _nCheckPoints + 1;
        }
    }

    function _writeRewardPerTokenCheckpoint(address token, uint reward, uint timestamp) internal {
        uint _nCheckPoints = rewardPerTokenNumCheckpoints[token];

        if (_nCheckPoints > 0 && rewardPerTokenCheckpoints[token][_nCheckPoints - 1].timestamp == timestamp) {
            rewardPerTokenCheckpoints[token][_nCheckPoints - 1].rewardPerToken = reward;
        } else {
            rewardPerTokenCheckpoints[token][_nCheckPoints] = RewardPerTokenCheckpoint(timestamp, reward);
            rewardPerTokenNumCheckpoints[token] = _nCheckPoints + 1;
        }
    }

    function _writeSupplyCheckpoint() internal {
        uint _nCheckPoints = supplyNumCheckpoints;
        uint _timestamp = block.timestamp;

        if (_nCheckPoints > 0 && supplyCheckpoints[_nCheckPoints - 1].timestamp == _timestamp) {
            supplyCheckpoints[_nCheckPoints - 1].supply = totalSupply;
        } else {
            supplyCheckpoints[_nCheckPoints] = SupplyCheckpoint(_timestamp, totalSupply);
            supplyNumCheckpoints = _nCheckPoints + 1;
        }
    }

    function rewardsListLength() external view returns (uint) {
        return rewards.length;
    }

    /// @notice returns the last time the reward was modified or periodFinish if the reward has ended
    function lastTimeRewardApplicable(address token) public view returns (uint) {
        return Math.min(block.timestamp, periodFinish[token]);
    }

    /// @notice allows a user to claim rewards for a given token
    function getReward(uint tokenId, address[] memory tokens) external lock  {
        require(IVotingEscrow(_ve).isApprovedOrOwner(msg.sender, tokenId), "Neither approved nor an owner");
        for (uint i = 0; i < tokens.length; i++) {
            (rewardPerTokenStored[tokens[i]], lastUpdateTime[tokens[i]]) = _updateRewardPerToken(tokens[i], type(uint).max, true);

            uint _reward = earned(tokens[i], tokenId);
            lastEarn[tokens[i]][tokenId] = block.timestamp;
            userRewardPerTokenStored[tokens[i]][tokenId] = rewardPerTokenStored[tokens[i]];
            if (_reward > 0) _safeTransfer(tokens[i], msg.sender, _reward);

            emit ClaimRewards(msg.sender, tokens[i], _reward);
        }
    }

    /// @notice used by Voter to allow batched reward claims
    function getRewardForOwner(uint tokenId, address[] memory tokens) external lock  {
        require(msg.sender == voter, "Not a voter");
        address _owner = IVotingEscrow(_ve).ownerOf(tokenId);
        for (uint i = 0; i < tokens.length; i++) {
            (rewardPerTokenStored[tokens[i]], lastUpdateTime[tokens[i]]) = _updateRewardPerToken(tokens[i], type(uint).max, true);

            uint _reward = earned(tokens[i], tokenId);
            lastEarn[tokens[i]][tokenId] = block.timestamp;
            userRewardPerTokenStored[tokens[i]][tokenId] = rewardPerTokenStored[tokens[i]];
            if (_reward > 0) _safeTransfer(tokens[i], _owner, _reward);

            emit ClaimRewards(_owner, tokens[i], _reward);
        }
    }

    function rewardPerToken(address token) public view returns (uint) {
        if (totalSupply == 0) {
            return rewardPerTokenStored[token];
        }
        return rewardPerTokenStored[token] + ((lastTimeRewardApplicable(token) - Math.min(lastUpdateTime[token], periodFinish[token])) * rewardRate[token] * PRECISION / totalSupply);
    }

    function batchRewardPerToken(address token, uint maxRuns) external {
        (rewardPerTokenStored[token], lastUpdateTime[token])  = _batchRewardPerToken(token, maxRuns);
    }

    function _batchRewardPerToken(address token, uint maxRuns) internal returns (uint, uint) {
        uint _startTimestamp = lastUpdateTime[token];
        uint reward = rewardPerTokenStored[token];

        if (supplyNumCheckpoints == 0) {
            return (reward, _startTimestamp);
        }

        if (rewardRate[token] == 0) {
            return (reward, block.timestamp);
        }

        uint _startIndex = getPriorSupplyIndex(_startTimestamp);
        uint _endIndex = Math.min(supplyNumCheckpoints-1, maxRuns);

        for (uint i = _startIndex; i < _endIndex; i++) {
            SupplyCheckpoint memory sp0 = supplyCheckpoints[i];
            if (sp0.supply > 0) {
                SupplyCheckpoint memory sp1 = supplyCheckpoints[i+1];
                (uint _reward, uint endTime) = _calcRewardPerToken(token, sp1.timestamp, sp0.timestamp, sp0.supply, _startTimestamp);
                reward += _reward;
                _writeRewardPerTokenCheckpoint(token, reward, endTime);
                _startTimestamp = endTime;
            }
        }

        return (reward, _startTimestamp);
    }

    function _calcRewardPerToken(address token, uint timestamp1, uint timestamp0, uint supply, uint startTimestamp) internal view returns (uint, uint) {
        uint endTime = Math.max(timestamp1, startTimestamp);
        return (((Math.min(endTime, periodFinish[token]) - Math.min(Math.max(timestamp0, startTimestamp), periodFinish[token])) * rewardRate[token] * PRECISION / supply), endTime);
    }

    /// @dev Update stored rewardPerToken values without the last one snapshot
    ///      If the contract will get "out of gas" error on users actions this will be helpful
    function batchUpdateRewardPerToken(address token, uint maxRuns) external {
      (rewardPerTokenStored[token], lastUpdateTime[token]) = _updateRewardPerToken(token, maxRuns, false);
    }

    function _updateRewardForAllTokens() internal {
      uint length = rewards.length;
      for (uint i; i < length; i++) {
        address token = rewards[i];
        (rewardPerTokenStored[token], lastUpdateTime[token]) = _updateRewardPerToken(token, type(uint).max, true);
      }
    }

    function _updateRewardPerToken(address token, uint maxRuns, bool actualLast) internal returns (uint, uint) {
        uint _startTimestamp = lastUpdateTime[token];
        uint reward = rewardPerTokenStored[token];

        if (supplyNumCheckpoints == 0) {
            return (reward, _startTimestamp);
        }

        if (rewardRate[token] == 0) {
            return (reward, block.timestamp);
        }

        uint _startIndex = getPriorSupplyIndex(_startTimestamp);
        uint _endIndex = Math.min(supplyNumCheckpoints - 1, maxRuns);

        if (_endIndex > 0) {
            for (uint i = _startIndex; i <= _endIndex - 1; i++) {
                SupplyCheckpoint memory sp0 = supplyCheckpoints[i];
                if (sp0.supply > 0) {
                    SupplyCheckpoint memory sp1 = supplyCheckpoints[i+1];
                    (uint _reward, uint _endTime) = _calcRewardPerToken(token, sp1.timestamp, sp0.timestamp, sp0.supply, _startTimestamp);
                    reward += _reward;
                    _writeRewardPerTokenCheckpoint(token, reward, _endTime);
                    _startTimestamp = _endTime;
                }
            }
        }

        if (actualLast) {
            SupplyCheckpoint memory sp = supplyCheckpoints[_endIndex];
            if (sp.supply > 0) {
                (uint _reward,) = _calcRewardPerToken(token, lastTimeRewardApplicable(token), Math.max(sp.timestamp, _startTimestamp), sp.supply, _startTimestamp);
                reward += _reward;
                _writeRewardPerTokenCheckpoint(token, reward, block.timestamp);
                _startTimestamp = block.timestamp;
            }
        }

        return (reward, _startTimestamp);
    }

    function earned(address token, uint tokenId) public view returns (uint) {
        uint _startTimestamp = Math.max(lastEarn[token][tokenId], rewardPerTokenCheckpoints[token][0].timestamp);
        if (numCheckpoints[tokenId] == 0) {
            return 0;
        }

        uint _startIndex = getPriorBalanceIndex(tokenId, _startTimestamp);
        uint _endIndex = numCheckpoints[tokenId]-1;

        uint reward = 0;

        if (_endIndex > 0) {
            for (uint i = _startIndex; i <= _endIndex-1; i++) {
                Checkpoint memory cp0 = checkpoints[tokenId][i];
                Checkpoint memory cp1 = checkpoints[tokenId][i+1];
                (uint _rewardPerTokenStored0,) = getPriorRewardPerToken(token, cp0.timestamp);
                (uint _rewardPerTokenStored1,) = getPriorRewardPerToken(token, cp1.timestamp);
                reward += cp0.balanceOf * (_rewardPerTokenStored1 - _rewardPerTokenStored0) / PRECISION;
            }
        }

        Checkpoint memory cp = checkpoints[tokenId][_endIndex];
        (uint _rewardPerTokenStored,) = getPriorRewardPerToken(token, cp.timestamp);
        reward += cp.balanceOf * (rewardPerToken(token) - Math.max(_rewardPerTokenStored, userRewardPerTokenStored[token][tokenId])) / PRECISION;

        return reward;
    }

    /// @notice This is an external function, but internal notation is used since it can only be called "internally" from Gauges
    function _deposit(uint amount, uint tokenId) external {
        require(msg.sender == voter, "Not voter");
        _updateRewardForAllTokens();

        totalSupply += amount;
        balanceOf[tokenId] += amount;

        _writeCheckpoint(tokenId, balanceOf[tokenId]);
        _writeSupplyCheckpoint();

        emit Deposit(msg.sender, tokenId, amount);
    }

    function _withdraw(uint amount, uint tokenId) external {
        require(msg.sender == voter, "Not voter");
        _updateRewardForAllTokens();

        totalSupply -= amount;
        balanceOf[tokenId] -= amount;

        _writeCheckpoint(tokenId, balanceOf[tokenId]);
        _writeSupplyCheckpoint();

        emit Withdraw(msg.sender, tokenId, amount);
    }

    function left(address token) external view returns (uint) {
        if (block.timestamp >= periodFinish[token]) return 0;
        uint _remaining = periodFinish[token] - block.timestamp;
        return _remaining * rewardRate[token];
    }

    /// @notice used to notify a gauge/bribe of a given reward, this can create griefing attacks by extending rewards
    function notifyRewardAmount(address token, uint amount) external lock {
        require(amount > 0, "Invalid amount");
        require(isReward[token], "Not reward token");

        if (rewardRate[token] == 0) _writeRewardPerTokenCheckpoint(token, 0, block.timestamp);
        (rewardPerTokenStored[token], lastUpdateTime[token]) = _updateRewardPerToken(token, type(uint).max, true);

        if (block.timestamp >= periodFinish[token]) {
            _safeTransferFrom(token, msg.sender, address(this), amount);
            rewardRate[token] = amount / DURATION;
        } else {
            uint _remaining = periodFinish[token] - block.timestamp;
            uint _left = _remaining * rewardRate[token];
            require(amount > _left);
            _safeTransferFrom(token, msg.sender, address(this), amount);
            rewardRate[token] = (amount + _left) / DURATION;
        }
        require(rewardRate[token] > 0, "Invalid reward rate");
        uint balance = IERC20(token).balanceOf(address(this));
        require(rewardRate[token] <= balance / DURATION, "Provided reward too high");
        periodFinish[token] = block.timestamp + DURATION;

        emit NotifyReward(msg.sender, token, amount);
    }

    function swapOutRewardToken(uint i, address oldToken, address newToken) external {
        require(msg.sender == IVotingEscrow(_ve).team(), "only team");
        require(rewards[i] == oldToken);
        isReward[oldToken] = false;
        isReward[newToken] = true;
        rewards[i] = newToken;
    }

    function _safeTransfer(address token, address to, uint256 value) internal {
        require(token.code.length > 0);
        (bool success, bytes memory data) =
        token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))));
    }

    function _safeTransferFrom(address token, address from, address to, uint256 value) internal {
        require(token.code.length > 0);
        (bool success, bytes memory data) =
        token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))));
    }
}

// File: contracts/interfaces/IBribeFactory.sol


pragma solidity 0.8.9;

interface IBribeFactory {
    function createInternalBribe(address[] memory) external returns (address);
    function createExternalBribe(address[] memory) external returns (address);
}

// File: contracts/factories/BribeFactory.sol


pragma solidity 0.8.9;




contract BribeFactory is IBribeFactory {
    address public lastInternalBribe;
    address public lastExternalBribe;

    function createInternalBribe(address[] memory _allowedRewards) external returns (address) {
        InternalBribe internalBribe = new InternalBribe();
        internalBribe.initialize(msg.sender, _allowedRewards);
        lastInternalBribe = address(internalBribe);
        return lastInternalBribe;
    }

    function createExternalBribe(address[] memory _allowedRewards) external returns (address) {
        ExternalBribe externalBribe = new ExternalBribe();
        externalBribe.initialize(msg.sender, _allowedRewards);
        lastExternalBribe = address(externalBribe);
        return lastExternalBribe;
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotifyReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_ve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"maxRuns","type":"uint256"}],"name":"batchRewardPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"maxRuns","type":"uint256"}],"name":"batchUpdateRewardPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"checkpoints","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"balanceOf","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getPriorBalanceIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getPriorRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getPriorSupplyIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getRewardForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address[]","name":"_allowedRewardTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastEarn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"left","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardPerTokenCheckpoints","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"rewardPerToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPerTokenNumCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplyCheckpoints","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyNumCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"address","name":"oldToken","type":"address"},{"internalType":"address","name":"newToken","type":"address"}],"name":"swapOutRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userRewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50612c4d806100206000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806399bcc05211610130578063da09d19d116100b8578063f301af421161007c578063f301af4214610591578063f3207723146105a4578063f5f8d365146105b7578063f7412baf146105ca578063fd314098146105f157600080fd5b8063da09d19d14610522578063e688639614610542578063e8111a121461054a578063f122977714610553578063f25e55a51461056657600080fd5b8063a28d4c9c116100ff578063a28d4c9c146104ba578063a7852afa146104cd578063aa479652146104e0578063aaf5eb6814610500578063b66503cf1461050f57600080fd5b806399bcc052146104545780639cc7f708146104675780639ce43f90146104875780639e2bf22c146104a757600080fd5b80634d5ce038116101b357806368fcee1a1161018257806368fcee1a146103f557806376f4be36146104085780638dd598fb1461041b5780639418f9391461042e578063946d92041461044157600080fd5b80634d5ce0381461037a57806350589793146103ad5780635a45d052146103cd578063638634ee146103e257600080fd5b80632ce9aead116101fa5780632ce9aead146102b95780633b881999146102d95780633e491d471461030457806346c96aac1461031757806349dcc2041461034857600080fd5b806301316ddf1461022c57806318160ddd146102785780631be052891461028f578063221ca18c14610299575b600080fd5b61025e61023a3660046128a6565b60106020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152015b60405180910390f35b610281600a5481565b60405190815260200161026f565b61028162093a8081565b6102816102a73660046128d2565b60026020526000908152604090205481565b6102816102c73660046128d2565b60046020526000908152604090205481565b6102816102e73660046128a6565b600760209081526000928352604080842090915290825290205481565b6102816103123660046128a6565b610604565b600054610330906201000090046001600160a01b031681565b6040516001600160a01b03909116815260200161026f565b61025e6103563660046128ef565b600c6020908152600092835260408084209091529082529020805460019091015482565b61039d6103883660046128d2565b60096020526000908152604090205460ff1681565b604051901515815260200161026f565b6102816103bb366004612911565b600d6020526000908152604090205481565b6103e06103db3660046128a6565b61085f565b005b6102816103f03660046128d2565b610897565b6103e06104033660046128a6565b6108bb565b610281610416366004612911565b6108c7565b600154610330906001600160a01b031681565b6103e061043c36600461292a565b6109f9565b6103e061044f366004612a24565b610b8e565b6102816104623660046128d2565b610e4a565b610281610475366004612911565b600b6020526000908152604090205481565b6102816104953660046128d2565b60056020526000908152604090205481565b6103e06104b53660046128ef565b610ebb565b6102816104c83660046128ef565b610fab565b6103e06104db366004612a74565b6110ee565b6102816104ee3660046128d2565b60116020526000908152604090205481565b610281670de0b6b3a764000081565b6103e061051d3660046128a6565b611460565b6102816105303660046128d2565b60036020526000908152604090205481565b600854610281565b610281600f5481565b6102816105613660046128d2565b611827565b6102816105743660046128a6565b600660209081526000928352604080842090915290825290205481565b61033061059f366004612911565b6118e7565b6103e06105b23660046128ef565b611911565b6103e06105c5366004612a74565b6119f9565b61025e6105d8366004612911565b600e602052600090815260409020805460019091015482565b61025e6105ff3660046128a6565b611d58565b6001600160a01b038216600081815260066020908152604080832085845282528083205493835260108252808320838052909152812054909182916106499190611f77565b6000848152600d6020526040902054909150610669576000915050610859565b60006106758483610fab565b6000858152600d60205260408120549192509061069490600190612abb565b90506000811561079d57825b6106ab600184612abb565b811161079b576000878152600c60208181526040808420858552808352818520825180840190935280548352600190810154838501528c865293909252929182906106f7908690612ad2565b815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905060006107368b8460000151611d58565b50905060006107498c8460000151611d58565b509050670de0b6b3a764000061075f8383612abb565b856020015161076e9190612aea565b6107789190612b09565b6107829087612ad2565b955050505050808061079390612b2b565b9150506106a0565b505b6000868152600c602090815260408083208584528252808320815180830190925280548083526001909101549282019290925291906107dd908a90611d58565b506001600160a01b038a1660009081526007602090815260408083208c8452909152902054909150670de0b6b3a76400009061081a908390611f77565b6108238b611827565b61082d9190612abb565b836020015161083c9190612aea565b6108469190612b09565b6108509084612ad2565b96505050505050505b92915050565b6108698282611f8e565b6001600160a01b03909316600090815260056020908152604080832060049092529091209390935590915550565b6001600160a01b0381166000908152600360205260408120546108599042906120ed565b610869828260006120fc565b600f54600090806108db5750600092915050565b82600e60006108eb600185612abb565b815260200190815260200160002060000154116109145761090d600182612abb565b9392505050565b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c5483101561094f5750600092915050565b60008061095d600184612abb565b90505b818111156109f157600060026109768484612abb565b6109809190612b09565b61098a9083612abb565b6000818152600e60209081526040918290208251808401909352805480845260019091015491830191909152919250908714156109cb575095945050505050565b80518711156109dc578193506109ea565b6109e7600183612abb565b92505b5050610960565b509392505050565b600160009054906101000a90046001600160a01b03166001600160a01b03166385f2aef26040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610a4957600080fd5b505af1158015610a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a819190612b46565b6001600160a01b0316336001600160a01b031614610ad25760405162461bcd60e51b81526020600482015260096024820152686f6e6c79207465616d60b81b60448201526064015b60405180910390fd5b816001600160a01b031660088481548110610aef57610aef612b63565b6000918252602090912001546001600160a01b031614610b0e57600080fd5b6001600160a01b03808316600090815260096020526040808220805460ff1990811690915592841682529020805490911660011790556008805482919085908110610b5b57610b5b612b63565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b600054610100900460ff1615808015610bae5750600054600160ff909116105b80610bc85750303b158015610bc8575060005460ff166001145b610c2b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610ac9565b6000805460ff191660011790558015610c4e576000805461ff0019166101001790555b82600060026101000a8154816001600160a01b0302191690836001600160a01b03160217905550826001600160a01b0316638dd598fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cae57600080fd5b505afa158015610cc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce69190612b46565b600180546001600160a01b0319166001600160a01b039290921691909117905560005b8251811015610dfe5760006001600160a01b0316838281518110610d2f57610d2f612b63565b60200260200101516001600160a01b031614610dec57600160096000858481518110610d5d57610d5d612b63565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055506008838281518110610db057610db0612b63565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790555b80610df681612b2b565b915050610d09565b508015610e45576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6001600160a01b0381166000908152600360205260408120544210610e7157506000919050565b6001600160a01b038216600090815260036020526040812054610e95904290612abb565b6001600160a01b03841660009081526002602052604090205490915061090d9082612aea565b6000546201000090046001600160a01b03163314610f075760405162461bcd60e51b81526020600482015260096024820152682737ba103b37ba32b960b91b6044820152606401610ac9565b610f0f6122e8565b81600a6000828254610f219190612abb565b90915550506000818152600b602052604081208054849290610f44908490612abb565b90915550506000818152600b6020526040902054610f63908290612370565b610f6b612449565b604080518281526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56891015b60405180910390a25050565b6000828152600d602052604081205480610fc9576000915050610859565b6000848152600c602052604081208491610fe4600185612abb565b8152602001908152602001600020600001541161100e57611006600182612abb565b915050610859565b6000848152600c60209081526040808320838052909152902054831015611039576000915050610859565b600080611047600184612abb565b90505b818111156110e557600060026110608484612abb565b61106a9190612b09565b6110749083612abb565b6000888152600c602090815260408083208484528252918290208251808401909352805480845260019091015491830191909152919250908714156110bf5750935061085992505050565b80518711156110d0578193506110de565b6110db600183612abb565b92505b505061104a565b50949350505050565b60125460ff16156111115760405162461bcd60e51b8152600401610ac990612b79565b60128054600160ff199091161790556000546201000090046001600160a01b0316331461116e5760405162461bcd60e51b815260206004820152600b60248201526a2737ba1030903b37ba32b960a91b6044820152606401610ac9565b6001546040516331a9108f60e11b8152600481018490526000916001600160a01b031690636352211e9060240160206040518083038186803b1580156111b357600080fd5b505afa1580156111c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111eb9190612b46565b905060005b82518110156114505761122083828151811061120e5761120e612b63565b602002602001015160001960016120fc565b6005600086858151811061123657611236612b63565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006004600088878151811061127657611276612b63565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600084919050558391905055505060006112d18483815181106112c3576112c3612b63565b602002602001015186610604565b905042600660008685815181106112ea576112ea612b63565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000878152602001908152602001600020819055506005600085848151811061133d5761133d612b63565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020546007600086858151811061137c5761137c612b63565b6020908102919091018101516001600160a01b03168252818101929092526040908101600090812089825290925290205580156113d7576113d78483815181106113c8576113c8612b63565b602002602001015184836124ed565b8382815181106113e9576113e9612b63565b60200260200101516001600160a01b0316836001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc98360405161143591815260200190565b60405180910390a3508061144881612b2b565b9150506111f0565b50506012805460ff191690555050565b60125460ff16156114835760405162461bcd60e51b8152600401610ac990612b79565b6012805460ff19166001179055806114ce5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610ac9565b6001600160a01b03821660009081526009602052604090205460ff166115295760405162461bcd60e51b815260206004820152601060248201526f2737ba103932bbb0b932103a37b5b2b760811b6044820152606401610ac9565b6001600160a01b03821660009081526002602052604090205461155257611552826000426125dc565b6115608260001960016120fc565b6001600160a01b03841660009081526005602090815260408083206004835281842094909455939092556003909152205442106115ce576115a3823330846126cb565b6115b062093a8082612b09565b6001600160a01b038316600090815260026020526040902055611667565b6001600160a01b0382166000908152600360205260408120546115f2904290612abb565b6001600160a01b038416600090815260026020526040812054919250906116199083612aea565b905080831161162757600080fd5b611633843330866126cb565b62093a806116418285612ad2565b61164b9190612b09565b6001600160a01b03851660009081526002602052604090205550505b6001600160a01b0382166000908152600260205260409020546116c25760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420726577617264207261746560681b6044820152606401610ac9565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561170457600080fd5b505afa158015611718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173c9190612ba1565b905061174b62093a8082612b09565b6001600160a01b03841660009081526002602052604090205411156117b25760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610ac9565b6117bf62093a8042612ad2565b6001600160a01b0384166000818152600360205260409081902092909255905133907ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf50826906118109086815260200190565b60405180910390a350506012805460ff1916905550565b6000600a546000141561185057506001600160a01b031660009081526005602052604090205490565b600a546001600160a01b03831660009081526002602090815260408083205460048352818420546003909352922054670de0b6b3a76400009291611893916120ed565b61189c86610897565b6118a69190612abb565b6118b09190612aea565b6118ba9190612aea565b6118c49190612b09565b6001600160a01b0383166000908152600560205260409020546108599190612ad2565b600881815481106118f757600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546201000090046001600160a01b0316331461195d5760405162461bcd60e51b81526020600482015260096024820152682737ba103b37ba32b960b91b6044820152606401610ac9565b6119656122e8565b81600a60008282546119779190612ad2565b90915550506000818152600b60205260408120805484929061199a908490612ad2565b90915550506000818152600b60205260409020546119b9908290612370565b6119c1612449565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159101610f9f565b60125460ff1615611a1c5760405162461bcd60e51b8152600401610ac990612b79565b6012805460ff191660019081179091555460405163430c208160e01b8152336004820152602481018490526001600160a01b039091169063430c20819060440160206040518083038186803b158015611a7457600080fd5b505afa158015611a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aac9190612bba565b611af85760405162461bcd60e51b815260206004820152601d60248201527f4e65697468657220617070726f766564206e6f7220616e206f776e65720000006044820152606401610ac9565b60005b8151811015611d4957611b1982828151811061120e5761120e612b63565b60056000858581518110611b2f57611b2f612b63565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600060046000878781518110611b6f57611b6f612b63565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008491905055839190505550506000611bca838381518110611bbc57611bbc612b63565b602002602001015185610604565b90504260066000858581518110611be357611be3612b63565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008681526020019081526020016000208190555060056000848481518110611c3657611c36612b63565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460076000858581518110611c7557611c75612b63565b6020908102919091018101516001600160a01b0316825281810192909252604090810160009081208882529092529020558015611cd057611cd0838381518110611cc157611cc1612b63565b602002602001015133836124ed565b828281518110611ce257611ce2612b63565b60200260200101516001600160a01b0316336001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc983604051611d2e91815260200190565b60405180910390a35080611d4181612b2b565b915050611afb565b50506012805460ff1916905550565b6001600160a01b038216600090815260116020526040812054819080611d85576000809250925050611f70565b6001600160a01b03851660009081526010602052604081208591611daa600185612abb565b81526020019081526020016000206000015411611e47576001600160a01b038516600090815260106020526040812090611de5600184612abb565b81526020019081526020016000206001015460106000876001600160a01b03166001600160a01b031681526020019081526020016000206000600184611e2b9190612abb565b8152602001908152602001600020600001549250925050611f70565b6001600160a01b0385166000908152601060209081526040808320838052909152902054841015611e7f576000809250925050611f70565b600080611e8d600184612abb565b90505b81811115611f3f5760006002611ea68484612abb565b611eb09190612b09565b611eba9083612abb565b6001600160a01b0389166000908152601060209081526040808320848452825291829020825180840190935280548084526001909101549183019190915291925090881415611f1957602081015190519096509450611f709350505050565b8051881115611f2a57819350611f38565b611f35600183612abb565b92505b5050611e90565b506001600160a01b038616600090815260106020908152604080832093835292905220600181015490549093509150505b9250929050565b600081831015611f87578161090d565b5090919050565b6001600160a01b0382166000908152600460209081526040808320546005909252822054600f5483929190611fc65792509050611f70565b6001600160a01b038616600090815260026020526040902054611fef579250429150611f709050565b6000611ffa836108c7565b905060006120166001600f546120109190612abb565b886120ed565b9050815b818110156120de576000818152600e602090815260409182902082518084019093528054835260010154908201819052156120cb576000600e8161205f856001612ad2565b81526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090506000806120aa8d8460000151866000015187602001518d6127c3565b90925090506120b98289612ad2565b97506120c68d89836125dc565b975050505b50806120d681612b2b565b91505061201a565b50919792965091945050505050565b6000818310611f87578161090d565b6001600160a01b0383166000908152600460209081526040808320546005909252822054600f548392919061213457925090506122e0565b6001600160a01b03871660009081526002602052604090205461215d5792504291506122e09050565b6000612168836108c7565b905060006121846001600f5461217e9190612abb565b896120ed565b9050801561225d57815b612199600183612abb565b811161225b576000818152600e60209081526040918290208251808401909352805483526001015490820181905215612248576000600e816121dc856001612ad2565b81526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090506000806122278e8460000151866000015187602001518d6127c3565b90925090506122368289612ad2565b97506122438e89836125dc565b975050505b508061225381612b2b565b91505061218e565b505b86156122d7576000818152600e602090815260409182902082518084019093528054835260010154908201819052156122d55760006122b68b61229f8d610897565b84516122ab908a611f77565b85602001518a6127c3565b5090506122c38186612ad2565b94506122d08b86426125dc565b429550505b505b50909350909150505b935093915050565b60085460005b8181101561236c5760006008828154811061230b5761230b612b63565b6000918252602090912001546001600160a01b031690506123308160001960016120fc565b6001600160a01b03909216600090815260056020908152604080832060049092529091209290925590558061236481612b2b565b9150506122ee565b5050565b6000828152600d6020526040902054429080158015906123ba57506000848152600c6020526040812083916123a6600185612abb565b815260200190815260200160002060000154145b156123f3576000848152600c6020526040812084916123da600185612abb565b8152602081019190915260400160002060010155612443565b60408051808201825283815260208082018681526000888152600c8352848120868252909252929020905181559051600191820155612433908290612ad2565b6000858152600d60205260409020555b50505050565b600f5442811580159061247b575080600e6000612467600186612abb565b815260200190815260200160002060000154145b156124aa57600a54600e6000612492600186612abb565b81526020810191909152604001600020600101555050565b604080518082018252828152600a5460208083019182526000868152600e909152929092209051815590516001918201556124e6908390612ad2565b600f555050565b6000836001600160a01b03163b1161250457600080fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916125609190612bdc565b6000604051808303816000865af19150503d806000811461259d576040519150601f19603f3d011682016040523d82523d6000602084013e6125a2565b606091505b50915091508180156125cc5750805115806125cc5750808060200190518101906125cc9190612bba565b6125d557600080fd5b5050505050565b6001600160a01b038316600090815260116020526040902054801580159061263857506001600160a01b03841660009081526010602052604081208391612624600185612abb565b815260200190815260200160002060000154145b15612662576001600160a01b038416600090815260106020526040812084916123da600185612abb565b60408051808201825283815260208082018681526001600160a01b0388166000908152601083528481208682529092529290209051815590516001918201556126ac908290612ad2565b6001600160a01b03851660009081526011602052604090205550505050565b6000846001600160a01b03163b116126e257600080fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291516000928392908816916127469190612bdc565b6000604051808303816000865af19150503d8060008114612783576040519150601f19603f3d011682016040523d82523d6000602084013e612788565b606091505b50915091508180156127b25750805115806127b25750808060200190518101906127b29190612bba565b6127bb57600080fd5b505050505050565b60008060006127d28785611f77565b6001600160a01b0389166000908152600260205260409020549091508590670de0b6b3a7640000906128256128078a89611f77565b6001600160a01b038d166000908152600360205260409020546120ed565b6001600160a01b038c166000908152600360205260409020546128499086906120ed565b6128539190612abb565b61285d9190612aea565b6128679190612aea565b6128719190612b09565b9890975095505050505050565b6001600160a01b038116811461289357600080fd5b50565b80356128a18161287e565b919050565b600080604083850312156128b957600080fd5b82356128c48161287e565b946020939093013593505050565b6000602082840312156128e457600080fd5b813561090d8161287e565b6000806040838503121561290257600080fd5b50508035926020909101359150565b60006020828403121561292357600080fd5b5035919050565b60008060006060848603121561293f57600080fd5b8335925060208401356129518161287e565b915060408401356129618161287e565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261299357600080fd5b8135602067ffffffffffffffff808311156129b0576129b061296c565b8260051b604051601f19603f830116810181811084821117156129d5576129d561296c565b6040529384528581018301938381019250878511156129f357600080fd5b83870191505b84821015612a1957612a0a82612896565b835291830191908301906129f9565b979650505050505050565b60008060408385031215612a3757600080fd5b8235612a428161287e565b9150602083013567ffffffffffffffff811115612a5e57600080fd5b612a6a85828601612982565b9150509250929050565b60008060408385031215612a8757600080fd5b82359150602083013567ffffffffffffffff811115612a5e57600080fd5b634e487b7160e01b600052601160045260246000fd5b600082821015612acd57612acd612aa5565b500390565b60008219821115612ae557612ae5612aa5565b500190565b6000816000190483118215151615612b0457612b04612aa5565b500290565b600082612b2657634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415612b3f57612b3f612aa5565b5060010190565b600060208284031215612b5857600080fd5b815161090d8161287e565b634e487b7160e01b600052603260045260246000fd5b6020808252600e908201526d4e6f2072652d656e7472616e637960901b604082015260600190565b600060208284031215612bb357600080fd5b5051919050565b600060208284031215612bcc57600080fd5b8151801515811461090d57600080fd5b6000825160005b81811015612bfd5760208186018101518583015201612be3565b81811115612c0c576000828501525b50919091019291505056fea2646970667358221220b8bc92c8a4eeb2e1685f71fc6f978372278738297d3fc48366eebe376083bc9464736f6c63430008090033

Deployed ByteCode Sourcemap

31328:19929:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33233:96;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:25:1;;;839:2;824:18;;817:34;;;;756:18;33233:96:0;;;;;;;;32601:23;;;;;;;;;1008:25:1;;;996:2;981:18;32601:23:0;862:177:1;31926:38:0;;31958:6;31926:38;;32161:42;;;;;;:::i;:::-;;;;;;;;;;;;;;32261:46;;;;;;:::i;:::-;;;;;;;;;;;;;;32439:73;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;46416:1314;;;;;;:::i;:::-;;:::i;31804:20::-;;;;;;;;-1:-1:-1;;;;;31804:20:0;;;;;;-1:-1:-1;;;;;1460:32:1;;;1442:51;;1430:2;1415:18;31804:20:0;1296:203:1;32754:65:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32552:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1922:14:1;;1915:22;1897:41;;1885:2;1870:18;32552:40:0;1757:187:1;32886:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;42266:178;;;;;;:::i;:::-;;:::i;:::-;;40118:148;;;;;;:::i;:::-;;:::i;44175:189::-;;;;;;:::i;:::-;;:::i;35870:1034::-;;;;;;:::i;:::-;;:::i;31899:18::-;;;;;-1:-1:-1;;;;;31899:18:0;;;50248:308;;;;;;:::i;:::-;;:::i;33987:427::-;;;;;;:::i;:::-;;:::i;48630:243::-;;;;;;:::i;:::-;;:::i;32631:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;32314:52;;;;;;:::i;:::-;;;;;;;;;;;;;;48248:374;;;;;;:::i;:::-;;:::i;34807:1055::-;;;;;;:::i;:::-;;:::i;41151:748::-;;;;;;:::i;:::-;;:::i;33394:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;32007:41;;32040:8;32007:41;;49000:1240;;;;;;:::i;:::-;;:::i;32210:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;39909:98;39985:7;:14;39909:98;;33120:32;;;;;;41907:351;;;;;;:::i;:::-;;:::i;32375:57::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;32521:24;;;;;;:::i;:::-;;:::i;47868:372::-;;;;;;:::i;:::-;;:::i;40340:741::-;;;;;;:::i;:::-;;:::i;33011:59::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;36912:1374;;;;;;:::i;:::-;;:::i;46416:1314::-;-1:-1:-1;;;;;46531:15:0;;46482:4;46531:15;;;:8;:15;;;;;;;;:24;;;;;;;;;46557:32;;;:25;:32;;;;;:35;;;;;;;;:45;46482:4;;;;46522:81;;46531:24;46522:8;:81::i;:::-;46618:23;;;;:14;:23;;;;;;46499:104;;-1:-1:-1;46614:69:0;;46670:1;46663:8;;;;;46614:69;46695:16;46714:46;46735:7;46744:15;46714:20;:46::i;:::-;46771:14;46788:23;;;:14;:23;;;;;;46695:65;;-1:-1:-1;46771:14:0;46788:25;;46812:1;;46788:25;:::i;:::-;46771:42;-1:-1:-1;46826:11:0;46858:13;;46854:543;;46902:11;46888:498;46920:11;46930:1;46920:9;:11;:::i;:::-;46915:1;:16;46888:498;;46957:21;46981:20;;;:11;:20;;;;;;;;:23;;;;;;;;;46957:47;;;;;;;;;;;;;;;;;;;;;47047:20;;;;;;;46957:47;:21;;;47068:3;;47002:1;;47068:3;:::i;:::-;47047:25;;;;;;;;;;;47023:49;;;;;;;;;;;;;;;;;;;;;;;;;;;47092:27;47124:44;47147:5;47154:3;:13;;;47124:22;:44::i;:::-;47091:77;;;47188:27;47220:44;47243:5;47250:3;:13;;;47220:22;:44::i;:::-;-1:-1:-1;47187:77:0;-1:-1:-1;32040:8:0;47310:47;47335:22;47187:77;47310:47;:::i;:::-;47293:3;:13;;;:65;;;;:::i;:::-;:77;;;;:::i;:::-;47283:87;;;;:::i;:::-;;;46938:448;;;;46933:3;;;;;:::i;:::-;;;;46888:498;;;;46854:543;47409:20;47432;;;:11;:20;;;;;;;;:31;;;;;;;;47409:54;;;;;;;;;;;;;;;;;;;;;;;;;;:20;47506:43;;47529:5;;47506:22;:43::i;:::-;-1:-1:-1;;;;;;47642:31:0;;;;;;:24;:31;;;;;;;;:40;;;;;;;;;47474:75;;-1:-1:-1;32040:8:0;;47610:73;;47474:75;;47610:8;:73::i;:::-;47586:21;47601:5;47586:14;:21::i;:::-;:97;;;;:::i;:::-;47570:2;:12;;;:114;;;;:::i;:::-;:126;;;;:::i;:::-;47560:136;;;;:::i;:::-;;-1:-1:-1;;;;;;;46416:1314:0;;;;;:::o;42266:178::-;42400:36;42421:5;42428:7;42400:20;:36::i;:::-;-1:-1:-1;;;;;42345:27:0;;;;;;;:20;:27;;;;;;;;42374:14;:21;;;;;;42344:92;;;;;;;-1:-1:-1;42266:178:0:o;40118:148::-;-1:-1:-1;;;;;40238:19:0;;40188:4;40238:19;;;:12;:19;;;;;;40212:46;;40221:15;;40212:8;:46::i;44175:189::-;44312:44;44334:5;44341:7;44350:5;44312:21;:44::i;35870:1034::-;35973:20;;35936:4;;36008:17;36004:58;;-1:-1:-1;36049:1:0;;35870:1034;-1:-1:-1;;35870:1034:0:o;36004:58::-;36171:9;36122:17;:35;36140:16;36155:1;36140:12;:16;:::i;:::-;36122:35;;;;;;;;;;;:45;;;:58;36118:116;;36205:16;36220:1;36205:12;:16;:::i;:::-;36197:25;35870:1034;-1:-1:-1;;;35870:1034:0:o;36118:116::-;36295:20;;;:17;:20;;;:30;:42;-1:-1:-1;36291:83:0;;;-1:-1:-1;36361:1:0;;35870:1034;-1:-1:-1;;35870:1034:0:o;36291:83::-;36386:10;;36424:16;36439:1;36424:12;:16;:::i;:::-;36411:29;;36451:423;36466:5;36458;:13;36451:423;;;36488:11;36528:1;36511:13;36519:5;36511;:13;:::i;:::-;36510:19;;;;:::i;:::-;36502:27;;:5;:27;:::i;:::-;36571:26;36600:25;;;:17;:25;;;;;;;;;36571:54;;;;;;;;;;;;;;;;;;;;;;;;;36488:41;;-1:-1:-1;36571:54:0;36644:25;;36640:223;;;-1:-1:-1;36697:6:0;35870:1034;-1:-1:-1;;;;;35870:1034:0:o;36640:223::-;36729:12;;:24;-1:-1:-1;36725:138:0;;;36782:6;36774:14;;36725:138;;;36837:10;36846:1;36837:6;:10;:::i;:::-;36829:18;;36725:138;36473:401;;36451:423;;;-1:-1:-1;36891:5:0;35870:1034;-1:-1:-1;;;35870:1034:0:o;50248:308::-;50376:3;;;;;;;;;-1:-1:-1;;;;;50376:3:0;-1:-1:-1;;;;;50362:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;50348:39:0;:10;-1:-1:-1;;;;;50348:39:0;;50340:61;;;;-1:-1:-1;;;50340:61:0;;5937:2:1;50340:61:0;;;5919:21:1;5976:1;5956:18;;;5949:29;-1:-1:-1;;;5994:18:1;;;5987:39;6043:18;;50340:61:0;;;;;;;;;50434:8;-1:-1:-1;;;;;50420:22:0;:7;50428:1;50420:10;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;50420:10:0;:22;50412:31;;;;;;-1:-1:-1;;;;;50454:18:0;;;50475:5;50454:18;;;:8;:18;;;;;;:26;;-1:-1:-1;;50454:26:0;;;;;;50491:18;;;;;;;:25;;;;;50454:26;50491:25;;;50527:7;:10;;50500:8;;50527:7;50535:1;;50527:10;;;;;;:::i;:::-;;;;;;;;;:21;;;;;-1:-1:-1;;;;;50527:21:0;;;;;-1:-1:-1;;;;;50527:21:0;;;;;;50248:308;;;:::o;33987:427::-;15658:19;15681:13;;;;;;15680:14;;15728:34;;;;-1:-1:-1;15746:12:0;;15761:1;15746:12;;;;:16;15728:34;15727:108;;;-1:-1:-1;15807:4:0;6420:19;:23;;;15768:66;;-1:-1:-1;15817:12:0;;;;;:17;15768:66;15705:204;;;;-1:-1:-1;;;15705:204:0;;6406:2:1;15705:204:0;;;6388:21:1;6445:2;6425:18;;;6418:30;6484:34;6464:18;;;6457:62;-1:-1:-1;;;6535:18:1;;;6528:44;6589:19;;15705:204:0;6204:410:1;15705:204:0;15920:12;:16;;-1:-1:-1;;15920:16:0;15935:1;15920:16;;;15947:67;;;;15982:13;:20;;-1:-1:-1;;15982:20:0;;;;;15947:67;34100:6:::1;34092:5;;:14;;;;;-1:-1:-1::0;;;;;34092:14:0::1;;;;;-1:-1:-1::0;;;;;34092:14:0::1;;;;;;34130:6;-1:-1:-1::0;;;;;34123:18:0::1;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;34117:3;:26:::0;;-1:-1:-1;;;;;;34117:26:0::1;-1:-1:-1::0;;;;;34117:26:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;34156:251:0::1;34173:20;:27;34169:1;:31;34156:251;;;34261:1;-1:-1:-1::0;;;;;34226:37:0::1;:20;34247:1;34226:23;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;34226:37:0::1;;34222:174;;34320:4;34284:8;:33;34293:20;34314:1;34293:23;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;34284:33:0::1;-1:-1:-1::0;;;;;34284:33:0::1;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;34343:7;34356:20;34377:1;34356:23;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;34343:37;;::::1;::::0;::::1;::::0;;-1:-1:-1;34343:37:0;;;;;;;::::1;::::0;;-1:-1:-1;;;;;;34343:37:0::1;-1:-1:-1::0;;;;;34343:37:0;;::::1;::::0;;;::::1;::::0;;34222:174:::1;34202:3:::0;::::1;::::0;::::1;:::i;:::-;;;;34156:251;;;;16040:14:::0;16036:102;;;16087:5;16071:21;;-1:-1:-1;;16071:21:0;;;16112:14;;-1:-1:-1;6771:36:1;;16112:14:0;;6759:2:1;6744:18;16112:14:0;;;;;;;16036:102;15647:498;33987:427;;:::o;48630:243::-;-1:-1:-1;;;;;48722:19:0;;48682:4;48722:19;;;:12;:19;;;;;;48703:15;:38;48699:52;;-1:-1:-1;48750:1:0;;48630:243;-1:-1:-1;48630:243:0:o;48699:52::-;-1:-1:-1;;;;;48780:19:0;;48762:15;48780:19;;;:12;:19;;;;;;:37;;48802:15;;48780:37;:::i;:::-;-1:-1:-1;;;;;48848:17:0;;;;;;:10;:17;;;;;;48762:55;;-1:-1:-1;48835:30:0;;48762:55;48835:30;:::i;48248:374::-;48336:5;;;;;-1:-1:-1;;;;;48336:5:0;48322:10;:19;48314:41;;;;-1:-1:-1;;;48314:41:0;;7020:2:1;48314:41:0;;;7002:21:1;7059:1;7039:18;;;7032:29;-1:-1:-1;;;7077:18:1;;;7070:39;7126:18;;48314:41:0;6818:332:1;48314:41:0;48366:27;:25;:27::i;:::-;48421:6;48406:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;48438:18:0;;;;:9;:18;;;;;:28;;48460:6;;48438:18;:28;;48460:6;;48438:28;:::i;:::-;;;;-1:-1:-1;;48505:18:0;;;;:9;:18;;;;;;48479:45;;48496:7;;48479:16;:45::i;:::-;48535:24;:22;:24::i;:::-;48577:37;;;783:25:1;;;839:2;824:18;;817:34;;;48586:10:0;;48577:37;;756:18:1;48577:37:0;;;;;;;;48248:374;;:::o;34807:1055::-;34888:4;34925:23;;;:14;:23;;;;;;34963:17;34959:58;;35004:1;34997:8;;;;;34959:58;35077:20;;;;:11;:20;;;;;35129:9;;35098:16;35113:1;35098:12;:16;:::i;:::-;35077:38;;;;;;;;;;;:48;;;:61;35073:119;;35163:16;35178:1;35163:12;:16;:::i;:::-;35155:25;;;;;35073:119;35253:20;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:45;-1:-1:-1;35249:86:0;;;35322:1;35315:8;;;;;35249:86;35347:10;;35385:16;35400:1;35385:12;:16;:::i;:::-;35372:29;;35412:420;35427:5;35419;:13;35412:420;;;35449:11;35489:1;35472:13;35480:5;35472;:13;:::i;:::-;35471:19;;;;:::i;:::-;35463:27;;:5;:27;:::i;:::-;35532:20;35555;;;:11;:20;;;;;;;;:28;;;;;;;;;35532:51;;;;;;;;;;;;;;;;;;;;;;;;;35449:41;;-1:-1:-1;35532:51:0;35602:25;;35598:223;;;-1:-1:-1;35655:6:0;-1:-1:-1;35648:13:0;;-1:-1:-1;;;35648:13:0;35598:223;35687:12;;:24;-1:-1:-1;35683:138:0;;;35740:6;35732:14;;35683:138;;;35795:10;35804:1;35795:6;:10;:::i;:::-;35787:18;;35683:138;35434:398;;35412:420;;;-1:-1:-1;35849:5:0;34807:1055;-1:-1:-1;;;;34807:1055:0:o;41151:748::-;33881:7;;;;33880:8;33872:36;;;;-1:-1:-1;;;33872:36:0;;;;;;;:::i;:::-;33919:7;:14;;33929:4;-1:-1:-1;;33919:14:0;;;;;;-1:-1:-1;41265:5:0;;;::::1;-1:-1:-1::0;;;;;41265:5:0::1;41251:10;:19;41243:43;;;::::0;-1:-1:-1;;;41243:43:0;;7700:2:1;41243:43:0::1;::::0;::::1;7682:21:1::0;7739:2;7719:18;;;7712:30;-1:-1:-1;;;7758:18:1;;;7751:41;7809:18;;41243:43:0::1;7498:335:1::0;41243:43:0::1;41328:3;::::0;41314:35:::1;::::0;-1:-1:-1;;;41314:35:0;;::::1;::::0;::::1;1008:25:1::0;;;41297:14:0::1;::::0;-1:-1:-1;;;;;41328:3:0::1;::::0;41314:26:::1;::::0;981:18:1;;41314:35:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41297:52;;41365:6;41360:532;41381:6;:13;41377:1;:17;41360:532;;;41479:54;41501:6;41508:1;41501:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;41528:4:0::1;41479:21;:54::i;:::-;41417:20;:31;41438:6;41445:1;41438:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;41417:31:0::1;-1:-1:-1::0;;;;;41417:31:0::1;;;;;;;;;;;;;41450:14;:25;41465:6;41472:1;41465:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;41450:25:0::1;-1:-1:-1::0;;;;;41450:25:0::1;;;;;;;;;;;;;41416:117;;;;;;;;;;;;41550:12;41565:26;41572:6;41579:1;41572:9;;;;;;;;:::i;:::-;;;;;;;41583:7;41565:6;:26::i;:::-;41550:41;;41637:15;41606:8;:19;41615:6;41622:1;41615:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;41606:19:0::1;-1:-1:-1::0;;;;;41606:19:0::1;;;;;;;;;;;;:28;41626:7;41606:28;;;;;;;;;;;:46;;;;41714:20;:31;41735:6;41742:1;41735:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;41714:31:0::1;-1:-1:-1::0;;;;;41714:31:0::1;;;;;;;;;;;;;41667:24;:35;41692:6;41699:1;41692:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;41667:35:0::1;::::0;;;;::::1;::::0;;;;;;;;-1:-1:-1;41667:35:0;;;:44;;;;;;;;:78;41764:11;;41760:58:::1;;41777:41;41791:6;41798:1;41791:9;;;;;;;;:::i;:::-;;;;;;;41802:6;41810:7;41777:13;:41::i;:::-;41861:6;41868:1;41861:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;41840:40:0::1;41853:6;-1:-1:-1::0;;;;;41840:40:0::1;;41872:7;41840:40;;;;1008:25:1::0;;996:2;981:18;;862:177;41840:40:0::1;;;;;;;;-1:-1:-1::0;41396:3:0;::::1;::::0;::::1;:::i;:::-;;;;41360:532;;;-1:-1:-1::0;;33956:7:0;:15;;-1:-1:-1;;33956:15:0;;;-1:-1:-1;;41151:748:0:o;49000:1240::-;33881:7;;;;33880:8;33872:36;;;;-1:-1:-1;;;33872:36:0;;;;;;;:::i;:::-;33919:7;:14;;-1:-1:-1;;33919:14:0;33929:4;33919:14;;;49089:10;49081:37:::1;;;::::0;-1:-1:-1;;;49081:37:0;;8040:2:1;49081:37:0::1;::::0;::::1;8022:21:1::0;8079:2;8059:18;;;8052:30;-1:-1:-1;;;8098:18:1;;;8091:44;8152:18;;49081:37:0::1;7838:338:1::0;49081:37:0::1;-1:-1:-1::0;;;;;49137:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;;::::1;;49129:44;;;::::0;-1:-1:-1;;;49129:44:0;;8383:2:1;49129:44:0::1;::::0;::::1;8365:21:1::0;8422:2;8402:18;;;8395:30;-1:-1:-1;;;8441:18:1;;;8434:46;8497:18;;49129:44:0::1;8181:340:1::0;49129:44:0::1;-1:-1:-1::0;;;;;49190:17:0;::::1;;::::0;;;:10:::1;:17;::::0;;;;;49186:85:::1;;49214:57;49245:5;49252:1;49255:15;49214:30;:57::i;:::-;49337:50;49359:5;-1:-1:-1::0;;49382:4:0::1;49337:21;:50::i;:::-;-1:-1:-1::0;;;;;49283:27:0;::::1;;::::0;;;:20:::1;:27;::::0;;;;;;;49312:14:::1;:21:::0;;;;;49282:105;;;;;;;;49423:12:::1;:19:::0;;;;;49404:15:::1;:38;49400:502;;49459:59;49477:5;49484:10;49504:4;49511:6;49459:17;:59::i;:::-;49553:17;31958:6;49553::::0;:17:::1;:::i;:::-;-1:-1:-1::0;;;;;49533:17:0;::::1;;::::0;;;:10:::1;:17;::::0;;;;:37;49400:502:::1;;;-1:-1:-1::0;;;;;49621:19:0;::::1;49603:15;49621:19:::0;;;:12:::1;:19;::::0;;;;;:37:::1;::::0;49643:15:::1;::::0;49621:37:::1;:::i;:::-;-1:-1:-1::0;;;;;49699:17:0;::::1;49673:10;49699:17:::0;;;:10:::1;:17;::::0;;;;;49603:55;;-1:-1:-1;49673:10:0;49686:30:::1;::::0;49603:55;49686:30:::1;:::i;:::-;49673:43;;49748:5;49739:6;:14;49731:23;;;::::0;::::1;;49769:59;49787:5;49794:10;49814:4;49821:6;49769:17;:59::i;:::-;31958:6;49864:14;49873:5:::0;49864:6;:14:::1;:::i;:::-;49863:27;;;;:::i;:::-;-1:-1:-1::0;;;;;49843:17:0;::::1;;::::0;;;:10:::1;:17;::::0;;;;:47;-1:-1:-1;;49400:502:0::1;-1:-1:-1::0;;;;;49920:17:0;::::1;49940:1;49920:17:::0;;;:10:::1;:17;::::0;;;;;49912:53:::1;;;::::0;-1:-1:-1;;;49912:53:0;;8728:2:1;49912:53:0::1;::::0;::::1;8710:21:1::0;8767:2;8747:18;;;8740:30;-1:-1:-1;;;8786:18:1;;;8779:49;8845:18;;49912:53:0::1;8526:343:1::0;49912:53:0::1;49991:38;::::0;-1:-1:-1;;;49991:38:0;;50023:4:::1;49991:38;::::0;::::1;1442:51:1::0;49976:12:0::1;::::0;-1:-1:-1;;;;;49991:23:0;::::1;::::0;::::1;::::0;1415:18:1;;49991:38:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49976:53:::0;-1:-1:-1;50069:18:0::1;31958:6;49976:53:::0;50069:18:::1;:::i;:::-;-1:-1:-1::0;;;;;50048:17:0;::::1;;::::0;;;:10:::1;:17;::::0;;;;;:39:::1;;50040:76;;;::::0;-1:-1:-1;;;50040:76:0;;9265:2:1;50040:76:0::1;::::0;::::1;9247:21:1::0;9304:2;9284:18;;;9277:30;9343:26;9323:18;;;9316:54;9387:18;;50040:76:0::1;9063:348:1::0;50040:76:0::1;50149:26;31958:6;50149:15;:26;:::i;:::-;-1:-1:-1::0;;;;;50127:19:0;::::1;;::::0;;;:12:::1;:19;::::0;;;;;;:48;;;;50193:39;;50206:10:::1;::::0;50193:39:::1;::::0;::::1;::::0;50225:6;1008:25:1;;996:2;981:18;;862:177;50193:39:0::1;;;;;;;;-1:-1:-1::0;;33956:7:0;:15;;-1:-1:-1;;33956:15:0;;;-1:-1:-1;49000:1240:0:o;41907:351::-;41967:4;41988:11;;42003:1;41988:16;41984:83;;;-1:-1:-1;;;;;;42028:27:0;;;;;:20;:27;;;;;;;41907:351::o;41984:83::-;42238:11;;-1:-1:-1;;;;;42206:17:0;;;;;;:10;:17;;;;;;;;;42159:14;:21;;;;;;42182:12;:19;;;;;;32040:8;;42206:17;42150:52;;:8;:52::i;:::-;42116:31;42141:5;42116:24;:31::i;:::-;:86;;;;:::i;:::-;42115:108;;;;:::i;:::-;:120;;;;:::i;:::-;:134;;;;:::i;:::-;-1:-1:-1;;;;;42084:27:0;;;;;;:20;:27;;;;;;:166;;;;:::i;32521:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32521:24:0;;-1:-1:-1;32521:24:0;:::o;47868:372::-;47955:5;;;;;-1:-1:-1;;;;;47955:5:0;47941:10;:19;47933:41;;;;-1:-1:-1;;;47933:41:0;;7020:2:1;47933:41:0;;;7002:21:1;7059:1;7039:18;;;7032:29;-1:-1:-1;;;7077:18:1;;;7070:39;7126:18;;47933:41:0;6818:332:1;47933:41:0;47985:27;:25;:27::i;:::-;48040:6;48025:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;48057:18:0;;;;:9;:18;;;;;:28;;48079:6;;48057:18;:28;;48079:6;;48057:28;:::i;:::-;;;;-1:-1:-1;;48124:18:0;;;;:9;:18;;;;;;48098:45;;48115:7;;48098:16;:45::i;:::-;48154:24;:22;:24::i;:::-;48196:36;;;783:25:1;;;839:2;824:18;;817:34;;;48204:10:0;;48196:36;;756:18:1;48196:36:0;609:248:1;40340:741:0;33881:7;;;;33880:8;33872:36;;;;-1:-1:-1;;;33872:36:0;;;;;;;:::i;:::-;33919:7;:14;;-1:-1:-1;;33919:14:0;33929:4;33919:14;;;;;;40446:3;40432:57:::1;::::0;-1:-1:-1;;;40432:57:0;;40469:10:::1;40432:57;::::0;::::1;9590:51:1::0;9657:18;;;9650:34;;;-1:-1:-1;;;;;40446:3:0;;::::1;::::0;40432:36:::1;::::0;9563:18:1;;40432:57:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40424:99;;;::::0;-1:-1:-1;;;40424:99:0;;10179:2:1;40424:99:0::1;::::0;::::1;10161:21:1::0;10218:2;10198:18;;;10191:30;10257:31;10237:18;;;10230:59;10306:18;;40424:99:0::1;9977:353:1::0;40424:99:0::1;40539:6;40534:540;40555:6;:13;40551:1;:17;40534:540;;;40653:54;40675:6;40682:1;40675:9;;;;;;;;:::i;40653:54::-;40591:20;:31;40612:6;40619:1;40612:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;40591:31:0::1;-1:-1:-1::0;;;;;40591:31:0::1;;;;;;;;;;;;;40624:14;:25;40639:6;40646:1;40639:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;40624:25:0::1;-1:-1:-1::0;;;;;40624:25:0::1;;;;;;;;;;;;;40590:117;;;;;;;;;;;;40724:12;40739:26;40746:6;40753:1;40746:9;;;;;;;;:::i;:::-;;;;;;;40757:7;40739:6;:26::i;:::-;40724:41;;40811:15;40780:8;:19;40789:6;40796:1;40789:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;40780:19:0::1;-1:-1:-1::0;;;;;40780:19:0::1;;;;;;;;;;;;:28;40800:7;40780:28;;;;;;;;;;;:46;;;;40888:20;:31;40909:6;40916:1;40909:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;40888:31:0::1;-1:-1:-1::0;;;;;40888:31:0::1;;;;;;;;;;;;;40841:24;:35;40866:6;40873:1;40866:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;40841:35:0::1;::::0;;;;::::1;::::0;;;;;;;;-1:-1:-1;40841:35:0;;;:44;;;;;;;;:78;40938:11;;40934:62:::1;;40951:45;40965:6;40972:1;40965:9;;;;;;;;:::i;:::-;;;;;;;40976:10;40988:7;40951:13;:45::i;:::-;41043:6;41050:1;41043:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;41018:44:0::1;41031:10;-1:-1:-1::0;;;;;41018:44:0::1;;41054:7;41018:44;;;;1008:25:1::0;;996:2;981:18;;862:177;41018:44:0::1;;;;;;;;-1:-1:-1::0;40570:3:0;::::1;::::0;::::1;:::i;:::-;;;;40534:540;;;-1:-1:-1::0;;33956:7:0;:15;;-1:-1:-1;;33956:15:0;;;-1:-1:-1;40340:741:0:o;36912:1374::-;-1:-1:-1;;;;;37039:35:0;;36996:4;37039:35;;;:28;:35;;;;;;36996:4;;37089:17;37085:62;;37131:1;37133;37123:12;;;;;;;37085:62;-1:-1:-1;;;;;37207:32:0;;;;;;:25;:32;;;;;37271:9;;37240:16;37255:1;37240:12;:16;:::i;:::-;37207:50;;;;;;;;;;;:60;;;:73;37203:242;;-1:-1:-1;;;;;37305:32:0;;;;;;:25;:32;;;;;;37338:16;37353:1;37338:12;:16;:::i;:::-;37305:50;;;;;;;;;;;:65;;;37372:25;:32;37398:5;-1:-1:-1;;;;;37372:32:0;-1:-1:-1;;;;;37372:32:0;;;;;;;;;;;;:50;37420:1;37405:12;:16;;;;:::i;:::-;37372:50;;;;;;;;;;;:60;;;37297:136;;;;;;;37203:242;-1:-1:-1;;;;;37506:32:0;;;;;;:25;:32;;;;;;;;:35;;;;;;;;:45;:57;-1:-1:-1;37502:102:0;;;37588:1;37590;37580:12;;;;;;;37502:102;37616:10;;37654:16;37669:1;37654:12;:16;:::i;:::-;37641:29;;37681:473;37696:5;37688;:13;37681:473;;;37718:11;37758:1;37741:13;37749:5;37741;:13;:::i;:::-;37740:19;;;;:::i;:::-;37732:27;;:5;:27;:::i;:::-;-1:-1:-1;;;;;37838:32:0;;37801:34;37838:32;;;:25;:32;;;;;;;;:40;;;;;;;;;37801:77;;;;;;;;;;;;;;;;;;;;;;;;;37718:41;;-1:-1:-1;37801:77:0;37897:25;;37893:250;;;37951:17;;;;37970:12;;37951:17;;-1:-1:-1;37970:12:0;-1:-1:-1;37943:40:0;;-1:-1:-1;;;;37943:40:0;37893:250;38009:12;;:24;-1:-1:-1;38005:138:0;;;38062:6;38054:14;;38005:138;;;38117:10;38126:1;38117:6;:10;:::i;:::-;38109:18;;38005:138;37703:451;;37681:473;;;-1:-1:-1;;;;;;38172:32:0;;;;;;:25;:32;;;;;;;;:39;;;;;;;:54;;;;38228:49;;38172:54;;-1:-1:-1;38228:49:0;-1:-1:-1;;36912:1374:0;;;;;;:::o;3981:98::-;4033:4;4062:1;4057;:6;;:14;;4070:1;4057:14;;;-1:-1:-1;4066:1:0;;4050:21;-1:-1:-1;3981:98:0:o;42452:1132::-;-1:-1:-1;;;;;42575:21:0;;42529:4;42575:21;;;:14;:21;;;;;;;;;42621:20;:27;;;;;;42665:20;;42529:4;;42575:21;42621:27;42661:90;;42715:6;-1:-1:-1;42723:15:0;-1:-1:-1;42707:32:0;;42661:90;-1:-1:-1;;;;;42767:17:0;;;;;;:10;:17;;;;;;42763:87;;42814:6;-1:-1:-1;42822:15:0;;-1:-1:-1;42806:32:0;;-1:-1:-1;42806:32:0;42763:87;42862:16;42881:36;42901:15;42881:19;:36::i;:::-;42862:55;;42928:14;42945:41;42975:1;42954:20;;:22;;;;:::i;:::-;42978:7;42945:8;:41::i;:::-;42928:58;-1:-1:-1;43013:11:0;42999:533;43030:9;43026:1;:13;42999:533;;;43061:27;43091:20;;;:17;:20;;;;;;;;;43061:50;;;;;;;;;;;;;;;;;;;;;43130:14;43126:395;;43165:27;43195:17;43165:27;43213:3;:1;43215;43213:3;:::i;:::-;43195:22;;;;;;;;;;;43165:52;;;;;;;;;;;;;;;;;;;;;;;;;;;43237:12;43251;43267:85;43287:5;43294:3;:13;;;43309:3;:13;;;43324:3;:10;;;43336:15;43267:19;:85::i;:::-;43236:116;;-1:-1:-1;43236:116:0;-1:-1:-1;43371:17:0;43236:116;43371:17;;:::i;:::-;;;43407:54;43438:5;43445:6;43453:7;43407:30;:54::i;:::-;43498:7;-1:-1:-1;;;43126:395:0;-1:-1:-1;43041:3:0;;;;:::i;:::-;;;;42999:533;;;-1:-1:-1;43552:6:0;;43560:15;;-1:-1:-1;42452:1132:0;;-1:-1:-1;;;;;42452:1132:0:o;4085:97::-;4137:4;4165:1;4161;:5;:13;;4173:1;4161:13;;44672:1736;-1:-1:-1;;;;;44813:21:0;;44767:4;44813:21;;;:14;:21;;;;;;;;;44859:20;:27;;;;;;44903:20;;44767:4;;44813:21;44859:27;44899:90;;44953:6;-1:-1:-1;44961:15:0;-1:-1:-1;44945:32:0;;44899:90;-1:-1:-1;;;;;45005:17:0;;;;;;:10;:17;;;;;;45001:87;;45052:6;-1:-1:-1;45060:15:0;;-1:-1:-1;45044:32:0;;-1:-1:-1;45044:32:0;45001:87;45100:16;45119:36;45139:15;45119:19;:36::i;:::-;45100:55;;45166:14;45183:43;45215:1;45192:20;;:24;;;;:::i;:::-;45218:7;45183:8;:43::i;:::-;45166:60;-1:-1:-1;45243:13:0;;45239:622;;45287:11;45273:577;45305:13;45317:1;45305:9;:13;:::i;:::-;45300:1;:18;45273:577;;45344:27;45374:20;;;:17;:20;;;;;;;;;45344:50;;;;;;;;;;;;;;;;;;;;;45417:14;45413:422;;45456:27;45486:17;45456:27;45504:3;:1;45506;45504:3;:::i;:::-;45486:22;;;;;;;;;;;45456:52;;;;;;;;;;;;;;;;;;;;;;;;;;;45532:12;45546:13;45563:85;45583:5;45590:3;:13;;;45605:3;:13;;;45620:3;:10;;;45632:15;45563:19;:85::i;:::-;45531:117;;-1:-1:-1;45531:117:0;-1:-1:-1;45671:17:0;45531:117;45671:17;;:::i;:::-;;;45711:55;45742:5;45749:6;45757:8;45711:30;:55::i;:::-;45807:8;-1:-1:-1;;;45413:422:0;-1:-1:-1;45320:3:0;;;;:::i;:::-;;;;45273:577;;;;45239:622;45877:10;45873:483;;;45904:26;45933:28;;;:17;:28;;;;;;;;;45904:57;;;;;;;;;;;;;;;;;;;;;45980:13;45976:369;;46015:12;46032:128;46052:5;46059:31;46084:5;46059:24;:31::i;:::-;46101:12;;46092:39;;46115:15;46092:8;:39::i;:::-;46133:2;:9;;;46144:15;46032:19;:128::i;:::-;-1:-1:-1;46014:146:0;-1:-1:-1;46179:17:0;46014:146;46179:17;;:::i;:::-;;;46215:62;46246:5;46253:6;46261:15;46215:30;:62::i;:::-;46314:15;46296:33;;45995:350;45976:369;45889:467;45873:483;-1:-1:-1;46376:6:0;;-1:-1:-1;46384:15:0;;-1:-1:-1;;44672:1736:0;;;;;;;:::o;44372:292::-;44441:7;:14;44427:11;44464:193;44481:6;44477:1;:10;44464:193;;;44505:13;44521:7;44529:1;44521:10;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;44521:10:0;;-1:-1:-1;44597:50:0;44521:10;-1:-1:-1;;44521:10:0;44597:21;:50::i;:::-;-1:-1:-1;;;;;44543:27:0;;;;;;;:20;:27;;;;;;;;44572:14;:21;;;;;;44542:105;;;;;;44489:3;;;;:::i;:::-;;;;44464:193;;;;44418:246;44372:292::o;38294:518::-;38368:15;38433:23;;;:14;:23;;;;;;38386:15;;38473:17;;;;;:84;;-1:-1:-1;38494:20:0;;;;:11;:20;;;;;38547:10;;38515:17;38531:1;38515:13;:17;:::i;:::-;38494:39;;;;;;;;;;;:49;;;:63;38473:84;38469:336;;;38574:20;;;;:11;:20;;;;;38626:7;;38595:17;38611:1;38595:13;:17;:::i;:::-;38574:39;;;;;;;;;;;-1:-1:-1;38574:39:0;:49;;:59;38469:336;;;38704:31;;;;;;;;;;;;;;;;;;-1:-1:-1;38666:20:0;;;:11;:20;;;;;:35;;;;;;;;;:69;;;;;;;;;;;38776:17;;38687:13;;38776:17;:::i;:::-;38750:23;;;;:14;:23;;;;;:43;38469:336;38357:455;;38294:518;;:::o;39407:494::-;39482:20;;39531:15;39563:17;;;;;:81;;-1:-1:-1;39634:10:0;39584:17;:36;39602:17;39618:1;39602:13;:17;:::i;:::-;39584:36;;;;;;;;;;;:46;;;:60;39563:81;39559:335;;;39707:11;;39661:17;:36;39679:17;39695:1;39679:13;:17;:::i;:::-;39661:36;;;;;;;;;;;-1:-1:-1;39661:36:0;:43;;:57;44464:193;44418:246;44372:292::o;39559:335::-;39786:41;;;;;;;;;;;39815:11;;39786:41;;;;;;;-1:-1:-1;39751:32:0;;;:17;:32;;;;;;;:76;;;;;;;;;;;39865:17;;39769:13;;39865:17;:::i;:::-;39842:20;:40;39450:451;;39407:494::o;50564:327::-;50677:1;50657:5;-1:-1:-1;;;;;50657:17:0;;:21;50649:30;;;;;;50746:59;;;-1:-1:-1;;;;;9608:32:1;;;50746:59:0;;;9590:51:1;9657:18;;;;9650:34;;;50746:59:0;;;;;;;;;;9563:18:1;;;;50746:59:0;;;;;;;-1:-1:-1;;;;;50746:59:0;-1:-1:-1;;;50746:59:0;;;50735:71;;-1:-1:-1;;;;50735:10:0;;;;:71;;50746:59;50735:71;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50690:116;;;;50825:7;:57;;;;-1:-1:-1;50837:11:0;;:16;;:44;;;50868:4;50857:24;;;;;;;;;;;;:::i;:::-;50817:66;;;;;;50638:253;;50564:327;;;:::o;38820:579::-;-1:-1:-1;;;;;38945:35:0;;38924:18;38945:35;;;:28;:35;;;;;;38997:17;;;;;:95;;-1:-1:-1;;;;;;39018:32:0;;;;;;:25;:32;;;;;39083:9;;39051:17;39067:1;39051:13;:17;:::i;:::-;39018:51;;;;;;;;;;;:61;;;:74;38997:95;38993:399;;;-1:-1:-1;;;;;39109:32:0;;;;;;:25;:32;;;;;39178:6;;39142:17;39158:1;39142:13;:17;:::i;38993:399::-;39267:43;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39217:32:0;;-1:-1:-1;39217:32:0;;;:25;:32;;;;;:47;;;;;;;;;:93;;;;;;;;;;;39363:17;;39250:13;;39363:17;:::i;:::-;-1:-1:-1;;;;;39325:35:0;;;;;;:28;:35;;;;;:55;38913:486;38820:579;;;:::o;50899:355::-;51030:1;51010:5;-1:-1:-1;;;;;51010:17:0;;:21;51002:30;;;;;;51099:69;;;-1:-1:-1;;;;;11024:15:1;;;51099:69:0;;;11006:34:1;11076:15;;;11056:18;;;11049:43;11108:18;;;;11101:34;;;51099:69:0;;;;;;;;;;10941:18:1;;;;51099:69:0;;;;;;;-1:-1:-1;;;;;51099:69:0;-1:-1:-1;;;51099:69:0;;;51088:81;;-1:-1:-1;;;;51088:10:0;;;;:81;;51099:69;51088:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51043:126;;;;51188:7;:57;;;;-1:-1:-1;51200:11:0;;:16;;:44;;;51231:4;51220:24;;;;;;;;;;;;:::i;:::-;51180:66;;;;;;50991:263;;50899:355;;;;:::o;43592:399::-;43727:4;43733;43750:12;43765:36;43774:10;43786:14;43765:8;:36::i;:::-;-1:-1:-1;;;;;43934:17:0;;;;;;:10;:17;;;;;;43750:51;;-1:-1:-1;43966:6:0;;32040:8;;43863:67;43872:36;43881:10;43893:14;43872:8;:36::i;:::-;-1:-1:-1;;;;;43910:19:0;;;;;;:12;:19;;;;;;43863:8;:67::i;:::-;-1:-1:-1;;;;;43840:19:0;;;;;;:12;:19;;;;;;43822:38;;43831:7;;43822:8;:38::i;:::-;:108;;;;:::i;:::-;43821:130;;;;:::i;:::-;:142;;;;:::i;:::-;:151;;;;:::i;:::-;43812:171;43975:7;;-1:-1:-1;43592:399:0;-1:-1:-1;;;;;;43592:399:0:o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:134::-;218:20;;247:31;218:20;247:31;:::i;:::-;150:134;;;:::o;289:315::-;357:6;365;418:2;406:9;397:7;393:23;389:32;386:52;;;434:1;431;424:12;386:52;473:9;460:23;492:31;517:5;492:31;:::i;:::-;542:5;594:2;579:18;;;;566:32;;-1:-1:-1;;;289:315:1:o;1044:247::-;1103:6;1156:2;1144:9;1135:7;1131:23;1127:32;1124:52;;;1172:1;1169;1162:12;1124:52;1211:9;1198:23;1230:31;1255:5;1230:31;:::i;1504:248::-;1572:6;1580;1633:2;1621:9;1612:7;1608:23;1604:32;1601:52;;;1649:1;1646;1639:12;1601:52;-1:-1:-1;;1672:23:1;;;1742:2;1727:18;;;1714:32;;-1:-1:-1;1504:248:1:o;1949:180::-;2008:6;2061:2;2049:9;2040:7;2036:23;2032:32;2029:52;;;2077:1;2074;2067:12;2029:52;-1:-1:-1;2100:23:1;;1949:180;-1:-1:-1;1949:180:1:o;2134:456::-;2211:6;2219;2227;2280:2;2268:9;2259:7;2255:23;2251:32;2248:52;;;2296:1;2293;2286:12;2248:52;2332:9;2319:23;2309:33;;2392:2;2381:9;2377:18;2364:32;2405:31;2430:5;2405:31;:::i;:::-;2455:5;-1:-1:-1;2512:2:1;2497:18;;2484:32;2525:33;2484:32;2525:33;:::i;:::-;2577:7;2567:17;;;2134:456;;;;;:::o;2595:127::-;2656:10;2651:3;2647:20;2644:1;2637:31;2687:4;2684:1;2677:15;2711:4;2708:1;2701:15;2727:908;2781:5;2834:3;2827:4;2819:6;2815:17;2811:27;2801:55;;2852:1;2849;2842:12;2801:55;2888:6;2875:20;2914:4;2937:18;2974:2;2970;2967:10;2964:36;;;2980:18;;:::i;:::-;3026:2;3023:1;3019:10;3058:2;3052:9;3121:2;3117:7;3112:2;3108;3104:11;3100:25;3092:6;3088:38;3176:6;3164:10;3161:22;3156:2;3144:10;3141:18;3138:46;3135:72;;;3187:18;;:::i;:::-;3223:2;3216:22;3273:18;;;3349:15;;;3345:24;;;3307:15;;;;-1:-1:-1;3381:15:1;;;3378:35;;;3409:1;3406;3399:12;3378:35;3445:2;3437:6;3433:15;3422:26;;3457:148;3473:6;3468:3;3465:15;3457:148;;;3539:23;3558:3;3539:23;:::i;:::-;3527:36;;3583:12;;;;3490;;;;3457:148;;;3623:6;2727:908;-1:-1:-1;;;;;;;2727:908:1:o;3640:483::-;3733:6;3741;3794:2;3782:9;3773:7;3769:23;3765:32;3762:52;;;3810:1;3807;3800:12;3762:52;3849:9;3836:23;3868:31;3893:5;3868:31;:::i;:::-;3918:5;-1:-1:-1;3974:2:1;3959:18;;3946:32;4001:18;3990:30;;3987:50;;;4033:1;4030;4023:12;3987:50;4056:61;4109:7;4100:6;4089:9;4085:22;4056:61;:::i;:::-;4046:71;;;3640:483;;;;;:::o;4128:416::-;4221:6;4229;4282:2;4270:9;4261:7;4257:23;4253:32;4250:52;;;4298:1;4295;4288:12;4250:52;4334:9;4321:23;4311:33;;4395:2;4384:9;4380:18;4367:32;4422:18;4414:6;4411:30;4408:50;;;4454:1;4451;4444:12;4549:127;4610:10;4605:3;4601:20;4598:1;4591:31;4641:4;4638:1;4631:15;4665:4;4662:1;4655:15;4681:125;4721:4;4749:1;4746;4743:8;4740:34;;;4754:18;;:::i;:::-;-1:-1:-1;4791:9:1;;4681:125::o;4811:128::-;4851:3;4882:1;4878:6;4875:1;4872:13;4869:39;;;4888:18;;:::i;:::-;-1:-1:-1;4924:9:1;;4811:128::o;4944:168::-;4984:7;5050:1;5046;5042:6;5038:14;5035:1;5032:21;5027:1;5020:9;5013:17;5009:45;5006:71;;;5057:18;;:::i;:::-;-1:-1:-1;5097:9:1;;4944:168::o;5117:217::-;5157:1;5183;5173:132;;5227:10;5222:3;5218:20;5215:1;5208:31;5262:4;5259:1;5252:15;5290:4;5287:1;5280:15;5173:132;-1:-1:-1;5319:9:1;;5117:217::o;5339:135::-;5378:3;-1:-1:-1;;5399:17:1;;5396:43;;;5419:18;;:::i;:::-;-1:-1:-1;5466:1:1;5455:13;;5339:135::o;5479:251::-;5549:6;5602:2;5590:9;5581:7;5577:23;5573:32;5570:52;;;5618:1;5615;5608:12;5570:52;5650:9;5644:16;5669:31;5694:5;5669:31;:::i;6072:127::-;6133:10;6128:3;6124:20;6121:1;6114:31;6164:4;6161:1;6154:15;6188:4;6185:1;6178:15;7155:338;7357:2;7339:21;;;7396:2;7376:18;;;7369:30;-1:-1:-1;;;7430:2:1;7415:18;;7408:44;7484:2;7469:18;;7155:338::o;8874:184::-;8944:6;8997:2;8985:9;8976:7;8972:23;8968:32;8965:52;;;9013:1;9010;9003:12;8965:52;-1:-1:-1;9036:16:1;;8874:184;-1:-1:-1;8874:184:1:o;9695:277::-;9762:6;9815:2;9803:9;9794:7;9790:23;9786:32;9783:52;;;9831:1;9828;9821:12;9783:52;9863:9;9857:16;9916:5;9909:13;9902:21;9895:5;9892:32;9882:60;;9938:1;9935;9928:12;10335:426;10464:3;10502:6;10496:13;10527:1;10537:129;10551:6;10548:1;10545:13;10537:129;;;10649:4;10633:14;;;10629:25;;10623:32;10610:11;;;10603:53;10566:12;10537:129;;;10684:6;10681:1;10678:13;10675:48;;;10719:1;10710:6;10705:3;10701:16;10694:27;10675:48;-1:-1:-1;10739:16:1;;;;;10335:426;-1:-1:-1;;10335:426:1:o

Swarm Source

ipfs://b8bc92c8a4eeb2e1685f71fc6f978372278738297d3fc48366eebe376083bc94
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.