Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 20606666 | 26 days ago | IN | 0 ETH | 0.00036019 | ||||
Deposit | 20597889 | 27 days ago | IN | 0 ETH | 0.00037282 | ||||
Deposit | 20595840 | 27 days ago | IN | 0 ETH | 0.0005868 | ||||
Deposit | 20589721 | 28 days ago | IN | 0 ETH | 0.0003922 | ||||
Deposit | 20558305 | 32 days ago | IN | 0 ETH | 0.00081386 | ||||
Deposit | 20556411 | 33 days ago | IN | 0 ETH | 0.00072863 | ||||
Deposit | 20504832 | 40 days ago | IN | 0 ETH | 0.00067623 | ||||
Deposit | 20502792 | 40 days ago | IN | 0 ETH | 0.00064337 | ||||
Deposit | 20491112 | 42 days ago | IN | 0 ETH | 0.00349415 | ||||
Deposit | 20468332 | 45 days ago | IN | 0 ETH | 0.00152433 | ||||
Deposit | 20355265 | 61 days ago | IN | 0 ETH | 0.00103156 | ||||
Deposit | 20204410 | 82 days ago | IN | 0 ETH | 0.00122624 | ||||
Lock Token | 20145978 | 90 days ago | IN | 0 ETH | 0.00169354 | ||||
Deposit | 19897203 | 125 days ago | IN | 0 ETH | 0.00153434 | ||||
Deposit | 19894320 | 125 days ago | IN | 0 ETH | 0.00172506 | ||||
Deposit | 19883338 | 127 days ago | IN | 0 ETH | 0.00538214 | ||||
Transfer Governa... | 19882815 | 127 days ago | IN | 0 ETH | 0.00028568 | ||||
0x61010060 | 19882810 | 127 days ago | IN | 0 ETH | 0.01088334 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
YFIDepositorV2
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.19; import "src/base/interfaces/IVeYFI.sol"; import "src/base/extension/CurveExchangeDepositor.sol"; /// @title YFIDepositor /// @notice Contract that accepts tokens and locks them in the Locker, minting sdToken in return /// @author StakeDAO /// @custom:contact [email protected] contract YFIDepositorV2 is CurveExchangeDepositor { address public constant VE_YFI = 0x90c1f9220d90d3966FbeE24045EDd73E1d588aD5; constructor(address _token, address _locker, address _minter, address _gauge, address _pool) CurveExchangeDepositor(_token, _locker, _minter, _gauge, 4 * 370 days, _pool) {} /// Override the createLock function to prevent reverting. function createLock(uint256 _amount) external override {} /// @notice Locks the tokens held by the contract /// @dev The contract must have tokens to lock function _lockToken(uint256 _amount) internal override { // If there is Token available in the contract transfer it to the locker if (_amount != 0) { /// Increase the amount. ILocker(locker).increaseAmount(_amount); /// In the case of Yearn, we can lock up to 10 years. /// But we will lock for 4 years and couple months more to avoid decay. uint256 _unlockTime = block.timestamp + MAX_LOCK_DURATION; IVeYFI.LockedBalance memory _lockedBalance = IVeYFI(VE_YFI).locked(address(locker)); bool _canIncrease = (_unlockTime / 1 weeks * 1 weeks) > _lockedBalance.end; if (_canIncrease) { /// Increase the unlock time. ILocker(locker).increaseUnlockTime(_unlockTime); } emit TokenLocked(msg.sender, _amount); } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.7; interface IVeYFI { function modify_lock(uint256 amount, uint256 unlock_time, address user) external; struct LockedBalance { uint256 amount; uint256 end; } function balanceOf(address account) external view returns (uint256); function withdraw() external; function locked(address) external view returns (LockedBalance memory); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.19; import "src/base/interfaces/ICurvePool.sol"; import "src/base/depositor/DepositorV4.sol"; /// @title CurveExchange /// @notice Contract that accepts tokens and locks them in the Locker, minting sdToken in return /// @dev Adapted for veCRV like Locker. /// @author StakeDAO /// @custom:contact [email protected] abstract contract CurveExchangeDepositor is DepositorV4 { using SafeERC20 for IERC20; /// @notice Address of the sdToken pool. address public pool; /// @notice Event emitted when tokens are deposited. /// @param caller Address of the caller. /// @param user Address of the user. /// @param amount Amount of tokens deposited. /// @param stake Whether the sdToken is staked in the gauge. event Deposited(address indexed caller, address indexed user, uint256 amount, bool stake); /// Throwed when no enought minimum amount is met. error MIN_AMOUNT_NOT_MET(); constructor( address _token, address _locker, address _minter, address _gauge, uint256 _maxLockDuration, address _pool ) DepositorV4(_token, _locker, _minter, _gauge, _maxLockDuration) { pool = _pool; /// Approve sdToken to gauge. if (_pool != address(0)) { IERC20(_token).safeApprove(_pool, type(uint256).max); } } /// @notice Deposit using the sdToken pool. /// @param _amount Amount of tokens to deposit. /// @param _minAmount Minimum amount of tokens to receive. /// @param _stake Whether to stake the sdToken in the gauge. /// @param _user Address of the user. function deposit(uint256 _amount, uint256 _minAmount, bool _stake, address _user) public { if (_amount == 0) revert AMOUNT_ZERO(); if (_user == address(0)) revert ADDRESS_ZERO(); if (_minAmount < _amount) revert MIN_AMOUNT_NOT_MET(); /// Transfer tokens from the user to the contract. IERC20(token).safeTransferFrom(msg.sender, address(this), _amount); // Mint sdtoken to the user if the gauge is not set if (_stake && gauge != address(0)) { _amount = _swap(_amount, _minAmount, address(this)); /// Deposit sdToken into gauge for _user. ILiquidityGauge(gauge).deposit(_amount, _user); } else { _amount = _swap(_amount, _minAmount, _user); } emit Deposited(msg.sender, _user, _amount, _stake); } /// @notice Swap tokens using the sdToken pool. /// @param _amount Amount of tokens to swap. /// @param _minAmount Minimum amount of tokens to receive. /// @param _receiver Address of the receiver. function _swap(uint256 _amount, uint256 _minAmount, address _receiver) internal returns (uint256) { return ICurvePool(pool).exchange(0, 1, _amount, _minAmount, _receiver); } /// @notice Set the pool address. /// @param _pool Address of the sdToken pool function setPool(address _pool) external onlyGovernance { pool = _pool; /// Approve sdToken to gauge. if (_pool != address(0)) { IERC20(token).safeApprove(_pool, type(uint256).max); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface ICurvePool { function add_liquidity(uint256[2] calldata amounts, uint256 min_mint_amount) external returns (uint256); function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external returns (uint256); function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy, address _receiver) external returns (uint256); function get_dy(int128 i, int128 j, uint256 _dx) external view returns (uint256); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.19; import "src/base/interfaces/ILocker.sol"; import "src/base/interfaces/ISdToken.sol"; import "src/base/interfaces/ITokenMinter.sol"; import "src/base/interfaces/ILiquidityGauge.sol"; import "openzeppelin-contracts/token/ERC20/IERC20.sol"; import "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol"; /// @title Depositor /// @notice Contract that accepts tokens and locks them in the Locker, minting sdToken in return /// @dev Adapted for veCRV like Locker. /// @author StakeDAO /// @custom:contact [email protected] abstract contract DepositorV4 { using SafeERC20 for IERC20; /// @notice Denominator for fixed point math. uint256 public constant DENOMINATOR = 10_000; /// @notice Maximum lock duration. uint256 public immutable MAX_LOCK_DURATION; /// @notice Address of the token to be locked. address public immutable token; /// @notice Address of the locker contract. address public immutable locker; /// @notice Address of the sdToken minter contract. address public immutable minter; /// @notice Fee percent to users who spend gas to increase lock. uint256 public lockIncentivePercent = 10; /// @notice Incentive accrued in token to users who spend gas to increase lock. uint256 public incentiveToken; /// @notice Gauge to deposit sdToken into. address public gauge; /// @notice Address of the governance. address public governance; /// @notice Address of the future governance contract. address public futureGovernance; //////////////////////////////////////////////////////////////// /// --- EVENTS & ERRORS /////////////////////////////////////////////////////////////// /// @notice Event emitted when a lock is created. /// @param amount Amount of tokens locked. /// @param duration Duration of the lock. event CreateLock(uint256 amount, uint256 duration); /// @notice Event emitted when tokens are deposited. /// @param caller Address of the caller. /// @param user Address of the user. /// @param amount Amount of tokens deposited. /// @param lock Whether the tokens are locked. /// @param stake Whether the sdToken is staked in the gauge. event Deposited(address indexed caller, address indexed user, uint256 amount, bool lock, bool stake); /// @notice Event emitted when incentive tokens are received. /// @param caller Address of the caller. /// @param amount Amount of tokens received. event IncentiveReceived(address indexed caller, uint256 amount); /// @notice Event emitted when tokens are locked. /// @param user Address of the user. /// @param amount Amount of tokens locked. event TokenLocked(address indexed user, uint256 amount); /// @notice Event emitted when governance is changed. /// @param newGovernance Address of the new governance. event GovernanceChanged(address indexed newGovernance); /// @notice Event emitted when the sdToken Operator is changed. event SdTokenOperatorChanged(address indexed newSdToken); /// @notice Event emitted Incentive percent is changed. event FeesChanged(uint256 newFee); /// @notice Throws if caller is not the governance. error GOVERNANCE(); /// @notice Throws if the deposit amount is zero. error AMOUNT_ZERO(); /// @notice Throws if the address is zero. error ADDRESS_ZERO(); //////////////////////////////////////////////////////////////// /// --- MODIFIERS /////////////////////////////////////////////////////////////// modifier onlyGovernance() { if (msg.sender != governance) revert GOVERNANCE(); _; } constructor(address _token, address _locker, address _minter, address _gauge, uint256 _maxLockDuration) { governance = msg.sender; token = _token; gauge = _gauge; minter = _minter; locker = _locker; MAX_LOCK_DURATION = _maxLockDuration; /// Approve sdToken to gauge. if (gauge != address(0)) { IERC20(minter).safeApprove(gauge, type(uint256).max); } } //////////////////////////////////////////////////////////////// /// --- DEPOSIT & LOCK /////////////////////////////////////////////////////////////// /// @notice Initiate a lock in the Locker contract. /// @param _amount Amount of tokens to lock. function createLock(uint256 _amount) external virtual { /// Transfer tokens to this contract IERC20(token).safeTransferFrom(msg.sender, address(locker), _amount); /// Can be called only once. ILocker(locker).createLock(_amount, block.timestamp + MAX_LOCK_DURATION); /// Mint sdToken to msg.sender. ITokenMinter(minter).mint(msg.sender, _amount); emit CreateLock(_amount, block.timestamp + MAX_LOCK_DURATION); } /// @notice Deposit tokens, and receive sdToken or sdTokenGauge in return. /// @param _amount Amount of tokens to deposit. /// @param _lock Whether to lock the tokens in the locker contract. /// @param _stake Whether to stake the sdToken in the gauge. /// @param _user Address of the user to receive the sdToken. /// @dev If the lock is true, the tokens are directly sent to the locker and increase the lock amount as veToken. /// If the lock is false, the tokens are sent to this contract until someone locks them. A small percent of the deposit /// is used to incentivize users to lock the tokens. /// If the stake is true, the sdToken is staked in the gauge that distributes rewards. If the stake is false, the sdToken /// is sent to the user. function deposit(uint256 _amount, bool _lock, bool _stake, address _user) public { if (_amount == 0) revert AMOUNT_ZERO(); if (_user == address(0)) revert ADDRESS_ZERO(); /// If _lock is true, lock tokens in the locker contract. if (_lock) { /// Transfer tokens to this contract IERC20(token).safeTransferFrom(msg.sender, locker, _amount); /// Transfer the balance uint256 balance = IERC20(token).balanceOf(address(this)); if (balance != 0) { IERC20(token).safeTransfer(locker, balance); } /// Lock the amount sent + balance of the contract. _lockToken(balance + _amount); /// If an incentive is available, add it to the amount. if (incentiveToken != 0) { _amount += incentiveToken; emit IncentiveReceived(msg.sender, incentiveToken); incentiveToken = 0; } } else { /// Transfer tokens to the locker contract and lock them. IERC20(token).safeTransferFrom(msg.sender, address(this), _amount); /// Compute call incentive and add to incentiveToken uint256 callIncentive = (_amount * lockIncentivePercent) / DENOMINATOR; /// Subtract call incentive from _amount _amount -= callIncentive; /// Add call incentive to incentiveToken incentiveToken += callIncentive; } // Mint sdtoken to the user if the gauge is not set if (_stake && gauge != address(0)) { /// Mint sdToken to this contract. ITokenMinter(minter).mint(address(this), _amount); /// Deposit sdToken into gauge for _user. ILiquidityGauge(gauge).deposit(_amount, _user); } else { /// Mint sdToken to _user. ITokenMinter(minter).mint(_user, _amount); } emit Deposited(msg.sender, _user, _amount, _lock, _stake); } /// @notice Lock tokens held by the contract /// @dev The contract must have Token to lock function lockToken() external { uint256 tokenBalance = IERC20(token).balanceOf(address(this)); if (tokenBalance != 0) { /// Transfer tokens to the locker contract and lock them. IERC20(token).safeTransfer(locker, tokenBalance); _lockToken(tokenBalance); } /// If there is incentive available give it to the user calling lockToken. if (incentiveToken != 0) { /// Mint incentiveToken to msg.sender. ITokenMinter(minter).mint(msg.sender, incentiveToken); emit IncentiveReceived(msg.sender, incentiveToken); /// Reset incentiveToken. incentiveToken = 0; } } /// @notice Locks the tokens held by the contract /// @dev The contract must have tokens to lock function _lockToken(uint256 _amount) internal virtual { // If there is Token available in the contract transfer it to the locker if (_amount != 0) { /// Increase the lock. ILocker(locker).increaseLock(_amount, block.timestamp + MAX_LOCK_DURATION); emit TokenLocked(msg.sender, _amount); } } //////////////////////////////////////////////////////////////// /// --- GOVERNANCE PARAMETERS /////////////////////////////////////////////////////////////// /// @notice Transfer the governance to a new address. /// @param _governance Address of the new governance. function transferGovernance(address _governance) external onlyGovernance { futureGovernance = _governance; } /// @notice Accept the governance transfer. function acceptGovernance() external { if (msg.sender != futureGovernance) revert GOVERNANCE(); governance = msg.sender; emit GovernanceChanged(msg.sender); } /// @notice Set the new operator for minting sdToken /// @param _minter operator minter address function setSdTokenMinterOperator(address _minter) external onlyGovernance { ISdToken(minter).setOperator(_minter); emit SdTokenOperatorChanged(_minter); } /// @notice Set the gauge to deposit sdToken /// @param _gauge gauge address function setGauge(address _gauge) external onlyGovernance { gauge = _gauge; if (_gauge != address(0)) { /// Approve sdToken to gauge. IERC20(minter).safeApprove(gauge, type(uint256).max); } } /// @notice Set the percentage of the lock incentive /// @param _lockIncentive Percentage of the lock incentive function setFees(uint256 _lockIncentive) external onlyGovernance { if (_lockIncentive >= 0 && _lockIncentive <= 30) { emit FeesChanged(lockIncentivePercent = _lockIncentive); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface ILocker { function createLock(uint256, uint256) external; function claimAllRewards(address[] calldata _tokens, address _recipient) external; function increaseAmount(uint256) external; function increaseAmount(uint128) external; function increaseUnlockTime(uint256) external; function release() external; function claimRewards(address, address) external; function claimRewards(address, address, address) external; function claimFXSRewards(address) external; function claimFPISRewards(address) external; function execute(address, uint256, bytes calldata) external returns (bool, bytes memory); function setGovernance(address) external; function voteGaugeWeight(address, uint256) external; function setAngleDepositor(address) external; function setDepositor(address) external; function setFxsDepositor(address) external; function setYFIDepositor(address) external; function setYieldDistributor(address) external; function setGaugeController(address) external; function setAccumulator(address _accumulator) external; function governance() external view returns (address); function increaseLock(uint256 _value, uint256 _duration) external; function release(address _recipient) external; function setStrategy(address _strategy) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface ISdToken { function setOperator(address _operator) external; function balanceOf(address account) external view returns (uint256); function operator() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface ITokenMinter { function mint(address, uint256) external; function burn(address, uint256) external; }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; interface ILiquidityGauge { struct Reward { address token; address distributor; // solhint-disable-next-line uint256 period_finish; uint256 rate; // solhint-disable-next-line uint256 last_update; uint256 integral; } // solhint-disable-next-line function deposit_reward_token(address _rewardToken, uint256 _amount) external; // solhint-disable-next-line function claim_rewards_for(address _user, address _recipient) external; // solhint-disable-next-line function working_balances(address _address) external view returns (uint256); // solhint-disable-next-line function deposit(uint256 _value, address _addr) external; // solhint-disable-next-line function reward_tokens(uint256 _i) external view returns (address); // solhint-disable-next-line function reward_data(address _tokenReward) external view returns (Reward memory); function balanceOf(address) external returns (uint256); // solhint-disable-next-line function claimable_reward(address _user, address _reward_token) external view returns (uint256); // solhint-disable-next-line function claimable_tokens(address _user) external returns (uint256); // solhint-disable-next-line function user_checkpoint(address _user) external returns (bool); // solhint-disable-next-line function commit_transfer_ownership(address) external; // solhint-disable-next-line function claim_rewards() external; // solhint-disable-next-line function claim_rewards(address) external; // solhint-disable-next-line function claim_rewards(address, address) external; // solhint-disable-next-line function add_reward(address, address) external; // solhint-disable-next-line function set_claimer(address) external; function admin() external view returns (address); function future_admin() external view returns (address); // solhint-disable-next-line function set_reward_distributor(address _rewardToken, address _newDistrib) external; function initialize( // solhint-disable-next-line address staking_token, address admin, address sdt, // solhint-disable-next-line address voting_escrow, // solhint-disable-next-line address veBoost_proxy, address distributor ) external; function totalSupply() external returns (uint256); function withdraw(uint256 _value, bool _claimReward) external; // solhint-disable-next-line function accept_transfer_ownership() external; // solhint-disable-next-line function claimed_reward(address _addr, address _token) external view returns (uint256); // solhint-disable-next-line function set_rewards_receiver(address _receiver) external; }
// 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); }
// 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)); } }
// 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); }
// 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); } } }
{ "remappings": [ "utils/=lib/utils/", "solady/=lib/solady/", "forge-std/=lib/forge-std/src/", "address-book/=lib/address-book/src/", "@openzeppelin/=lib/openzeppelin-contracts/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "solidity-examples/=lib/solidity-examples/contracts/", "address-book/=lib/address-book/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "solady/=lib/solady/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_locker","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"address","name":"_pool","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ADDRESS_ZERO","type":"error"},{"inputs":[],"name":"AMOUNT_ZERO","type":"error"},{"inputs":[],"name":"GOVERNANCE","type":"error"},{"inputs":[],"name":"MIN_AMOUNT_NOT_MET","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"CreateLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"stake","type":"bool"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"lock","type":"bool"},{"indexed":false,"internalType":"bool","name":"stake","type":"bool"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"FeesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newGovernance","type":"address"}],"name":"GovernanceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncentiveReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newSdToken","type":"address"}],"name":"SdTokenOperatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenLocked","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LOCK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VE_YFI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"bool","name":"_stake","type":"bool"},{"internalType":"address","name":"_user","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"},{"internalType":"bool","name":"_stake","type":"bool"},{"internalType":"address","name":"_user","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"futureGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gauge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incentiveToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockIncentivePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockIncentive","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"setGauge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setSdTokenMinterOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610100604052600a6000553480156200001757600080fd5b5060405162001df238038062001df28339810160408190526200003a91620004f7565b600380546001600160a01b031990811633179091556001600160a01b0380871660a0526002805482861693168317905580851660e052851660c05263079f2c00608081905286918691869186919086908690869086908690869015620000bb5760025460e051620000bb916001600160a01b0391821691166000196200010f565b5050600580546001600160a01b0319166001600160a01b038616908117909155159250620000fe91505057620000fe6001600160a01b038716826000196200010f565b505050505050505050505062000625565b8015806200018d5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801562000165573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200018b919062000567565b155b620002055760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200025d9185916200026216565b505050565b6040805180820190915260208082527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490820152600090620002b1906001600160a01b03851690849062000336565b9050805160001480620002d5575080806020019051810190620002d5919062000581565b6200025d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620001fc565b60606200034784846000856200034f565b949350505050565b606082471015620003b25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620001fc565b600080866001600160a01b03168587604051620003d09190620005d2565b60006040518083038185875af1925050503d80600081146200040f576040519150601f19603f3d011682016040523d82523d6000602084013e62000414565b606091505b509092509050620004288783838762000433565b979650505050505050565b60608315620004a75782516000036200049f576001600160a01b0385163b6200049f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620001fc565b508162000347565b620003478383815115620004be5781518083602001fd5b8060405162461bcd60e51b8152600401620001fc9190620005f0565b80516001600160a01b0381168114620004f257600080fd5b919050565b600080600080600060a086880312156200051057600080fd5b6200051b86620004da565b94506200052b60208701620004da565b93506200053b60408701620004da565b92506200054b60608701620004da565b91506200055b60808701620004da565b90509295509295909350565b6000602082840312156200057a57600080fd5b5051919050565b6000602082840312156200059457600080fd5b81518015158114620005a557600080fd5b9392505050565b60005b83811015620005c9578181015183820152602001620005af565b50506000910152565b60008251620005e6818460208701620005ac565b9190910192915050565b602081526000825180602084015262000611816040850160208701620005ac565b601f01601f19169190910160400192915050565b60805160a05160c05160e051611707620006eb6000396000818161014c01528181610682015281816106f7015281816108a201528181610bfb0152610cf00152600081816102de0152818161084c015281816109c401528181610aab0152818161105c0152818161110501526111d301526000818161031601528181610419015281816105fa015281816107a20152818161082a015281816109a101528181610a0101528181610a890152610b570152600081816101e601526110c401526117076000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80636547e43f116100b8578063bca7a9e21161007c578063bca7a9e2146102ab578063d0f492f7146102b3578063d38bfff4146102c6578063d7b96d4e146102d9578063f7d9d0c414610300578063fc0c546a1461031157600080fd5b80636547e43f146102585780638070c50314610273578063918f867414610286578063a6f19c841461028f578063b7fa1ba7146102a257600080fd5b80634437152a1161010a5780634437152a146101ce5780634f1bfc9e146101e157806355a68ed3146102165780635aa6e67514610229578063601aff121461023c578063638126f81461024f57600080fd5b8063075461721461014757806316f0115b1461018b578063238efcbc1461019e5780632968f616146101a85780633d18678e146101bb575b600080fd5b61016e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b60055461016e906001600160a01b031681565b6101a6610338565b005b6101a66101b6366004611495565b6103a3565b6101a66101c93660046114dd565b610531565b6101a66101dc3660046114f6565b61059f565b6102087f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610182565b6101a66102243660046114f6565b610623565b60035461016e906001600160a01b031681565b6101a661024a3660046114f6565b6106ad565b61020860015481565b61016e7390c1f9220d90d3966fbee24045edd73e1d588ad581565b60045461016e906001600160a01b031681565b61020861271081565b60025461016e906001600160a01b031681565b61020860005481565b6101a661078a565b6101a66102c1366004611518565b610946565b6101a66102d43660046114f6565b610d9d565b61016e7f000000000000000000000000000000000000000000000000000000000000000081565b6101a661030e3660046114dd565b50565b61016e7f000000000000000000000000000000000000000000000000000000000000000081565b6004546001600160a01b03163314610363576040516305189e0d60e21b815260040160405180910390fd5b600380546001600160a01b031916339081179091556040517fa6a85f15b976d399f39ad43e515e75910bac714bc55eeff6131fb90780d6f74690600090a2565b836000036103c4576040516301f4d90760e41b815260040160405180910390fd5b6001600160a01b0381166103eb576040516366e7950960e01b815260040160405180910390fd5b8383101561040c576040516377b7ddb760e11b815260040160405180910390fd5b6104416001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333087610dea565b81801561045857506002546001600160a01b031615155b156104d557610468848430610e5b565b600254604051636e553f6560e01b8152600481018390526001600160a01b038481166024830152929650911690636e553f6590604401600060405180830381600087803b1580156104b857600080fd5b505af11580156104cc573d6000803e3d6000fd5b505050506104e3565b6104e0848483610e5b565b93505b6040805185815283151560208201526001600160a01b0383169133917fb32af138549e2a71563d1f2b1f7f0a139b3cdbc83d877d13603de1c3c5fd487a91015b60405180910390a350505050565b6003546001600160a01b0316331461055c576040516305189e0d60e21b815260040160405180910390fd5b601e811161030e5760008190556040518181527f3dda580d2b9d92da338ef46ec718e7b1dd0a2c505e3df4aa8d40360192a0f8229060200160405180910390a150565b6003546001600160a01b031633146105ca576040516305189e0d60e21b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091551561030e5761030e6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001682600019610ef1565b6003546001600160a01b0316331461064e576040516305189e0d60e21b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091551561030e5760025461030e906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019610ef1565b6003546001600160a01b031633146106d8576040516305189e0d60e21b815260040160405180910390fd5b60405163b3ab15fb60e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063b3ab15fb90602401600060405180830381600087803b15801561073b57600080fd5b505af115801561074f573d6000803e3d6000fd5b50506040516001600160a01b03841692507f860079172b8d313ffe6600be83301a99a5099e33a3f5cbe541d97e98074cbfe79150600090a250565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156107f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108159190611550565b9050801561087a576108716001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611010565b61087a81611040565b6001541561030e576001546040516340c10f1960e01b815233600482015260248101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156108ee57600080fd5b505af1158015610902573d6000803e3d6000fd5b50506001546040519081523392507f70220290ea80981efd0f0f7e6b1b5085605eb976822c8b8422e5bcc53e4c6d63915060200160405180910390a2600060015550565b83600003610967576040516301f4d90760e41b815260040160405180910390fd5b6001600160a01b03811661098e576040516366e7950960e01b815260040160405180910390fd5b8215610b4a576109e96001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f000000000000000000000000000000000000000000000000000000000000000087610dea565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610a50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a749190611550565b90508015610ad057610ad06001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611010565b610ae2610add868361157f565b611040565b60015415610b4457600154610af7908661157f565b9450336001600160a01b03167f70220290ea80981efd0f0f7e6b1b5085605eb976822c8b8422e5bcc53e4c6d63600154604051610b3691815260200190565b60405180910390a260006001555b50610bc3565b610b7f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333087610dea565b600061271060005486610b929190611598565b610b9c91906115af565b9050610ba881866115d1565b94508060016000828254610bbc919061157f565b9091555050505b818015610bda57506002546001600160a01b031615155b15610cca576040516340c10f1960e01b8152306004820152602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610c4757600080fd5b505af1158015610c5b573d6000803e3d6000fd5b5050600254604051636e553f6560e01b8152600481018890526001600160a01b0385811660248301529091169250636e553f659150604401600060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b50505050610d4d565b6040516340c10f1960e01b81526001600160a01b038281166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b158015610d3457600080fd5b505af1158015610d48573d6000803e3d6000fd5b505050505b604080518581528415156020820152831515918101919091526001600160a01b0382169033907f1652dc46c7c8f691f8e51f9897515fc24cbd8cafd7eb97f620fe1635399d8c7690606001610523565b6003546001600160a01b03163314610dc8576040516305189e0d60e21b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0380851660248301528316604482015260648101829052610e559085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611273565b50505050565b60055460405163ddc1f59d60e01b81526000600482018190526001602483015260448201869052606482018590526001600160a01b0384811660848401529092169063ddc1f59d9060a4016020604051808303816000875af1158015610ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee99190611550565b949350505050565b801580610f6b5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610f45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f699190611550565b155b610fdb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084015b60405180910390fd5b6040516001600160a01b03831660248201526044810182905261100b90849063095ea7b360e01b90606401610e1e565b505050565b6040516001600160a01b03831660248201526044810182905261100b90849063a9059cbb60e01b90606401610e1e565b801561030e57604051630aa2b75d60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906315456eba90602401600060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b5050505060007f0000000000000000000000000000000000000000000000000000000000000000426110ee919061157f565b60405163cbf9fe5f60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660048201529091506000907390c1f9220d90d3966fbee24045edd73e1d588ad59063cbf9fe5f906024016040805180830381865afa15801561116b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118f91906115e4565b90506000816020015162093a80846111a791906115af565b6111b49062093a80611598565b119050801561123857604051633e30b7f360e11b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637c616fe690602401600060405180830381600087803b15801561121f57600080fd5b505af1158015611233573d6000803e3d6000fd5b505050505b60405184815233907ff9626bca62c59d77fa45a204dc096874ee066a5c5e124aa9ce6c438dbdf7387a9060200160405180910390a250505050565b60006112c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113489092919063ffffffff16565b90508051600014806112e95750808060200190518101906112e99190611641565b61100b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610fd2565b6060610ee9848460008585600080866001600160a01b0316858760405161136f9190611682565b60006040518083038185875af1925050503d80600081146113ac576040519150601f19603f3d011682016040523d82523d6000602084013e6113b1565b606091505b50915091506113c2878383876113cd565b979650505050505050565b6060831561143c578251600003611435576001600160a01b0385163b6114355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610fd2565b5081610ee9565b610ee983838151156114515781518083602001fd5b8060405162461bcd60e51b8152600401610fd2919061169e565b801515811461030e57600080fd5b80356001600160a01b038116811461149057600080fd5b919050565b600080600080608085870312156114ab57600080fd5b843593506020850135925060408501356114c48161146b565b91506114d260608601611479565b905092959194509250565b6000602082840312156114ef57600080fd5b5035919050565b60006020828403121561150857600080fd5b61151182611479565b9392505050565b6000806000806080858703121561152e57600080fd5b8435935060208501356115408161146b565b925060408501356114c48161146b565b60006020828403121561156257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561159257611592611569565b92915050565b808202811582820484141761159257611592611569565b6000826115cc57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561159257611592611569565b6000604082840312156115f657600080fd5b6040516040810181811067ffffffffffffffff8211171561162757634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60006020828403121561165357600080fd5b81516115118161146b565b60005b83811015611679578181015183820152602001611661565b50506000910152565b6000825161169481846020870161165e565b9190910192915050565b60208152600082518060208401526116bd81604085016020870161165e565b601f01601f1916919091016040019291505056fea2646970667358221220f98588b8296a79376dfeab2307ed10c05dd6b70099061dbe2d10e42a5c2133b964736f6c634300081300330000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e9822000000000000000000000000097983236be88107cc8998733ef73d8d969c52e370000000000000000000000005adf559f5d24aacbe4fa3a3a4f44fdc7431e6b52000000000000000000000000852b90239c5034b5bb7a5e54ef1bef3ce3359cc8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80636547e43f116100b8578063bca7a9e21161007c578063bca7a9e2146102ab578063d0f492f7146102b3578063d38bfff4146102c6578063d7b96d4e146102d9578063f7d9d0c414610300578063fc0c546a1461031157600080fd5b80636547e43f146102585780638070c50314610273578063918f867414610286578063a6f19c841461028f578063b7fa1ba7146102a257600080fd5b80634437152a1161010a5780634437152a146101ce5780634f1bfc9e146101e157806355a68ed3146102165780635aa6e67514610229578063601aff121461023c578063638126f81461024f57600080fd5b8063075461721461014757806316f0115b1461018b578063238efcbc1461019e5780632968f616146101a85780633d18678e146101bb575b600080fd5b61016e7f00000000000000000000000097983236be88107cc8998733ef73d8d969c52e3781565b6040516001600160a01b0390911681526020015b60405180910390f35b60055461016e906001600160a01b031681565b6101a6610338565b005b6101a66101b6366004611495565b6103a3565b6101a66101c93660046114dd565b610531565b6101a66101dc3660046114f6565b61059f565b6102087f00000000000000000000000000000000000000000000000000000000079f2c0081565b604051908152602001610182565b6101a66102243660046114f6565b610623565b60035461016e906001600160a01b031681565b6101a661024a3660046114f6565b6106ad565b61020860015481565b61016e7390c1f9220d90d3966fbee24045edd73e1d588ad581565b60045461016e906001600160a01b031681565b61020861271081565b60025461016e906001600160a01b031681565b61020860005481565b6101a661078a565b6101a66102c1366004611518565b610946565b6101a66102d43660046114f6565b610d9d565b61016e7f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e9822081565b6101a661030e3660046114dd565b50565b61016e7f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e81565b6004546001600160a01b03163314610363576040516305189e0d60e21b815260040160405180910390fd5b600380546001600160a01b031916339081179091556040517fa6a85f15b976d399f39ad43e515e75910bac714bc55eeff6131fb90780d6f74690600090a2565b836000036103c4576040516301f4d90760e41b815260040160405180910390fd5b6001600160a01b0381166103eb576040516366e7950960e01b815260040160405180910390fd5b8383101561040c576040516377b7ddb760e11b815260040160405180910390fd5b6104416001600160a01b037f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e16333087610dea565b81801561045857506002546001600160a01b031615155b156104d557610468848430610e5b565b600254604051636e553f6560e01b8152600481018390526001600160a01b038481166024830152929650911690636e553f6590604401600060405180830381600087803b1580156104b857600080fd5b505af11580156104cc573d6000803e3d6000fd5b505050506104e3565b6104e0848483610e5b565b93505b6040805185815283151560208201526001600160a01b0383169133917fb32af138549e2a71563d1f2b1f7f0a139b3cdbc83d877d13603de1c3c5fd487a91015b60405180910390a350505050565b6003546001600160a01b0316331461055c576040516305189e0d60e21b815260040160405180910390fd5b601e811161030e5760008190556040518181527f3dda580d2b9d92da338ef46ec718e7b1dd0a2c505e3df4aa8d40360192a0f8229060200160405180910390a150565b6003546001600160a01b031633146105ca576040516305189e0d60e21b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091551561030e5761030e6001600160a01b037f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e1682600019610ef1565b6003546001600160a01b0316331461064e576040516305189e0d60e21b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091551561030e5760025461030e906001600160a01b037f00000000000000000000000097983236be88107cc8998733ef73d8d969c52e3781169116600019610ef1565b6003546001600160a01b031633146106d8576040516305189e0d60e21b815260040160405180910390fd5b60405163b3ab15fb60e01b81526001600160a01b0382811660048301527f00000000000000000000000097983236be88107cc8998733ef73d8d969c52e37169063b3ab15fb90602401600060405180830381600087803b15801561073b57600080fd5b505af115801561074f573d6000803e3d6000fd5b50506040516001600160a01b03841692507f860079172b8d313ffe6600be83301a99a5099e33a3f5cbe541d97e98074cbfe79150600090a250565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e6001600160a01b0316906370a0823190602401602060405180830381865afa1580156107f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108159190611550565b9050801561087a576108716001600160a01b037f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e167f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e9822083611010565b61087a81611040565b6001541561030e576001546040516340c10f1960e01b815233600482015260248101919091527f00000000000000000000000097983236be88107cc8998733ef73d8d969c52e376001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156108ee57600080fd5b505af1158015610902573d6000803e3d6000fd5b50506001546040519081523392507f70220290ea80981efd0f0f7e6b1b5085605eb976822c8b8422e5bcc53e4c6d63915060200160405180910390a2600060015550565b83600003610967576040516301f4d90760e41b815260040160405180910390fd5b6001600160a01b03811661098e576040516366e7950960e01b815260040160405180910390fd5b8215610b4a576109e96001600160a01b037f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e16337f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e9822087610dea565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e6001600160a01b0316906370a0823190602401602060405180830381865afa158015610a50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a749190611550565b90508015610ad057610ad06001600160a01b037f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e167f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e9822083611010565b610ae2610add868361157f565b611040565b60015415610b4457600154610af7908661157f565b9450336001600160a01b03167f70220290ea80981efd0f0f7e6b1b5085605eb976822c8b8422e5bcc53e4c6d63600154604051610b3691815260200190565b60405180910390a260006001555b50610bc3565b610b7f6001600160a01b037f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e16333087610dea565b600061271060005486610b929190611598565b610b9c91906115af565b9050610ba881866115d1565b94508060016000828254610bbc919061157f565b9091555050505b818015610bda57506002546001600160a01b031615155b15610cca576040516340c10f1960e01b8152306004820152602481018590527f00000000000000000000000097983236be88107cc8998733ef73d8d969c52e376001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610c4757600080fd5b505af1158015610c5b573d6000803e3d6000fd5b5050600254604051636e553f6560e01b8152600481018890526001600160a01b0385811660248301529091169250636e553f659150604401600060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b50505050610d4d565b6040516340c10f1960e01b81526001600160a01b038281166004830152602482018690527f00000000000000000000000097983236be88107cc8998733ef73d8d969c52e3716906340c10f1990604401600060405180830381600087803b158015610d3457600080fd5b505af1158015610d48573d6000803e3d6000fd5b505050505b604080518581528415156020820152831515918101919091526001600160a01b0382169033907f1652dc46c7c8f691f8e51f9897515fc24cbd8cafd7eb97f620fe1635399d8c7690606001610523565b6003546001600160a01b03163314610dc8576040516305189e0d60e21b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0380851660248301528316604482015260648101829052610e559085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611273565b50505050565b60055460405163ddc1f59d60e01b81526000600482018190526001602483015260448201869052606482018590526001600160a01b0384811660848401529092169063ddc1f59d9060a4016020604051808303816000875af1158015610ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee99190611550565b949350505050565b801580610f6b5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610f45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f699190611550565b155b610fdb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084015b60405180910390fd5b6040516001600160a01b03831660248201526044810182905261100b90849063095ea7b360e01b90606401610e1e565b505050565b6040516001600160a01b03831660248201526044810182905261100b90849063a9059cbb60e01b90606401610e1e565b801561030e57604051630aa2b75d60e11b8152600481018290527f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e982206001600160a01b0316906315456eba90602401600060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b5050505060007f00000000000000000000000000000000000000000000000000000000079f2c00426110ee919061157f565b60405163cbf9fe5f60e01b81526001600160a01b037f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e982201660048201529091506000907390c1f9220d90d3966fbee24045edd73e1d588ad59063cbf9fe5f906024016040805180830381865afa15801561116b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118f91906115e4565b90506000816020015162093a80846111a791906115af565b6111b49062093a80611598565b119050801561123857604051633e30b7f360e11b8152600481018490527f000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e982206001600160a01b031690637c616fe690602401600060405180830381600087803b15801561121f57600080fd5b505af1158015611233573d6000803e3d6000fd5b505050505b60405184815233907ff9626bca62c59d77fa45a204dc096874ee066a5c5e124aa9ce6c438dbdf7387a9060200160405180910390a250505050565b60006112c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113489092919063ffffffff16565b90508051600014806112e95750808060200190518101906112e99190611641565b61100b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610fd2565b6060610ee9848460008585600080866001600160a01b0316858760405161136f9190611682565b60006040518083038185875af1925050503d80600081146113ac576040519150601f19603f3d011682016040523d82523d6000602084013e6113b1565b606091505b50915091506113c2878383876113cd565b979650505050505050565b6060831561143c578251600003611435576001600160a01b0385163b6114355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610fd2565b5081610ee9565b610ee983838151156114515781518083602001fd5b8060405162461bcd60e51b8152600401610fd2919061169e565b801515811461030e57600080fd5b80356001600160a01b038116811461149057600080fd5b919050565b600080600080608085870312156114ab57600080fd5b843593506020850135925060408501356114c48161146b565b91506114d260608601611479565b905092959194509250565b6000602082840312156114ef57600080fd5b5035919050565b60006020828403121561150857600080fd5b61151182611479565b9392505050565b6000806000806080858703121561152e57600080fd5b8435935060208501356115408161146b565b925060408501356114c48161146b565b60006020828403121561156257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561159257611592611569565b92915050565b808202811582820484141761159257611592611569565b6000826115cc57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561159257611592611569565b6000604082840312156115f657600080fd5b6040516040810181811067ffffffffffffffff8211171561162757634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60006020828403121561165357600080fd5b81516115118161146b565b60005b83811015611679578181015183820152602001611661565b50506000910152565b6000825161169481846020870161165e565b9190910192915050565b60208152600082518060208401526116bd81604085016020870161165e565b601f01601f1916919091016040019291505056fea2646970667358221220f98588b8296a79376dfeab2307ed10c05dd6b70099061dbe2d10e42a5c2133b964736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e9822000000000000000000000000097983236be88107cc8998733ef73d8d969c52e370000000000000000000000005adf559f5d24aacbe4fa3a3a4f44fdc7431e6b52000000000000000000000000852b90239c5034b5bb7a5e54ef1bef3ce3359cc8
-----Decoded View---------------
Arg [0] : _token (address): 0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e
Arg [1] : _locker (address): 0xF750162fD81F9a436d74d737EF6eE8FC08e98220
Arg [2] : _minter (address): 0x97983236bE88107Cc8998733Ef73D8d969c52E37
Arg [3] : _gauge (address): 0x5AdF559f5D24aaCbE4FA3A3a4f44Fdc7431E6b52
Arg [4] : _pool (address): 0x852b90239C5034b5bb7a5e54eF1bEF3Ce3359CC8
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e
Arg [1] : 000000000000000000000000f750162fd81f9a436d74d737ef6ee8fc08e98220
Arg [2] : 00000000000000000000000097983236be88107cc8998733ef73d8d969c52e37
Arg [3] : 0000000000000000000000005adf559f5d24aacbe4fa3a3a4f44fdc7431e6b52
Arg [4] : 000000000000000000000000852b90239c5034b5bb7a5e54ef1bef3ce3359cc8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $5,023.22 | 0.0246 | $123.4 |
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.