ETH Price: $3,473.57 (+0.64%)

Contract

0xCcDE05524864009A3976ACacd32F6728f08A7B4a
 
Transaction Hash
Method
Block
From
To
Claim Rewards214414132024-12-20 4:41:4721 hrs ago1734669707IN
Kapital DAO: Staking
0 ETH0.000857748.386038
Claim Rewards214414092024-12-20 4:40:5921 hrs ago1734669659IN
Kapital DAO: Staking
0 ETH0.000954449.3315174
Claim Rewards214414062024-12-20 4:40:2321 hrs ago1734669623IN
Kapital DAO: Staking
0 ETH0.000972019.5044222
Claim Rewards214226972024-12-17 13:56:473 days ago1734443807IN
Kapital DAO: Staking
0 ETH0.0024646420.66340738
Unstake214167412024-12-16 18:01:354 days ago1734372095IN
Kapital DAO: Staking
0 ETH0.004105527.94609576
Claim Rewards214014292024-12-14 14:44:116 days ago1734187451IN
Kapital DAO: Staking
0 ETH0.0012721612.43777078
Claim Rewards214014272024-12-14 14:43:476 days ago1734187427IN
Kapital DAO: Staking
0 ETH0.0012768512.48366292
Unstake213787352024-12-11 10:41:359 days ago1733913695IN
Kapital DAO: Staking
0 ETH0.0018108211.93529478
Claim Rewards213764782024-12-11 3:06:479 days ago1733886407IN
Kapital DAO: Staking
0 ETH0.001464414.31898297
Claim Rewards213638792024-12-09 8:54:2311 days ago1733734463IN
Kapital DAO: Staking
0 ETH0.0013960911.70470628
Claim Rewards213357902024-12-05 10:46:4715 days ago1733395607IN
Kapital DAO: Staking
0 ETH0.0024869820.85065915
Unstake213131242024-12-02 6:45:5918 days ago1733121959IN
Kapital DAO: Staking
0 ETH0.0020344413.41023916
Claim Rewards213074472024-12-01 11:45:3519 days ago1733053535IN
Kapital DAO: Staking
0 ETH0.001140439.56131244
Claim Rewards213074452024-12-01 11:45:1119 days ago1733053511IN
Kapital DAO: Staking
0 ETH0.001133459.5037513
Unstake212980522024-11-30 4:16:5920 days ago1732940219IN
Kapital DAO: Staking
0 ETH0.001434017.91801725
Unstake212979952024-11-30 4:05:2320 days ago1732939523IN
Kapital DAO: Staking
0 ETH0.001071157.2913036
Claim Rewards212970912024-11-30 1:03:3521 days ago1732928615IN
Kapital DAO: Staking
0 ETH0.000898718.78664981
Claim Rewards212970892024-11-30 1:03:1121 days ago1732928591IN
Kapital DAO: Staking
0 ETH0.000928039.07326455
Claim Rewards212970862024-11-30 1:02:3521 days ago1732928555IN
Kapital DAO: Staking
0 ETH0.000948739.27677659
Claim Rewards212872472024-11-28 15:59:3522 days ago1732809575IN
Kapital DAO: Staking
0 ETH0.0012592712.31324793
Claim Rewards212795752024-11-27 14:05:4723 days ago1732716347IN
Kapital DAO: Staking
0 ETH0.0022510318.87248898
Claim Rewards212643312024-11-25 10:59:2325 days ago1732532363IN
Kapital DAO: Staking
0 ETH0.0018952715.88982493
Claim Rewards212334182024-11-21 3:27:1129 days ago1732159631IN
Kapital DAO: Staking
0 ETH0.0012822110.74994429
Claim Rewards212334162024-11-21 3:26:4729 days ago1732159607IN
Kapital DAO: Staking
0 ETH0.0010785710.54511548
Claim Rewards212334142024-11-21 3:26:2329 days ago1732159583IN
Kapital DAO: Staking
0 ETH0.000969449.47811747
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Staking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : Staking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "./interfaces/IGovernance.sol";
import "./interfaces/IGovernanceRegistry.sol";
import "./interfaces/IRewardsLocker.sol";
import "./interfaces/IStaking.sol";
import "./interfaces/IVotingWeightSource.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

/**
 * @title Kapital DAO Staking Pool
 * @author Playground Labs
 * @custom:security-contact [email protected]
 * @notice Staking pool contract for KAP-ETH Uniswap v2 LP tokens. The word
 * "rewards" refers to an amount of KAP given to a user in return for the
 * user's agreement to lock LP tokens in the staking pool.
 */
contract Staking is IStaking, IVotingWeightSource, AccessControlEnumerable {
    using SafeCast for uint256;
    uint256 public constant MIN_LOCK = 4 weeks; // minimum staking lock
    uint256 public constant MAX_LOCK = 52 weeks; // maximum staking lock
    uint256 public constant CUMULATIVE_MULTIPLIER = 1e12; // to reduce integer division error
    bytes32 public constant TEAM_MULTISIG = keccak256("TEAM_MULTISIG");

    using SafeERC20 for IERC20;
    IERC20 public immutable asset; // staked token, KAP or KAP-ETH LP
    IGovernanceRegistry public immutable governanceRegistry; // used to query the latest governance address
    IRewardsLocker public immutable rewardsLocker; // claimed rewards locked here for 52 weeks before withdrawal

    uint256 public cumulative; // cumulative rewards per wight, multiplied by {CUMULATIVE_MULTIPLIER}
    uint256 public totalWeight; // total staking weight in pool
    uint256 public syncdTo; // timestamp at which {cumulative} is valid
    uint256 public totalBoostRewards; // track total claimed boost rewards, for security monitoring
    bool public boostOn = true; // boosting can be turned off by governance or team multisig
    Emission public emission; // controls rewards emission rate
    mapping(address => Deposit[]) public deposits;
    mapping(address => uint256) public totalStaked; // voting weight
    mapping(address => uint256) public lastStaked; // to securely report voting weight

    constructor(
        address _asset,
        address _governanceRegistry,
        address _rewardsLocker,
        address _teamMultisig
    ) {
        require(_asset != address(0), "Staking: Zero address");
        require(_governanceRegistry != address(0), "Staking: Zero address");
        require(_rewardsLocker != address(0), "Staking: Zero address");
        require(_teamMultisig != address(0), "Staking: Zero address");

        asset = IERC20(_asset);
        governanceRegistry = IGovernanceRegistry(_governanceRegistry);
        rewardsLocker = IRewardsLocker(_rewardsLocker);
        _grantRole(TEAM_MULTISIG, _teamMultisig);
    }

    /**
     * @notice Updates {cumulative} and {syncdTo} based on {emission}
     */
    function _sync() internal {
        if (block.timestamp > syncdTo) {
            uint256 expiration = emission.expiration;
            if (syncdTo < expiration && totalWeight > 0) {
                uint256 timeElapsed =
                    block.timestamp < expiration ? block.timestamp - syncdTo : expiration - syncdTo;
                cumulative += (emission.rate * timeElapsed * CUMULATIVE_MULTIPLIER) / totalWeight;
            }
            syncdTo = block.timestamp;
            emit Sync(msg.sender, cumulative);
        }
    }

    modifier syncd() {
        _sync();
        _;
    }

    /**
     * @notice Creates a deposit with the specified amount and lock period
     * @param amount The token amount to stake in units of wei
     * @param lock The time in seconds to lock the tokens for
     * @dev Requires token allowance from staker
     */
    function stake(uint256 amount, uint256 lock) external syncd {
        require(amount > 0, "Staking: Zero amount");
        require(MIN_LOCK <= lock && lock <= MAX_LOCK, "Staking: Lock");
        require(amount <= type(uint112).max, "Staking: Overflow");

        deposits[msg.sender].push(
            Deposit({
                amount: uint112(amount),
                start: block.timestamp.toUint64(),
                end: (block.timestamp + lock).toUint64(),
                collected: false,
                cumulative: cumulative
            })
        );
        totalWeight += amount * lock;
        totalStaked[msg.sender] += amount;
        lastStaked[msg.sender] = block.timestamp;
        emit Stake(msg.sender, deposits[msg.sender].length - 1, amount, lock);

        asset.safeTransferFrom(msg.sender, address(this), amount); // no LP tokens are lost during transfer, expected amount always received
    }

    /**
     * @notice Collects the deposit amount and claims rewards
     * @param depositId The deposit array index to collect from
     */
    function unstake(uint256 depositId) external syncd {
        Deposit storage deposit = deposits[msg.sender][depositId];
        uint256 amount = deposit.amount;
        uint256 end = deposit.end;

        require(!deposit.collected, "Staking: Already collected");
        require(block.timestamp >= end, "Staking: Early unstake");

        totalWeight -= amount * (end - deposit.start);
        totalStaked[msg.sender] -= amount;
        claimRewards(depositId, 0); // must claim before updating `deposit.collected`, see {claimRewards}
        deposit.collected = true;
        emit Unstake(msg.sender, depositId, amount);

        asset.safeTransfer(msg.sender, amount);
    }

    /**
     * @notice Claims rewards and restakes if boosting
     * @param depositId The deposit array index to claim from
     * @param extension The time in seconds to extend the lock period
     */
    function claimRewards(uint256 depositId, uint256 extension) public syncd {
        Deposit storage deposit = deposits[msg.sender][depositId];
        uint256 amount = deposit.amount;
        uint256 end = deposit.end;
        uint256 lock = end - deposit.start;
        uint256 weight = amount * lock;
        uint256 cumulativeDifference = cumulative - deposit.cumulative;
        uint256 rewards = (weight * cumulativeDifference) / CUMULATIVE_MULTIPLIER;
        
        require(!deposit.collected, "Staking: Already collected"); // rewards stop accumulating after principal is collected

        if (boostOn && extension > 0) {
            uint256 boostRewards = _boost(deposit, amount, end, lock, weight, extension, rewards);
            rewards += boostRewards;
            emit Extend(msg.sender, depositId, extension, boostRewards);
        }
        deposit.cumulative = cumulative;
        emit ClaimRewards(msg.sender, depositId, extension, rewards);

        if (rewards > 0) {
            rewardsLocker.createLockAgreement(msg.sender, rewards);
        }
    }

    /**
     * @notice Calculates boost rewards and updates state
     */
    function _boost(
        Deposit storage deposit,
        uint256 amount,
        uint256 end,
        uint256 lock,
        uint256 weight,
        uint256 extension,
        uint256 rewards
    ) internal returns (uint256 boostRewards) {
        require(block.timestamp < end, "Staking: Remaining");
        uint256 remaining = end - block.timestamp;
        uint256 maxExtension = MAX_LOCK - remaining;
        boostRewards = (rewards * remaining * extension) / (lock * maxExtension);
        uint256 newStart = block.timestamp;
        uint256 newEnd = end + extension;
        uint256 newLock = newEnd - newStart;
        uint256 newWeight = amount * newLock;

        require(MIN_LOCK <= newLock && newLock <= MAX_LOCK, "Staking: New lock");

        deposit.start = newStart.toUint64();
        deposit.end = newEnd.toUint64();
        totalWeight -= weight;
        totalWeight += newWeight;
        totalBoostRewards += boostRewards;
    }

    modifier onlyAdmin() {
        require(
            msg.sender == governanceRegistry.governance() || hasRole(TEAM_MULTISIG, msg.sender),
            "Staking: Only admin"
        );
        _;
    }

    /**
     * @notice Sets a new rate and expiration for {emission}
     * @param rate The new kap per second reward
     * @param expiration The new timestamp after which rewards stop
     */
    function updateEmission(uint256 rate, uint256 expiration) external onlyAdmin syncd {
        require(block.timestamp < expiration, "Staking: Invalid expiration");
        emission.rate = rate.toUint128();
        emission.expiration = expiration.toUint128();
        emit UpdateEmission(msg.sender, rate, expiration);
    }

    /**
     * @notice Permanently turns off boosting
     */
    function turnOffBoost() external onlyAdmin {
        require(boostOn, "Staking: Already off");
        boostOn = false;
        emit TurnOffBoost(msg.sender);
    }

    /**
     * @notice Reports voting weight
     * @param voter Staker to report voting weight for
     */
    function votingWeight(address voter) external view returns (uint256) {
        uint256 votingPeriod = IGovernance(governanceRegistry.governance()).votingPeriod();
        uint256 timeElapsed = block.timestamp - lastStaked[voter];
        return timeElapsed > votingPeriod ? totalStaked[voter] : 0;
    }

    /**
     * @notice Front-end getter for staker deposits
     * @param staker Staker to get deposits for
     */
    function getDeposits(address staker) external view returns (Deposit[] memory) {
        return deposits[staker];
    }
}

File 2 of 19 : IGovernance.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/**
 * @title Interface for Kapital DAO Governance
 * @author Playground Labs
 * @custom:security-contact [email protected]
 */
interface IGovernance {
    function votingPeriod() external view returns (uint256); // used when reporting voting weight to prevent double-voting

    struct Proposal {
        bytes32 paramsHash; // hash of proposal data
        uint56 time; // proposal timestamp
        uint96 yays; // votes for proposal
        uint96 nays; // votes against proposal
        bool executed; // to make sure a proposal is only executed once
        bool vetoed; // vetoed proposal cannot be executed or voted on 
    }

    event Propose(
        address indexed proposer,
        uint256 indexed proposalId,
        address[] targets,
        uint256[] values,
        bytes[] data
    );
    event Vote(
        address indexed voter,
        uint256 indexed proposalId,
        bool yay,
        uint256 votingWeight
    );
    event Execute(address indexed executor, uint256 indexed proposalId);
    event Veto(uint256 indexed proposalId);
}

File 3 of 19 : IGovernanceRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/**
 * @title Interface for GovernanceRegistry
 * @author Playground Labs
 */
interface IGovernanceRegistry {
    function governance() external view returns (address);
}

File 4 of 19 : IRewardsLocker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/**
 * @title Interface for RewardsLocker
 * @author Playground Labs
 * @custom:security-contact [email protected]
 * @notice Interface used by staking contracts to create lock
 * agreements in RewardsLocker when KAP rewards are claimed
 */
interface IRewardsLocker {
    function createLockAgreement(address beneficiary, uint256 amount) external;

    /**
     * @dev Data structure describing a lock agreement created after a user
     * claims KAP staking rewards
     */
    struct LockAgreement {
        uint64 availableTimestamp; // after `availableTimestamp`, `amount` KAP is made available for withdrawal
        uint96 amount; // amount of KAP promised to the beneficiary
        bool collected; // used to prohibit double-collection
    }

    event CreateLockAgreement(address indexed beneficiary, uint256 amount);
    event CollectRewards(address indexed beneficiary, uint256 lockAgreementId);
    event TransferKap(address to, uint256 amount);
}

File 5 of 19 : IStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/**
 * @title Interface for Kapital DAO Staking Pool
 * @author Playground Labs
 * @custom:security-contact [email protected]
 */
interface IStaking {
    struct Emission {
        uint128 rate; // KAP rewards per second emitted by the staking pool
        uint128 expiration; // rewards are no longer accumulated after this time
    }

    struct Deposit {
        uint112 amount; // token amount given to the staking pool
        uint64 start; // time of lock period start
        uint64 end; // time of lock period end
        bool collected; // becomes true after principal is collected
        uint256 cumulative; // {cumulative} at time of deposit or last claim
    }

    event Sync(address indexed by, uint256 cumulative);
    event Stake(address indexed staker, uint256 depositId, uint256 amount, uint256 lock);
    event Unstake(address indexed staker, uint256 depositId, uint256 amount);
    event Extend(address indexed staker, uint256 depositId, uint256 extension, uint256 boostRewards);
    event ClaimRewards(address indexed staker, uint256 depositId, uint256 extension, uint256 rewards);
    event UpdateEmission(address indexed updater, uint256 rate, uint256 expiration);
    event TurnOffBoost(address indexed by);
}

File 6 of 19 : IVotingWeightSource.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/**
 * @title Interface for Kapital DAO Voting Weight Sources
 * @author Playground Labs
 * @custom:security-contact [email protected]
 * @notice The governance contract is responsible for interpreting the meaning
 * of the reported voting weight, based on the voting weight source address.
 * The voting weight could be in units of KAP tokens, but could alternatively
 * be in different units such as LP tokens.
 */
interface IVotingWeightSource {
    function votingWeight(address voter) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 9 of 19 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 10 of 19 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 19 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 14 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_governanceRegistry","type":"address"},{"internalType":"address","name":"_rewardsLocker","type":"address"},{"internalType":"address","name":"_teamMultisig","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"extension","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewards","type":"uint256"}],"name":"ClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"extension","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boostRewards","type":"uint256"}],"name":"Extend","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lock","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"cumulative","type":"uint256"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"}],"name":"TurnOffBoost","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"updater","type":"address"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiration","type":"uint256"}],"name":"UpdateEmission","type":"event"},{"inputs":[],"name":"CUMULATIVE_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_MULTISIG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"},{"internalType":"uint256","name":"extension","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cumulative","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"uint112","name":"amount","type":"uint112"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"bool","name":"collected","type":"bool"},{"internalType":"uint256","name":"cumulative","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emission","outputs":[{"internalType":"uint128","name":"rate","type":"uint128"},{"internalType":"uint128","name":"expiration","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getDeposits","outputs":[{"components":[{"internalType":"uint112","name":"amount","type":"uint112"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"bool","name":"collected","type":"bool"},{"internalType":"uint256","name":"cumulative","type":"uint256"}],"internalType":"struct IStaking.Deposit[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governanceRegistry","outputs":[{"internalType":"contract IGovernanceRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsLocker","outputs":[{"internalType":"contract IRewardsLocker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lock","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"syncdTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBoostRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"turnOffBoost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"}],"name":"updateEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"voter","type":"address"}],"name":"votingWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60e06040526001600660006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162004819380380620048198339818101604052810190620000529190620005e0565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620000c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000bc90620006b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000138576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200012f90620006b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620001ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001a290620006b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200021e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200021590620006b3565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1681525050620002ec7fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee82620002f660201b60201c565b50505050620006d5565b6200030d82826200033e60201b62001c151760201c565b6200033981600160008581526020019081526020016000206200042f60201b62001cf51790919060201c565b505050565b6200035082826200046760201b60201c565b6200042b57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003d0620004d160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006200045f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620004d960201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000620004ed83836200055360201b60201c565b620005485782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200054d565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005a8826200057b565b9050919050565b620005ba816200059b565b8114620005c657600080fd5b50565b600081519050620005da81620005af565b92915050565b60008060008060808587031215620005fd57620005fc62000576565b5b60006200060d87828801620005c9565b94505060206200062087828801620005c9565b93505060406200063387828801620005c9565b92505060606200064687828801620005c9565b91505092959194509250565b600082825260208201905092915050565b7f5374616b696e673a205a65726f20616464726573730000000000000000000000600082015250565b60006200069b60158362000652565b9150620006a88262000663565b602082019050919050565b60006020820190508181036000830152620006ce816200068c565b9050919050565b60805160a05160c0516140ea6200072f60003960008181610f2401526119300152600081816106c8015281816106ec015281816114fc0152611957015260008181610b7401528181610c6c01526113ce01526140ea6000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806391d148541161010f578063b788f3a1116100a2578063d547741f11610071578063d547741f146105c0578063d6d68177146105dc578063e6168d4914610610578063f8764cec1461062e576101f0565b8063b788f3a114610524578063b8b94c6e14610542578063c47b351114610560578063ca15c87314610590576101f0565b80639bfd8d61116100de5780639bfd8d6114610488578063a217fddf146104b8578063ae96812b146104d6578063b0f5379814610506576101f0565b806391d14854146103ee57806391e8fb671461041e57806394f649dd1461043a57806396c82e571461046a576101f0565b8063507dbf04116101875780637ae176ff116101565780637ae176ff146103655780637b0472f014610383578063827c049e1461039f5780639010d07c146103be576101f0565b8063507dbf04146102ef578063594dd4321461030d57806365a5d5f0146103295780636b833ace14610347576101f0565b80632e17de78116101c35780632e17de781461027d5780632f2ff15d1461029957806336568abe146102b557806338d52e0f146102d1576101f0565b806301ffc9a7146101f557806310a23d2b14610225578063131ace5714610243578063248a9ca31461024d575b600080fd5b61020f600480360381019061020a9190612c50565b61064c565b60405161021c9190612c98565b60405180910390f35b61022d6106c6565b60405161023a9190612d32565b60405180910390f35b61024b6106ea565b005b61026760048036038101906102629190612d83565b6108d5565b6040516102749190612dbf565b60405180910390f35b61029760048036038101906102929190612e10565b6108f4565b005b6102b360048036038101906102ae9190612e7b565b610bbe565b005b6102cf60048036038101906102ca9190612e7b565b610be7565b005b6102d9610c6a565b6040516102e69190612edc565b60405180910390f35b6102f7610c8e565b6040516103049190612f06565b60405180910390f35b61032760048036038101906103229190612f21565b610c97565b005b610331610fbb565b60405161033e9190612f06565b60405180910390f35b61034f610fc3565b60405161035c9190612c98565b60405180910390f35b61036d610fd6565b60405161037a9190612f06565b60405180910390f35b61039d60048036038101906103989190612f21565b610fdc565b005b6103a7611417565b6040516103b5929190612f8c565b60405180910390f35b6103d860048036038101906103d39190612fb5565b611461565b6040516103e59190613004565b60405180910390f35b61040860048036038101906104039190612e7b565b611490565b6040516104159190612c98565b60405180910390f35b61043860048036038101906104339190612f21565b6114fa565b005b610454600480360381019061044f919061301f565b61175c565b60405161046191906131cd565b60405180910390f35b6104726118c7565b60405161047f9190612f06565b60405180910390f35b6104a2600480360381019061049d919061301f565b6118cd565b6040516104af9190612f06565b60405180910390f35b6104c06118e5565b6040516104cd9190612dbf565b60405180910390f35b6104f060048036038101906104eb919061301f565b6118ec565b6040516104fd9190612f06565b60405180910390f35b61050e611904565b60405161051b9190612f06565b60405180910390f35b61052c61190a565b6040516105399190612dbf565b60405180910390f35b61054a61192e565b6040516105579190613210565b60405180910390f35b61057a6004803603810190610575919061301f565b611952565b6040516105879190612f06565b60405180910390f35b6105aa60048036038101906105a59190612d83565b611b19565b6040516105b79190612f06565b60405180910390f35b6105da60048036038101906105d59190612e7b565b611b3d565b005b6105f660048036038101906105f1919061322b565b611b66565b604051610607959493929190613289565b60405180910390f35b610618611c08565b6040516106259190612f06565b60405180910390f35b610636611c0e565b6040516106439190612f06565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106bf57506106be82611d25565b5b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561075057600080fd5b505afa158015610764573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078891906132f1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806107e757506107e67fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee33611490565b5b610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d9061337b565b60405180910390fd5b600660009054906101000a900460ff16610875576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086c906133e7565b60405180910390fd5b6000600660006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167f15cfc730a0990fde45905465e22f9ef4edd8b1b246c4645b6ade27969ed61bff60405160405180910390a2565b6000806000838152602001908152602001600020600101549050919050565b6108fc611d9f565b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061094f5761094e613407565b5b9060005260206000209060020201905060008160000160009054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16905060008260000160169054906101000a900467ffffffffffffffff1667ffffffffffffffff16905082600001601e9054906101000a900460ff1615610a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0290613482565b60405180910390fd5b80421015610a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a45906134ee565b60405180910390fd5b82600001600e9054906101000a900467ffffffffffffffff1667ffffffffffffffff1681610a7c919061353d565b82610a879190613571565b60036000828254610a98919061353d565b9250508190555081600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610aee919061353d565b92505081905550610b00846000610c97565b600183600001601e6101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb2808584604051610b659291906135cb565b60405180910390a2610bb833837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611ef79092919063ffffffff16565b50505050565b610bc7826108d5565b610bd881610bd3611f7d565b611f85565b610be28383612022565b505050565b610bef611f7d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5390613666565b60405180910390fd5b610c668282612056565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b64e8d4a5100081565b610c9f611d9f565b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110610cf257610cf1613407565b5b9060005260206000209060020201905060008160000160009054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16905060008260000160169054906101000a900467ffffffffffffffff1667ffffffffffffffff169050600083600001600e9054906101000a900467ffffffffffffffff1667ffffffffffffffff1682610d8c919061353d565b905060008184610d9c9190613571565b905060008560010154600254610db2919061353d565b9050600064e8d4a510008284610dc89190613571565b610dd291906136b5565b905086600001601e9054906101000a900460ff1615610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90613482565b60405180910390fd5b600660009054906101000a900460ff168015610e425750600088115b15610ebc576000610e5888888888888e8861208a565b90508082610e6691906136e6565b91503373ffffffffffffffffffffffffffffffffffffffff167f35dade72b126e138a58171aa3dbbf950796f6a8f9805a97bec061400d4a623b78b8b84604051610eb29392919061373c565b60405180910390a2505b60025487600101819055503373ffffffffffffffffffffffffffffffffffffffff167f3c09a2b3e58d6395c26eccb9ac4a6f743daa1235eb4ae606bd8b63e7a7b3baac8a8a84604051610f119392919061373c565b60405180910390a26000811115610fb0577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ccd0454133836040518363ffffffff1660e01b8152600401610f7d929190613773565b600060405180830381600087803b158015610f9757600080fd5b505af1158015610fab573d6000803e3d6000fd5b505050505b505050505050505050565b6301dfe20081565b600660009054906101000a900460ff1681565b60025481565b610fe4611d9f565b60008211611027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101e906137e8565b60405180910390fd5b806224ea001115801561103e57506301dfe2008111155b61107d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107490613854565b60405180910390fd5b6dffffffffffffffffffffffffffff80168211156110d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c7906138c0565b60405180910390fd5b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a00160405280846dffffffffffffffffffffffffffff1681526020016111394261226e565b67ffffffffffffffff16815260200161115c844261115791906136e6565b61226e565b67ffffffffffffffff168152602001600015158152602001600254815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff160217905550602082015181600001600e6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160166101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550606082015181600001601e6101000a81548160ff02191690831515021790555060808201518160010155505080826112749190613571565b6003600082825461128591906136e6565b9250508190555081600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112db91906136e6565b9250508190555042600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167ff556991011e831bcfac4f406d547e5e32cdd98267efab83935230d5f8d02c4466001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506113ad919061353d565b84846040516113be9392919061373c565b60405180910390a26114133330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166122c5909392919063ffffffff16565b5050565b60078060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16905082565b6000611488826001600086815260200190815260200160002061234e90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561156057600080fd5b505afa158015611574573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159891906132f1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115f757506115f67fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee33611490565b5b611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d9061337b565b60405180910390fd5b61163e611d9f565b804210611680576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116779061392c565b60405180910390fd5b61168982612368565b600760000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506116cd81612368565b600760000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167fbc4c950a66848b053f815c2aa3668caa42ee220163bfd17e7c6536df22b5122c83836040516117509291906135cb565b60405180910390a25050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156118bc57838290600052602060002090600202016040518060a00160405290816000820160009054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16815260200160008201600e9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160169054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601e9054906101000a900460ff16151515158152602001600182015481525050815260200190600101906117bd565b505050509050919050565b60035481565b60096020528060005260406000206000915090505481565b6000801b81565b600a6020528060005260406000206000915090505481565b60045481565b7fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee81565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b1580156119bb57600080fd5b505afa1580156119cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f391906132f1565b73ffffffffffffffffffffffffffffffffffffffff166302a251a36040518163ffffffff1660e01b815260040160206040518083038186803b158015611a3857600080fd5b505afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a709190613961565b90506000600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442611abf919061353d565b9050818111611acf576000611b10565b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020545b92505050919050565b6000611b36600160008481526020019081526020016000206123c7565b9050919050565b611b46826108d5565b611b5781611b52611f7d565b611f85565b611b618383612056565b505050565b60086020528160005260406000208181548110611b8257600080fd5b9060005260206000209060020201600091509150508060000160009054906101000a90046dffffffffffffffffffffffffffff169080600001600e9054906101000a900467ffffffffffffffff16908060000160169054906101000a900467ffffffffffffffff169080600001601e9054906101000a900460ff16908060010154905085565b60055481565b6224ea0081565b611c1f8282611490565b611cf157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c96611f7d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611d1d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6123dc565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d985750611d978261244c565b5b9050919050565b600454421115611ef5576000600760000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905080600454108015611df457506000600354115b15611e9c576000814210611e155760045482611e10919061353d565b611e24565b60045442611e23919061353d565b5b905060035464e8d4a5100082600760000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16611e6e9190613571565b611e789190613571565b611e8291906136b5565b60026000828254611e9391906136e6565b92505081905550505b426004819055503373ffffffffffffffffffffffffffffffffffffffff167f99869d968ca3581a661f31abb3a6aa70ccec5cdc49855eab174cf9e00a2462db600254604051611eeb9190612f06565b60405180910390a2505b565b611f788363a9059cbb60e01b8484604051602401611f16929190613773565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506124b6565b505050565b600033905090565b611f8f8282611490565b61201e57611fb48173ffffffffffffffffffffffffffffffffffffffff16601461257d565b611fc28360001c602061257d565b604051602001611fd3929190613aa0565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120159190613b24565b60405180910390fd5b5050565b61202c8282611c15565b6120518160016000858152602001908152602001600020611cf590919063ffffffff16565b505050565b61206082826127b9565b612085816001600085815260200190815260200160002061289a90919063ffffffff16565b505050565b60008542106120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c590613b92565b60405180910390fd5b600042876120dc919061353d565b90506000816301dfe2006120f0919061353d565b905080876120fe9190613571565b85838661210b9190613571565b6121159190613571565b61211f91906136b5565b925060004290506000868a61213491906136e6565b905060008282612144919061353d565b90506000818d6121549190613571565b9050816224ea001115801561216d57506301dfe2008211155b6121ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a390613bfe565b60405180910390fd5b6121b58461226e565b8e600001600e6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506121e88361226e565b8e60000160166101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508960036000828254612224919061353d565b92505081905550806003600082825461223d91906136e6565b92505081905550866005600082825461225691906136e6565b92505081905550505050505050979650505050505050565b600067ffffffffffffffff80168211156122bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b490613c90565b60405180910390fd5b819050919050565b612348846323b872dd60e01b8585856040516024016122e693929190613cb0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506124b6565b50505050565b600061235d83600001836128ca565b60001c905092915050565b60006fffffffffffffffffffffffffffffffff80168211156123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690613d59565b60405180910390fd5b819050919050565b60006123d5826000016128f5565b9050919050565b60006123e88383612906565b612441578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612446565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000612518826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129299092919063ffffffff16565b905060008151111561257857808060200190518101906125389190613da5565b612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e90613e44565b60405180910390fd5b5b505050565b6060600060028360026125909190613571565b61259a91906136e6565b67ffffffffffffffff8111156125b3576125b2613e64565b5b6040519080825280601f01601f1916602001820160405280156125e55781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061261d5761261c613407565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061268157612680613407565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026126c19190613571565b6126cb91906136e6565b90505b600181111561276b577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061270d5761270c613407565b5b1a60f81b82828151811061272457612723613407565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061276490613e93565b90506126ce565b50600084146127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a690613f09565b60405180910390fd5b8091505092915050565b6127c38282611490565b1561289657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061283b611f7d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006128c2836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612941565b905092915050565b60008260000182815481106128e2576128e1613407565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60606129388484600085612a55565b90509392505050565b60008083600101600084815260200190815260200160002054905060008114612a49576000600182612973919061353d565b905060006001866000018054905061298b919061353d565b90508181146129fa5760008660000182815481106129ac576129ab613407565b5b90600052602060002001549050808760000184815481106129d0576129cf613407565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612a0e57612a0d613f29565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612a4f565b60009150505b92915050565b606082471015612a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9190613fca565b60405180910390fd5b612aa385612b69565b612ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad990614036565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612b0b919061409d565b60006040518083038185875af1925050503d8060008114612b48576040519150601f19603f3d011682016040523d82523d6000602084013e612b4d565b606091505b5091509150612b5d828286612b8c565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315612b9c57829050612bec565b600083511115612baf5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be39190613b24565b60405180910390fd5b9392505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c2d81612bf8565b8114612c3857600080fd5b50565b600081359050612c4a81612c24565b92915050565b600060208284031215612c6657612c65612bf3565b5b6000612c7484828501612c3b565b91505092915050565b60008115159050919050565b612c9281612c7d565b82525050565b6000602082019050612cad6000830184612c89565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612cf8612cf3612cee84612cb3565b612cd3565b612cb3565b9050919050565b6000612d0a82612cdd565b9050919050565b6000612d1c82612cff565b9050919050565b612d2c81612d11565b82525050565b6000602082019050612d476000830184612d23565b92915050565b6000819050919050565b612d6081612d4d565b8114612d6b57600080fd5b50565b600081359050612d7d81612d57565b92915050565b600060208284031215612d9957612d98612bf3565b5b6000612da784828501612d6e565b91505092915050565b612db981612d4d565b82525050565b6000602082019050612dd46000830184612db0565b92915050565b6000819050919050565b612ded81612dda565b8114612df857600080fd5b50565b600081359050612e0a81612de4565b92915050565b600060208284031215612e2657612e25612bf3565b5b6000612e3484828501612dfb565b91505092915050565b6000612e4882612cb3565b9050919050565b612e5881612e3d565b8114612e6357600080fd5b50565b600081359050612e7581612e4f565b92915050565b60008060408385031215612e9257612e91612bf3565b5b6000612ea085828601612d6e565b9250506020612eb185828601612e66565b9150509250929050565b6000612ec682612cff565b9050919050565b612ed681612ebb565b82525050565b6000602082019050612ef16000830184612ecd565b92915050565b612f0081612dda565b82525050565b6000602082019050612f1b6000830184612ef7565b92915050565b60008060408385031215612f3857612f37612bf3565b5b6000612f4685828601612dfb565b9250506020612f5785828601612dfb565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612f8681612f61565b82525050565b6000604082019050612fa16000830185612f7d565b612fae6020830184612f7d565b9392505050565b60008060408385031215612fcc57612fcb612bf3565b5b6000612fda85828601612d6e565b9250506020612feb85828601612dfb565b9150509250929050565b612ffe81612e3d565b82525050565b60006020820190506130196000830184612ff5565b92915050565b60006020828403121561303557613034612bf3565b5b600061304384828501612e66565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006dffffffffffffffffffffffffffff82169050919050565b61309b81613078565b82525050565b600067ffffffffffffffff82169050919050565b6130be816130a1565b82525050565b6130cd81612c7d565b82525050565b6130dc81612dda565b82525050565b60a0820160008201516130f86000850182613092565b50602082015161310b60208501826130b5565b50604082015161311e60408501826130b5565b50606082015161313160608501826130c4565b50608082015161314460808501826130d3565b50505050565b600061315683836130e2565b60a08301905092915050565b6000602082019050919050565b600061317a8261304c565b6131848185613057565b935061318f83613068565b8060005b838110156131c05781516131a7888261314a565b97506131b283613162565b925050600181019050613193565b5085935050505092915050565b600060208201905081810360008301526131e7818461316f565b905092915050565b60006131fa82612cff565b9050919050565b61320a816131ef565b82525050565b60006020820190506132256000830184613201565b92915050565b6000806040838503121561324257613241612bf3565b5b600061325085828601612e66565b925050602061326185828601612dfb565b9150509250929050565b61327481613078565b82525050565b613283816130a1565b82525050565b600060a08201905061329e600083018861326b565b6132ab602083018761327a565b6132b8604083018661327a565b6132c56060830185612c89565b6132d26080830184612ef7565b9695505050505050565b6000815190506132eb81612e4f565b92915050565b60006020828403121561330757613306612bf3565b5b6000613315848285016132dc565b91505092915050565b600082825260208201905092915050565b7f5374616b696e673a204f6e6c792061646d696e00000000000000000000000000600082015250565b600061336560138361331e565b91506133708261332f565b602082019050919050565b6000602082019050818103600083015261339481613358565b9050919050565b7f5374616b696e673a20416c7265616479206f6666000000000000000000000000600082015250565b60006133d160148361331e565b91506133dc8261339b565b602082019050919050565b60006020820190508181036000830152613400816133c4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5374616b696e673a20416c726561647920636f6c6c6563746564000000000000600082015250565b600061346c601a8361331e565b915061347782613436565b602082019050919050565b6000602082019050818103600083015261349b8161345f565b9050919050565b7f5374616b696e673a204561726c7920756e7374616b6500000000000000000000600082015250565b60006134d860168361331e565b91506134e3826134a2565b602082019050919050565b60006020820190508181036000830152613507816134cb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061354882612dda565b915061355383612dda565b9250828210156135665761356561350e565b5b828203905092915050565b600061357c82612dda565b915061358783612dda565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135c0576135bf61350e565b5b828202905092915050565b60006040820190506135e06000830185612ef7565b6135ed6020830184612ef7565b9392505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613650602f8361331e565b915061365b826135f4565b604082019050919050565b6000602082019050818103600083015261367f81613643565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136c082612dda565b91506136cb83612dda565b9250826136db576136da613686565b5b828204905092915050565b60006136f182612dda565b91506136fc83612dda565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137315761373061350e565b5b828201905092915050565b60006060820190506137516000830186612ef7565b61375e6020830185612ef7565b61376b6040830184612ef7565b949350505050565b60006040820190506137886000830185612ff5565b6137956020830184612ef7565b9392505050565b7f5374616b696e673a205a65726f20616d6f756e74000000000000000000000000600082015250565b60006137d260148361331e565b91506137dd8261379c565b602082019050919050565b60006020820190508181036000830152613801816137c5565b9050919050565b7f5374616b696e673a204c6f636b00000000000000000000000000000000000000600082015250565b600061383e600d8361331e565b915061384982613808565b602082019050919050565b6000602082019050818103600083015261386d81613831565b9050919050565b7f5374616b696e673a204f766572666c6f77000000000000000000000000000000600082015250565b60006138aa60118361331e565b91506138b582613874565b602082019050919050565b600060208201905081810360008301526138d98161389d565b9050919050565b7f5374616b696e673a20496e76616c69642065787069726174696f6e0000000000600082015250565b6000613916601b8361331e565b9150613921826138e0565b602082019050919050565b6000602082019050818103600083015261394581613909565b9050919050565b60008151905061395b81612de4565b92915050565b60006020828403121561397757613976612bf3565b5b60006139858482850161394c565b91505092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006139cf60178361398e565b91506139da82613999565b601782019050919050565b600081519050919050565b60005b83811015613a0e5780820151818401526020810190506139f3565b83811115613a1d576000848401525b50505050565b6000613a2e826139e5565b613a38818561398e565b9350613a488185602086016139f0565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613a8a60118361398e565b9150613a9582613a54565b601182019050919050565b6000613aab826139c2565b9150613ab78285613a23565b9150613ac282613a7d565b9150613ace8284613a23565b91508190509392505050565b6000601f19601f8301169050919050565b6000613af6826139e5565b613b00818561331e565b9350613b108185602086016139f0565b613b1981613ada565b840191505092915050565b60006020820190508181036000830152613b3e8184613aeb565b905092915050565b7f5374616b696e673a2052656d61696e696e670000000000000000000000000000600082015250565b6000613b7c60128361331e565b9150613b8782613b46565b602082019050919050565b60006020820190508181036000830152613bab81613b6f565b9050919050565b7f5374616b696e673a204e6577206c6f636b000000000000000000000000000000600082015250565b6000613be860118361331e565b9150613bf382613bb2565b602082019050919050565b60006020820190508181036000830152613c1781613bdb565b9050919050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203660008201527f3420626974730000000000000000000000000000000000000000000000000000602082015250565b6000613c7a60268361331e565b9150613c8582613c1e565b604082019050919050565b60006020820190508181036000830152613ca981613c6d565b9050919050565b6000606082019050613cc56000830186612ff5565b613cd26020830185612ff5565b613cdf6040830184612ef7565b949350505050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203160008201527f3238206269747300000000000000000000000000000000000000000000000000602082015250565b6000613d4360278361331e565b9150613d4e82613ce7565b604082019050919050565b60006020820190508181036000830152613d7281613d36565b9050919050565b613d8281612c7d565b8114613d8d57600080fd5b50565b600081519050613d9f81613d79565b92915050565b600060208284031215613dbb57613dba612bf3565b5b6000613dc984828501613d90565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613e2e602a8361331e565b9150613e3982613dd2565b604082019050919050565b60006020820190508181036000830152613e5d81613e21565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000613e9e82612dda565b91506000821415613eb257613eb161350e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613ef360208361331e565b9150613efe82613ebd565b602082019050919050565b60006020820190508181036000830152613f2281613ee6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613fb460268361331e565b9150613fbf82613f58565b604082019050919050565b60006020820190508181036000830152613fe381613fa7565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614020601d8361331e565b915061402b82613fea565b602082019050919050565b6000602082019050818103600083015261404f81614013565b9050919050565b600081519050919050565b600081905092915050565b600061407782614056565b6140818185614061565b93506140918185602086016139f0565b80840191505092915050565b60006140a9828461406c565b91508190509291505056fea264697066735822122072a66e4c061708580d1bb62f29619e61996db9d818746d03321edd0ffb8580ed64736f6c6343000809003300000000000000000000000048200057593487b93311b03c845afda306a90e2a00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be2000000000000000000000000cb0460f5206ed006e6f2d012638027a255864f17000000000000000000000000bc450c9eced158c6bd1affa8d37153e278e63e68

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806391d148541161010f578063b788f3a1116100a2578063d547741f11610071578063d547741f146105c0578063d6d68177146105dc578063e6168d4914610610578063f8764cec1461062e576101f0565b8063b788f3a114610524578063b8b94c6e14610542578063c47b351114610560578063ca15c87314610590576101f0565b80639bfd8d61116100de5780639bfd8d6114610488578063a217fddf146104b8578063ae96812b146104d6578063b0f5379814610506576101f0565b806391d14854146103ee57806391e8fb671461041e57806394f649dd1461043a57806396c82e571461046a576101f0565b8063507dbf04116101875780637ae176ff116101565780637ae176ff146103655780637b0472f014610383578063827c049e1461039f5780639010d07c146103be576101f0565b8063507dbf04146102ef578063594dd4321461030d57806365a5d5f0146103295780636b833ace14610347576101f0565b80632e17de78116101c35780632e17de781461027d5780632f2ff15d1461029957806336568abe146102b557806338d52e0f146102d1576101f0565b806301ffc9a7146101f557806310a23d2b14610225578063131ace5714610243578063248a9ca31461024d575b600080fd5b61020f600480360381019061020a9190612c50565b61064c565b60405161021c9190612c98565b60405180910390f35b61022d6106c6565b60405161023a9190612d32565b60405180910390f35b61024b6106ea565b005b61026760048036038101906102629190612d83565b6108d5565b6040516102749190612dbf565b60405180910390f35b61029760048036038101906102929190612e10565b6108f4565b005b6102b360048036038101906102ae9190612e7b565b610bbe565b005b6102cf60048036038101906102ca9190612e7b565b610be7565b005b6102d9610c6a565b6040516102e69190612edc565b60405180910390f35b6102f7610c8e565b6040516103049190612f06565b60405180910390f35b61032760048036038101906103229190612f21565b610c97565b005b610331610fbb565b60405161033e9190612f06565b60405180910390f35b61034f610fc3565b60405161035c9190612c98565b60405180910390f35b61036d610fd6565b60405161037a9190612f06565b60405180910390f35b61039d60048036038101906103989190612f21565b610fdc565b005b6103a7611417565b6040516103b5929190612f8c565b60405180910390f35b6103d860048036038101906103d39190612fb5565b611461565b6040516103e59190613004565b60405180910390f35b61040860048036038101906104039190612e7b565b611490565b6040516104159190612c98565b60405180910390f35b61043860048036038101906104339190612f21565b6114fa565b005b610454600480360381019061044f919061301f565b61175c565b60405161046191906131cd565b60405180910390f35b6104726118c7565b60405161047f9190612f06565b60405180910390f35b6104a2600480360381019061049d919061301f565b6118cd565b6040516104af9190612f06565b60405180910390f35b6104c06118e5565b6040516104cd9190612dbf565b60405180910390f35b6104f060048036038101906104eb919061301f565b6118ec565b6040516104fd9190612f06565b60405180910390f35b61050e611904565b60405161051b9190612f06565b60405180910390f35b61052c61190a565b6040516105399190612dbf565b60405180910390f35b61054a61192e565b6040516105579190613210565b60405180910390f35b61057a6004803603810190610575919061301f565b611952565b6040516105879190612f06565b60405180910390f35b6105aa60048036038101906105a59190612d83565b611b19565b6040516105b79190612f06565b60405180910390f35b6105da60048036038101906105d59190612e7b565b611b3d565b005b6105f660048036038101906105f1919061322b565b611b66565b604051610607959493929190613289565b60405180910390f35b610618611c08565b6040516106259190612f06565b60405180910390f35b610636611c0e565b6040516106439190612f06565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106bf57506106be82611d25565b5b9050919050565b7f00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be281565b7f00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be273ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561075057600080fd5b505afa158015610764573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078891906132f1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806107e757506107e67fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee33611490565b5b610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d9061337b565b60405180910390fd5b600660009054906101000a900460ff16610875576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086c906133e7565b60405180910390fd5b6000600660006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167f15cfc730a0990fde45905465e22f9ef4edd8b1b246c4645b6ade27969ed61bff60405160405180910390a2565b6000806000838152602001908152602001600020600101549050919050565b6108fc611d9f565b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061094f5761094e613407565b5b9060005260206000209060020201905060008160000160009054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16905060008260000160169054906101000a900467ffffffffffffffff1667ffffffffffffffff16905082600001601e9054906101000a900460ff1615610a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0290613482565b60405180910390fd5b80421015610a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a45906134ee565b60405180910390fd5b82600001600e9054906101000a900467ffffffffffffffff1667ffffffffffffffff1681610a7c919061353d565b82610a879190613571565b60036000828254610a98919061353d565b9250508190555081600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610aee919061353d565b92505081905550610b00846000610c97565b600183600001601e6101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb2808584604051610b659291906135cb565b60405180910390a2610bb833837f00000000000000000000000048200057593487b93311b03c845afda306a90e2a73ffffffffffffffffffffffffffffffffffffffff16611ef79092919063ffffffff16565b50505050565b610bc7826108d5565b610bd881610bd3611f7d565b611f85565b610be28383612022565b505050565b610bef611f7d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5390613666565b60405180910390fd5b610c668282612056565b5050565b7f00000000000000000000000048200057593487b93311b03c845afda306a90e2a81565b64e8d4a5100081565b610c9f611d9f565b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110610cf257610cf1613407565b5b9060005260206000209060020201905060008160000160009054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16905060008260000160169054906101000a900467ffffffffffffffff1667ffffffffffffffff169050600083600001600e9054906101000a900467ffffffffffffffff1667ffffffffffffffff1682610d8c919061353d565b905060008184610d9c9190613571565b905060008560010154600254610db2919061353d565b9050600064e8d4a510008284610dc89190613571565b610dd291906136b5565b905086600001601e9054906101000a900460ff1615610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90613482565b60405180910390fd5b600660009054906101000a900460ff168015610e425750600088115b15610ebc576000610e5888888888888e8861208a565b90508082610e6691906136e6565b91503373ffffffffffffffffffffffffffffffffffffffff167f35dade72b126e138a58171aa3dbbf950796f6a8f9805a97bec061400d4a623b78b8b84604051610eb29392919061373c565b60405180910390a2505b60025487600101819055503373ffffffffffffffffffffffffffffffffffffffff167f3c09a2b3e58d6395c26eccb9ac4a6f743daa1235eb4ae606bd8b63e7a7b3baac8a8a84604051610f119392919061373c565b60405180910390a26000811115610fb0577f000000000000000000000000cb0460f5206ed006e6f2d012638027a255864f1773ffffffffffffffffffffffffffffffffffffffff1663ccd0454133836040518363ffffffff1660e01b8152600401610f7d929190613773565b600060405180830381600087803b158015610f9757600080fd5b505af1158015610fab573d6000803e3d6000fd5b505050505b505050505050505050565b6301dfe20081565b600660009054906101000a900460ff1681565b60025481565b610fe4611d9f565b60008211611027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101e906137e8565b60405180910390fd5b806224ea001115801561103e57506301dfe2008111155b61107d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107490613854565b60405180910390fd5b6dffffffffffffffffffffffffffff80168211156110d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c7906138c0565b60405180910390fd5b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a00160405280846dffffffffffffffffffffffffffff1681526020016111394261226e565b67ffffffffffffffff16815260200161115c844261115791906136e6565b61226e565b67ffffffffffffffff168152602001600015158152602001600254815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff160217905550602082015181600001600e6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160166101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550606082015181600001601e6101000a81548160ff02191690831515021790555060808201518160010155505080826112749190613571565b6003600082825461128591906136e6565b9250508190555081600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112db91906136e6565b9250508190555042600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167ff556991011e831bcfac4f406d547e5e32cdd98267efab83935230d5f8d02c4466001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506113ad919061353d565b84846040516113be9392919061373c565b60405180910390a26114133330847f00000000000000000000000048200057593487b93311b03c845afda306a90e2a73ffffffffffffffffffffffffffffffffffffffff166122c5909392919063ffffffff16565b5050565b60078060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16905082565b6000611488826001600086815260200190815260200160002061234e90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be273ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561156057600080fd5b505afa158015611574573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159891906132f1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115f757506115f67fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee33611490565b5b611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d9061337b565b60405180910390fd5b61163e611d9f565b804210611680576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116779061392c565b60405180910390fd5b61168982612368565b600760000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506116cd81612368565b600760000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167fbc4c950a66848b053f815c2aa3668caa42ee220163bfd17e7c6536df22b5122c83836040516117509291906135cb565b60405180910390a25050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156118bc57838290600052602060002090600202016040518060a00160405290816000820160009054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16815260200160008201600e9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160169054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601e9054906101000a900460ff16151515158152602001600182015481525050815260200190600101906117bd565b505050509050919050565b60035481565b60096020528060005260406000206000915090505481565b6000801b81565b600a6020528060005260406000206000915090505481565b60045481565b7fe0488e58c3c5b77fec86b90a6b04f114a1032e6815a230272b1ebfa3f18226ee81565b7f000000000000000000000000cb0460f5206ed006e6f2d012638027a255864f1781565b6000807f00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be273ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b1580156119bb57600080fd5b505afa1580156119cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f391906132f1565b73ffffffffffffffffffffffffffffffffffffffff166302a251a36040518163ffffffff1660e01b815260040160206040518083038186803b158015611a3857600080fd5b505afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a709190613961565b90506000600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442611abf919061353d565b9050818111611acf576000611b10565b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020545b92505050919050565b6000611b36600160008481526020019081526020016000206123c7565b9050919050565b611b46826108d5565b611b5781611b52611f7d565b611f85565b611b618383612056565b505050565b60086020528160005260406000208181548110611b8257600080fd5b9060005260206000209060020201600091509150508060000160009054906101000a90046dffffffffffffffffffffffffffff169080600001600e9054906101000a900467ffffffffffffffff16908060000160169054906101000a900467ffffffffffffffff169080600001601e9054906101000a900460ff16908060010154905085565b60055481565b6224ea0081565b611c1f8282611490565b611cf157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c96611f7d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611d1d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6123dc565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d985750611d978261244c565b5b9050919050565b600454421115611ef5576000600760000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905080600454108015611df457506000600354115b15611e9c576000814210611e155760045482611e10919061353d565b611e24565b60045442611e23919061353d565b5b905060035464e8d4a5100082600760000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16611e6e9190613571565b611e789190613571565b611e8291906136b5565b60026000828254611e9391906136e6565b92505081905550505b426004819055503373ffffffffffffffffffffffffffffffffffffffff167f99869d968ca3581a661f31abb3a6aa70ccec5cdc49855eab174cf9e00a2462db600254604051611eeb9190612f06565b60405180910390a2505b565b611f788363a9059cbb60e01b8484604051602401611f16929190613773565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506124b6565b505050565b600033905090565b611f8f8282611490565b61201e57611fb48173ffffffffffffffffffffffffffffffffffffffff16601461257d565b611fc28360001c602061257d565b604051602001611fd3929190613aa0565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120159190613b24565b60405180910390fd5b5050565b61202c8282611c15565b6120518160016000858152602001908152602001600020611cf590919063ffffffff16565b505050565b61206082826127b9565b612085816001600085815260200190815260200160002061289a90919063ffffffff16565b505050565b60008542106120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c590613b92565b60405180910390fd5b600042876120dc919061353d565b90506000816301dfe2006120f0919061353d565b905080876120fe9190613571565b85838661210b9190613571565b6121159190613571565b61211f91906136b5565b925060004290506000868a61213491906136e6565b905060008282612144919061353d565b90506000818d6121549190613571565b9050816224ea001115801561216d57506301dfe2008211155b6121ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a390613bfe565b60405180910390fd5b6121b58461226e565b8e600001600e6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506121e88361226e565b8e60000160166101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508960036000828254612224919061353d565b92505081905550806003600082825461223d91906136e6565b92505081905550866005600082825461225691906136e6565b92505081905550505050505050979650505050505050565b600067ffffffffffffffff80168211156122bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b490613c90565b60405180910390fd5b819050919050565b612348846323b872dd60e01b8585856040516024016122e693929190613cb0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506124b6565b50505050565b600061235d83600001836128ca565b60001c905092915050565b60006fffffffffffffffffffffffffffffffff80168211156123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690613d59565b60405180910390fd5b819050919050565b60006123d5826000016128f5565b9050919050565b60006123e88383612906565b612441578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612446565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000612518826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129299092919063ffffffff16565b905060008151111561257857808060200190518101906125389190613da5565b612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e90613e44565b60405180910390fd5b5b505050565b6060600060028360026125909190613571565b61259a91906136e6565b67ffffffffffffffff8111156125b3576125b2613e64565b5b6040519080825280601f01601f1916602001820160405280156125e55781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061261d5761261c613407565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061268157612680613407565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026126c19190613571565b6126cb91906136e6565b90505b600181111561276b577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061270d5761270c613407565b5b1a60f81b82828151811061272457612723613407565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061276490613e93565b90506126ce565b50600084146127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a690613f09565b60405180910390fd5b8091505092915050565b6127c38282611490565b1561289657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061283b611f7d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006128c2836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612941565b905092915050565b60008260000182815481106128e2576128e1613407565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60606129388484600085612a55565b90509392505050565b60008083600101600084815260200190815260200160002054905060008114612a49576000600182612973919061353d565b905060006001866000018054905061298b919061353d565b90508181146129fa5760008660000182815481106129ac576129ab613407565b5b90600052602060002001549050808760000184815481106129d0576129cf613407565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612a0e57612a0d613f29565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612a4f565b60009150505b92915050565b606082471015612a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9190613fca565b60405180910390fd5b612aa385612b69565b612ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad990614036565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612b0b919061409d565b60006040518083038185875af1925050503d8060008114612b48576040519150601f19603f3d011682016040523d82523d6000602084013e612b4d565b606091505b5091509150612b5d828286612b8c565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315612b9c57829050612bec565b600083511115612baf5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be39190613b24565b60405180910390fd5b9392505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c2d81612bf8565b8114612c3857600080fd5b50565b600081359050612c4a81612c24565b92915050565b600060208284031215612c6657612c65612bf3565b5b6000612c7484828501612c3b565b91505092915050565b60008115159050919050565b612c9281612c7d565b82525050565b6000602082019050612cad6000830184612c89565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612cf8612cf3612cee84612cb3565b612cd3565b612cb3565b9050919050565b6000612d0a82612cdd565b9050919050565b6000612d1c82612cff565b9050919050565b612d2c81612d11565b82525050565b6000602082019050612d476000830184612d23565b92915050565b6000819050919050565b612d6081612d4d565b8114612d6b57600080fd5b50565b600081359050612d7d81612d57565b92915050565b600060208284031215612d9957612d98612bf3565b5b6000612da784828501612d6e565b91505092915050565b612db981612d4d565b82525050565b6000602082019050612dd46000830184612db0565b92915050565b6000819050919050565b612ded81612dda565b8114612df857600080fd5b50565b600081359050612e0a81612de4565b92915050565b600060208284031215612e2657612e25612bf3565b5b6000612e3484828501612dfb565b91505092915050565b6000612e4882612cb3565b9050919050565b612e5881612e3d565b8114612e6357600080fd5b50565b600081359050612e7581612e4f565b92915050565b60008060408385031215612e9257612e91612bf3565b5b6000612ea085828601612d6e565b9250506020612eb185828601612e66565b9150509250929050565b6000612ec682612cff565b9050919050565b612ed681612ebb565b82525050565b6000602082019050612ef16000830184612ecd565b92915050565b612f0081612dda565b82525050565b6000602082019050612f1b6000830184612ef7565b92915050565b60008060408385031215612f3857612f37612bf3565b5b6000612f4685828601612dfb565b9250506020612f5785828601612dfb565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612f8681612f61565b82525050565b6000604082019050612fa16000830185612f7d565b612fae6020830184612f7d565b9392505050565b60008060408385031215612fcc57612fcb612bf3565b5b6000612fda85828601612d6e565b9250506020612feb85828601612dfb565b9150509250929050565b612ffe81612e3d565b82525050565b60006020820190506130196000830184612ff5565b92915050565b60006020828403121561303557613034612bf3565b5b600061304384828501612e66565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006dffffffffffffffffffffffffffff82169050919050565b61309b81613078565b82525050565b600067ffffffffffffffff82169050919050565b6130be816130a1565b82525050565b6130cd81612c7d565b82525050565b6130dc81612dda565b82525050565b60a0820160008201516130f86000850182613092565b50602082015161310b60208501826130b5565b50604082015161311e60408501826130b5565b50606082015161313160608501826130c4565b50608082015161314460808501826130d3565b50505050565b600061315683836130e2565b60a08301905092915050565b6000602082019050919050565b600061317a8261304c565b6131848185613057565b935061318f83613068565b8060005b838110156131c05781516131a7888261314a565b97506131b283613162565b925050600181019050613193565b5085935050505092915050565b600060208201905081810360008301526131e7818461316f565b905092915050565b60006131fa82612cff565b9050919050565b61320a816131ef565b82525050565b60006020820190506132256000830184613201565b92915050565b6000806040838503121561324257613241612bf3565b5b600061325085828601612e66565b925050602061326185828601612dfb565b9150509250929050565b61327481613078565b82525050565b613283816130a1565b82525050565b600060a08201905061329e600083018861326b565b6132ab602083018761327a565b6132b8604083018661327a565b6132c56060830185612c89565b6132d26080830184612ef7565b9695505050505050565b6000815190506132eb81612e4f565b92915050565b60006020828403121561330757613306612bf3565b5b6000613315848285016132dc565b91505092915050565b600082825260208201905092915050565b7f5374616b696e673a204f6e6c792061646d696e00000000000000000000000000600082015250565b600061336560138361331e565b91506133708261332f565b602082019050919050565b6000602082019050818103600083015261339481613358565b9050919050565b7f5374616b696e673a20416c7265616479206f6666000000000000000000000000600082015250565b60006133d160148361331e565b91506133dc8261339b565b602082019050919050565b60006020820190508181036000830152613400816133c4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5374616b696e673a20416c726561647920636f6c6c6563746564000000000000600082015250565b600061346c601a8361331e565b915061347782613436565b602082019050919050565b6000602082019050818103600083015261349b8161345f565b9050919050565b7f5374616b696e673a204561726c7920756e7374616b6500000000000000000000600082015250565b60006134d860168361331e565b91506134e3826134a2565b602082019050919050565b60006020820190508181036000830152613507816134cb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061354882612dda565b915061355383612dda565b9250828210156135665761356561350e565b5b828203905092915050565b600061357c82612dda565b915061358783612dda565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135c0576135bf61350e565b5b828202905092915050565b60006040820190506135e06000830185612ef7565b6135ed6020830184612ef7565b9392505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613650602f8361331e565b915061365b826135f4565b604082019050919050565b6000602082019050818103600083015261367f81613643565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136c082612dda565b91506136cb83612dda565b9250826136db576136da613686565b5b828204905092915050565b60006136f182612dda565b91506136fc83612dda565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137315761373061350e565b5b828201905092915050565b60006060820190506137516000830186612ef7565b61375e6020830185612ef7565b61376b6040830184612ef7565b949350505050565b60006040820190506137886000830185612ff5565b6137956020830184612ef7565b9392505050565b7f5374616b696e673a205a65726f20616d6f756e74000000000000000000000000600082015250565b60006137d260148361331e565b91506137dd8261379c565b602082019050919050565b60006020820190508181036000830152613801816137c5565b9050919050565b7f5374616b696e673a204c6f636b00000000000000000000000000000000000000600082015250565b600061383e600d8361331e565b915061384982613808565b602082019050919050565b6000602082019050818103600083015261386d81613831565b9050919050565b7f5374616b696e673a204f766572666c6f77000000000000000000000000000000600082015250565b60006138aa60118361331e565b91506138b582613874565b602082019050919050565b600060208201905081810360008301526138d98161389d565b9050919050565b7f5374616b696e673a20496e76616c69642065787069726174696f6e0000000000600082015250565b6000613916601b8361331e565b9150613921826138e0565b602082019050919050565b6000602082019050818103600083015261394581613909565b9050919050565b60008151905061395b81612de4565b92915050565b60006020828403121561397757613976612bf3565b5b60006139858482850161394c565b91505092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006139cf60178361398e565b91506139da82613999565b601782019050919050565b600081519050919050565b60005b83811015613a0e5780820151818401526020810190506139f3565b83811115613a1d576000848401525b50505050565b6000613a2e826139e5565b613a38818561398e565b9350613a488185602086016139f0565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613a8a60118361398e565b9150613a9582613a54565b601182019050919050565b6000613aab826139c2565b9150613ab78285613a23565b9150613ac282613a7d565b9150613ace8284613a23565b91508190509392505050565b6000601f19601f8301169050919050565b6000613af6826139e5565b613b00818561331e565b9350613b108185602086016139f0565b613b1981613ada565b840191505092915050565b60006020820190508181036000830152613b3e8184613aeb565b905092915050565b7f5374616b696e673a2052656d61696e696e670000000000000000000000000000600082015250565b6000613b7c60128361331e565b9150613b8782613b46565b602082019050919050565b60006020820190508181036000830152613bab81613b6f565b9050919050565b7f5374616b696e673a204e6577206c6f636b000000000000000000000000000000600082015250565b6000613be860118361331e565b9150613bf382613bb2565b602082019050919050565b60006020820190508181036000830152613c1781613bdb565b9050919050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203660008201527f3420626974730000000000000000000000000000000000000000000000000000602082015250565b6000613c7a60268361331e565b9150613c8582613c1e565b604082019050919050565b60006020820190508181036000830152613ca981613c6d565b9050919050565b6000606082019050613cc56000830186612ff5565b613cd26020830185612ff5565b613cdf6040830184612ef7565b949350505050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203160008201527f3238206269747300000000000000000000000000000000000000000000000000602082015250565b6000613d4360278361331e565b9150613d4e82613ce7565b604082019050919050565b60006020820190508181036000830152613d7281613d36565b9050919050565b613d8281612c7d565b8114613d8d57600080fd5b50565b600081519050613d9f81613d79565b92915050565b600060208284031215613dbb57613dba612bf3565b5b6000613dc984828501613d90565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613e2e602a8361331e565b9150613e3982613dd2565b604082019050919050565b60006020820190508181036000830152613e5d81613e21565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000613e9e82612dda565b91506000821415613eb257613eb161350e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613ef360208361331e565b9150613efe82613ebd565b602082019050919050565b60006020820190508181036000830152613f2281613ee6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613fb460268361331e565b9150613fbf82613f58565b604082019050919050565b60006020820190508181036000830152613fe381613fa7565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614020601d8361331e565b915061402b82613fea565b602082019050919050565b6000602082019050818103600083015261404f81614013565b9050919050565b600081519050919050565b600081905092915050565b600061407782614056565b6140818185614061565b93506140918185602086016139f0565b80840191505092915050565b60006140a9828461406c565b91508190509291505056fea264697066735822122072a66e4c061708580d1bb62f29619e61996db9d818746d03321edd0ffb8580ed64736f6c63430008090033

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

00000000000000000000000048200057593487b93311b03c845afda306a90e2a00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be2000000000000000000000000cb0460f5206ed006e6f2d012638027a255864f17000000000000000000000000bc450c9eced158c6bd1affa8d37153e278e63e68

-----Decoded View---------------
Arg [0] : _asset (address): 0x48200057593487b93311B03C845AFdA306a90e2a
Arg [1] : _governanceRegistry (address): 0x02242A0A909F97bE3D727ab189f19B1961D76BE2
Arg [2] : _rewardsLocker (address): 0xcB0460F5206ED006E6F2d012638027A255864F17
Arg [3] : _teamMultisig (address): 0xbc450C9EcED158c6bD1AFfA8D37153E278e63e68

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000048200057593487b93311b03c845afda306a90e2a
Arg [1] : 00000000000000000000000002242a0a909f97be3d727ab189f19b1961d76be2
Arg [2] : 000000000000000000000000cb0460f5206ed006e6f2d012638027a255864f17
Arg [3] : 000000000000000000000000bc450c9eced158c6bd1affa8d37153e278e63e68


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.