Contract 0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe81788b7950183997d3107112e65dce0ede0cd2b7b0f49e09225ba8a65094b28Notify Reward Am...516300642022-11-29 22:33:043 days 13 hrs ago0x74293a57d7f6b9f6c5580ce50aae3f10a0a09c56 IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.003941377
0xd34d4ad80f6443ba5853fce9707a466b7412077e60a45a9748791feba877bcecNotify Reward Am...516265592022-11-29 20:53:293 days 15 hrs ago0xa064b34dc0aeef23e48b400dc4b0a3f940b55865 IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.005142368
0xab8bf9f6d39d6a6746c23f94feaa1177a7b682c43cc7f40bcb7424bacdd51817Notify Reward Am...516265022022-11-29 20:51:213 days 15 hrs ago0xa064b34dc0aeef23e48b400dc4b0a3f940b55865 IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.00823753
0x52d72aaa02bcb14907491f0d932ec4f1dc46b4d10272f2d662a43b368c55ad39Notify Reward Am...513990832022-11-24 19:16:508 days 16 hrs ago0x3e7b8d12d4de6cb284a7d60bf92b462d2a6d6a2f IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.03713696
0x1069c60d6878599de4b43dad4a6942671490648d2270f67e075c1e3da10e5e23Notify Reward Am...513990802022-11-24 19:16:418 days 16 hrs ago0x3e7b8d12d4de6cb284a7d60bf92b462d2a6d6a2f IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.0493358
0x0ffa9a769f2583fc84862e77e949469c2e16472c7acd39b3dc428242f4f92664Notify Reward Am...512701552022-11-22 2:00:3811 days 10 hrs ago0x80039dc3d5bb48ec4bd822c4e8828574fdcc51a6 IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.0050172
0xf63b56e6330a0c5a838366dfebf856fd0e69c6cb031e3ccb6905fcb768ebc478Notify Reward Am...512368092022-11-21 12:05:0111 days 23 hrs ago0xa064b34dc0aeef23e48b400dc4b0a3f940b55865 IN  0x241a488a879b8a1c44a2cfa15bf8e38b85ae467e0 FTM0.02321054
[ 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:
ExternalBribe

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// 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/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/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");
    }
}

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":"epoch","type":"uint256"},{"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":[{"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":"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":"timestamp","type":"uint256"}],"name":"getEpochStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"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":"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":"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":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenRewardsPerEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50611f1d806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806399bcc052116100f9578063e688639611610097578063f301af4211610071578063f301af4214610422578063f320772314610435578063f5f8d36514610448578063f7412baf1461045b57600080fd5b8063e6886396146103e6578063e8111a12146103ee578063f25e55a5146103f757600080fd5b8063a28d4c9c116100d3578063a28d4c9c1461038d578063a7852afa146103a0578063b66503cf146103b3578063da09d19d146103c657600080fd5b806399bcc052146103475780639cc7f7081461035a5780639e2bf22c1461037a57600080fd5b806350589793116101665780638dd598fb116101405780638dd598fb146102e157806392777b29146102f45780639418f9391461031f578063946d92041461033457600080fd5b8063505897931461029b578063638634ee146102bb57806376f4be36146102ce57600080fd5b80630175e23b146101ae57806318160ddd146101d45780633e491d47146101dd57806346c96aac146101f057806349dcc204146102215780634d5ce03814610268575b600080fd5b6101c16101bc366004611ae6565b610482565b6040519081526020015b60405180910390f35b6101c160025481565b6101c16101eb366004611b27565b6104c4565b600054610209906201000090046001600160a01b031681565b6040516001600160a01b0390911681526020016101cb565b61025361022f366004611b53565b60096020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101cb565b61028b610276366004611b75565b60086020526000908152604090205460ff1681565b60405190151581526020016101cb565b6101c16102a9366004611ae6565b600a6020526000908152604090205481565b6101c16102c9366004611b75565b61066f565b6101c16102dc366004611ae6565b610693565b600154610209906001600160a01b031681565b6101c1610302366004611b27565b600460209081526000928352604080842090915290825290205481565b61033261032d366004611b92565b6107c5565b005b610332610342366004611c8c565b61095a565b6101c1610355366004611b75565b610c16565b6101c1610368366004611ae6565b60036020526000908152604090205481565b610332610388366004611b53565b610c4f565b6101c161039b366004611b53565b610d1b565b6103326103ae366004611cdc565b610e5e565b6103326103c1366004611b27565b61106d565b6101c16103d4366004611b75565b60056020526000908152604090205481565b6007546101c1565b6101c1600c5481565b6101c1610405366004611b27565b600660209081526000928352604080842090915290825290205481565b610209610430366004611ae6565b61138d565b610332610443366004611b53565b6113b7565b610332610456366004611cdc565b61147b565b610253610469366004611ae6565b600b602052600090815260409020805460019091015482565b60008061048e836116a7565b9050600061049f62093a8083611d23565b90508084106104ba576104b58262093a80611d23565b6104bc565b815b949350505050565b6000818152600a60205260408120546104df57506000610669565b6001600160a01b03831660009081526006602090815260408083208584529091528120548190819060019082908190610517906116a7565b90506105238882610d1b565b6000898152600960209081526040808320848452909152902080546001909101549096509450915061055d81610558876116a7565b6116c0565b9050600062093a808261056f426116a7565b6105799190611d3b565b6105839190611d68565b9050801561065f5760005b8181101561065d576105a78a61039b62093a8086611d23565b60008b8152600960209081526040808320848452909152812080546001909101549099509750909450600b906105e36102dc62093a8087611d23565b815260208082019290925260409081016000908120600101546001600160a01b038f16825260048452828220878352909352205490955085906106269088611d7c565b6106309190611d68565b61063a9089611d23565b975061064962093a8084611d23565b92508061065581611d9b565b91505061058e565b505b5094955050505050505b92915050565b6001600160a01b0381166000908152600560205260408120546106699042906116d7565b600c54600090806106a75750600092915050565b82600b60006106b7600185611d3b565b815260200190815260200160002060000154116106e0576106d9600182611d3b565b9392505050565b60008052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765483101561071b5750600092915050565b600080610729600184611d3b565b90505b818111156107bd57600060026107428484611d3b565b61074c9190611d68565b6107569083611d3b565b6000818152600b6020908152604091829020825180840190935280548084526001909101549183019190915291925090871415610797575095945050505050565b80518711156107a8578193506107b6565b6107b3600183611d3b565b92505b505061072c565b509392505050565b600160009054906101000a90046001600160a01b03166001600160a01b03166385f2aef26040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561081557600080fd5b505af1158015610829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084d9190611db6565b6001600160a01b0316336001600160a01b03161461089e5760405162461bcd60e51b81526020600482015260096024820152686f6e6c79207465616d60b81b60448201526064015b60405180910390fd5b816001600160a01b0316600784815481106108bb576108bb611dd3565b6000918252602090912001546001600160a01b0316146108da57600080fd5b6001600160a01b03808316600090815260086020526040808220805460ff199081169091559284168252902080549091166001179055600780548291908590811061092757610927611dd3565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b600054610100900460ff161580801561097a5750600054600160ff909116105b806109945750303b158015610994575060005460ff166001145b6109f75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610895565b6000805460ff191660011790558015610a1a576000805461ff0019166101001790555b82600060026101000a8154816001600160a01b0302191690836001600160a01b03160217905550826001600160a01b0316638dd598fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a7a57600080fd5b505afa158015610a8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab29190611db6565b600180546001600160a01b0319166001600160a01b039290921691909117905560005b8251811015610bca5760006001600160a01b0316838281518110610afb57610afb611dd3565b60200260200101516001600160a01b031614610bb857600160086000858481518110610b2957610b29611dd3565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055506007838281518110610b7c57610b7c611dd3565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790555b80610bc281611d9b565b915050610ad5565b508015610c11576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b600080610c2242610482565b6001600160a01b039093166000908152600460209081526040808320958352949052929092205492915050565b6000546201000090046001600160a01b03163314610c7f5760405162461bcd60e51b815260040161089590611de9565b8160026000828254610c919190611d3b565b909155505060008181526003602052604081208054849290610cb4908490611d3b565b9091555050600081815260036020526040902054610cd39082906116e6565b610cdb6117bf565b604080518281526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56891015b60405180910390a25050565b6000828152600a602052604081205480610d39576000915050610669565b60008481526009602052604081208491610d54600185611d3b565b81526020019081526020016000206000015411610d7e57610d76600182611d3b565b915050610669565b6000848152600960209081526040808320838052909152902054831015610da9576000915050610669565b600080610db7600184611d3b565b90505b81811115610e555760006002610dd08484611d3b565b610dda9190611d68565b610de49083611d3b565b6000888152600960209081526040808320848452825291829020825180840190935280548084526001909101549183019190915291925090871415610e2f5750935061066992505050565b8051871115610e4057819350610e4e565b610e4b600183611d3b565b92505b5050610dba565b50949350505050565b600d5460ff1615610e815760405162461bcd60e51b815260040161089590611e0c565b600d8054600160ff199091161790556000546201000090046001600160a01b03163314610ec05760405162461bcd60e51b815260040161089590611de9565b6001546040516331a9108f60e11b8152600481018490526000916001600160a01b031690636352211e9060240160206040518083038186803b158015610f0557600080fd5b505afa158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3d9190611db6565b905060005b825181101561105d576000610f70848381518110610f6257610f62611dd3565b6020026020010151866104c4565b90504260066000868581518110610f8957610f89611dd3565b6020908102919091018101516001600160a01b0316825281810192909252604090810160009081208982529092529020558015610fe457610fe4848381518110610fd557610fd5611dd3565b60200260200101518483611863565b838281518110610ff657610ff6611dd3565b60200260200101516001600160a01b0316836001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc98360405161104291815260200190565b60405180910390a3508061105581611d9b565b915050610f42565b5050600d805460ff191690555050565b600d5460ff16156110905760405162461bcd60e51b815260040161089590611e0c565b600d805460ff19166001179055806110ea5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610895565b6001600160a01b03821660009081526008602052604090205460ff1661122c57600054604051633af32abf60e01b81526001600160a01b0384811660048301526201000090920490911690633af32abf9060240160206040518083038186803b15801561115657600080fd5b505afa15801561116a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118e9190611e34565b6111da5760405162461bcd60e51b815260206004820181905260248201527f627269626520746f6b656e73206d7573742062652077686974656c69737465646044820152606401610895565b60075460101161122c5760405162461bcd60e51b815260206004820152601760248201527f746f6f206d616e79207265776172647320746f6b656e730000000000000000006044820152606401610895565b600061123742610482565b6001600160a01b038416600090815260046020908152604080832084845290915290205490915061126a843330866119a0565b6112748382611d23565b6001600160a01b03851660009081526004602090815260408083208684529091529020556112a562093a8083611d23565b6001600160a01b03851660009081526005602090815260408083209390935560089052205460ff16611337576001600160a01b0384166000818152600860205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b03191690911790555b60408051838152602081018590526001600160a01b0386169133917f52977ea98a2220a03ee9ba5cb003ada08d394ea10155483c95dc2dc77a7eb24b910160405180910390a35050600d805460ff191690555050565b6007818154811061139d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546201000090046001600160a01b031633146113e75760405162461bcd60e51b815260040161089590611de9565b81600260008282546113f99190611d23565b90915550506000818152600360205260408120805484929061141c908490611d23565b909155505060008181526003602052604090205461143b9082906116e6565b6114436117bf565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159101610d0f565b600d5460ff161561149e5760405162461bcd60e51b815260040161089590611e0c565b600d805460ff191660019081179091555460405163430c208160e01b8152336004820152602481018490526001600160a01b039091169063430c20819060440160206040518083038186803b1580156114f657600080fd5b505afa15801561150a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152e9190611e34565b61157a5760405162461bcd60e51b815260206004820152601a60248201527f4e65697468657220617070726f766564206e6f72206f776e65720000000000006044820152606401610895565b60005b81518110156116985760006115ab83838151811061159d5761159d611dd3565b6020026020010151856104c4565b905042600660008585815181106115c4576115c4611dd3565b6020908102919091018101516001600160a01b031682528181019290925260409081016000908120888252909252902055801561161f5761161f83838151811061161057611610611dd3565b60200260200101513383611863565b82828151811061163157611631611dd3565b60200260200101516001600160a01b0316336001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc98360405161167d91815260200190565b60405180910390a3508061169081611d9b565b91505061157d565b5050600d805460ff1916905550565b60006116b662093a8083611e56565b6106699083611d3b565b6000818310156116d057816106d9565b5090919050565b60008183106116d057816106d9565b6000828152600a60205260409020544290801580159061173057506000848152600960205260408120839161171c600185611d3b565b815260200190815260200160002060000154145b156117695760008481526009602052604081208491611750600185611d3b565b81526020810191909152604001600020600101556117b9565b60408051808201825283815260208082018681526000888152600983528481208682529092529290209051815590516001918201556117a9908290611d23565b6000858152600a60205260409020555b50505050565b600c544281158015906117f1575080600b60006117dd600186611d3b565b815260200190815260200160002060000154145b1561182057600254600b6000611808600186611d3b565b81526020810191909152604001600020600101555050565b60408051808201825282815260025460208083019182526000868152600b9091529290922090518155905160019182015561185c908390611d23565b600c555050565b6000836001600160a01b03163b116118b55760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b6044820152606401610895565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916119119190611e6a565b6000604051808303816000865af19150503d806000811461194e576040519150601f19603f3d011682016040523d82523d6000602084013e611953565b606091505b509150915081801561197d57508051158061197d57508080602001905181019061197d9190611e34565b6119995760405162461bcd60e51b815260040161089590611ea5565b5050505050565b6000846001600160a01b03163b116119f25760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b6044820152606401610895565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611a569190611e6a565b6000604051808303816000865af19150503d8060008114611a93576040519150601f19603f3d011682016040523d82523d6000602084013e611a98565b606091505b5091509150818015611ac2575080511580611ac2575080806020019051810190611ac29190611e34565b611ade5760405162461bcd60e51b815260040161089590611ea5565b505050505050565b600060208284031215611af857600080fd5b5035919050565b6001600160a01b0381168114611b1457600080fd5b50565b8035611b2281611aff565b919050565b60008060408385031215611b3a57600080fd5b8235611b4581611aff565b946020939093013593505050565b60008060408385031215611b6657600080fd5b50508035926020909101359150565b600060208284031215611b8757600080fd5b81356106d981611aff565b600080600060608486031215611ba757600080fd5b833592506020840135611bb981611aff565b91506040840135611bc981611aff565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611bfb57600080fd5b8135602067ffffffffffffffff80831115611c1857611c18611bd4565b8260051b604051601f19603f83011681018181108482111715611c3d57611c3d611bd4565b604052938452858101830193838101925087851115611c5b57600080fd5b83870191505b84821015611c8157611c7282611b17565b83529183019190830190611c61565b979650505050505050565b60008060408385031215611c9f57600080fd5b8235611caa81611aff565b9150602083013567ffffffffffffffff811115611cc657600080fd5b611cd285828601611bea565b9150509250929050565b60008060408385031215611cef57600080fd5b82359150602083013567ffffffffffffffff811115611cc657600080fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611d3657611d36611d0d565b500190565b600082821015611d4d57611d4d611d0d565b500390565b634e487b7160e01b600052601260045260246000fd5b600082611d7757611d77611d52565b500490565b6000816000190483118215151615611d9657611d96611d0d565b500290565b6000600019821415611daf57611daf611d0d565b5060010190565b600060208284031215611dc857600080fd5b81516106d981611aff565b634e487b7160e01b600052603260045260246000fd5b6020808252600990820152682737ba103b37ba32b960b91b604082015260600190565b6020808252600e908201526d4e6f2072652d656e7472616e637960901b604082015260600190565b600060208284031215611e4657600080fd5b815180151581146106d957600080fd5b600082611e6557611e65611d52565b500690565b6000825160005b81811015611e8b5760208186018101518583015201611e71565b81811115611e9a576000828501525b509190910192915050565b60208082526022908201527f45787465726e616c42726962653a205472616e7366657246726f6d206661696c604082015261195960f21b60608201526080019056fea2646970667358221220119ec3f1a9c27a5da64ae44c3d98f5905f708342872af5ea5ad2ca8763384d1764736f6c63430008090033

Deployed ByteCode Sourcemap

18012:12575:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20588:246;;;;;;:::i;:::-;;:::i;:::-;;;345:25:1;;;333:2;318:18;20588:246:0;;;;;;;;18657:23;;;;;;25866:1607;;;;;;:::i;:::-;;:::i;18335:20::-;;;;;;;;-1:-1:-1;;;;;18335:20:0;;;;;;-1:-1:-1;;;;;1140:32:1;;;1122:51;;1110:2;1095:18;18335:20:0;976:203:1;19079:65:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1611:25:1;;;1667:2;1652:18;;1645:34;;;;1584:18;19079:65:0;1437:248:1;18956:40:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2107:14:1;;2100:22;2082:41;;2070:2;2055:18;18956:40:0;1942:187:1;19211:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;24554:148;;;;;;:::i;:::-;;:::i;22286:1034::-;;;;;;:::i;:::-;;:::i;18430:18::-;;;;;-1:-1:-1;;;;;18430:18:0;;;18732:69;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;29452:308;;;;;;:::i;:::-;;:::i;:::-;;20019:427;;;;;;:::i;:::-;;:::i;28288:190::-;;;;;;:::i;:::-;;:::i;18687:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;27944:336;;;;;;:::i;:::-;;:::i;21227:1051::-;;;;;;:::i;:::-;;:::i;25339:519::-;;;;;;:::i;:::-;;:::i;28486:958::-;;;;;;:::i;:::-;;:::i;18808:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;24354:98;24430:7;:14;24354:98;;19445:32;;;;;;18859:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;18925:24;;;;;;:::i;:::-;;:::i;27602:334::-;;;;;;:::i;:::-;;:::i;24767:511::-;;;;;;:::i;:::-;;:::i;19336:59::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;20588:246;20648:4;20665:15;20683:22;20695:9;20683:11;:22::i;:::-;20665:40;-1:-1:-1;20716:13:0;20732:21;18491:6;20665:40;20732:21;:::i;:::-;20716:37;;20783:8;20771:9;:20;:55;;20807:19;:10;20820:6;20807:19;:::i;:::-;20771:55;;;20794:10;20771:55;20764:62;20588:246;-1:-1:-1;;;;20588:246:0:o;25866:1607::-;25932:4;25953:23;;;:14;:23;;;;;;25949:69;;-1:-1:-1;26005:1:0;25998:8;;25949:69;-1:-1:-1;;;;;26183:15:0;;26030:11;26183:15;;;:8;:15;;;;;;;;:24;;;;;;;;;26030:11;;;;26118:1;;26030:11;;;;26171:37;;:11;:37::i;:::-;26156:52;;26278:38;26299:7;26308;26278:20;:38::i;:::-;26333:20;;;;:11;:20;;;;;;;;:28;;;;;;;;:38;;26389;;;;;26333;;-1:-1:-1;26389:38:0;-1:-1:-1;26333:28:0;-1:-1:-1;26520:35:0;26529:7;26538:16;26333:38;26538:11;:16::i;:::-;26520:8;:35::i;:::-;26510:45;;26663:14;18491:6;26712:7;26681:28;26693:15;26681:11;:28::i;:::-;:38;;;;:::i;:::-;26680:51;;;;:::i;:::-;26663:68;-1:-1:-1;26748:13:0;;26744:696;;26783:9;26778:651;26802:9;26798:1;:13;26778:651;;;26909:49;26930:7;26939:18;18491:6;26939:7;:18;:::i;26909:49::-;27033:20;;;;:11;:20;;;;;;;;:28;;;;;;;;:38;;27097;;;;;27033;;-1:-1:-1;27097:38:0;-1:-1:-1;27033:28:0;;-1:-1:-1;27228:17:0;;27246:39;27266:18;18491:6;27266:7;:18;:::i;27246:39::-;27228:58;;;;;;;;;;;;;;-1:-1:-1;27228:58:0;;;:65;;;-1:-1:-1;;;;;27329:27:0;;;;:20;:27;;;;;:36;;;;;;;;27228:65;;-1:-1:-1;27228:65:0;;27322:43;;:4;:43;:::i;:::-;:53;;;;:::i;:::-;27312:63;;;;:::i;:::-;;-1:-1:-1;27394:19:0;18491:6;27394:19;;:::i;:::-;;-1:-1:-1;26813:3:0;;;;:::i;:::-;;;;26778:651;;;;26744:696;-1:-1:-1;27459:6:0;;-1:-1:-1;;;;;;25866:1607:0;;;;;:::o;24554:148::-;-1:-1:-1;;;;;24674:19:0;;24624:4;24674:19;;;:12;:19;;;;;;24648:46;;24657:15;;24648:8;:46::i;22286:1034::-;22389:20;;22352:4;;22424:17;22420:58;;-1:-1:-1;22465:1:0;;22286:1034;-1:-1:-1;;22286:1034:0:o;22420:58::-;22587:9;22538:17;:35;22556:16;22571:1;22556:12;:16;:::i;:::-;22538:35;;;;;;;;;;;:45;;;:58;22534:116;;22621:16;22636:1;22621:12;:16;:::i;:::-;22613:25;22286:1034;-1:-1:-1;;;22286:1034:0:o;22534:116::-;22711:20;;;:17;:20;;;:30;:42;-1:-1:-1;22707:83:0;;;-1:-1:-1;22777:1:0;;22286:1034;-1:-1:-1;;22286:1034:0:o;22707:83::-;22802:10;;22840:16;22855:1;22840:12;:16;:::i;:::-;22827:29;;22867:423;22882:5;22874;:13;22867:423;;;22904:11;22944:1;22927:13;22935:5;22927;:13;:::i;:::-;22926:19;;;;:::i;:::-;22918:27;;:5;:27;:::i;:::-;22987:26;23016:25;;;:17;:25;;;;;;;;;22987:54;;;;;;;;;;;;;;;;;;;;;;;;;22904:41;;-1:-1:-1;22987:54:0;23060:25;;23056:223;;;-1:-1:-1;23113:6:0;22286:1034;-1:-1:-1;;;;;22286:1034:0:o;23056:223::-;23145:12;;:24;-1:-1:-1;23141:138:0;;;23198:6;23190:14;;23141:138;;;23253:10;23262:1;23253:6;:10;:::i;:::-;23245:18;;23141:138;22889:401;;22867:423;;;-1:-1:-1;23307:5:0;22286:1034;-1:-1:-1;;;22286:1034:0:o;29452:308::-;29580:3;;;;;;;;;-1:-1:-1;;;;;29580:3:0;-1:-1:-1;;;;;29566:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29552:39:0;:10;-1:-1:-1;;;;;29552:39:0;;29544:61;;;;-1:-1:-1;;;29544:61:0;;5972:2:1;29544:61:0;;;5954:21:1;6011:1;5991:18;;;5984:29;-1:-1:-1;;;6029:18:1;;;6022:39;6078:18;;29544:61:0;;;;;;;;;29638:8;-1:-1:-1;;;;;29624:22:0;:7;29632:1;29624:10;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;29624:10:0;:22;29616:31;;;;;;-1:-1:-1;;;;;29658:18:0;;;29679:5;29658:18;;;:8;:18;;;;;;:26;;-1:-1:-1;;29658:26:0;;;;;;29695:18;;;;;;;:25;;;;;29658:26;29695:25;;;29731:7;:10;;29704:8;;29731:7;29739:1;;29731:10;;;;;;:::i;:::-;;;;;;;;;:21;;;;;-1:-1:-1;;;;;29731:21:0;;;;;-1:-1:-1;;;;;29731:21:0;;;;;;29452:308;;;:::o;20019:427::-;15155:19;15178:13;;;;;;15177:14;;15225:34;;;;-1:-1:-1;15243:12:0;;15258:1;15243:12;;;;:16;15225:34;15224:108;;;-1:-1:-1;15304:4:0;5917:19;:23;;;15265:66;;-1:-1:-1;15314:12:0;;;;;:17;15265:66;15202:204;;;;-1:-1:-1;;;15202:204:0;;6441:2:1;15202:204:0;;;6423:21:1;6480:2;6460:18;;;6453:30;6519:34;6499:18;;;6492:62;-1:-1:-1;;;6570:18:1;;;6563:44;6624:19;;15202:204:0;6239:410:1;15202:204:0;15417:12;:16;;-1:-1:-1;;15417:16:0;15432:1;15417:16;;;15444:67;;;;15479:13;:20;;-1:-1:-1;;15479:20:0;;;;;15444:67;20132:6:::1;20124:5;;:14;;;;;-1:-1:-1::0;;;;;20124:14:0::1;;;;;-1:-1:-1::0;;;;;20124:14:0::1;;;;;;20162:6;-1:-1:-1::0;;;;;20155:18:0::1;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;20149:3;:26:::0;;-1:-1:-1;;;;;;20149:26:0::1;-1:-1:-1::0;;;;;20149:26:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;20188:251:0::1;20205:20;:27;20201:1;:31;20188:251;;;20293:1;-1:-1:-1::0;;;;;20258:37:0::1;:20;20279:1;20258:23;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;20258:37:0::1;;20254:174;;20352:4;20316:8;:33;20325:20;20346:1;20325:23;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;20316:33:0::1;-1:-1:-1::0;;;;;20316:33:0::1;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;20375:7;20388:20;20409:1;20388:23;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;20375:37;;::::1;::::0;::::1;::::0;;-1:-1:-1;20375:37:0;;;;;;;::::1;::::0;;-1:-1:-1;;;;;;20375:37:0::1;-1:-1:-1::0;;;;;20375:37:0;;::::1;::::0;;;::::1;::::0;;20254:174:::1;20234:3:::0;::::1;::::0;::::1;:::i;:::-;;;;20188:251;;;;15537:14:::0;15533:102;;;15584:5;15568:21;;-1:-1:-1;;15568:21:0;;;15609:14;;-1:-1:-1;6806:36:1;;15609:14:0;;6794:2:1;6779:18;15609:14:0;;;;;;;15533:102;15144:498;20019:427;;:::o;28288:190::-;28340:4;28357:19;28379:30;28393:15;28379:13;:30::i;:::-;-1:-1:-1;;;;;28427:27:0;;;;;;;:20;:27;;;;;;;;:43;;;;;;;;;;;;28288:190;-1:-1:-1;;28288:190:0:o;27944:336::-;28032:5;;;;;-1:-1:-1;;;;;28032:5:0;28018:10;:19;28010:41;;;;-1:-1:-1;;;28010:41:0;;;;;;;:::i;:::-;28079:6;28064:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;28096:18:0;;;;:9;:18;;;;;:28;;28118:6;;28096:18;:28;;28118:6;;28096:28;:::i;:::-;;;;-1:-1:-1;;28163:18:0;;;;:9;:18;;;;;;28137:45;;28154:7;;28137:16;:45::i;:::-;28193:24;:22;:24::i;:::-;28235:37;;;1611:25:1;;;1667:2;1652:18;;1645:34;;;28244:10:0;;28235:37;;1584:18:1;28235:37:0;;;;;;;;27944:336;;:::o;21227:1051::-;21308:4;21345:23;;;:14;:23;;;;;;21383:17;21379:58;;21424:1;21417:8;;;;;21379:58;21495:20;;;;:11;:20;;;;;21547:9;;21516:16;21531:1;21516:12;:16;:::i;:::-;21495:38;;;;;;;;;;;:48;;;:61;21491:119;;21581:16;21596:1;21581:12;:16;:::i;:::-;21573:25;;;;;21491:119;21669:20;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:45;-1:-1:-1;21665:86:0;;;21738:1;21731:8;;;;;21665:86;21763:10;;21801:16;21816:1;21801:12;:16;:::i;:::-;21788:29;;21828:420;21843:5;21835;:13;21828:420;;;21865:11;21905:1;21888:13;21896:5;21888;:13;:::i;:::-;21887:19;;;;:::i;:::-;21879:27;;:5;:27;:::i;:::-;21948:20;21971;;;:11;:20;;;;;;;;:28;;;;;;;;;21948:51;;;;;;;;;;;;;;;;;;;;;;;;;21865:41;;-1:-1:-1;21948:51:0;22018:25;;22014:223;;;-1:-1:-1;22071:6:0;-1:-1:-1;22064:13:0;;-1:-1:-1;;;22064:13:0;22014:223;22103:12;;:24;-1:-1:-1;22099:138:0;;;22156:6;22148:14;;22099:138;;;22211:10;22220:1;22211:6;:10;:::i;:::-;22203:18;;22099:138;21850:398;;21828:420;;;-1:-1:-1;22265:5:0;21227:1051;-1:-1:-1;;;;21227:1051:0:o;25339:519::-;19913:7;;;;19912:8;19904:36;;;;-1:-1:-1;;;19904:36:0;;;;;;;:::i;:::-;19951:7;:14;;19961:4;-1:-1:-1;;19951:14:0;;;;;;-1:-1:-1;25453:5:0;;;::::1;-1:-1:-1::0;;;;;25453:5:0::1;25439:10;:19;25431:41;;;;-1:-1:-1::0;;;25431:41:0::1;;;;;;;:::i;:::-;25514:3;::::0;25500:35:::1;::::0;-1:-1:-1;;;25500:35:0;;::::1;::::0;::::1;345:25:1::0;;;25483:14:0::1;::::0;-1:-1:-1;;;;;25514:3:0::1;::::0;25500:26:::1;::::0;318:18:1;;25500:35:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25483:52;;25551:6;25546:305;25567:6;:13;25563:1;:17;25546:305;;;25602:12;25617:26;25624:6;25631:1;25624:9;;;;;;;;:::i;:::-;;;;;;;25635:7;25617:6;:26::i;:::-;25602:41;;25689:15;25658:8;:19;25667:6;25674:1;25667:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;25658:19:0::1;::::0;;;;::::1;::::0;;;;;;;;-1:-1:-1;25658:19:0;;;:28;;;;;;;;:46;25723:11;;25719:58:::1;;25736:41;25750:6;25757:1;25750:9;;;;;;;;:::i;:::-;;;;;;;25761:6;25769:7;25736:13;:41::i;:::-;25820:6;25827:1;25820:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;25799:40:0::1;25812:6;-1:-1:-1::0;;;;;25799:40:0::1;;25831:7;25799:40;;;;345:25:1::0;;333:2;318:18;;199:177;25799:40:0::1;;;;;;;;-1:-1:-1::0;25582:3:0;::::1;::::0;::::1;:::i;:::-;;;;25546:305;;;-1:-1:-1::0;;19988:7:0;:15;;-1:-1:-1;;19988:15:0;;;-1:-1:-1;;25339:519:0:o;28486:958::-;19913:7;;;;19912:8;19904:36;;;;-1:-1:-1;;;19904:36:0;;;;;;;:::i;:::-;19951:7;:14;;-1:-1:-1;;19951:14:0;19961:4;19951:14;;;28575:10;28567:52:::1;;;::::0;-1:-1:-1;;;28567:52:0;;7735:2:1;28567:52:0::1;::::0;::::1;7717:21:1::0;7774:2;7754:18;;;7747:30;7813:31;7793:18;;;7786:59;7862:18;;28567:52:0::1;7533:353:1::0;28567:52:0::1;-1:-1:-1::0;;;;;28635:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;;::::1;;28630:209;;28680:5;::::0;28673:34:::1;::::0;-1:-1:-1;;;28673:34:0;;-1:-1:-1;;;;;1140:32:1;;;28673:34:0::1;::::0;::::1;1122:51:1::0;28680:5:0;;;::::1;::::0;;::::1;::::0;28673:27:::1;::::0;1095:18:1;;28673:34:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;28665:79;;;::::0;-1:-1:-1;;;28665:79:0;;8375:2:1;28665:79:0::1;::::0;::::1;8357:21:1::0;;;8394:18;;;8387:30;8453:34;8433:18;;;8426:62;8505:18;;28665:79:0::1;8173:356:1::0;28665:79:0::1;28765:7;:14:::0;18594:2:::1;-1:-1:-1::0;28757:70:0::1;;;::::0;-1:-1:-1;;;28757:70:0;;8736:2:1;28757:70:0::1;::::0;::::1;8718:21:1::0;8775:2;8755:18;;;8748:30;8814:25;8794:18;;;8787:53;8857:18;;28757:70:0::1;8534:347:1::0;28757:70:0::1;28910:19;28932:30;28946:15;28932:13;:30::i;:::-;-1:-1:-1::0;;;;;28993:27:0;::::1;28973:17;28993:27:::0;;;:20:::1;:27;::::0;;;;;;;:43;;;;;;;;;28910:52;;-1:-1:-1;29049:59:0::1;29014:5:::0;29074:10:::1;29094:4;29101:6:::0;29049:17:::1;:59::i;:::-;29165:21;29180:6:::0;29165:12;:21:::1;:::i;:::-;-1:-1:-1::0;;;;;29119:27:0;::::1;;::::0;;;:20:::1;:27;::::0;;;;;;;:43;;;;;;;;:67;29221:25:::1;18491:6;29147:14:::0;29221:25:::1;:::i;:::-;-1:-1:-1::0;;;;;29199:19:0;::::1;;::::0;;;:12:::1;:19;::::0;;;;;;;:47;;;;29264:8:::1;:15:::0;;;;::::1;;29259:105;;-1:-1:-1::0;;;;;29296:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;:22;;-1:-1:-1;;29296:22:0::1;29314:4;29296:22:::0;;::::1;::::0;;;29333:7:::1;:19:::0;;;;::::1;::::0;;;;;;::::1;::::0;;-1:-1:-1;;;;;;29333:19:0::1;::::0;;::::1;::::0;;29259:105:::1;29381:55;::::0;;1611:25:1;;;1667:2;1652:18;;1645:34;;;-1:-1:-1;;;;;29381:55:0;::::1;::::0;29394:10:::1;::::0;29381:55:::1;::::0;1584:18:1;29381:55:0::1;;;;;;;-1:-1:-1::0;;19988:7:0;:15;;-1:-1:-1;;19988:15:0;;;-1:-1:-1;;28486:958:0:o;18925:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18925:24:0;;-1:-1:-1;18925:24:0;:::o;27602:334::-;27689:5;;;;;-1:-1:-1;;;;;27689:5:0;27675:10;:19;27667:41;;;;-1:-1:-1;;;27667:41:0;;;;;;;:::i;:::-;27736:6;27721:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;27753:18:0;;;;:9;:18;;;;;:28;;27775:6;;27753:18;:28;;27775:6;;27753:28;:::i;:::-;;;;-1:-1:-1;;27820:18:0;;;;:9;:18;;;;;;27794:45;;27811:7;;27794:16;:45::i;:::-;27850:24;:22;:24::i;:::-;27892:36;;;1611:25:1;;;1667:2;1652:18;;1645:34;;;27900:10:0;;27892:36;;1584:18:1;27892:36:0;1437:248:1;24767:511:0;19913:7;;;;19912:8;19904:36;;;;-1:-1:-1;;;19904:36:0;;;;;;;:::i;:::-;19951:7;:14;;-1:-1:-1;;19951:14:0;19961:4;19951:14;;;;;;24873:3;24859:57:::1;::::0;-1:-1:-1;;;24859:57:0;;24896:10:::1;24859:57;::::0;::::1;9060:51:1::0;9127:18;;;9120:34;;;-1:-1:-1;;;;;24873:3:0;;::::1;::::0;24859:36:::1;::::0;9033:18:1;;24859:57:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24851:96;;;::::0;-1:-1:-1;;;24851:96:0;;9367:2:1;24851:96:0::1;::::0;::::1;9349:21:1::0;9406:2;9386:18;;;9379:30;9445:28;9425:18;;;9418:56;9491:18;;24851:96:0::1;9165:350:1::0;24851:96:0::1;24963:6;24958:313;24979:6;:13;24975:1;:17;24958:313;;;25014:12;25029:26;25036:6;25043:1;25036:9;;;;;;;;:::i;:::-;;;;;;;25047:7;25029:6;:26::i;:::-;25014:41;;25101:15;25070:8;:19;25079:6;25086:1;25079:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;25070:19:0::1;::::0;;;;::::1;::::0;;;;;;;;-1:-1:-1;25070:19:0;;;:28;;;;;;;;:46;25135:11;;25131:62:::1;;25148:45;25162:6;25169:1;25162:9;;;;;;;;:::i;:::-;;;;;;;25173:10;25185:7;25148:13;:45::i;:::-;25240:6;25247:1;25240:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;25215:44:0::1;25228:10;-1:-1:-1::0;;;;;25215:44:0::1;;25251:7;25215:44;;;;345:25:1::0;;333:2;318:18;;199:177;25215:44:0::1;;;;;;;;-1:-1:-1::0;24994:3:0;::::1;::::0;::::1;:::i;:::-;;;;24958:313;;;-1:-1:-1::0;;19988:7:0;:15;;-1:-1:-1;;19988:15:0;;;-1:-1:-1;24767:511:0:o;20454:126::-;20514:4;20551:20;20564:6;20551:9;:20;:::i;:::-;20538:34;;:9;:34;:::i;3478:98::-;3530:4;3559:1;3554;:6;;:14;;3567:1;3554:14;;;-1:-1:-1;3563:1:0;;3547:21;-1:-1:-1;3478:98:0:o;3582:97::-;3634:4;3662:1;3658;:5;:13;;3670:1;3658:13;;23328:516;23402:15;23467:23;;;:14;:23;;;;;;23420:15;;23505:17;;;;;:84;;-1:-1:-1;23526:20:0;;;;:11;:20;;;;;23579:10;;23547:17;23563:1;23547:13;:17;:::i;:::-;23526:39;;;;;;;;;;;:49;;;:63;23505:84;23501:336;;;23606:20;;;;:11;:20;;;;;23658:7;;23627:17;23643:1;23627:13;:17;:::i;:::-;23606:39;;;;;;;;;;;-1:-1:-1;23606:39:0;:49;;:59;23501:336;;;23736:31;;;;;;;;;;;;;;;;;;-1:-1:-1;23698:20:0;;;:11;:20;;;;;:35;;;;;;;;;:69;;;;;;;;;;;23808:17;;23719:13;;23808:17;:::i;:::-;23782:23;;;;:14;:23;;;;;:43;23501:336;23391:453;;23328:516;;:::o;23852:494::-;23927:20;;23976:15;24008:17;;;;;:81;;-1:-1:-1;24079:10:0;24029:17;:36;24047:17;24063:1;24047:13;:17;:::i;:::-;24029:36;;;;;;;;;;;:46;;;:60;24008:81;24004:335;;;24152:11;;24106:17;:36;24124:17;24140:1;24124:13;:17;:::i;:::-;24106:36;;;;;;;;;;;-1:-1:-1;24106:36:0;:43;;:57;23895:451;;23852:494::o;24004:335::-;24231:41;;;;;;;;;;;24260:11;;24231:41;;;;;;;-1:-1:-1;24196:32:0;;;:17;:32;;;;;;;:76;;;;;;;;;;;24310:17;;24214:13;;24310:17;:::i;:::-;24287:20;:40;23895:451;;23852:494::o;29768:390::-;29881:1;29861:5;-1:-1:-1;;;;;29861:17:0;;:21;29853:55;;;;-1:-1:-1;;;29853:55:0;;9839:2:1;29853:55:0;;;9821:21:1;9878:2;9858:18;;;9851:30;-1:-1:-1;;;9897:18:1;;;9890:51;9958:18;;29853:55:0;9637:345:1;29853:55:0;29975:59;;;-1:-1:-1;;;;;9078:32:1;;;29975:59:0;;;9060:51:1;9127:18;;;;9120:34;;;29975:59:0;;;;;;;;;;9033:18:1;;;;29975:59:0;;;;;;;-1:-1:-1;;;;;29975:59:0;-1:-1:-1;;;29975:59:0;;;29964:71;;-1:-1:-1;;;;29964:10:0;;;;:71;;29975:59;29964:71;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29919:116;;;;30054:7;:57;;;;-1:-1:-1;30066:11:0;;:16;;:44;;;30097:4;30086:24;;;;;;;;;;;;:::i;:::-;30046:104;;;;-1:-1:-1;;;30046:104:0;;;;;;;:::i;:::-;29842:316;;29768:390;;;:::o;30166:418::-;30297:1;30277:5;-1:-1:-1;;;;;30277:17:0;;:21;30269:55;;;;-1:-1:-1;;;30269:55:0;;9839:2:1;30269:55:0;;;9821:21:1;9878:2;9858:18;;;9851:30;-1:-1:-1;;;9897:18:1;;;9890:51;9958:18;;30269:55:0;9637:345:1;30269:55:0;30391:69;;;-1:-1:-1;;;;;11079:15:1;;;30391:69:0;;;11061:34:1;11131:15;;;11111:18;;;11104:43;11163:18;;;;11156:34;;;30391:69:0;;;;;;;;;;10996:18:1;;;;30391:69:0;;;;;;;-1:-1:-1;;;;;30391:69:0;-1:-1:-1;;;30391:69:0;;;30380:81;;-1:-1:-1;;;;30380:10:0;;;;:81;;30391:69;30380:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30335:126;;;;30480:7;:57;;;;-1:-1:-1;30492:11:0;;:16;;:44;;;30523:4;30512:24;;;;;;;;;;;;:::i;:::-;30472:104;;;;-1:-1:-1;;;30472:104:0;;;;;;;:::i;:::-;30258:326;;30166:418;;;;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;381:131::-;-1:-1:-1;;;;;456:31:1;;446:42;;436:70;;502:1;499;492:12;436:70;381:131;:::o;517:134::-;585:20;;614:31;585:20;614:31;:::i;:::-;517:134;;;:::o;656:315::-;724:6;732;785:2;773:9;764:7;760:23;756:32;753:52;;;801:1;798;791:12;753:52;840:9;827:23;859:31;884:5;859:31;:::i;:::-;909:5;961:2;946:18;;;;933:32;;-1:-1:-1;;;656:315:1:o;1184:248::-;1252:6;1260;1313:2;1301:9;1292:7;1288:23;1284:32;1281:52;;;1329:1;1326;1319:12;1281:52;-1:-1:-1;;1352:23:1;;;1422:2;1407:18;;;1394:32;;-1:-1:-1;1184:248:1:o;1690:247::-;1749:6;1802:2;1790:9;1781:7;1777:23;1773:32;1770:52;;;1818:1;1815;1808:12;1770:52;1857:9;1844:23;1876:31;1901:5;1876:31;:::i;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:128;4721:3;4752:1;4748:6;4745:1;4742:13;4739:39;;;4758:18;;:::i;:::-;-1:-1:-1;4794:9:1;;4681:128::o;4814:125::-;4854:4;4882:1;4879;4876:8;4873:34;;;4887:18;;:::i;:::-;-1:-1:-1;4924:9:1;;4814:125::o;4944:127::-;5005:10;5000:3;4996:20;4993:1;4986:31;5036:4;5033:1;5026:15;5060:4;5057:1;5050:15;5076:120;5116:1;5142;5132:35;;5147:18;;:::i;:::-;-1:-1:-1;5181:9:1;;5076:120::o;5201:168::-;5241:7;5307:1;5303;5299:6;5295:14;5292:1;5289:21;5284:1;5277:9;5270:17;5266:45;5263:71;;;5314:18;;:::i;:::-;-1:-1:-1;5354:9:1;;5201:168::o;5374:135::-;5413:3;-1:-1:-1;;5434:17:1;;5431:43;;;5454:18;;:::i;:::-;-1:-1:-1;5501:1:1;5490:13;;5374:135::o;5514:251::-;5584:6;5637:2;5625:9;5616:7;5612:23;5608:32;5605:52;;;5653:1;5650;5643:12;5605:52;5685:9;5679:16;5704:31;5729:5;5704:31;:::i;6107:127::-;6168:10;6163:3;6159:20;6156:1;6149:31;6199:4;6196:1;6189:15;6223:4;6220:1;6213:15;6853:332;7055:2;7037:21;;;7094:1;7074:18;;;7067:29;-1:-1:-1;;;7127:2:1;7112:18;;7105:39;7176:2;7161:18;;6853:332::o;7190:338::-;7392:2;7374:21;;;7431:2;7411:18;;;7404:30;-1:-1:-1;;;7465:2:1;7450:18;;7443:44;7519:2;7504:18;;7190:338::o;7891:277::-;7958:6;8011:2;7999:9;7990:7;7986:23;7982:32;7979:52;;;8027:1;8024;8017:12;7979:52;8059:9;8053:16;8112:5;8105:13;8098:21;8091:5;8088:32;8078:60;;8134:1;8131;8124:12;9520:112;9552:1;9578;9568:35;;9583:18;;:::i;:::-;-1:-1:-1;9617:9:1;;9520:112::o;9987:426::-;10116:3;10154:6;10148:13;10179:1;10189:129;10203:6;10200:1;10197:13;10189:129;;;10301:4;10285:14;;;10281:25;;10275:32;10262:11;;;10255:53;10218:12;10189:129;;;10336:6;10333:1;10330:13;10327:48;;;10371:1;10362:6;10357:3;10353:16;10346:27;10327:48;-1:-1:-1;10391:16:1;;;;;9987:426;-1:-1:-1;;9987:426:1:o;10418:398::-;10620:2;10602:21;;;10659:2;10639:18;;;10632:30;10698:34;10693:2;10678:18;;10671:62;-1:-1:-1;;;10764:2:1;10749:18;;10742:32;10806:3;10791:19;;10418:398::o

Swarm Source

ipfs://119ec3f1a9c27a5da64ae44c3d98f5905f708342872af5ea5ad2ca8763384d17
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.