Contract 0x2bd2ec7be20c33c7862abeae0e37a532bf26dc32

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0cc265d5f2f8dd01210a80107d9b8af4866b2d9619b21e803ebe8b1631476a57Convert Nft To O...332438132022-03-12 16:36:16207 days 15 hrs ago0x39b3913c1c279c2cfc964ac8061f4797826d6429 IN  0xDAO: User Proxy NFT Interactions0 FTM0.151446693959
0xc8c536a82c5782ea7276e6a6ef0cf7f308e1aa03931c651bbb6ced2afd05cabcConvert Nft To O...332436562022-03-12 16:33:57207 days 15 hrs ago0x39b3913c1c279c2cfc964ac8061f4797826d6429 IN  0xDAO: User Proxy NFT Interactions0 FTM0.159713382042
0x47d257df31d93dbccc72faae784a82037288ced5ce08d855563dc6911bf15ab9Convert Nft To O...332432862022-03-12 16:28:03207 days 15 hrs ago0x39b3913c1c279c2cfc964ac8061f4797826d6429 IN  0xDAO: User Proxy NFT Interactions0 FTM0.161142753299
0xb9e688b333783ceee86b77337c56326487321b89116e176c4d540000ceb15ad7Convert Nft To O...332425172022-03-12 16:15:34207 days 15 hrs ago0x39b3913c1c279c2cfc964ac8061f4797826d6429 IN  0xDAO: User Proxy NFT Interactions0 FTM0.164271105284
0x38c3a0b93d4707c6c7ba00910a9094c2e222f7c4b877e5bb8d746b04bc9c855b0x60806040321355592022-02-27 22:18:09220 days 9 hrs ago0xDAO: Deployer IN  Create: UserProxyNftInteractions0 FTM2.578573550993
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x38c3a0b93d4707c6c7ba00910a9094c2e222f7c4b877e5bb8d746b04bc9c855b321355592022-02-27 22:18:09220 days 9 hrs ago 0xDAO: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UserProxyNftInteractions

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 25 : UserProxyNftInteractions.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "./UserProxyStorageLayout.sol";

/**
 * @title UserProxyNftInteractions
 * @author 0xDAO
 * @notice Core logic for all user SOLID/veNFT interactions
 * @dev All implementations must inherit from UserProxyStorageLayout
 */
contract UserProxyNftInteractions is UserProxyStorageLayout {
    using SafeERC20 for IERC20;

    /*******************************************************
     *                 SOLID and veNFT interactions
     *******************************************************/

    // Modifiers
    modifier syncPools() {
        oxLens.oxPoolFactory().syncPools(1);
        _;
    }
    modifier onlyUserProxyInterfaceOrOwner() {
        require(
            msg.sender == userProxyInterfaceAddress ||
                msg.sender == ownerAddress ||
                msg.sender == address(userProxy),
            "Only user proxy interface or owner is allowed"
        );
        _;
    }

    /**
     * @notice SOLID -> veNFT -> oxSOLID
     * @param amount The amount of SOLID to convert to oxSOLID
     */
    function convertSolidToOxSolid(uint256 amount)
        external
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // No empty converting
        require(amount > 0, "Amount to convert must be greater than zero");

        // Lock SOLID
        uint256 tokenId = _lockSolid(amount);

        // Convert NFT to oxSOLID
        _convertNftToOxSolid(tokenId);

        // Transfer oxSOLID to owner
        oxLens.oxSolid().transfer(ownerAddress, amount);
    }

    /**
     * @notice Convert veNFT to oxSOLID
     * @param tokenId The tokenID to convert
     */
    function _convertNftToOxSolid(uint256 tokenId) internal {
        // Fetch oxSOLID balanceOf(owner) before conversions
        uint256 oxSolidBalanceOfBefore = oxLens.oxSolid().balanceOf(
            address(this)
        );

        // Determine amount of oxSOLID to mint
        IVe ve = oxLens.ve();
        uint256 amount = ve.locked(tokenId);
        assert(amount > 0);

        // Deposit NFT to oxSOLID and receive oxSOLID
        ve.approve(oxSolidAddress, tokenId);
        oxLens.oxSolid().convertNftToOxSolid(tokenId);

        // Make sure correct amount of oxSOLID was received
        uint256 oxSolidBalanceOfAfter = oxLens.oxSolid().balanceOf(
            address(this)
        );
        assert(oxSolidBalanceOfAfter == oxSolidBalanceOfBefore + amount);
    }

    /**
     * @notice Lock SOLID
     * @param amount The amount of SOLID to lock
     * @return tokenId The newly minted tokenID
     */
    function _lockSolid(uint256 amount) internal returns (uint256 tokenId) {
        // No empty locking
        require(amount > 0, "Amount to lock must be greater than zero");

        // Receive SOLID from msg.sender
        ISolid solid = oxLens.solid();
        solid.transferFrom(msg.sender, address(this), amount);

        // Allow ve to spend SOLID
        address veAddress = oxLens.veAddress();
        solid.approve(veAddress, amount);

        // Lock SOLID (SOLID -> veNFT)
        uint256 lockTime = 4 * 365 * 86400; // 4 years
        tokenId = oxLens.ve().create_lock(amount, lockTime);
    }

    /**
     * @notice SOLID -> veNFT -> oxSOLID -> Staked oxSOLID
     * @param amount The amount of SOLID to convert and stake
     */
    function convertSolidToOxSolidAndStake(uint256 amount)
        external
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // No empty converting
        require(amount > 0, "Amount to convert must be greater than zero");

        // Lock SOLID
        uint256 tokenId = _lockSolid(amount);

        // Convert NFT to oxSOLID
        _convertNftToOxSolid(tokenId);

        // Stake oxSOLID
        _stakeOxSolid(amount);
    }

    /**
     * @notice veNFT -> oxSOLID
     * @param tokenId The tokenId to convert
     */
    function convertNftToOxSolid(uint256 tokenId)
        public
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // Amount of underlying SOLID locked
        IVe ve = oxLens.ve();
        uint256 amount = ve.locked(tokenId);

        // Transfer NFT to this contract
        ve.safeTransferFrom(msg.sender, address(this), tokenId);

        // Perform actual conversion
        _convertNftToOxSolid(tokenId);

        // Send oxSOLID to user
        oxLens.oxSolid().transfer(ownerAddress, amount);
    }

    /**
     * @notice veNFT -> oxSOLID -> Staked oxSOLID
     * @param tokenId The tokenId to convert and stake
     */
    function convertNftToOxSolidAndStake(uint256 tokenId)
        public
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // Amount of underlying SOLID locked
        IVe ve = oxLens.ve();
        uint256 amount = ve.locked(tokenId);

        // Transfer NFT to this contract
        ve.safeTransferFrom(msg.sender, address(this), tokenId);

        // Perform actual conversion
        _convertNftToOxSolid(tokenId);

        // Stake oxSOLID
        _stakeOxSolid(amount);
    }

    /**
     * @notice Stake oxSOLID in rewards pool
     */
    function _stakeOxSolid(uint256 amount) internal {
        address stakingAddress;

        // Determine partner status
        bool isPartner = oxLens.isPartner(address(this));

        // Set staking address
        if (isPartner) {
            stakingAddress = oxLens.partnersRewardsPoolAddress();
        } else {
            stakingAddress = oxSolidRewardsPoolAddress;
        }

        // Allow oxSOLID mutlirewards to spend oxSOLID
        oxLens.oxSolid().approve(stakingAddress, amount);

        // Stake oxSOLID in multirewards
        IMultiRewards(stakingAddress).stake(amount);
    }

    /**
     * @notice oxSOLID -> staked oxSOLID
     */
    function stakeOxSolid(uint256 amount)
        public
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // Transfer oxSOLID from msg.sender to UserProxy
        oxLens.oxSolid().transferFrom(msg.sender, address(this), amount);

        // Stake oxSOLID on behalf of user
        _stakeOxSolid(amount);
    }

    /**
     * oxSOLID -> staked oxSOLID (OXD v1 staking contract)
     */
    function stakeOxSolidInOxdV1(uint256 amount)
        public
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // Transfer oxSOLID from msg.sender to UserProxy
        oxLens.oxSolid().transferFrom(msg.sender, address(this), amount);

        // Stake oxSOLID on behalf of user
        _stakeOxSolidInOxdV1(amount);
    }

    /**
     * @notice Perform oxSOLID stake into v1 staking pool
     */
    function _stakeOxSolidInOxdV1(uint256 amount) internal {
        address stakingAddress = oxLens.oxdV1RewardsAddress();

        // Allow oxSOLID mutlirewards to spend oxSOLID
        oxLens.oxSolid().approve(stakingAddress, amount);

        // Stake oxSOLID in multirewards
        IMultiRewards(stakingAddress).stake(amount);
    }

    /**
     * @notice Staked oxSOLID -> oxSOLID
     * @param amount The amount of oxSOLID to unstake
     */
    function unstakeOxSolid(uint256 amount)
        public
        onlyUserProxyInterfaceOrOwner
    {
        address stakingAddress;

        // Determine partner status
        bool isPartner = oxLens.isPartner(address(this));

        // Set staking address
        if (isPartner) {
            stakingAddress = oxLens.partnersRewardsPoolAddress();
        } else {
            stakingAddress = oxSolidRewardsPoolAddress;
        }
        unstakeOxSolid(stakingAddress, amount);
    }

    /**
     * @notice Staked oxSOLID (OXD v1 rewards) -> oxSOLID
     * @param amount The amount to unstake
     */
    function unstakeOxSolidInOxdV1(uint256 amount)
        public
        onlyUserProxyInterfaceOrOwner
    {
        unstakeOxSolid(oxLens.oxdV1RewardsAddress(), amount);
    }

    /**
     * @notice Staked oxSOLID -> oxSOLID
     * @param stakingAddress Address to unstake from
     * @param amount The amount to unstake
     */
    function unstakeOxSolid(address stakingAddress, uint256 amount)
        public
        onlyUserProxyInterfaceOrOwner
        syncPools
    {
        // No empty unstaking
        require(amount > 0, "Amount to unstake must be greater than zero");

        // Unstake oxSOLID
        IMultiRewards(stakingAddress).withdraw(amount);

        // Transfer oxSOLID to owner
        oxLens.oxSolid().transfer(ownerAddress, amount);
    }

    /**
     * @notice Redeem OXD v1 for oxSOLID
     */
    function redeemOxdV1(uint256 amount)
        external
        onlyUserProxyInterfaceOrOwner
    {
        IERC20 oxdV1 = IERC20(oxLens.oxdV1Address());
        oxdV1.transferFrom(msg.sender, address(this), amount);

        address oxdV1RedeemAddress = oxLens.oxdV1RedeemAddress();
        IOxdV1Redeem oxdV1Redeem = IOxdV1Redeem(oxdV1RedeemAddress);

        oxdV1.approve(oxdV1RedeemAddress, amount);
        oxdV1Redeem.redeem(amount);

        IMultiRewards oxdV1Rewards = IMultiRewards(
            oxLens.oxdV1RewardsAddress()
        );
        IOxSolid oxSolid = oxLens.oxSolid();
        oxSolid.transfer(ownerAddress, oxSolid.balanceOf(address(this)));

        uint256 rewardTokensLength = oxdV1Rewards.rewardTokensLength();
        for (uint256 i; i < rewardTokensLength; i++) {
            IERC20 rewardToken = IERC20(oxdV1Rewards.rewardTokens(i));
            uint256 balance = rewardToken.balanceOf(address(this));
            if (balance > 0) {
                rewardToken.safeTransfer(ownerAddress, balance);
            }
        }
    }

    /**
     * @notice Redeem OXD v1 for oxSOLID and stake into oxdV1Rewards
     */
    function redeemAndStakeOxdV1(uint256 amount)
        external
        onlyUserProxyInterfaceOrOwner
    {
        //establish vars
        IERC20 oxdV1 = IERC20(oxLens.oxdV1Address());
        IOxSolid oxSolid = oxLens.oxSolid();
        address oxdV1RewardsAddress = oxLens.oxdV1RewardsAddress();
        IOxdV1Rewards oxdV1Rewards = IOxdV1Rewards(oxdV1RewardsAddress);
        address oxdV1RedeemAddress = oxLens.oxdV1RedeemAddress();
        IOxdV1Redeem oxdV1Redeem = IOxdV1Redeem(oxdV1RedeemAddress);

        //transfer OXDv1 to userProxy
        oxdV1.transferFrom(msg.sender, address(this), amount);

        //approve and redeem OXDv1 from oxdV1Redeem
        oxdV1.approve(oxdV1RedeemAddress, amount);
        oxdV1Redeem.redeem(amount);

        //check redeemed oxSOLID balance against stakingCap, transfer excess to owner
        uint256 oxSolidBalance = oxSolid.balanceOf(address(this));
        uint256 stakingCap = oxdV1Rewards.stakingCap(address(this));
        uint256 stakedBalance = oxdV1Rewards.balanceOf(address(this));

        // If capMultiplier is lowered, stakingCap can be lower than stakedBalance
        // Users can withdraw under such conditions, but can't stake more
        if (stakingCap > stakedBalance) {
            if (stakingCap - stakedBalance < oxSolidBalance) {
                uint256 oxSolidToTransfer = oxSolidBalance - stakingCap;
                oxSolid.transfer(ownerAddress, oxSolidToTransfer);
                oxSolidBalance = stakingCap;
            }
        } else {
            // if stakingCap < stakedBalance, transfer all oxSOLID to owner
            oxSolid.transfer(ownerAddress, oxSolidBalance);
            oxSolidBalance = 0;
        }

        //approve and stake oxSOLID in oxdV1Rewards
        if (oxSolidBalance > 0) {
            oxSolid.approve(oxdV1RewardsAddress, oxSolidBalance);
            oxdV1Rewards.stake(oxSolidBalance);
        }

        //transfer misc bribes gotten from redeem to owner
        uint256 rewardTokensLength = oxdV1Rewards.rewardTokensLength();
        for (uint256 i; i < rewardTokensLength; i++) {
            IERC20 rewardToken = IERC20(oxdV1Rewards.rewardTokens(i));
            uint256 balance = rewardToken.balanceOf(address(this));
            if (balance > 0) {
                rewardToken.safeTransfer(ownerAddress, balance);
            }
        }
    }

    /**
     * @notice Migrates nonparters who recently got whitelisted as partners
     */
    function migrateOxSolidToPartner() external onlyUserProxyInterfaceOrOwner {
        IMultiRewards oxSolidRewardsPool = IMultiRewards(
            oxLens.oxSolidRewardsPoolAddress()
        );
        IMultiRewards partnersRewardsPool = IMultiRewards(
            oxLens.partnersRewardsPoolAddress()
        );

        uint256 nonPartnerStakedBalance = oxSolidRewardsPool.balanceOf(
            address(this)
        );
        oxSolidRewardsPool.exit();
        oxLens.oxSolid().approve(
            address(partnersRewardsPool),
            nonPartnerStakedBalance
        );
        partnersRewardsPool.stake(nonPartnerStakedBalance);
    }

    /**
     * @notice Vote lock OXD for 16 weeks (non-transferrable)
     * @param amount Amount of OXD to lock
     * @param spendRatio Spend ratio for OxdLocker
     * @dev OxdLocker utilizes the same code as CvxLocker
     */
    function voteLockOxd(uint256 amount, uint256 spendRatio)
        external
        onlyUserProxyInterfaceOrOwner
    {
        // Receive OXD
        oxLens.oxd().transferFrom(msg.sender, address(this), amount);

        // Allow vlOXD to spend OXD
        oxLens.oxd().approve(vlOxdAddress, amount);

        // Lock OXD
        oxLens.vlOxd().lock(address(this), amount, spendRatio);
        assert(oxLens.vlOxd().lockedBalanceOf(address(this)) > 0);
    }

    /**
     * @notice Withdraw vote locked OXD
     * @param spendRatio Spend ratio
     */
    function withdrawVoteLockedOxd(uint256 spendRatio, bool claim)
        external
        onlyUserProxyInterfaceOrOwner
    {
        uint256 currentBalance = oxLens.vlOxd().lockedBalanceOf(address(this));
        require(currentBalance > 0, "Nothing to withdraw");

        if (claim) {
            // Claim staking rewards and transfer them to proxy owner
            userProxy.claimVlOxdRewards();
        }

        // Withdraw OXD and transfer to owner
        oxLens.vlOxd().processExpiredLocks(false, spendRatio, ownerAddress);
    }

    /**
     * @notice Relock vote locked OXD
     * @param spendRatio Spend ratio
     */
    function relockVoteLockedOxd(uint256 spendRatio)
        external
        onlyUserProxyInterfaceOrOwner
    {
        oxLens.vlOxd().processExpiredLocks(true, spendRatio, address(this));
    }

    /**************************************************
     *                  Helper Utilities
     **************************************************/
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }

    /**
     * @notice Claim staking rewards given a staking pool address
     * @dev The generalized function doesn't work because vlOXD is a bit different from other multirewards
     */
    function claimVlOxdRewards() public onlyUserProxyInterfaceOrOwner {
        address stakingPoolAddress = oxLens.vlOxdAddress();
        IVlOxd multiRewards = IVlOxd(stakingPoolAddress);
        multiRewards.getReward();
        uint256 rewardTokensLength = multiRewards.rewardTokensLength();

        for (
            uint256 rewardTokenIndex;
            rewardTokenIndex < rewardTokensLength;
            rewardTokenIndex++
        ) {
            address rewardTokenAddress = multiRewards.rewardTokens(
                rewardTokenIndex
            );
            IERC20(rewardTokenAddress).safeTransfer(
                ownerAddress,
                IERC20(rewardTokenAddress).balanceOf(address(this))
            );
        }
    }
}

File 2 of 25 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

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

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

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

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

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

File 3 of 25 : 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 4 of 25 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 5 of 25 : UserProxyStorageLayout.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "./interfaces/IOxLens.sol";
import "./interfaces/IMultiRewards.sol";
import "./interfaces/IOxPool.sol";
import "./interfaces/IOxdV1Redeem.sol";

/**
 * @title UserProxyStorageLayout
 * @author 0xDAO
 * @notice The primary storage slot layout for UserProxy implementations
 * @dev All implementations must inherit from this contract
 */
contract UserProxyStorageLayout {
    // Versioning
    uint256 public constant verison = 1;

    // Internal interface helpers
    IOxLens internal oxLens;
    IUserProxy internal userProxy;

    // User positions
    mapping(address => bool) public hasStake;
    mapping(uint256 => address) public stakingAddressByIndex;
    mapping(address => uint256) public indexByStakingAddress;
    uint256 public stakingPoolsLength;

    // Public addresses
    address public ownerAddress;
    address public oxLensAddress;
    address public oxSolidAddress;
    address public oxSolidRewardsPoolAddress;
    address public userProxyInterfaceAddress;
    address public vlOxdAddress;

    // Implementations
    address public userProxyLpInteractionsAddress;
    address public userProxyNftInteractionsAddress;
    address public userProxyVotingInteractionsAddress;
}

File 6 of 25 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 7 of 25 : IOxLens.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "./IOxd.sol";
import "./IVlOxd.sol";
import "./IOxPoolFactory.sol";
import "./IOxSolid.sol";
import "./ISolid.sol";
import "./ISolidlyLens.sol";
import "./IUserProxy.sol";
import "./IVe.sol";
import "./IVotingSnapshot.sol";
import "./IVoterProxy.sol";
import "./IOxdV1Rewards.sol";
import "./ITokensAllowlist.sol";

interface IOxLens {
    struct ProtocolAddresses {
        address oxPoolFactoryAddress;
        address solidlyLensAddress;
        address oxdAddress;
        address vlOxdAddress;
        address oxSolidAddress;
        address voterProxyAddress;
        address solidAddress;
        address voterAddress;
        address poolsFactoryAddress;
        address gaugesFactoryAddress;
        address minterAddress;
        address veAddress;
        address userProxyInterfaceAddress;
        address votingSnapshotAddress;
    }

    struct UserPosition {
        address userProxyAddress;
        uint256 veTotalBalanceOf;
        ISolidlyLens.PositionVe[] vePositions;
        ISolidlyLens.PositionPool[] poolsPositions;
        IUserProxy.PositionStakingPool[] stakingPools;
        uint256 oxSolidBalanceOf;
        uint256 oxdBalanceOf;
        uint256 solidBalanceOf;
        uint256 vlOxdBalanceOf;
    }

    struct TokenMetadata {
        address id;
        string name;
        string symbol;
        uint8 decimals;
        uint256 priceUsdc;
    }

    struct OxPoolData {
        address id;
        address stakingAddress;
        ISolidlyLens.Pool poolData;
    }

    struct Pool {
        address id;
        string symbol;
        bool stable;
        address token0Address;
        address token1Address;
        address gaugeAddress;
        address bribeAddress;
        address[] bribeTokensAddresses;
        address fees;
    }

    /* ========== PUBLIC VARS ========== */

    function oxPoolFactoryAddress() external view returns (address);

    function userProxyFactoryAddress() external view returns (address);

    function solidlyLensAddress() external view returns (address);

    function oxdAddress() external view returns (address);

    function vlOxdAddress() external view returns (address);

    function oxSolidAddress() external view returns (address);

    function voterProxyAddress() external view returns (address);

    function veAddress() external view returns (address);

    function solidAddress() external view returns (address);

    function oxSolidRewardsPoolAddress() external view returns (address);

    function partnersRewardsPoolAddress() external view returns (address);

    function treasuryAddress() external view returns (address);

    function cvlOxdAddress() external view returns (address);

    function oxdV1RewardsAddress() external view returns (address);

    function oxdV1RedeemAddress() external view returns (address);

    function oxdV1Address() external view returns (address);

    /* ========== PUBLIC VIEW FUNCTIONS ========== */

    function voterAddress() external view returns (address);

    function poolsFactoryAddress() external view returns (address);

    function gaugesFactoryAddress() external view returns (address);

    function minterAddress() external view returns (address);

    function protocolAddresses()
        external
        view
        returns (ProtocolAddresses memory);

    function positionsOf(address accountAddress)
        external
        view
        returns (UserPosition memory);

    function rewardTokensPositionsOf(address, address)
        external
        view
        returns (IUserProxy.RewardToken[] memory);

    function veTotalBalanceOf(ISolidlyLens.PositionVe[] memory positions)
        external
        pure
        returns (uint256);

    function oxPoolsLength() external view returns (uint256);

    function userProxiesLength() external view returns (uint256);

    function userProxyByAccount(address accountAddress)
        external
        view
        returns (address);

    function userProxyByIndex(uint256 index) external view returns (address);

    function gaugeBySolidPool(address) external view returns (address);

    function solidPoolByOxPool(address oxPoolAddress)
        external
        view
        returns (address);

    function oxPoolBySolidPool(address solidPoolAddress)
        external
        view
        returns (address);

    function stakingRewardsBySolidPool(address solidPoolAddress)
        external
        view
        returns (address);

    function stakingRewardsByOxPool(address solidPoolAddress)
        external
        view
        returns (address);

    function isOxPool(address oxPoolAddress) external view returns (bool);

    function oxPoolsAddresses() external view returns (address[] memory);

    function oxPoolData(address oxPoolAddress)
        external
        view
        returns (OxPoolData memory);

    function oxPoolsData(address[] memory _oxPoolsAddresses)
        external
        view
        returns (OxPoolData[] memory);

    function oxPoolsData() external view returns (OxPoolData[] memory);

    function oxSolid() external view returns (IOxSolid);

    function oxd() external view returns (IOxd);

    function vlOxd() external view returns (IVlOxd);

    function oxPoolFactory() external view returns (IOxPoolFactory);

    function solid() external view returns (ISolid);

    function ve() external view returns (IVe);

    function voterProxy() external view returns (IVoterProxy);

    function votingSnapshot() external view returns (IVotingSnapshot);

    function tokensAllowlist() external view returns (ITokensAllowlist);

    function isPartner(address userProxyAddress) external view returns (bool);

    function stakedOxSolidBalanceOf(address accountAddress)
        external
        view
        returns (uint256 stakedBalance);

    function solidInflationSinceInception() external view returns (uint256);
}

File 8 of 25 : IMultiRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IMultiRewards {
    struct Reward {
        address rewardsDistributor;
        uint256 rewardsDuration;
        uint256 periodFinish;
        uint256 rewardRate;
        uint256 lastUpdateTime;
        uint256 rewardPerTokenStored;
    }

    function stake(uint256) external;

    function withdraw(uint256) external;

    function getReward() external;

    function stakingToken() external view returns (address);

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

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

    function initialize(address, address) external;

    function rewardRate(address) external view returns (uint256);

    function getRewardForDuration(address) external view returns (uint256);

    function rewardPerToken(address) external view returns (uint256);

    function rewardData(address) external view returns (Reward memory);

    function rewardTokensLength() external view returns (uint256);

    function rewardTokens(uint256) external view returns (address);

    function totalSupply() external view returns (uint256);

    function addReward(
        address _rewardsToken,
        address _rewardsDistributor,
        uint256 _rewardsDuration
    ) external;

    function notifyRewardAmount(address, uint256) external;

    function recoverERC20(address tokenAddress, uint256 tokenAmount) external;

    function setRewardsDuration(address _rewardsToken, uint256 _rewardsDuration)
        external;

    function exit() external;
}

File 9 of 25 : IOxPool.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "./ISolidlyLens.sol";

interface IOxPool {
    function stakingAddress() external view returns (address);

    function solidPoolAddress() external view returns (address);

    function solidPoolInfo() external view returns (ISolidlyLens.Pool memory);

    function depositLpAndStake(uint256) external;

    function depositLp(uint256) external;

    function withdrawLp(uint256) external;

    function syncBribeTokens() external;

    function notifyBribeOrFees() external;

    function initialize(
        address,
        address,
        address,
        string memory,
        string memory,
        address,
        address
    ) external;

    function gaugeAddress() external view returns (address);
}

File 10 of 25 : IOxdV1Redeem.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

interface IOxdV1Redeem {
    function oxdV1Burnt(address account) external view returns (uint256);

    function redeem(uint256 amount) external;

    function oxdV1() external view returns (IERC20);
}

File 11 of 25 : IOxd.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IOxd is IERC20 {
    function mint(address to, uint256 amount) external;
}

File 12 of 25 : IVlOxd.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IVlOxd {
    struct LocksData {
        uint256 total;
        uint256 unlockable;
        uint256 locked;
        LockedBalance[] locks;
    }

    struct LockedBalance {
        uint112 amount;
        uint112 boosted;
        uint32 unlockTime;
    }

    struct EarnedData {
        address token;
        uint256 amount;
    }

    struct Reward {
        bool useBoost;
        uint40 periodFinish;
        uint208 rewardRate;
        uint40 lastUpdateTime;
        uint208 rewardPerTokenStored;
        address rewardsDistributor;
    }

    function lock(
        address _account,
        uint256 _amount,
        uint256 _spendRatio
    ) external;

    function processExpiredLocks(
        bool _relock,
        uint256 _spendRatio,
        address _withdrawTo
    ) external;

    function lockedBalanceOf(address) external view returns (uint256 amount);

    function lockedBalances(address)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            LockedBalance[] memory
        );

    function claimableRewards(address _account)
        external
        view
        returns (EarnedData[] memory userRewards);

    function rewardTokensLength() external view returns (uint256);

    function rewardTokens(uint256) external view returns (address);

    function rewardData(address) external view returns (Reward memory);

    function rewardPerToken(address) external view returns (uint256);

    function getRewardForDuration(address) external view returns (uint256);

    function getReward() external;
}

File 13 of 25 : IOxPoolFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IOxPoolFactory {
    function oxPoolsLength() external view returns (uint256);

    function isOxPool(address) external view returns (bool);

    function OXD() external view returns (address);

    function syncPools(uint256) external;

    function oxPools(uint256) external view returns (address);

    function oxPoolBySolidPool(address) external view returns (address);

    function vlOxdAddress() external view returns (address);

    function oxSolidStakingPoolAddress() external view returns (address);

    function solidPoolByOxPool(address) external view returns (address);

    function syncedPoolsLength() external returns (uint256);

    function solidlyLensAddress() external view returns (address);

    function voterProxyAddress() external view returns (address);

    function rewardsDistributorAddress() external view returns (address);

    function tokensAllowlist() external view returns (address);
}

File 14 of 25 : IOxSolid.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IOxSolid is IERC20 {
    function mint(address, uint256) external;

    function convertNftToOxSolid(uint256) external;
}

File 15 of 25 : ISolid.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface ISolid {
    function transferFrom(
        address,
        address,
        uint256
    ) external;

    function allowance(address, address) external view returns (uint256);

    function approve(address, uint256) external;

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

    function router() external view returns (address);

    function minter() external view returns (address);
}

File 16 of 25 : ISolidlyLens.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface ISolidlyLens {
    struct Pool {
        address id;
        string symbol;
        bool stable;
        address token0Address;
        address token1Address;
        address gaugeAddress;
        address bribeAddress;
        address[] bribeTokensAddresses;
        address fees;
    }

    struct PositionVe {
        uint256 tokenId;
        uint256 balanceOf;
        uint256 locked;
    }

    struct PositionBribesByTokenId {
        uint256 tokenId;
        PositionBribe[] bribes;
    }

    struct PositionBribe {
        address bribeTokenAddress;
        uint256 earned;
    }

    struct PositionPool {
        address id;
        uint256 balanceOf;
    }

    function poolsLength() external view returns (uint256);

    function voterAddress() external view returns (address);

    function veAddress() external view returns (address);

    function poolsFactoryAddress() external view returns (address);

    function gaugesFactoryAddress() external view returns (address);

    function minterAddress() external view returns (address);

    function solidAddress() external view returns (address);

    function vePositionsOf(address) external view returns (PositionVe[] memory);

    function bribeAddresByPoolAddress(address) external view returns (address);

    function gaugeAddressByPoolAddress(address) external view returns (address);

    function poolsPositionsOf(address)
        external
        view
        returns (PositionPool[] memory);

    function poolInfo(address) external view returns (Pool memory);
}

File 17 of 25 : IUserProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IUserProxy {
    struct PositionStakingPool {
        address stakingPoolAddress;
        address oxPoolAddress;
        address solidPoolAddress;
        uint256 balanceOf;
        RewardToken[] rewardTokens;
    }

    function initialize(
        address,
        address,
        address,
        address[] memory
    ) external;

    struct RewardToken {
        address rewardTokenAddress;
        uint256 rewardRate;
        uint256 rewardPerToken;
        uint256 getRewardForDuration;
        uint256 earned;
    }

    struct Vote {
        address poolAddress;
        int256 weight;
    }

    function convertNftToOxSolid(uint256) external;

    function convertSolidToOxSolid(uint256) external;

    function depositLpAndStake(address, uint256) external;

    function depositLp(address, uint256) external;

    function stakingAddresses() external view returns (address[] memory);

    function initialize(address, address) external;

    function stakingPoolsLength() external view returns (uint256);

    function unstakeLpAndWithdraw(
        address,
        uint256,
        bool
    ) external;

    function unstakeLpAndWithdraw(address, uint256) external;

    function unstakeLpWithdrawAndClaim(address) external;

    function unstakeLpWithdrawAndClaim(address, uint256) external;

    function withdrawLp(address, uint256) external;

    function stakeOxLp(address, uint256) external;

    function unstakeOxLp(address, uint256) external;

    function ownerAddress() external view returns (address);

    function stakingPoolsPositions()
        external
        view
        returns (PositionStakingPool[] memory);

    function stakeOxSolid(uint256) external;

    function unstakeOxSolid(uint256) external;

    function unstakeOxSolid(address, uint256) external;

    function convertSolidToOxSolidAndStake(uint256) external;

    function convertNftToOxSolidAndStake(uint256) external;

    function claimOxSolidStakingRewards() external;

    function claimPartnerStakingRewards() external;

    function claimStakingRewards(address) external;

    function claimStakingRewards(address[] memory) external;

    function claimStakingRewards() external;

    function claimVlOxdRewards() external;

    function depositOxd(uint256, uint256) external;

    function withdrawOxd(bool, uint256) external;

    function voteLockOxd(uint256, uint256) external;

    function withdrawVoteLockedOxd(uint256, bool) external;

    function relockVoteLockedOxd(uint256) external;

    function removeVote(address) external;

    function registerStake(address) external;

    function registerUnstake(address) external;

    function resetVotes() external;

    function setVoteDelegate(address) external;

    function clearVoteDelegate() external;

    function vote(address, int256) external;

    function vote(Vote[] memory) external;

    function votesByAccount(address) external view returns (Vote[] memory);

    function migrateOxSolidToPartner() external;

    function stakeOxSolidInOxdV1(uint256) external;

    function unstakeOxSolidInOxdV1(uint256) external;

    function redeemOxdV1(uint256) external;

    function redeemAndStakeOxdV1(uint256) external;
}

File 18 of 25 : IVe.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IVe {
    function safeTransferFrom(
        address,
        address,
        uint256
    ) external;

    function ownerOf(uint256) external view returns (address);

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

    function balanceOfNFT(uint256) external view returns (uint256);

    function balanceOfNFTAt(uint256, uint256) external view returns (uint256);

    function balanceOfAtNFT(uint256, uint256) external view returns (uint256);

    function locked(uint256) external view returns (uint256);

    function create_lock(uint256, uint256) external returns (uint256);

    function approve(address, uint256) external;

    function merge(uint256, uint256) external;

    function token() external view returns (address);

    function voter() external view returns (address);

    function tokenOfOwnerByIndex(address, uint256)
        external
        view
        returns (uint256);
}

File 19 of 25 : IVotingSnapshot.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IVotingSnapshot {
    struct Vote {
        address poolAddress;
        int256 weight;
    }

    function vote(address, int256) external;

    function vote(Vote[] memory) external;

    function removeVote(address) external;

    function resetVotes() external;

    function setVoteDelegate(address) external;

    function clearVoteDelegate() external;

    function voteDelegateByAccount(address) external view returns (address);

    function votesByAccount(address) external view returns (Vote[] memory);

    function voteWeightTotalByAccount(address) external view returns (uint256);

    function voteWeightUsedByAccount(address) external view returns (uint256);

    function voteWeightAvailableByAccount(address)
        external
        view
        returns (uint256);
}

File 20 of 25 : IVoterProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IVoterProxy {
    function depositInGauge(address, uint256) external;

    function withdrawFromGauge(address, uint256) external;

    function getRewardFromGauge(
        address _gauge,
        address _staking,
        address[] memory _tokens
    ) external;

    function depositNft(uint256) external;

    function veAddress() external returns (address);

    function lockSolid(uint256 amount) external;

    function primaryTokenId() external view returns (uint256);

    function vote(address[] memory, int256[] memory) external;

    function votingSnapshotAddress() external view returns (address);

    function solidInflationSinceInception() external view returns (uint256);

    function getRewardFromBribe(
        address oxPoolAddress,
        address[] memory _tokensAddresses
    ) external returns (bool allClaimed, bool[] memory claimed);

    function getFeeTokensFromBribe(address oxPoolAddress)
        external
        returns (bool allClaimed);

    function claimSolid(address oxPoolAddress)
        external
        returns (bool _claimSolid);
}

File 21 of 25 : IOxdV1Rewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./IMultiRewards.sol";

interface IOxdV1Rewards is IMultiRewards {
    function stakingCap(address account) external view returns (uint256 cap);
}

File 22 of 25 : ITokensAllowlist.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface ITokensAllowlist {
    function tokenIsAllowed(address) external view returns (bool);

    function bribeTokensSyncPageSize() external view returns (uint256);

    function bribeTokensNotifyPageSize() external view returns (uint256);

    function bribeSyncLagLimit() external view returns (uint256);

    function notifyFrequency()
        external
        view
        returns (uint256 bribeFrequency, uint256 feeFrequency);

    function feeClaimingDisabled(address) external view returns (bool);

    function periodBetweenClaimSolid() external view returns (uint256);

    function periodBetweenClaimFee() external view returns (uint256);

    function periodBetweenClaimBribe() external view returns (uint256);
}

File 23 of 25 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 24 of 25 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 25 of 25 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"claimVlOxdRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"convertNftToOxSolid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"convertNftToOxSolidAndStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"convertSolidToOxSolid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"convertSolidToOxSolidAndStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"indexByStakingAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrateOxSolidToPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oxLensAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oxSolidAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oxSolidRewardsPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemAndStakeOxdV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemOxdV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"spendRatio","type":"uint256"}],"name":"relockVoteLockedOxd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeOxSolid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeOxSolidInOxdV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingAddressByIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingPoolsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakingAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeOxSolid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeOxSolid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeOxSolidInOxdV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userProxyInterfaceAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userProxyLpInteractionsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userProxyNftInteractionsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userProxyVotingInteractionsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verison","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vlOxdAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"spendRatio","type":"uint256"}],"name":"voteLockOxd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"spendRatio","type":"uint256"},{"internalType":"bool","name":"claim","type":"bool"}],"name":"withdrawVoteLockedOxd","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50614469806100206000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806350bad7751161010f5780638f84aa09116100a2578063e338eab311610071578063e338eab314610435578063e73e14bf14610448578063f6fe67591461047b578063fff12beb1461048e57600080fd5b80638f84aa09146103e9578063a1a75731146103fc578063b4425fd41461040f578063b4eb36991461042257600080fd5b80637082df00116100de5780637082df001461039d57806373ba45d7146103b057806386fcf6b0146103c35780638b043f43146103d657600080fd5b806350bad77514610344578063627a167f1461035757806365d25bb31461036a5780636646e2de1461038a57600080fd5b80631aed19cf116101875780632cdd6124116101565780632cdd61241461030357806338b9f2a8146103165780634db6ba3b1461031e5780634dd4c81e1461033157600080fd5b80631aed19cf146102b35780631dead9c6146102c657806320708c20146102dd578063222cc519146102f057600080fd5b8063141995d8116101c3578063141995d814610237578063150b7a021461023f578063176425ea146102775780631794caaf146102a057600080fd5b806308be3ab6146101ea5780630ee29f6a1461021a5780630f16ec8e1461022d575b600080fd5b6007546101fd906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b600c546101fd906001600160a01b031681565b6102356104a1565b005b6102356107f9565b61025e61024d3660046140b9565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610211565b6101fd610285366004614158565b6003602052600090815260409020546001600160a01b031681565b6102356102ae366004614158565b610a9c565b600b546101fd906001600160a01b031681565b6102cf60055481565b604051908152602001610211565b600e546101fd906001600160a01b031681565b6102356102fe366004614158565b610e01565b610235610311366004614171565b61101a565b6102cf600181565b61023561032c366004614158565b6112ed565b600a546101fd906001600160a01b031681565b610235610352366004614158565b6118d4565b6102356103653660046141ab565b611a3c565b6102cf6103783660046141db565b60046020526000908152604090205481565b6009546101fd906001600160a01b031681565b6102356103ab366004614158565b611cdd565b6102356103be366004614158565b611ee0565b6102356103d1366004614158565b61203e565b6102356103e4366004614158565b6122c1565b6006546101fd906001600160a01b031681565b600d546101fd906001600160a01b031681565b61023561041d366004614158565b612b0b565b610235610430366004614158565b612d21565b6102356104433660046141f8565b612e56565b61046b6104563660046141db565b60026020526000908152604090205460ff1681565b6040519015158152602001610211565b610235610489366004614158565b61324b565b6008546101fd906001600160a01b031681565b600a546001600160a01b03163314806104c457506006546001600160a01b031633145b806104d957506001546001600160a01b031633145b6104fe5760405162461bcd60e51b81526004016104f59061421a565b60405180910390fd5b60008060009054906101000a90046001600160a01b03166001600160a01b0316636646e2de6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610552573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105769190614267565b905060008060009054906101000a90046001600160a01b03166001600160a01b0316631c0b05d76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f09190614267565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190614284565b9050826001600160a01b031663e9fad8ee6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561069b57600080fd5b505af11580156106af573d6000803e3d6000fd5b5050505060008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190614267565b6001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040161075592919061429d565b6020604051808303816000875af1158015610774573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079891906142b6565b5060405163534a7e1d60e11b8152600481018290526001600160a01b0383169063a694fc3a906024015b600060405180830381600087803b1580156107dc57600080fd5b505af11580156107f0573d6000803e3d6000fd5b50505050505050565b600a546001600160a01b031633148061081c57506006546001600160a01b031633145b8061083157506001546001600160a01b031633145b61084d5760405162461bcd60e51b81526004016104f59061421a565b60008060009054906101000a90046001600160a01b03166001600160a01b0316631aed19cf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c59190614267565b90506000819050806001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561090757600080fd5b505af115801561091b573d6000803e3d6000fd5b505050506000816001600160a01b031663bf199e626040518163ffffffff1660e01b8152600401602060405180830381865afa15801561095f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109839190614284565b905060005b81811015610a9657604051637bb7bed160e01b8152600481018290526000906001600160a01b03851690637bb7bed190602401602060405180830381865afa1580156109d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fc9190614267565b6006546040516370a0823160e01b8152306004820152919250610a83916001600160a01b03918216918416906370a0823190602401602060405180830381865afa158015610a4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a729190614284565b6001600160a01b0384169190613314565b5080610a8e816142e9565b915050610988565b50505050565b600a546001600160a01b0316331480610abf57506006546001600160a01b031633145b80610ad457506001546001600160a01b031633145b610af05760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b659190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b158015610ba957600080fd5b505af1158015610bbd573d6000803e3d6000fd5b5050505060008060009054906101000a90046001600160a01b03166001600160a01b0316631f8507166040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c399190614267565b604051635a2d1e0760e11b8152600481018490529091506000906001600160a01b0383169063b45a3c0e90602401602060405180830381865afa158015610c84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca89190614284565b604051632142170760e11b81529091506001600160a01b038316906342842e0e90610cdb90339030908890600401614304565b600060405180830381600087803b158015610cf557600080fd5b505af1158015610d09573d6000803e3d6000fd5b50505050610d168361336a565b60008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8b9190614267565b60065460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb92610dbe92911690859060040161429d565b6020604051808303816000875af1158015610ddd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9691906142b6565b600a546001600160a01b0316331480610e2457506006546001600160a01b031633145b80610e3957506001546001600160a01b031633145b610e555760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ea6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eca9190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b158015610f0e57600080fd5b505af1158015610f22573d6000803e3d6000fd5b5050505060008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9b9190614267565b6001600160a01b03166323b872dd3330846040518463ffffffff1660e01b8152600401610fca93929190614304565b6020604051808303816000875af1158015610fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100d91906142b6565b506110178161377d565b50565b600a546001600160a01b031633148061103d57506006546001600160a01b031633145b8061105257506001546001600160a01b031633145b61106e5760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e39190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b15801561112757600080fd5b505af115801561113b573d6000803e3d6000fd5b50505050600081116111a35760405162461bcd60e51b815260206004820152602b60248201527f416d6f756e7420746f20756e7374616b65206d7573742062652067726561746560448201526a72207468616e207a65726f60a81b60648201526084016104f5565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03831690632e1a7d4d90602401600060405180830381600087803b1580156111e557600080fd5b505af11580156111f9573d6000803e3d6000fd5b5050505060008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa15801561124e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112729190614267565b60065460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb926112a592911690859060040161429d565b6020604051808303816000875af11580156112c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e891906142b6565b505050565b600a546001600160a01b031633148061131057506006546001600160a01b031633145b8061132557506001546001600160a01b031633145b6113415760405162461bcd60e51b81526004016104f59061421a565b60008060009054906101000a90046001600160a01b03166001600160a01b031663f4262b116040518163ffffffff1660e01b8152600401602060405180830381865afa158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b99190614267565b6040516323b872dd60e01b81529091506001600160a01b038216906323b872dd906113ec90339030908790600401614304565b6020604051808303816000875af115801561140b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142f91906142b6565b5060008060009054906101000a90046001600160a01b03166001600160a01b031663022e14bf6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a89190614267565b60405163095ea7b360e01b815290915081906001600160a01b0384169063095ea7b3906114db908490889060040161429d565b6020604051808303816000875af11580156114fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151e91906142b6565b5060405163db006a7560e01b8152600481018590526001600160a01b0382169063db006a7590602401600060405180830381600087803b15801561156157600080fd5b505af1158015611575573d6000803e3d6000fd5b5050505060008060009054906101000a90046001600160a01b03166001600160a01b031663b93c1f866040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f19190614267565b905060008060009054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015611647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166b9190614267565b6006546040516370a0823160e01b81523060048201529192506001600160a01b038084169263a9059cbb92919091169083906370a0823190602401602060405180830381865afa1580156116c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e79190614284565b6040518363ffffffff1660e01b815260040161170492919061429d565b6020604051808303816000875af1158015611723573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174791906142b6565b506000826001600160a01b031663bf199e626040518163ffffffff1660e01b8152600401602060405180830381865afa158015611788573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ac9190614284565b905060005b818110156118ca57604051637bb7bed160e01b8152600481018290526000906001600160a01b03861690637bb7bed190602401602060405180830381865afa158015611801573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118259190614267565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561186f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118939190614284565b905080156118b5576006546118b5906001600160a01b03848116911683613314565b505080806118c2906142e9565b9150506117b1565b5050505050505050565b600a546001600160a01b03163314806118f757506006546001600160a01b031633145b8061190c57506001546001600160a01b031633145b6119285760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611979573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199d9190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b1580156119e157600080fd5b505af11580156119f5573d6000803e3d6000fd5b5050505060008111611a195760405162461bcd60e51b81526004016104f590614328565b6000611a2482613990565b9050611a2f8161336a565b611a388261377d565b5050565b600a546001600160a01b0316331480611a5f57506006546001600160a01b031633145b80611a7457506001546001600160a01b031633145b611a905760405162461bcd60e51b81526004016104f59061421a565b60008060009054906101000a90046001600160a01b03166001600160a01b031663421802826040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ae4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b089190614267565b604051632c9aab9b60e11b81523060048201526001600160a01b039190911690635935573690602401602060405180830381865afa158015611b4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b729190614284565b905060008111611bba5760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b60448201526064016104f5565b8115611c2957600160009054906101000a90046001600160a01b03166001600160a01b031663141995d86040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611c1057600080fd5b505af1158015611c24573d6000803e3d6000fd5b505050505b60008054906101000a90046001600160a01b03166001600160a01b031663421802826040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9e9190614267565b6006546040516370e664cd60e01b815260006004820152602481018690526001600160a01b0391821660448201529116906370e664cd906064016107c2565b600a546001600160a01b0316331480611d0057506006546001600160a01b031633145b80611d1557506001546001600160a01b031633145b611d315760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da69190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b158015611dea57600080fd5b505af1158015611dfe573d6000803e3d6000fd5b5050505060008111611e225760405162461bcd60e51b81526004016104f590614328565b6000611e2d82613990565b9050611e388161336a565b60008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ead9190614267565b60065460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb926112a592911690869060040161429d565b600a546001600160a01b0316331480611f0357506006546001600160a01b031633145b80611f1857506001546001600160a01b031633145b611f345760405162461bcd60e51b81526004016104f59061421a565b60008054604051632303e6ab60e21b815230600482015282916001600160a01b031690638c0f9aac90602401602060405180830381865afa158015611f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fa191906142b6565b905080156120255760008054906101000a90046001600160a01b03166001600160a01b0316631c0b05d76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ffa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201e9190614267565b9150612034565b6009546001600160a01b031691505b6112e8828461101a565b600a546001600160a01b031633148061206157506006546001600160a01b031633145b8061207657506001546001600160a01b031633145b6120925760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121079190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b15801561214b57600080fd5b505af115801561215f573d6000803e3d6000fd5b5050505060008060009054906101000a90046001600160a01b03166001600160a01b0316631f8507166040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121db9190614267565b604051635a2d1e0760e11b8152600481018490529091506000906001600160a01b0383169063b45a3c0e90602401602060405180830381865afa158015612226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224a9190614284565b604051632142170760e11b81529091506001600160a01b038316906342842e0e9061227d90339030908890600401614304565b600060405180830381600087803b15801561229757600080fd5b505af11580156122ab573d6000803e3d6000fd5b505050506122b88361336a565b6112e88161377d565b600a546001600160a01b03163314806122e457506006546001600160a01b031633145b806122f957506001546001600160a01b031633145b6123155760405162461bcd60e51b81526004016104f59061421a565b60008060009054906101000a90046001600160a01b03166001600160a01b031663f4262b116040518163ffffffff1660e01b8152600401602060405180830381865afa158015612369573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238d9190614267565b905060008060009054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124079190614267565b905060008060009054906101000a90046001600160a01b03166001600160a01b031663b93c1f866040518163ffffffff1660e01b8152600401602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190614267565b600080546040805163022e14bf60e01b8152905193945084936001600160a01b039092169163022e14bf916004808201926020929091908290030181865afa1580156124d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f59190614267565b6040516323b872dd60e01b815290915081906001600160a01b038716906323b872dd9061252a90339030908c90600401614304565b6020604051808303816000875af1158015612549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061256d91906142b6565b5060405163095ea7b360e01b81526001600160a01b0387169063095ea7b39061259c9085908b9060040161429d565b6020604051808303816000875af11580156125bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125df91906142b6565b5060405163db006a7560e01b8152600481018890526001600160a01b0382169063db006a7590602401600060405180830381600087803b15801561262257600080fd5b505af1158015612636573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092506001600160a01b03881691506370a0823190602401602060405180830381865afa158015612681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a59190614284565b6040516368bb292f60e11b81523060048201529091506000906001600160a01b0386169063d176525e90602401602060405180830381865afa1580156126ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127139190614284565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038716906370a0823190602401602060405180830381865afa15801561275d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127819190614284565b90508082111561282b57826127968284614373565b10156128265760006127a88385614373565b60065460405163a9059cbb60e01b81529192506001600160a01b03808c169263a9059cbb926127dd921690859060040161429d565b6020604051808303816000875af11580156127fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061282091906142b6565b50829350505b6128a8565b60065460405163a9059cbb60e01b81526001600160a01b038a81169263a9059cbb9261285f9290911690879060040161429d565b6020604051808303816000875af115801561287e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a291906142b6565b50600092505b821561297b5760405163095ea7b360e01b81526001600160a01b0389169063095ea7b3906128dc908a90879060040161429d565b6020604051808303816000875af11580156128fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291f91906142b6565b5060405163534a7e1d60e11b8152600481018490526001600160a01b0387169063a694fc3a90602401600060405180830381600087803b15801561296257600080fd5b505af1158015612976573d6000803e3d6000fd5b505050505b6000866001600160a01b031663bf199e626040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129df9190614284565b905060005b81811015612afd57604051637bb7bed160e01b8152600481018290526000906001600160a01b038a1690637bb7bed190602401602060405180830381865afa158015612a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a589190614267565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac69190614284565b90508015612ae857600654612ae8906001600160a01b03848116911683613314565b50508080612af5906142e9565b9150506129e4565b505050505050505050505050565b600a546001600160a01b0316331480612b2e57506006546001600160a01b031633145b80612b4357506001546001600160a01b031633145b612b5f5760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b03166333f79cf76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bd49190614267565b60405163592e896f60e11b8152600160048201526001600160a01b03919091169063b25d12de90602401600060405180830381600087803b158015612c1857600080fd5b505af1158015612c2c573d6000803e3d6000fd5b5050505060008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca59190614267565b6001600160a01b03166323b872dd3330846040518463ffffffff1660e01b8152600401612cd493929190614304565b6020604051808303816000875af1158015612cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1791906142b6565b5061101781613c9a565b600a546001600160a01b0316331480612d4457506006546001600160a01b031633145b80612d5957506001546001600160a01b031633145b612d755760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b031663421802826040518163ffffffff1660e01b8152600401602060405180830381865afa158015612dc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dea9190614267565b6040516370e664cd60e01b815260016004820152602481018390523060448201526001600160a01b0391909116906370e664cd90606401600060405180830381600087803b158015612e3b57600080fd5b505af1158015612e4f573d6000803e3d6000fd5b5050505050565b600a546001600160a01b0316331480612e7957506006546001600160a01b031633145b80612e8e57506001546001600160a01b031633145b612eaa5760405162461bcd60e51b81526004016104f59061421a565b60008054906101000a90046001600160a01b03166001600160a01b031663b01e03396040518163ffffffff1660e01b8152600401602060405180830381865afa158015612efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f1f9190614267565b6001600160a01b03166323b872dd3330856040518463ffffffff1660e01b8152600401612f4e93929190614304565b6020604051808303816000875af1158015612f6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f9191906142b6565b5060008054906101000a90046001600160a01b03166001600160a01b031663b01e03396040518163ffffffff1660e01b8152600401602060405180830381865afa158015612fe3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130079190614267565b600b5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b39261303a92911690869060040161429d565b6020604051808303816000875af1158015613059573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061307d91906142b6565b5060008054906101000a90046001600160a01b03166001600160a01b031663421802826040518163ffffffff1660e01b8152600401602060405180830381865afa1580156130cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130f39190614267565b60405163e2ab691d60e01b815230600482015260248101849052604481018390526001600160a01b03919091169063e2ab691d90606401600060405180830381600087803b15801561314457600080fd5b505af1158015613158573d6000803e3d6000fd5b5050505060008060009054906101000a90046001600160a01b03166001600160a01b031663421802826040518163ffffffff1660e01b8152600401602060405180830381865afa1580156131b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131d49190614267565b604051632c9aab9b60e11b81523060048201526001600160a01b039190911690635935573690602401602060405180830381865afa15801561321a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061323e9190614284565b11611a3857611a3861438a565b600a546001600160a01b031633148061326e57506006546001600160a01b031633145b8061328357506001546001600160a01b031633145b61329f5760405162461bcd60e51b81526004016104f59061421a565b60005460408051635c9e0fc360e11b81529051611017926001600160a01b03169163b93c1f869160048083019260209291908290030181865afa1580156132ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330e9190614267565b8261101a565b6112e88363a9059cbb60e01b848460405160240161333392919061429d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613e58565b60008060009054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa1580156133be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133e29190614267565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015613428573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061344c9190614284565b905060008060009054906101000a90046001600160a01b03166001600160a01b0316631f8507166040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134c69190614267565b604051635a2d1e0760e11b8152600481018590529091506000906001600160a01b0383169063b45a3c0e90602401602060405180830381865afa158015613511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135359190614284565b9050600081116135475761354761438a565b60085460405163095ea7b360e01b81526001600160a01b038481169263095ea7b39261357b9290911690889060040161429d565b600060405180830381600087803b15801561359557600080fd5b505af11580156135a9573d6000803e3d6000fd5b5050505060008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa1580156135fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136229190614267565b6001600160a01b0316631794caaf856040518263ffffffff1660e01b815260040161364f91815260200190565b600060405180830381600087803b15801561366957600080fd5b505af115801561367d573d6000803e3d6000fd5b5050505060008060009054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa1580156136d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136f99190614267565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa15801561373f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137639190614284565b905061376f82856143a0565b8114612e4f57612e4f61438a565b60008054604051632303e6ab60e21b815230600482015282916001600160a01b031690638c0f9aac90602401602060405180830381865afa1580156137c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ea91906142b6565b9050801561386e5760008054906101000a90046001600160a01b03166001600160a01b0316631c0b05d76040518163ffffffff1660e01b8152600401602060405180830381865afa158015613843573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138679190614267565b915061387d565b6009546001600160a01b031691505b60008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138f29190614267565b6001600160a01b031663095ea7b383856040518363ffffffff1660e01b815260040161391f92919061429d565b6020604051808303816000875af115801561393e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061396291906142b6565b5060405163534a7e1d60e11b8152600481018490526001600160a01b0383169063a694fc3a906024016107c2565b60008082116139f25760405162461bcd60e51b815260206004820152602860248201527f416d6f756e7420746f206c6f636b206d7573742062652067726561746572207460448201526768616e207a65726f60c01b60648201526084016104f5565b60008060009054906101000a90046001600160a01b03166001600160a01b03166353a3f6166040518163ffffffff1660e01b8152600401602060405180830381865afa158015613a46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a6a9190614267565b6040516323b872dd60e01b81529091506001600160a01b038216906323b872dd90613a9d90339030908890600401614304565b600060405180830381600087803b158015613ab757600080fd5b505af1158015613acb573d6000803e3d6000fd5b5050505060008060009054906101000a90046001600160a01b03166001600160a01b03166360aca1f46040518163ffffffff1660e01b8152600401602060405180830381865afa158015613b23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b479190614267565b60405163095ea7b360e01b81529091506001600160a01b0383169063095ea7b390613b78908490889060040161429d565b600060405180830381600087803b158015613b9257600080fd5b505af1158015613ba6573d6000803e3d6000fd5b505060005460408051630fc2838b60e11b81529051630784ce0094506001600160a01b039092169250631f8507169160048083019260209291908290030181865afa158015613bf9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c1d9190614267565b6040516365fc387360e01b815260048101879052602481018390526001600160a01b0391909116906365fc3873906044016020604051808303816000875af1158015613c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c919190614284565b95945050505050565b60008060009054906101000a90046001600160a01b03166001600160a01b031663b93c1f866040518163ffffffff1660e01b8152600401602060405180830381865afa158015613cee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d129190614267565b905060008054906101000a90046001600160a01b03166001600160a01b031663d98fa3976040518163ffffffff1660e01b8152600401602060405180830381865afa158015613d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d899190614267565b6001600160a01b031663095ea7b382846040518363ffffffff1660e01b8152600401613db692919061429d565b6020604051808303816000875af1158015613dd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613df991906142b6565b5060405163534a7e1d60e11b8152600481018390526001600160a01b0382169063a694fc3a90602401600060405180830381600087803b158015613e3c57600080fd5b505af1158015613e50573d6000803e3d6000fd5b505050505050565b6000613ead826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613f2a9092919063ffffffff16565b8051909150156112e85780806020019051810190613ecb91906142b6565b6112e85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104f5565b6060613f398484600085613f43565b90505b9392505050565b606082471015613fa45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104f5565b843b613ff25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104f5565b600080866001600160a01b0316858760405161400e91906143e4565b60006040518083038185875af1925050503d806000811461404b576040519150601f19603f3d011682016040523d82523d6000602084013e614050565b606091505b509150915061406082828661406b565b979650505050505050565b6060831561407a575081613f3c565b82511561408a5782518084602001fd5b8160405162461bcd60e51b81526004016104f59190614400565b6001600160a01b038116811461101757600080fd5b6000806000806000608086880312156140d157600080fd5b85356140dc816140a4565b945060208601356140ec816140a4565b935060408601359250606086013567ffffffffffffffff8082111561411057600080fd5b818801915088601f83011261412457600080fd5b81358181111561413357600080fd5b89602082850101111561414557600080fd5b9699959850939650602001949392505050565b60006020828403121561416a57600080fd5b5035919050565b6000806040838503121561418457600080fd5b823561418f816140a4565b946020939093013593505050565b801515811461101757600080fd5b600080604083850312156141be57600080fd5b8235915060208301356141d08161419d565b809150509250929050565b6000602082840312156141ed57600080fd5b8135613f3c816140a4565b6000806040838503121561420b57600080fd5b50508035926020909101359150565b6020808252602d908201527f4f6e6c7920757365722070726f787920696e74657266616365206f72206f776e60408201526c195c881a5cc8185b1b1bddd959609a1b606082015260800190565b60006020828403121561427957600080fd5b8151613f3c816140a4565b60006020828403121561429657600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b6000602082840312156142c857600080fd5b8151613f3c8161419d565b634e487b7160e01b600052601160045260246000fd5b60006000198214156142fd576142fd6142d3565b5060010190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020808252602b908201527f416d6f756e7420746f20636f6e76657274206d7573742062652067726561746560408201526a72207468616e207a65726f60a81b606082015260800190565b600082821015614385576143856142d3565b500390565b634e487b7160e01b600052600160045260246000fd5b600082198211156143b3576143b36142d3565b500190565b60005b838110156143d35781810151838201526020016143bb565b83811115610a965750506000910152565b600082516143f68184602087016143b8565b9190910192915050565b602081526000825180602084015261441f8160408501602087016143b8565b601f01601f1916919091016040019291505056fea2646970667358221220817bf51db74789ad0db3e99257d010668730a3643d867f934fdf4199447d51c764736f6c634300080b0033

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

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

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