ETH Price: $2,408.64 (-2.96%)
Gas: 4.7 Gwei
 

Overview

Max Total Supply

42,425,392.467646716414271055 stkCvxPrisma

Holders

460

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
0xranger.eth
Balance
50 stkCvxPrisma

Value
$0.00
0xF5d9CD9bC51a0A59598a5Bcd8eB6440002BE3e64
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
cvxPrismaStaking

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 13 : cvxPrismaStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import "./interfaces/MathUtil.sol";
import "./interfaces/IBooster.sol";
import "./interfaces/IVoterProxy.sol";
import "./interfaces/IPrismaDepositor.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


contract cvxPrismaStaking is ERC20, ReentrancyGuard{
    using SafeERC20 for IERC20;


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

    struct Reward {
        uint256 periodFinish;
        uint256 rewardRate;
        uint256 lastUpdateTime;
        uint256 rewardPerTokenStored;
    }

    struct EarnedData {
        address token;
        uint256 amount;
    }

    address public immutable prisma;
    address public immutable veProxy;
    address public immutable cvxprisma;
    address public immutable prismaDepositor;

    //rewards
    address[] public rewardTokens;
    mapping(address => Reward) public rewardData;
    mapping(address => address) public rewardRedirect;

    // Duration that rewards are streamed over
    uint256 public constant rewardsDuration = 86400 * 7;

    // reward token -> distributor -> is approved to add rewards
    mapping(address => mapping(address => bool)) public rewardDistributors;

    // user -> reward token -> amount
    mapping(address => mapping(address => uint256)) public userRewardPerTokenPaid;
    mapping(address => mapping(address => uint256)) public rewards;

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

    constructor(address _proxy, address _prisma, address _cvxprisma, address _depositor) ERC20(
            "Staked CvxPrisma",
            "stkCvxPrisma"
        ){
        veProxy = _proxy;
        prisma = _prisma;
        cvxprisma = _cvxprisma;
        prismaDepositor = _depositor;
        IERC20(_prisma).approve(_depositor,type(uint256).max);
    }

    /* ========== ADMIN CONFIGURATION ========== */

    // Add a new reward token to be distributed to stakers
    function addReward(
        address _rewardsToken,
        address _distributor
    ) public onlyOwner {
        require(rewardData[_rewardsToken].lastUpdateTime == 0, "!new");
        require(_rewardsToken != cvxprisma && _rewardsToken != address(this), "invalid token");

        rewardTokens.push(_rewardsToken);
        rewardData[_rewardsToken].lastUpdateTime = block.timestamp;
        rewardData[_rewardsToken].periodFinish = block.timestamp;
        rewardDistributors[_rewardsToken][_distributor] = true;
        emit RewardAdded(_rewardsToken, _distributor);
    }

    // Modify approval for an address to call notifyRewardAmount
    function approveRewardDistributor(
        address _rewardsToken,
        address _distributor,
        bool _approved
    ) external onlyOwner {
        require(rewardData[_rewardsToken].lastUpdateTime > 0);
        rewardDistributors[_rewardsToken][_distributor] = _approved;
        emit RewardDistributorApproved(_rewardsToken, _distributor);
    }

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

    //deposit prisma for cvxprisma and stake
    function deposit(uint256 _amount, bool _lock) public nonReentrant{
        require(_amount > 0, 'RewardPool : Cannot deposit 0');

        //mint will call _updateReward
        _mint(msg.sender, _amount);

        //transfer prisma
        IERC20(prisma).safeTransferFrom(msg.sender, address(this), _amount);
        //deposit, cvxprisma will be returned here
        IPrismaDepositor(prismaDepositor).deposit(_amount, _lock);
        
        emit Staked(msg.sender, _amount);
    }

    //deposit prisma for cvxprisma and stake
    function deposit(uint256 _amount) external{
        deposit(_amount, false);
    }

    //deposit cvxprisma
    function stake(uint256 _amount) public nonReentrant{
        require(_amount > 0, 'RewardPool : Cannot stake 0');

        //mint will call _updateReward
        _mint(msg.sender, _amount);

        //pull cvxprisma
        IERC20(cvxprisma).safeTransferFrom(msg.sender, address(this), _amount);
        
        emit Staked(msg.sender, _amount);
    }

    //deposit all cvxprisma
    function stakeAll() external{
        uint256 balance = IERC20(cvxprisma).balanceOf(msg.sender);
        stake(balance);
    }

    //deposit cvxprisma and accredit a different address
    function stakeFor(address _for, uint256 _amount) external nonReentrant{
        require(_amount > 0, 'RewardPool : Cannot stake 0');
        
        //give to _for
        //mint will call _updateReward
        _mint(_for, _amount);

        //pull from sender
        IERC20(cvxprisma).safeTransferFrom(msg.sender, address(this), _amount);
        emit Staked(_for, _amount);
    }

    //withdraw cvxprisma
    function withdraw(uint256 _amount) external nonReentrant{
        require(_amount > 0, 'RewardPool : Cannot withdraw 0');

        //burn will call _updateReward
        _burn(msg.sender, _amount);

        //send cvxprisma
        IERC20(cvxprisma).safeTransfer(msg.sender, _amount);

        emit Withdrawn(msg.sender, _amount);
    }


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

    function _rewardPerToken(address _rewardsToken) internal view returns(uint256) {
        if (totalSupply() == 0) {
            return rewardData[_rewardsToken].rewardPerTokenStored;
        }
        return
        rewardData[_rewardsToken].rewardPerTokenStored 
        + (
            (_lastTimeRewardApplicable(rewardData[_rewardsToken].periodFinish) - rewardData[_rewardsToken].lastUpdateTime)     
            * rewardData[_rewardsToken].rewardRate
            * 1e18
            / totalSupply()
        );
    }

    function _earned(
        address _user,
        address _rewardsToken,
        uint256 _balance
    ) internal view returns(uint256) {
        return (_balance * (_rewardPerToken(_rewardsToken) - userRewardPerTokenPaid[_user][_rewardsToken] ) / 1e18) + rewards[_user][_rewardsToken];
    }

    function _lastTimeRewardApplicable(uint256 _finishTime) internal view returns(uint256){
        return MathUtil.min(block.timestamp, _finishTime);
    }

    function lastTimeRewardApplicable(address _rewardsToken) public view returns(uint256) {
        return _lastTimeRewardApplicable(rewardData[_rewardsToken].periodFinish);
    }

    function rewardPerToken(address _rewardsToken) external view returns(uint256) {
        return _rewardPerToken(_rewardsToken);
    }

    function getRewardForDuration(address _rewardsToken) external view returns(uint256) {
        return rewardData[_rewardsToken].rewardRate * rewardsDuration;
    }

    // Address and claimable amount of all reward tokens for the given account
    function claimableRewards(address _account) external view returns(EarnedData[] memory userRewards) {
        userRewards = new EarnedData[](rewardTokens.length);
        for (uint256 i = 0; i < userRewards.length; i++) {
            address token = rewardTokens[i];
            userRewards[i].token = token;
            userRewards[i].amount = _earned(_account, token,  balanceOf(_account));
        }
        return userRewards;
    }

    //set any claimed rewards to automatically go to a different address
    //set address to zero to disable
    function setRewardRedirect(address _to) external nonReentrant{
        rewardRedirect[msg.sender] = _to;
        emit RewardRedirected(msg.sender, _to);
    }

    // Claim all pending rewards
    function getReward(address _address) public nonReentrant updateReward(_address) {
        for (uint i; i < rewardTokens.length; i++) {
            address _rewardsToken = rewardTokens[i];
            uint256 reward = rewards[_address][_rewardsToken];
            if (reward > 0) {
                rewards[_address][_rewardsToken] = 0;
                if(rewardRedirect[_address] != address(0)){
                    IERC20(_rewardsToken).safeTransfer(rewardRedirect[_address], reward);
                }else{
                    IERC20(_rewardsToken).safeTransfer(_address, reward);
                }
                emit RewardPaid(_address, _rewardsToken, reward);
            }
        }
    }

    // Claim all pending rewards and forward
    function getReward(address _address, address _forwardTo) public nonReentrant updateReward(_address) {
        //if forwarding, require caller is self
        require(msg.sender == _address, "!self");

        for (uint i; i < rewardTokens.length; i++) {
            address _rewardsToken = rewardTokens[i];
            uint256 reward = rewards[_address][_rewardsToken];
            if (reward > 0) {
                rewards[_address][_rewardsToken] = 0;
                IERC20(_rewardsToken).safeTransfer(_forwardTo, reward);
                emit RewardPaid(_address, _rewardsToken, reward);
            }
        }
    }


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

    function rewardTokenLength() external view returns(uint256){
        return rewardTokens.length;
    }

    function _notifyReward(address _rewardsToken, uint256 _reward) internal {
        Reward storage rdata = rewardData[_rewardsToken];

        if (block.timestamp >= rdata.periodFinish) {
            rdata.rewardRate = _reward / rewardsDuration;
        } else {
            uint256 remaining = rdata.periodFinish - block.timestamp;
            uint256 leftover = remaining * rdata.rewardRate;
            rdata.rewardRate = (_reward + leftover) / rewardsDuration;
        }

        rdata.lastUpdateTime = block.timestamp;
        rdata.periodFinish = block.timestamp + rewardsDuration;
    }

    function notifyRewardAmount(address _rewardsToken, uint256 _reward) external nonReentrant updateReward(address(0)) {
        require(rewardDistributors[_rewardsToken][msg.sender]);
        require(_reward > 0 && _reward < 1e30, "bad reward value");

        _notifyReward(_rewardsToken, _reward);

        // handle the transfer of reward tokens via `transferFrom` to reduce the number
        // of transactions required and ensure correctness of the _reward amount
        IERC20(_rewardsToken).safeTransferFrom(msg.sender, address(this), _reward);
        
        emit RewardAdded(_rewardsToken, _reward);
    }

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external nonReentrant onlyOwner {
        require(rewardData[_tokenAddress].lastUpdateTime == 0, "Cannot withdraw reward token");
        require(_tokenAddress != cvxprisma, "Cannot withdraw staking token");
        IERC20(_tokenAddress).safeTransfer(IBooster(IVoterProxy(veProxy).operator()).rewardManager(), _tokenAmount);
        emit Recovered(_tokenAddress, _tokenAmount);
    }

    function _updateReward(address _account) internal{
        uint256 userBal = balanceOf(_account);
        for (uint i = 0; i < rewardTokens.length; i++) {
            address token = rewardTokens[i];
            rewardData[token].rewardPerTokenStored = _rewardPerToken(token);
            rewardData[token].lastUpdateTime = _lastTimeRewardApplicable(rewardData[token].periodFinish);
            if (_account != address(0)) {
                rewards[_account][token] = _earned(_account, token, userBal );
                userRewardPerTokenPaid[_account][token] = rewardData[token].rewardPerTokenStored;
            }
        }
    }

    function _beforeTokenTransfer(address _from, address _to, uint256 ) internal override {
        //checkpoint from and to, can skip if address 0 so no extra gas
        //is used when minting burning
        if(_from != address(0)){
            _updateReward(_from);
        }
        if(_to != address(0)){
            _updateReward(_to);
        }
    }

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

    modifier onlyOwner() {
        require(IBooster(IVoterProxy(veProxy).operator()).rewardManager() == msg.sender, "!owner");
        _;
    }

    modifier updateReward(address _account) {
        _updateReward(_account);
        _;
    }

    /* ========== EVENTS ========== */
    event RewardAdded(address indexed _token, uint256 _reward);
    event Staked(address indexed _user, uint256 _amount);
    event Withdrawn(address indexed _user, uint256 _amount);
    event RewardPaid(address indexed _user, address indexed _rewardsToken, uint256 _reward);
    event Recovered(address _token, uint256 _amount);
    event RewardAdded(address indexed _reward, address indexed _distributor);
    event RewardDistributorApproved(address indexed _reward, address indexed _distributor);
    event RewardRedirected(address indexed _account, address _forward);
}

File 2 of 13 : MathUtil.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUtil {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }
}

File 3 of 13 : IVoterProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface IVoterProxy{
    function operator() external view returns(address);
}

File 4 of 13 : IPrismaDepositor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface IPrismaDepositor {
   function deposit(uint256 _amount, bool _lock) external;
}

File 5 of 13 : IBooster.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface IBooster {
   function owner() external returns(address);
   function rewardManager() external returns(address);
   function isShutdown() external returns(bool);
}

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

pragma solidity ^0.8.0;

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

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

File 7 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 9 of 13 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 10 of 13 : 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 11 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

File 12 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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}.
     *
     * 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 default value returned by this function, unless
     * it's 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 13 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_prisma","type":"address"},{"internalType":"address","name":"_cvxprisma","type":"address"},{"internalType":"address","name":"_depositor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_reward","type":"address"},{"indexed":true,"internalType":"address","name":"_distributor","type":"address"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_reward","type":"address"},{"indexed":true,"internalType":"address","name":"_distributor","type":"address"}],"name":"RewardDistributorApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"address","name":"_forward","type":"address"}],"name":"RewardRedirected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"addReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"approveRewardDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimableRewards","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct cvxPrismaStaking.EarnedData[]","name":"userRewards","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxprisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"address","name":"_forwardTo","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"prisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prismaDepositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardData","outputs":[{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewardDistributors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardRedirect","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"setRewardRedirect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b5060405162002d1c38038062002d1c833981016040819052620000359162000163565b6040518060400160405280601081526020016f5374616b656420437678507269736d6160801b8152506040518060400160405280600c81526020016b73746b437678507269736d6160a01b815250816003908162000094919062000265565b506004620000a3828262000265565b50506001600555506001600160a01b0384811660a052838116608081905283821660c05290821660e081905260405163095ea7b360e01b81526004810191909152600019602482015263095ea7b3906044016020604051808303816000875af115801562000115573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200013b919062000331565b50505050506200035c565b80516001600160a01b03811681146200015e57600080fd5b919050565b600080600080608085870312156200017a57600080fd5b620001858562000146565b9350620001956020860162000146565b9250620001a56040860162000146565b9150620001b56060860162000146565b905092959194509250565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001eb57607f821691505b6020821081036200020c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200026057600081815260208120601f850160051c810160208610156200023b5750805b601f850160051c820191505b818110156200025c5782815560010162000247565b5050505b505050565b81516001600160401b03811115620002815762000281620001c0565b6200029981620002928454620001d6565b8462000212565b602080601f831160018114620002d15760008415620002b85750858301515b600019600386901b1c1916600185901b1785556200025c565b600085815260208120601f198616915b828110156200030257888601518255948401946001909101908401620002e1565b5085821015620003215787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200034457600080fd5b815180151581146200035557600080fd5b9392505050565b60805160a05160c05160e051612932620003ea6000396000818161063f01526113fb0152600081816102f7015281816107a50152818161087e01528181610a82015281816110dd015281816112b9015261157b0152600081816104bb0152818161092501528181610be901528181610f69015261116101526000818161029301526113b501526129326000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80637bb7bed11161013b578063b66503cf116100b8578063dd62ed3e1161007c578063dd62ed3e146105c0578063e509b9d9146105d3578063e70b9e27146105fc578063f122977714610627578063ff75ee141461063a57600080fd5b8063b66503cf14610554578063b6b55f2514610567578063bcd110141461057a578063c00007b01461058d578063dc01f60d146105a057600080fd5b806395d89b41116100ff57806395d89b41146105005780639a40832114610508578063a457c2d71461051b578063a694fc3a1461052e578063a9059cbb1461054157600080fd5b80637bb7bed1146104a35780637f9cbccf146104b6578063857cb94a146104dd5780638980f11f146104e55780638dcb4061146104f857600080fd5b806339509351116101c95780636724c9101161018d5780636724c910146104165780636b091695146104295780637035ab981461043c57806370a082311461046757806375a410141461049057600080fd5b8063395093511461035a57806339fc97131461036d57806340b47e1a1461039b57806348e5d9f8146103ae578063638634ee1461040357600080fd5b80632abb7e66116102105780632abb7e66146102f25780632e1a7d4d146103195780632ee409081461032e578063313ce56714610341578063386a95251461035057600080fd5b806306fdde031461024d578063095ea7b31461026b5780630a3266b01461028e57806318160ddd146102cd57806323b872dd146102df575b600080fd5b610255610661565b6040516102629190612585565b60405180910390f35b61027e6102793660046125cd565b6106f3565b6040519015158152602001610262565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610262565b6002545b604051908152602001610262565b61027e6102ed3660046125f9565b61070d565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b61032c61032736600461263a565b610731565b005b61032c61033c3660046125cd565b61080f565b60405160128152602001610262565b6102d162093a8081565b61027e6103683660046125cd565b6108f7565b61027e61037b366004612653565b600960209081526000928352604080842090915290825290205460ff1681565b61032c6103a9366004612653565b610919565b6103e36103bc36600461268c565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610262565b6102d161041136600461268c565b610bbb565b61032c6104243660046126b7565b610bdd565b61032c610437366004612653565b610d76565b6102d161044a366004612653565b600a60209081526000928352604080842090915290825290205481565b6102d161047536600461268c565b6001600160a01b031660009081526020819052604090205490565b61032c61049e36600461268c565b610ec7565b6102b56104b136600461263a565b610f2b565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b6006546102d1565b61032c6104f33660046125cd565b610f55565b61032c6112a1565b610255611337565b61032c610516366004612702565b611346565b61027e6105293660046125cd565b611491565b61032c61053c36600461263a565b61150c565b61027e61054f3660046125cd565b6115d5565b61032c6105623660046125cd565b6115e3565b61032c61057536600461263a565b6116ee565b6102d161058836600461268c565b6116f9565b61032c61059b36600461268c565b611723565b6105b36105ae36600461268c565b61187a565b6040516102629190612727565b6102d16105ce366004612653565b6119ae565b6102b56105e136600461268c565b6008602052600090815260409020546001600160a01b031681565b6102d161060a366004612653565b600b60209081526000928352604080842090915290825290205481565b6102d161063536600461268c565b6119d9565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b6060600380546106709061277f565b80601f016020809104026020016040519081016040528092919081815260200182805461069c9061277f565b80156106e95780601f106106be576101008083540402835291602001916106e9565b820191906000526020600020905b8154815290600101906020018083116106cc57829003601f168201915b5050505050905090565b6000336107018185856119e4565b60019150505b92915050565b60003361071b858285611b09565b610726858585611b83565b506001949350505050565b610739611d32565b6000811161078e5760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f742077697468647261772030000060448201526064015b60405180910390fd5b6107983382611d8b565b6107cc6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611ec6565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a261080c6001600555565b50565b610817611d32565b600081116108675760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610785565b6108718282611f29565b6108a66001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611ff4565b816001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516108e191815260200190565b60405180910390a26108f36001600555565b5050565b60003361070181858561090a83836119ae565b61091491906127c9565b6119e4565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610981573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a591906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af11580156109e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0891906127dc565b6001600160a01b031614610a2e5760405162461bcd60e51b8152600401610785906127f9565b6001600160a01b03821660009081526007602052604090206002015415610a805760405162461bcd60e51b815260040161078590602080825260049082015263216e657760e01b604082015260600190565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614158015610acb57506001600160a01b0382163014155b610b075760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610785565b6006805460018082019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038581169182179092556000818152600760209081526040808320426002820181905590556009825280832094871680845294909152808220805460ff19169095179094559251919290917f766c9ea233f83f351d6be4cb95362682949d7699abd8698799beae0db83ad96e9190a35050565b6001600160a01b0381166000908152600760205260408120546107079061202c565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6991906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccc91906127dc565b6001600160a01b031614610cf25760405162461bcd60e51b8152600401610785906127f9565b6001600160a01b038316600090815260076020526040902060020154610d1757600080fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294909152808220805460ff1916861515179055517f2b78dc41f71ae29cc42d4714f937a272ae1319b7137e38be4965b443181b72379190a3505050565b610d7e611d32565b81610d8881612038565b336001600160a01b03841614610dc85760405162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b6044820152606401610785565b60005b600654811015610ebb57600060068281548110610dea57610dea612819565b60009182526020808320909101546001600160a01b038881168452600b83526040808520919092168085529252909120549091508015610ea6576001600160a01b038087166000908152600b6020908152604080832093861680845293909152812055610e58908683611ec6565b816001600160a01b0316866001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e83604051610e9d91815260200190565b60405180910390a35b50508080610eb39061282f565b915050610dcb565b50506108f36001600555565b610ecf611d32565b3360008181526008602090815260409182902080546001600160a01b0319166001600160a01b03861690811790915591519182527ff4239ad0860f93469699dd4be8040b8838c5e25bb6cf24a1dfb381b937ff078c91016107fa565b60068181548110610f3b57600080fd5b6000918252602090912001546001600160a01b0316905081565b610f5d611d32565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe991906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104c91906127dc565b6001600160a01b0316146110725760405162461bcd60e51b8152600401610785906127f9565b6001600160a01b038216600090815260076020526040902060020154156110db5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e000000006044820152606401610785565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03160361115c5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e0000006044820152606401610785565b6112557f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e191906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124491906127dc565b6001600160a01b0384169083611ec6565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a16108f36001600555565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c9190612848565b905061080c8161150c565b6060600480546106709061277f565b61134e611d32565b6000821161139e5760405162461bcd60e51b815260206004820152601d60248201527f526577617264506f6f6c203a2043616e6e6f74206465706f73697420300000006044820152606401610785565b6113a83383611f29565b6113dd6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085611ff4565b604051639a40832160e01b81526004810183905281151560248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639a40832190604401600060405180830381600087803b15801561144757600080fd5b505af115801561145b573d6000803e3d6000fd5b50506040518481523392507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d91506020016108e1565b6000338161149f82866119ae565b9050838110156114ff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610785565b61072682868684036119e4565b611514611d32565b600081116115645760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610785565b61156e3382611f29565b6115a36001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611ff4565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016107fa565b600033610701818585611b83565b6115eb611d32565b60006115f681612038565b6001600160a01b038316600090815260096020908152604080832033845290915290205460ff1661162657600080fd5b60008211801561164257506c0c9f2c9cd04674edea4000000082105b6116815760405162461bcd60e51b815260206004820152601060248201526f626164207265776172642076616c756560801b6044820152606401610785565b61168b838361214e565b6116a06001600160a01b038416333085611ff4565b826001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29836040516116db91815260200190565b60405180910390a2506108f36001600555565b61080c816000611346565b6001600160a01b0381166000908152600760205260408120600101546107079062093a8090612861565b61172b611d32565b8061173581612038565b60005b60065481101561186e5760006006828154811061175757611757612819565b60009182526020808320909101546001600160a01b038781168452600b83526040808520919092168085529252909120549091508015611859576001600160a01b038086166000818152600b602090815260408083208786168452825280832083905592825260089052205416156117f7576001600160a01b038086166000908152600860205260409020546117f291848116911683611ec6565b61180b565b61180b6001600160a01b0383168683611ec6565b816001600160a01b0316856001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161185091815260200190565b60405180910390a35b505080806118669061282f565b915050611738565b505061080c6001600555565b60065460609067ffffffffffffffff81111561189857611898612878565b6040519080825280602002602001820160405280156118dd57816020015b60408051808201909152600080825260208201528152602001906001900390816118b65790505b50905060005b81518110156119a85760006006828154811061190157611901612819565b9060005260206000200160009054906101000a90046001600160a01b031690508083838151811061193457611934612819565b60209081029190910101516001600160a01b0390911690526119758482611970826001600160a01b031660009081526020819052604090205490565b6121e7565b83838151811061198757611987612819565b602090810291909101810151015250806119a08161282f565b9150506118e3565b50919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600061070782612267565b6001600160a01b038316611a465760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610785565b6001600160a01b038216611aa75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610785565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000611b1584846119ae565b90506000198114611b7d5781811015611b705760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610785565b611b7d84848484036119e4565b50505050565b6001600160a01b038316611be75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610785565b6001600160a01b038216611c495760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610785565b611c54838383612321565b6001600160a01b03831660009081526020819052604090205481811015611ccc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610785565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611b7d565b600260055403611d845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610785565b6002600555565b6001600160a01b038216611deb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610785565b611df782600083612321565b6001600160a01b03821660009081526020819052604090205481811015611e6b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610785565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611afc565b505050565b6040516001600160a01b038316602482015260448101829052611ec190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612351565b6001600160a01b038216611f7f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610785565b611f8b60008383612321565b8060026000828254611f9d91906127c9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b7d9085906323b872dd60e01b90608401611ef2565b60006107074283612426565b6001600160a01b038116600090815260208190526040812054905b600654811015611ec15760006006828154811061207257612072612819565b6000918252602090912001546001600160a01b0316905061209281612267565b6001600160a01b03821660009081526007602052604090206003810191909155546120bc9061202c565b6001600160a01b0380831660009081526007602052604090206002019190915584161561213b576120ee8482856121e7565b6001600160a01b038086166000818152600b60209081526040808320948716808452948252808320959095556007815284822060030154928252600a815284822093825292909252919020555b50806121468161282f565b915050612053565b6001600160a01b0382166000908152600760205260409020805442106121855761217b62093a808361288e565b60018201556121cb565b80546000906121959042906128b0565b905060008260010154826121a99190612861565b905062093a806121b982866127c9565b6121c3919061288e565b600184015550505b42600282018190556121e19062093a80906127c9565b90555050565b6001600160a01b038084166000818152600b6020908152604080832094871680845294825280832054938352600a825280832094835293905291822054670de0b6b3a76400009061223786612267565b61224191906128b0565b61224b9085612861565b612255919061288e565b61225f91906127c9565b949350505050565b600061227260025490565b60000361229857506001600160a01b031660009081526007602052604090206003015490565b6002546001600160a01b03831660009081526007602052604090206001810154600282015491549091906122cb9061202c565b6122d591906128b0565b6122df9190612861565b6122f190670de0b6b3a7640000612861565b6122fb919061288e565b6001600160a01b03831660009081526007602052604090206003015461070791906127c9565b6001600160a01b038316156123395761233983612038565b6001600160a01b03821615611ec157611ec182612038565b60006123a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661243e9092919063ffffffff16565b90508051600014806123c75750808060200190518101906123c791906128c3565b611ec15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610785565b60008183106124355781612437565b825b9392505050565b606061225f848460008585600080866001600160a01b0316858760405161246591906128e0565b60006040518083038185875af1925050503d80600081146124a2576040519150601f19603f3d011682016040523d82523d6000602084013e6124a7565b606091505b50915091506124b8878383876124c3565b979650505050505050565b6060831561253257825160000361252b576001600160a01b0385163b61252b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610785565b508161225f565b61225f83838151156125475781518083602001fd5b8060405162461bcd60e51b81526004016107859190612585565b60005b8381101561257c578181015183820152602001612564565b50506000910152565b60208152600082518060208401526125a4816040850160208701612561565b601f01601f19169190910160400192915050565b6001600160a01b038116811461080c57600080fd5b600080604083850312156125e057600080fd5b82356125eb816125b8565b946020939093013593505050565b60008060006060848603121561260e57600080fd5b8335612619816125b8565b92506020840135612629816125b8565b929592945050506040919091013590565b60006020828403121561264c57600080fd5b5035919050565b6000806040838503121561266657600080fd5b8235612671816125b8565b91506020830135612681816125b8565b809150509250929050565b60006020828403121561269e57600080fd5b8135612437816125b8565b801515811461080c57600080fd5b6000806000606084860312156126cc57600080fd5b83356126d7816125b8565b925060208401356126e7816125b8565b915060408401356126f7816126a9565b809150509250925092565b6000806040838503121561271557600080fd5b823591506020830135612681816126a9565b602080825282518282018190526000919060409081850190868401855b8281101561277257815180516001600160a01b03168552860151868501529284019290850190600101612744565b5091979650505050505050565b600181811c9082168061279357607f821691505b6020821081036119a857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610707576107076127b3565b6000602082840312156127ee57600080fd5b8151612437816125b8565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612841576128416127b3565b5060010190565b60006020828403121561285a57600080fd5b5051919050565b8082028115828204841417610707576107076127b3565b634e487b7160e01b600052604160045260246000fd5b6000826128ab57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610707576107076127b3565b6000602082840312156128d557600080fd5b8151612437816126a9565b600082516128f2818460208701612561565b919091019291505056fea26469706673582212209717fdd6471624ee404a1e5b13d295b53ffe8b01929a53edf7c32f19ce828b3564736f6c634300081300330000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e7818500000000000000000000000061404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80637bb7bed11161013b578063b66503cf116100b8578063dd62ed3e1161007c578063dd62ed3e146105c0578063e509b9d9146105d3578063e70b9e27146105fc578063f122977714610627578063ff75ee141461063a57600080fd5b8063b66503cf14610554578063b6b55f2514610567578063bcd110141461057a578063c00007b01461058d578063dc01f60d146105a057600080fd5b806395d89b41116100ff57806395d89b41146105005780639a40832114610508578063a457c2d71461051b578063a694fc3a1461052e578063a9059cbb1461054157600080fd5b80637bb7bed1146104a35780637f9cbccf146104b6578063857cb94a146104dd5780638980f11f146104e55780638dcb4061146104f857600080fd5b806339509351116101c95780636724c9101161018d5780636724c910146104165780636b091695146104295780637035ab981461043c57806370a082311461046757806375a410141461049057600080fd5b8063395093511461035a57806339fc97131461036d57806340b47e1a1461039b57806348e5d9f8146103ae578063638634ee1461040357600080fd5b80632abb7e66116102105780632abb7e66146102f25780632e1a7d4d146103195780632ee409081461032e578063313ce56714610341578063386a95251461035057600080fd5b806306fdde031461024d578063095ea7b31461026b5780630a3266b01461028e57806318160ddd146102cd57806323b872dd146102df575b600080fd5b610255610661565b6040516102629190612585565b60405180910390f35b61027e6102793660046125cd565b6106f3565b6040519015158152602001610262565b6102b57f000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c81565b6040516001600160a01b039091168152602001610262565b6002545b604051908152602001610262565b61027e6102ed3660046125f9565b61070d565b6102b57f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e7818581565b61032c61032736600461263a565b610731565b005b61032c61033c3660046125cd565b61080f565b60405160128152602001610262565b6102d162093a8081565b61027e6103683660046125cd565b6108f7565b61027e61037b366004612653565b600960209081526000928352604080842090915290825290205460ff1681565b61032c6103a9366004612653565b610919565b6103e36103bc36600461268c565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610262565b6102d161041136600461268c565b610bbb565b61032c6104243660046126b7565b610bdd565b61032c610437366004612653565b610d76565b6102d161044a366004612653565b600a60209081526000928352604080842090915290825290205481565b6102d161047536600461268c565b6001600160a01b031660009081526020819052604090205490565b61032c61049e36600461268c565b610ec7565b6102b56104b136600461263a565b610f2b565b6102b57f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81565b6006546102d1565b61032c6104f33660046125cd565b610f55565b61032c6112a1565b610255611337565b61032c610516366004612702565b611346565b61027e6105293660046125cd565b611491565b61032c61053c36600461263a565b61150c565b61027e61054f3660046125cd565b6115d5565b61032c6105623660046125cd565b6115e3565b61032c61057536600461263a565b6116ee565b6102d161058836600461268c565b6116f9565b61032c61059b36600461268c565b611723565b6105b36105ae36600461268c565b61187a565b6040516102629190612727565b6102d16105ce366004612653565b6119ae565b6102b56105e136600461268c565b6008602052600090815260409020546001600160a01b031681565b6102d161060a366004612653565b600b60209081526000928352604080842090915290825290205481565b6102d161063536600461268c565b6119d9565b6102b57f00000000000000000000000061404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b881565b6060600380546106709061277f565b80601f016020809104026020016040519081016040528092919081815260200182805461069c9061277f565b80156106e95780601f106106be576101008083540402835291602001916106e9565b820191906000526020600020905b8154815290600101906020018083116106cc57829003601f168201915b5050505050905090565b6000336107018185856119e4565b60019150505b92915050565b60003361071b858285611b09565b610726858585611b83565b506001949350505050565b610739611d32565b6000811161078e5760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f742077697468647261772030000060448201526064015b60405180910390fd5b6107983382611d8b565b6107cc6001600160a01b037f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e78185163383611ec6565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a261080c6001600555565b50565b610817611d32565b600081116108675760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610785565b6108718282611f29565b6108a66001600160a01b037f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e7818516333084611ff4565b816001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516108e191815260200190565b60405180910390a26108f36001600555565b5050565b60003361070181858561090a83836119ae565b61091491906127c9565b6119e4565b336001600160a01b03167f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610981573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a591906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af11580156109e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0891906127dc565b6001600160a01b031614610a2e5760405162461bcd60e51b8152600401610785906127f9565b6001600160a01b03821660009081526007602052604090206002015415610a805760405162461bcd60e51b815260040161078590602080825260049082015263216e657760e01b604082015260600190565b7f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e781856001600160a01b0316826001600160a01b031614158015610acb57506001600160a01b0382163014155b610b075760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610785565b6006805460018082019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038581169182179092556000818152600760209081526040808320426002820181905590556009825280832094871680845294909152808220805460ff19169095179094559251919290917f766c9ea233f83f351d6be4cb95362682949d7699abd8698799beae0db83ad96e9190a35050565b6001600160a01b0381166000908152600760205260408120546107079061202c565b336001600160a01b03167f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6991906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccc91906127dc565b6001600160a01b031614610cf25760405162461bcd60e51b8152600401610785906127f9565b6001600160a01b038316600090815260076020526040902060020154610d1757600080fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294909152808220805460ff1916861515179055517f2b78dc41f71ae29cc42d4714f937a272ae1319b7137e38be4965b443181b72379190a3505050565b610d7e611d32565b81610d8881612038565b336001600160a01b03841614610dc85760405162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b6044820152606401610785565b60005b600654811015610ebb57600060068281548110610dea57610dea612819565b60009182526020808320909101546001600160a01b038881168452600b83526040808520919092168085529252909120549091508015610ea6576001600160a01b038087166000908152600b6020908152604080832093861680845293909152812055610e58908683611ec6565b816001600160a01b0316866001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e83604051610e9d91815260200190565b60405180910390a35b50508080610eb39061282f565b915050610dcb565b50506108f36001600555565b610ecf611d32565b3360008181526008602090815260409182902080546001600160a01b0319166001600160a01b03861690811790915591519182527ff4239ad0860f93469699dd4be8040b8838c5e25bb6cf24a1dfb381b937ff078c91016107fa565b60068181548110610f3b57600080fd5b6000918252602090912001546001600160a01b0316905081565b610f5d611d32565b336001600160a01b03167f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe991906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104c91906127dc565b6001600160a01b0316146110725760405162461bcd60e51b8152600401610785906127f9565b6001600160a01b038216600090815260076020526040902060020154156110db5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e000000006044820152606401610785565b7f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e781856001600160a01b0316826001600160a01b03160361115c5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e0000006044820152606401610785565b6112557f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e191906127dc565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124491906127dc565b6001600160a01b0384169083611ec6565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a16108f36001600555565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e781856001600160a01b0316906370a0823190602401602060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c9190612848565b905061080c8161150c565b6060600480546106709061277f565b61134e611d32565b6000821161139e5760405162461bcd60e51b815260206004820152601d60248201527f526577617264506f6f6c203a2043616e6e6f74206465706f73697420300000006044820152606401610785565b6113a83383611f29565b6113dd6001600160a01b037f000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c16333085611ff4565b604051639a40832160e01b81526004810183905281151560248201527f00000000000000000000000061404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b86001600160a01b031690639a40832190604401600060405180830381600087803b15801561144757600080fd5b505af115801561145b573d6000803e3d6000fd5b50506040518481523392507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d91506020016108e1565b6000338161149f82866119ae565b9050838110156114ff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610785565b61072682868684036119e4565b611514611d32565b600081116115645760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610785565b61156e3382611f29565b6115a36001600160a01b037f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e7818516333084611ff4565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016107fa565b600033610701818585611b83565b6115eb611d32565b60006115f681612038565b6001600160a01b038316600090815260096020908152604080832033845290915290205460ff1661162657600080fd5b60008211801561164257506c0c9f2c9cd04674edea4000000082105b6116815760405162461bcd60e51b815260206004820152601060248201526f626164207265776172642076616c756560801b6044820152606401610785565b61168b838361214e565b6116a06001600160a01b038416333085611ff4565b826001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29836040516116db91815260200190565b60405180910390a2506108f36001600555565b61080c816000611346565b6001600160a01b0381166000908152600760205260408120600101546107079062093a8090612861565b61172b611d32565b8061173581612038565b60005b60065481101561186e5760006006828154811061175757611757612819565b60009182526020808320909101546001600160a01b038781168452600b83526040808520919092168085529252909120549091508015611859576001600160a01b038086166000818152600b602090815260408083208786168452825280832083905592825260089052205416156117f7576001600160a01b038086166000908152600860205260409020546117f291848116911683611ec6565b61180b565b61180b6001600160a01b0383168683611ec6565b816001600160a01b0316856001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161185091815260200190565b60405180910390a35b505080806118669061282f565b915050611738565b505061080c6001600555565b60065460609067ffffffffffffffff81111561189857611898612878565b6040519080825280602002602001820160405280156118dd57816020015b60408051808201909152600080825260208201528152602001906001900390816118b65790505b50905060005b81518110156119a85760006006828154811061190157611901612819565b9060005260206000200160009054906101000a90046001600160a01b031690508083838151811061193457611934612819565b60209081029190910101516001600160a01b0390911690526119758482611970826001600160a01b031660009081526020819052604090205490565b6121e7565b83838151811061198757611987612819565b602090810291909101810151015250806119a08161282f565b9150506118e3565b50919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600061070782612267565b6001600160a01b038316611a465760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610785565b6001600160a01b038216611aa75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610785565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000611b1584846119ae565b90506000198114611b7d5781811015611b705760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610785565b611b7d84848484036119e4565b50505050565b6001600160a01b038316611be75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610785565b6001600160a01b038216611c495760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610785565b611c54838383612321565b6001600160a01b03831660009081526020819052604090205481811015611ccc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610785565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611b7d565b600260055403611d845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610785565b6002600555565b6001600160a01b038216611deb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610785565b611df782600083612321565b6001600160a01b03821660009081526020819052604090205481811015611e6b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610785565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611afc565b505050565b6040516001600160a01b038316602482015260448101829052611ec190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612351565b6001600160a01b038216611f7f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610785565b611f8b60008383612321565b8060026000828254611f9d91906127c9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b7d9085906323b872dd60e01b90608401611ef2565b60006107074283612426565b6001600160a01b038116600090815260208190526040812054905b600654811015611ec15760006006828154811061207257612072612819565b6000918252602090912001546001600160a01b0316905061209281612267565b6001600160a01b03821660009081526007602052604090206003810191909155546120bc9061202c565b6001600160a01b0380831660009081526007602052604090206002019190915584161561213b576120ee8482856121e7565b6001600160a01b038086166000818152600b60209081526040808320948716808452948252808320959095556007815284822060030154928252600a815284822093825292909252919020555b50806121468161282f565b915050612053565b6001600160a01b0382166000908152600760205260409020805442106121855761217b62093a808361288e565b60018201556121cb565b80546000906121959042906128b0565b905060008260010154826121a99190612861565b905062093a806121b982866127c9565b6121c3919061288e565b600184015550505b42600282018190556121e19062093a80906127c9565b90555050565b6001600160a01b038084166000818152600b6020908152604080832094871680845294825280832054938352600a825280832094835293905291822054670de0b6b3a76400009061223786612267565b61224191906128b0565b61224b9085612861565b612255919061288e565b61225f91906127c9565b949350505050565b600061227260025490565b60000361229857506001600160a01b031660009081526007602052604090206003015490565b6002546001600160a01b03831660009081526007602052604090206001810154600282015491549091906122cb9061202c565b6122d591906128b0565b6122df9190612861565b6122f190670de0b6b3a7640000612861565b6122fb919061288e565b6001600160a01b03831660009081526007602052604090206003015461070791906127c9565b6001600160a01b038316156123395761233983612038565b6001600160a01b03821615611ec157611ec182612038565b60006123a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661243e9092919063ffffffff16565b90508051600014806123c75750808060200190518101906123c791906128c3565b611ec15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610785565b60008183106124355781612437565b825b9392505050565b606061225f848460008585600080866001600160a01b0316858760405161246591906128e0565b60006040518083038185875af1925050503d80600081146124a2576040519150601f19603f3d011682016040523d82523d6000602084013e6124a7565b606091505b50915091506124b8878383876124c3565b979650505050505050565b6060831561253257825160000361252b576001600160a01b0385163b61252b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610785565b508161225f565b61225f83838151156125475781518083602001fd5b8060405162461bcd60e51b81526004016107859190612585565b60005b8381101561257c578181015183820152602001612564565b50506000910152565b60208152600082518060208401526125a4816040850160208701612561565b601f01601f19169190910160400192915050565b6001600160a01b038116811461080c57600080fd5b600080604083850312156125e057600080fd5b82356125eb816125b8565b946020939093013593505050565b60008060006060848603121561260e57600080fd5b8335612619816125b8565b92506020840135612629816125b8565b929592945050506040919091013590565b60006020828403121561264c57600080fd5b5035919050565b6000806040838503121561266657600080fd5b8235612671816125b8565b91506020830135612681816125b8565b809150509250929050565b60006020828403121561269e57600080fd5b8135612437816125b8565b801515811461080c57600080fd5b6000806000606084860312156126cc57600080fd5b83356126d7816125b8565b925060208401356126e7816125b8565b915060408401356126f7816126a9565b809150509250925092565b6000806040838503121561271557600080fd5b823591506020830135612681816126a9565b602080825282518282018190526000919060409081850190868401855b8281101561277257815180516001600160a01b03168552860151868501529284019290850190600101612744565b5091979650505050505050565b600181811c9082168061279357607f821691505b6020821081036119a857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610707576107076127b3565b6000602082840312156127ee57600080fd5b8151612437816125b8565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612841576128416127b3565b5060010190565b60006020828403121561285a57600080fd5b5051919050565b8082028115828204841417610707576107076127b3565b634e487b7160e01b600052604160045260246000fd5b6000826128ab57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610707576107076127b3565b6000602082840312156128d557600080fd5b8151612437816126a9565b600082516128f2818460208701612561565b919091019291505056fea26469706673582212209717fdd6471624ee404a1e5b13d295b53ffe8b01929a53edf7c32f19ce828b3564736f6c63430008130033

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

0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e7818500000000000000000000000061404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b8

-----Decoded View---------------
Arg [0] : _proxy (address): 0x8ad7a9e2B3Cd9214f36Cb871336d8ab34DdFdD5b
Arg [1] : _prisma (address): 0xdA47862a83dac0c112BA89c6abC2159b95afd71C
Arg [2] : _cvxprisma (address): 0x34635280737b5BFe6c7DC2FC3065D60d66e78185
Arg [3] : _depositor (address): 0x61404F7c2d8b1F3373eb3c6e8C4b8d8332c2D5B8

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b
Arg [1] : 000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c
Arg [2] : 00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e78185
Arg [3] : 00000000000000000000000061404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b8


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.