ETH Price: $2,956.14 (+0.23%)

Contract

0x9af27cFBe0bc537dbC47fC314934353Dad7B8919
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Deposit203356652025-06-09 14:59:05229 days ago1749481145IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000010.00000089
Deposit201294412025-06-04 20:24:57233 days ago1749068697IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000010.00000075
Deposit201293992025-06-04 20:23:33233 days ago1749068613IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000010.00000071
Deposit200994702025-06-04 3:45:55234 days ago1749008755IN
Hyperlock Finance: Thrust Depositor
0 ETH00.00000168
Deposit199716592025-06-01 4:45:33237 days ago1748753133IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000470.00071514
Deposit198055312025-05-28 8:27:57241 days ago1748420877IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000680.00153825
Deposit198004182025-05-28 5:37:31241 days ago1748410651IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000710.00155372
Deposit195584242025-05-22 15:11:03247 days ago1747926663IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000020.00001666
Deposit194132432025-05-19 6:31:41250 days ago1747636301IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000530.00116045
Deposit193967122025-05-18 21:20:39250 days ago1747603239IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000540.00118198
Deposit192602232025-05-15 17:31:01253 days ago1747330261IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000730.00111132
Deposit190486272025-05-10 19:57:49258 days ago1746907069IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000010.00002134
Deposit190074502025-05-09 21:05:15259 days ago1746824715IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000790.00176475
Deposit189855022025-05-09 8:53:39260 days ago1746780819IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000680.00136667
Deposit189668122025-05-08 22:30:39260 days ago1746743439IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000860.00190667
Deposit189369772025-05-08 5:56:09261 days ago1746683769IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000010.00002016
Deposit188680842025-05-06 15:39:43263 days ago1746545983IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000480.00000956
Deposit188600542025-05-06 11:12:03263 days ago1746529923IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000470.00102846
Deposit188599412025-05-06 11:08:17263 days ago1746529697IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000410.00091208
Deposit188174132025-05-05 11:30:41264 days ago1746444641IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000001490.00205177
Deposit188088782025-05-05 6:46:11264 days ago1746427571IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000530.0011022
Deposit187617982025-05-04 4:36:51265 days ago1746333411IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000560.00110979
Deposit186791892025-05-02 6:43:13267 days ago1746168193IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000730.00110121
Deposit186774622025-05-02 5:45:39267 days ago1746164739IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000130.00000085
Deposit186774312025-05-02 5:44:37267 days ago1746164677IN
Hyperlock Finance: Thrust Depositor
0 ETH0.000000180.00000086
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CrvDepositor

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "./Interfaces.sol";
import "@openzeppelin/contracts-0.6/math/SafeMath.sol";
import "@openzeppelin/contracts-0.6/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-0.6/utils/Address.sol";
import "@openzeppelin/contracts-0.6/token/ERC20/SafeERC20.sol";

/**
 * @title   CrvDepositor
 * @author  ConvexFinance
 * @notice  This is the entry point for CRV > cvxCRV wrapping. It accepts CRV, sends to 'staker'
 *          for depositing into Curves VotingEscrow, and then mints cvxCRV at 1:1 via the 'minter' (cCrv) minus
 *          the lockIncentive (initially 1%) which is used to basically compensate users who call the `lock` function on Curves
 *          system (larger depositors would likely want to lock).
 */
contract CrvDepositor {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address public immutable crv;
    address public immutable escrow;
    uint256 private constant MAXTIME = 1 * 364 * 86400;
    uint256 private constant WEEK = 7 * 86400;

    uint256 public lockIncentive = 10; //incentive to users who spend gas to lock crv
    uint256 public constant FEE_DENOMINATOR = 10000;

    address public feeManager;
    address public daoOperator;
    address public immutable staker;
    address public immutable minter;
    uint256 public incentiveCrv = 0;
    uint256 public unlockTime;

    bool public cooldown;

    /**
     * @param _staker   CVX VoterProxy (0x989AEb4d175e16225E39E87d0D97A3360524AD80)
     * @param _minter   cvxCRV token (0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7)
     * @param _crv      crv for veCRV deposits
     * @param _escrow   CRV VotingEscrow (0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2)
     */
    constructor(
        address _staker,
        address _minter,
        address _crv,
        address _escrow,
        address _daoOperator
    ) public {
        staker = _staker;
        minter = _minter;
        crv = _crv;
        escrow = _escrow;
        feeManager = msg.sender;
        daoOperator = _daoOperator;
    }

    function setFeeManager(address _feeManager) external {
        require(msg.sender == feeManager, "!auth");
        feeManager = _feeManager;
    }

    function setDaoOperator(address _daoOperator) external {
        require(msg.sender == daoOperator, "!auth");
        daoOperator = _daoOperator;
    }

    function setFees(uint256 _lockIncentive) external {
        require(msg.sender == feeManager, "!auth");

        if (_lockIncentive >= 0 && _lockIncentive <= 30) {
            lockIncentive = _lockIncentive;
        }
    }

    function setCooldown(bool _cooldown) external {
        require(msg.sender == daoOperator, "!auth");
        cooldown = _cooldown;
    }

    /**
     * @notice Called once to deposit the balance of CRV in this contract to the VotingEscrow
     */
    function initialLock() external {
        require(!cooldown, "cooldown");
        require(msg.sender == feeManager, "!auth");

        uint256 vecrv = IERC20(escrow).balanceOf(staker);
        if (vecrv == 0) {
            uint256 unlockAt = block.timestamp + MAXTIME;
            uint256 unlockInWeeks = (unlockAt / WEEK) * WEEK;

            //release old lock if exists
            IStaker(staker).release();
            //create new lock
            uint256 crvBalanceStaker = IERC20(crv).balanceOf(staker);
            IStaker(staker).createLock(crvBalanceStaker, unlockAt);
            unlockTime = unlockInWeeks;
        }
    }

    //lock curve
    function _lockCurve() internal {
        if (cooldown) {
            return;
        }

        uint256 crvBalance = IERC20(crv).balanceOf(address(this));
        if (crvBalance > 0) {
            IERC20(crv).safeTransfer(staker, crvBalance);
        }

        //increase ammount
        uint256 crvBalanceStaker = IERC20(crv).balanceOf(staker);
        if (crvBalanceStaker == 0) {
            return;
        }

        //increase amount
        IStaker(staker).increaseAmount(crvBalanceStaker);

        uint256 unlockAt = block.timestamp + MAXTIME;
        uint256 unlockInWeeks = (unlockAt / WEEK) * WEEK;

        //increase time too if over 1 week buffer
        if (unlockInWeeks.sub(unlockTime) >= WEEK) {
            IStaker(staker).increaseTime(unlockAt);
            unlockTime = unlockInWeeks;
        }
    }

    /**
     * @notice Locks the balance of CRV, and gives out an incentive to the caller
     */
    function lockCurve() external {
        require(!cooldown, "cooldown");
        _lockCurve();

        //mint incentives
        if (incentiveCrv > 0) {
            ITokenMinter(minter).mint(msg.sender, incentiveCrv);
            incentiveCrv = 0;
        }
    }

    /**
     * @notice Deposit crv for cvxCrv on behalf of another user
     * @dev    See depositFor(address, uint256, bool, address)
     */
    function deposit(
        uint256 _amount,
        bool _lock,
        address _stakeAddress
    ) public {
        depositFor(msg.sender, _amount, _lock, _stakeAddress);
    }

    /**
     * @notice Deposit crv for cvxCrv
     * @dev    Can lock immediately or defer locking to someone else by paying a fee.
     *         while users can choose to lock or defer, this is mostly in place so that
     *         the cvx reward contract isnt costly to claim rewards.
     * @param _amount        Units of CRV to deposit
     * @param _lock          Lock now? or pay ~1% to the locker
     * @param _stakeAddress  Stake in cvxCrv staking?
     */
    function depositFor(
        address to,
        uint256 _amount,
        bool _lock,
        address _stakeAddress
    ) public {
        require(_amount > 0, "!>0");
        require(!cooldown, "cooldown");

        if (_lock) {
            //lock immediately, transfer directly to staker to skip an erc20 transfer
            IERC20(crv).safeTransferFrom(msg.sender, staker, _amount);
            _lockCurve();
            if (incentiveCrv > 0) {
                //add the incentive tokens here so they can be staked together
                _amount = _amount.add(incentiveCrv);
                incentiveCrv = 0;
            }
        } else {
            //move tokens here
            IERC20(crv).safeTransferFrom(msg.sender, address(this), _amount);
            //defer lock cost to another user
            uint256 callIncentive = _amount.mul(lockIncentive).div(FEE_DENOMINATOR);
            _amount = _amount.sub(callIncentive);

            //add to a pool for lock caller
            incentiveCrv = incentiveCrv.add(callIncentive);
        }

        bool depositOnly = _stakeAddress == address(0);
        if (depositOnly) {
            //mint for to
            ITokenMinter(minter).mint(to, _amount);
        } else {
            //mint here
            ITokenMinter(minter).mint(address(this), _amount);
            //stake for to
            IERC20(minter).safeApprove(_stakeAddress, 0);
            IERC20(minter).safeApprove(_stakeAddress, _amount);
            IRewards(_stakeAddress).stakeFor(to, _amount);
        }
    }

    function deposit(uint256 _amount, bool _lock) external {
        deposit(_amount, _lock, address(0));
    }

    function depositAll(bool _lock, address _stakeAddress) external {
        uint256 crvBal = IERC20(crv).balanceOf(msg.sender);
        deposit(crvBal, _lock, _stakeAddress);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 6 : Interfaces.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

interface ICurveGauge {
    function deposit(uint256) external;
    function balanceOf(address) external view returns (uint256);
    function withdraw(uint256) external;
    function claim_rewards() external;
    function reward_tokens(uint256) external view returns(address);//v2
    function rewarded_token() external view returns(address);//v1
    function lp_token() external view returns(address);
}

interface ICurveVoteEscrow {
    function create_lock(uint256, uint256) external;
    function increase_amount(uint256) external;
    function increase_unlock_time(uint256) external;
    function withdraw() external;
    function smart_wallet_checker() external view returns (address);
    function commit_smart_wallet_checker(address) external;
    function apply_smart_wallet_checker() external;
}

interface IWalletChecker {
    function check(address) external view returns (bool);
    function approveWallet(address) external;
    function dao() external view returns (address);
}

interface IVoting{
    function vote(uint256, bool, bool) external; //voteId, support, executeIfDecided
    function getVote(uint256) external view returns(bool,bool,uint64,uint64,uint64,uint64,uint256,uint256,uint256,bytes memory);
    function vote_for_gauge_weights(address,uint256) external;
}

interface IMinter{
    function mint(address) external;
}

interface IStaker{
    function deposit(address, address) external returns (bool);
    function withdraw(address) external returns (uint256);
    function withdraw(address, address, uint256) external returns (bool);
    function withdrawAll(address, address) external returns (bool);
    function createLock(uint256, uint256) external returns(bool);
    function increaseAmount(uint256) external returns(bool);
    function increaseTime(uint256) external returns(bool);
    function release() external returns(bool);
    function claimCrv(address) external returns (uint256);
    function claimRewards(address) external returns(bool);
    function claimFees(address) external returns (uint256);
    function setStashAccess(address, bool) external returns (bool);
    function vote(uint256,address,bool) external returns(bool);
    function voteGaugeWeight(address,uint256) external returns(bool);
    function balanceOfPool(address) external view returns (uint256);
    function operator() external view returns (address);
    function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory);
    function migrate(address to) external;
}

interface IRewards{
    function stake(address, uint256) external;
    function stakeFor(address, uint256) external;
    function withdraw(address, uint256) external;
    function exit(address) external;
    function getReward(address) external;
    function queueNewRewards(uint256) external;
    function notifyRewardAmount(uint256) external;
    function addExtraReward(address) external;
    function extraRewardsLength() external view returns (uint256);
    function stakingToken() external view returns (address);
    function rewardToken() external view returns(address);
    function earned(address account) external view returns (uint256);
}

interface IStash{
    function stashRewards() external returns (bool);
    function processStash() external returns (bool);
    function claimRewards() external returns (bool);
    function initialize(uint256 _pid, address _operator, address _staker, address _gauge, address _rewardFactory) external;
    function setExtraReward(address) external;
}

interface IFeeDistributor {
    function claim(address user) external returns (uint256);
    function token() external view returns (address);
    function toggle_allow_checkpoint_token() external;
    function admin() external view returns (address);
}

interface ITokenMinter{
    function mint(address,uint256) external;
    function burn(address,uint256) external;
}

interface IDeposit{
    function isShutdown() external view returns(bool);
    function balanceOf(address _account) external view returns(uint256);
    function totalSupply() external view returns(uint256);
    function poolInfo(uint256) external view returns(address,address,address,address,address,bool);
    function poolLength() external view returns(uint256);
    function withdrawTo(uint256,uint256,address) external;
    function claimRewards(uint256,address) external returns(bool);
    function setGaugeRedirect(uint256 _pid) external returns(bool);
    function owner() external returns(address);
    function poolManager() external returns(address);
    function deposit(uint256 _pid, uint256 _amount, bool _stake) external returns(bool);
    function crv() external returns (address);
    function cvxCrv() external returns (address);
    function lockRewards() external returns (address);
    function stakerRewards() external returns (address);
    function lockIncentive() external returns (uint256);
    function stakerIncentive() external returns (uint256);
    function earmarkIncentive() external returns (uint256);
}

interface ICrvDeposit{
    function deposit(uint256, bool) external;
    function lockIncentive() external view returns(uint256);
}

interface IRewardFactory{
    function setAccess(address,bool) external;
    function CreateCrvRewards(uint256,address,address) external returns(address);
    function CreateTokenRewards(address,address,address) external returns(address);
    function activeRewardCount(address) external view returns(uint256);
    function addActiveReward(address,uint256) external returns(bool);
    function removeActiveReward(address,uint256) external returns(bool);
}

interface IStashFactory{
    function CreateStash(uint256,address,address) external returns(address);
    function setImplementation(address) external;
}

interface ITokenFactory{
    function CreateDepositToken(address) external returns(address);
}

interface IPools{
    function addPool(address _lptoken, address _gauge) external returns(bool);
    function shutdownPool(uint256 _pid) external returns(bool);
    function poolInfo(uint256) external view returns(address,address,address,address,address,bool);
    function poolLength() external view returns (uint256);
    function gaugeMap(address) external view returns(bool);
    function setPoolManager(address _poolM) external;
    function shutdownSystem() external;
    function setUsedAddress(address[] memory) external;
}

interface IVestedEscrow{
    function fund(address[] calldata _recipient, uint256[] calldata _amount) external returns(bool);
}

interface IRewardDeposit {
    function addReward(address, uint256) external;
}

interface IBoosterFeeDistro {
    function queueNewRewards(uint256 _lockIncentive, uint256 _stakerIncentive, uint256 _callIncentive) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_crv","type":"address"},{"internalType":"address","name":"_escrow","type":"address"},{"internalType":"address","name":"_daoOperator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"},{"internalType":"address","name":"_stakeAddress","type":"address"}],"name":"deposit","outputs":[],"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":"bool","name":"_lock","type":"bool"},{"internalType":"address","name":"_stakeAddress","type":"address"}],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"},{"internalType":"address","name":"_stakeAddress","type":"address"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incentiveCrv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockCurve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_cooldown","type":"bool"}],"name":"setCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoOperator","type":"address"}],"name":"setDaoOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeManager","type":"address"}],"name":"setFeeManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockIncentive","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

610100604052600a600055600060035534801561001b57600080fd5b5060405161198f38038061198f833981810160405260a081101561003e57600080fd5b5080516020820151604083015160608085015160809586015185831b6001600160601b031990811660c05285841b811660e05284841b81169097529181901b90951660a05260018054336001600160a01b031991821617909155600280549091166001600160a01b03928316179055908116938116928116911661184061014f6000398061037b5280610474528061066b5280610724528061079052806107c752508061058f52806109ee5280610b7c5280610c205280610cbd5280610d875280610f3e5280610f96528061102e52806110e5525080610b4d5280610e3a52508061056c52806105ec52806108695280610a885280610cea5280610e705280610f1c5280610f6752506118406000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80635ebaf1db116100d8578063836f8f201161008c578063d0fb020311610066578063d0fb02031461035b578063d73792a914610363578063e2fdcc171461036b57610177565b8063836f8f20146103265780638c9bc2081461032e5780639a4083211461033657610177565b80636a4874a1116100bd5780636a4874a1146102ce578063787a08a6146102d657806380ed71e4146102f257610177565b80635ebaf1db146102a057806364354d65146102a857610177565b8063215537fd1161012f5780633d18678e116101145780633d18678e14610255578063472d35b914610272578063509406181461029857610177565b8063215537fd1461021f578063251c1aa31461024d57610177565b806316d624a51161016057806316d624a5146101ba5780631caf4b2f146101db5780631e97b6e9146101e357610177565b8063070b9a381461017c5780630754617214610196575b600080fd5b610184610373565b60408051918252519081900360200190f35b61019e610379565b604080516001600160a01b039092168252519081900360200190f35b6101d9600480360360208110156101d057600080fd5b5035151561039d565b005b6101d96103f7565b6101d9600480360360808110156101f957600080fd5b506001600160a01b038135811691602081013591604082013515159160600135166104db565b6101d96004803603604081101561023557600080fd5b508035151590602001356001600160a01b0316610865565b610184610912565b6101d96004803603602081101561026b57600080fd5b5035610918565b6101d96004803603602081101561028857600080fd5b50356001600160a01b0316610970565b6101846109e6565b61019e6109ec565b6101d9600480360360208110156102be57600080fd5b50356001600160a01b0316610a10565b61019e610a86565b6102de610aaa565b604080519115158252519081900360200190f35b6101d96004803603606081101561030857600080fd5b508035906020810135151590604001356001600160a01b0316610ab3565b6101d9610abf565b61019e610e04565b6101d96004803603604081101561034c57600080fd5b50803590602001351515610e13565b61019e610e23565b610184610e32565b61019e610e38565b60035481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002546001600160a01b031633146103e4576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b60055460ff161561043a576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b610442610e5c565b600354156104d957600354604080516340c10f1960e01b81523360048201526024810192909252516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916340c10f1991604480830192600092919082900301818387803b1580156104bb57600080fd5b505af11580156104cf573d6000803e3d6000fd5b5050600060035550505b565b60008311610516576040805162461bcd60e51b81526020600482015260036024820152620213e360ec1b604482015290519081900360640190fd5b60055460ff1615610559576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b81156105df576105b46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f000000000000000000000000000000000000000000000000000000000000000086611181565b6105bc610e5c565b600354156105da576003546105d29084906111db565b600060035592505b610658565b6106146001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333086611181565b60006106376127106106316000548761123e90919063ffffffff16565b90611297565b905061064384826112fe565b60035490945061065390826111db565b600355505b6001600160a01b0381161580156106fd577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f1986866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156106e057600080fd5b505af11580156106f4573d6000803e3d6000fd5b5050505061085e565b604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916340c10f1991604480830192600092919082900301818387803b15801561076b57600080fd5b505af115801561077f573d6000803e3d6000fd5b506107ba9250506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016905083600061135b565b6107ee6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016838661135b565b816001600160a01b0316632ee4090886866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561084557600080fd5b505af1158015610859573d6000803e3d6000fd5b505050505b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108d457600080fd5b505afa1580156108e8573d6000803e3d6000fd5b505050506040513d60208110156108fe57600080fd5b5051905061090d818484610ab3565b505050565b60045481565b6001546001600160a01b0316331461095f576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b601e811161096d5760008190555b50565b6001546001600160a01b031633146109b7576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60005481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002546001600160a01b03163314610a57576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055460ff1681565b61090d338484846104db565b60055460ff1615610b02576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b6001546001600160a01b03163314610b49576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a082317f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d6020811015610c0257600080fd5b505190508061096d57426301dfe20001600062093a808083040290507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166386d1a69f6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610c7957600080fd5b505af1158015610c8d573d6000803e3d6000fd5b505050506040513d6020811015610ca357600080fd5b5050604080516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015291516000927f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015610d3057600080fd5b505afa158015610d44573d6000803e3d6000fd5b505050506040513d6020811015610d5a57600080fd5b505160408051635a9602ff60e11b8152600481018390526024810186905290519192506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163b52c05fe916044808201926020929091908290030181600087803b158015610dd057600080fd5b505af1158015610de4573d6000803e3d6000fd5b505050506040513d6020811015610dfa57600080fd5b5050506004555050565b6002546001600160a01b031681565b610e1f82826000610ab3565b5050565b6001546001600160a01b031681565b61271081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055460ff1615610e6c576104d9565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d6020811015610f0557600080fd5b505190508015610f6357610f636001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008361146e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a082317f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610ff257600080fd5b505afa158015611006573d6000803e3d6000fd5b505050506040513d602081101561101c57600080fd5b505190508061102c5750506104d9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166315456eba826040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561109257600080fd5b505af11580156110a6573d6000803e3d6000fd5b505050506040513d60208110156110bc57600080fd5b50506004546301dfe20042019062093a808083048102916110de9083906112fe565b1061117b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633c9a2a1a836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561114957600080fd5b505af115801561115d573d6000803e3d6000fd5b505050506040513d602081101561117357600080fd5b505060048190555b50505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261117b9085906114bc565b600082820183811015611235576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261124d57506000611238565b8282028284828161125a57fe5b04146112355760405162461bcd60e51b81526004018080602001828103825260218152602001806117b36021913960400191505060405180910390fd5b60008082116112ed576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816112f657fe5b049392505050565b600082821115611355576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b8015806113e1575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156113b357600080fd5b505afa1580156113c7573d6000803e3d6000fd5b505050506040513d60208110156113dd57600080fd5b5051155b61141c5760405162461bcd60e51b81526004018080602001828103825260368152602001806117fe6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261090d9084906114bc565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261090d9084905b6060611511826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661156d9092919063ffffffff16565b80519091501561090d5780806020019051602081101561153057600080fd5b505161090d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806117d4602a913960400191505060405180910390fd5b606061157c8484600085611586565b90505b9392505050565b6060824710156115c75760405162461bcd60e51b815260040180806020018281038252602681526020018061178d6026913960400191505060405180910390fd5b6115d0856116e2565b611621576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116605780518252601f199092019160209182019101611641565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116c2576040519150601f19603f3d011682016040523d82523d6000602084013e6116c7565b606091505b50915091506116d78282866116e8565b979650505050505050565b3b151590565b606083156116f757508161157f565b8251156117075782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611751578181015183820152602001611739565b50505050905090810190601f16801561177e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c634300060c000a00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f27000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec790000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e000000000000000000000000c6de1f30415352941f7ce784a67b2df1552386a40000000000000000000000003f5ddd9c1fc865e3c584d4c0f3c0bef5b8d86560

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101775760003560e01c80635ebaf1db116100d8578063836f8f201161008c578063d0fb020311610066578063d0fb02031461035b578063d73792a914610363578063e2fdcc171461036b57610177565b8063836f8f20146103265780638c9bc2081461032e5780639a4083211461033657610177565b80636a4874a1116100bd5780636a4874a1146102ce578063787a08a6146102d657806380ed71e4146102f257610177565b80635ebaf1db146102a057806364354d65146102a857610177565b8063215537fd1161012f5780633d18678e116101145780633d18678e14610255578063472d35b914610272578063509406181461029857610177565b8063215537fd1461021f578063251c1aa31461024d57610177565b806316d624a51161016057806316d624a5146101ba5780631caf4b2f146101db5780631e97b6e9146101e357610177565b8063070b9a381461017c5780630754617214610196575b600080fd5b610184610373565b60408051918252519081900360200190f35b61019e610379565b604080516001600160a01b039092168252519081900360200190f35b6101d9600480360360208110156101d057600080fd5b5035151561039d565b005b6101d96103f7565b6101d9600480360360808110156101f957600080fd5b506001600160a01b038135811691602081013591604082013515159160600135166104db565b6101d96004803603604081101561023557600080fd5b508035151590602001356001600160a01b0316610865565b610184610912565b6101d96004803603602081101561026b57600080fd5b5035610918565b6101d96004803603602081101561028857600080fd5b50356001600160a01b0316610970565b6101846109e6565b61019e6109ec565b6101d9600480360360208110156102be57600080fd5b50356001600160a01b0316610a10565b61019e610a86565b6102de610aaa565b604080519115158252519081900360200190f35b6101d96004803603606081101561030857600080fd5b508035906020810135151590604001356001600160a01b0316610ab3565b6101d9610abf565b61019e610e04565b6101d96004803603604081101561034c57600080fd5b50803590602001351515610e13565b61019e610e23565b610184610e32565b61019e610e38565b60035481565b7f000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec79081565b6002546001600160a01b031633146103e4576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b60055460ff161561043a576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b610442610e5c565b600354156104d957600354604080516340c10f1960e01b81523360048201526024810192909252516001600160a01b037f000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec79016916340c10f1991604480830192600092919082900301818387803b1580156104bb57600080fd5b505af11580156104cf573d6000803e3d6000fd5b5050600060035550505b565b60008311610516576040805162461bcd60e51b81526020600482015260036024820152620213e360ec1b604482015290519081900360640190fd5b60055460ff1615610559576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b81156105df576105b46001600160a01b037f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e16337f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f2786611181565b6105bc610e5c565b600354156105da576003546105d29084906111db565b600060035592505b610658565b6106146001600160a01b037f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e16333086611181565b60006106376127106106316000548761123e90919063ffffffff16565b90611297565b905061064384826112fe565b60035490945061065390826111db565b600355505b6001600160a01b0381161580156106fd577f000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec7906001600160a01b03166340c10f1986866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156106e057600080fd5b505af11580156106f4573d6000803e3d6000fd5b5050505061085e565b604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b037f000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec79016916340c10f1991604480830192600092919082900301818387803b15801561076b57600080fd5b505af115801561077f573d6000803e3d6000fd5b506107ba9250506001600160a01b037f000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec79016905083600061135b565b6107ee6001600160a01b037f000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec79016838661135b565b816001600160a01b0316632ee4090886866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561084557600080fd5b505af1158015610859573d6000803e3d6000fd5b505050505b5050505050565b60007f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108d457600080fd5b505afa1580156108e8573d6000803e3d6000fd5b505050506040513d60208110156108fe57600080fd5b5051905061090d818484610ab3565b505050565b60045481565b6001546001600160a01b0316331461095f576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b601e811161096d5760008190555b50565b6001546001600160a01b031633146109b7576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60005481565b7f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f2781565b6002546001600160a01b03163314610a57576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b7f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e81565b60055460ff1681565b61090d338484846104db565b60055460ff1615610b02576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b6001546001600160a01b03163314610b49576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60007f000000000000000000000000c6de1f30415352941f7ce784a67b2df1552386a46001600160a01b03166370a082317f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f276040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d6020811015610c0257600080fd5b505190508061096d57426301dfe20001600062093a808083040290507f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f276001600160a01b03166386d1a69f6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610c7957600080fd5b505af1158015610c8d573d6000803e3d6000fd5b505050506040513d6020811015610ca357600080fd5b5050604080516370a0823160e01b81526001600160a01b037f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f278116600483015291516000927f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e16916370a08231916024808301926020929190829003018186803b158015610d3057600080fd5b505afa158015610d44573d6000803e3d6000fd5b505050506040513d6020811015610d5a57600080fd5b505160408051635a9602ff60e11b8152600481018390526024810186905290519192506001600160a01b037f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f27169163b52c05fe916044808201926020929091908290030181600087803b158015610dd057600080fd5b505af1158015610de4573d6000803e3d6000fd5b505050506040513d6020811015610dfa57600080fd5b5050506004555050565b6002546001600160a01b031681565b610e1f82826000610ab3565b5050565b6001546001600160a01b031681565b61271081565b7f000000000000000000000000c6de1f30415352941f7ce784a67b2df1552386a481565b60055460ff1615610e6c576104d9565b60007f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d6020811015610f0557600080fd5b505190508015610f6357610f636001600160a01b037f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e167f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f278361146e565b60007f000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e6001600160a01b03166370a082317f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f276040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610ff257600080fd5b505afa158015611006573d6000803e3d6000fd5b505050506040513d602081101561101c57600080fd5b505190508061102c5750506104d9565b7f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f276001600160a01b03166315456eba826040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561109257600080fd5b505af11580156110a6573d6000803e3d6000fd5b505050506040513d60208110156110bc57600080fd5b50506004546301dfe20042019062093a808083048102916110de9083906112fe565b1061117b577f00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f276001600160a01b0316633c9a2a1a836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561114957600080fd5b505af115801561115d573d6000803e3d6000fd5b505050506040513d602081101561117357600080fd5b505060048190555b50505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261117b9085906114bc565b600082820183811015611235576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261124d57506000611238565b8282028284828161125a57fe5b04146112355760405162461bcd60e51b81526004018080602001828103825260218152602001806117b36021913960400191505060405180910390fd5b60008082116112ed576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816112f657fe5b049392505050565b600082821115611355576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b8015806113e1575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156113b357600080fd5b505afa1580156113c7573d6000803e3d6000fd5b505050506040513d60208110156113dd57600080fd5b5051155b61141c5760405162461bcd60e51b81526004018080602001828103825260368152602001806117fe6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261090d9084906114bc565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261090d9084905b6060611511826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661156d9092919063ffffffff16565b80519091501561090d5780806020019051602081101561153057600080fd5b505161090d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806117d4602a913960400191505060405180910390fd5b606061157c8484600085611586565b90505b9392505050565b6060824710156115c75760405162461bcd60e51b815260040180806020018281038252602681526020018061178d6026913960400191505060405180910390fd5b6115d0856116e2565b611621576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116605780518252601f199092019160209182019101611641565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116c2576040519150601f19603f3d011682016040523d82523d6000602084013e6116c7565b606091505b50915091506116d78282866116e8565b979650505050505050565b3b151590565b606083156116f757508161157f565b8251156117075782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611751578181015183820152602001611739565b50505050905090810190601f16801561177e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c634300060c000a

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

00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f27000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec790000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e000000000000000000000000c6de1f30415352941f7ce784a67b2df1552386a40000000000000000000000003f5ddd9c1fc865e3c584d4c0f3c0bef5b8d86560

-----Decoded View---------------
Arg [0] : _staker (address): 0x70A8075C73A9Ff9616CB5aF6BB09c04844718F27
Arg [1] : _minter (address): 0x569FcbDa292f1a69AB14e401bAD13Cc0E1DEC790
Arg [2] : _crv (address): 0xE36072DD051Ce26261BF50CD966311cab62C596e
Arg [3] : _escrow (address): 0xc6de1f30415352941f7ce784A67B2Df1552386a4
Arg [4] : _daoOperator (address): 0x3f5ddd9C1fc865E3C584d4C0F3c0bEF5B8D86560

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000070a8075c73a9ff9616cb5af6bb09c04844718f27
Arg [1] : 000000000000000000000000569fcbda292f1a69ab14e401bad13cc0e1dec790
Arg [2] : 000000000000000000000000e36072dd051ce26261bf50cd966311cab62c596e
Arg [3] : 000000000000000000000000c6de1f30415352941f7ce784a67b2df1552386a4
Arg [4] : 0000000000000000000000003f5ddd9c1fc865e3c584d4c0f3c0bef5b8d86560


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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