More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Governance | 16182788 | 638 days ago | IN | 0 ETH | 0.00039404 | ||||
Create Lock | 16169658 | 640 days ago | IN | 0 ETH | 0.00941382 | ||||
Set Accumulator | 16169658 | 640 days ago | IN | 0 ETH | 0.00053114 | ||||
Set YFI Deposito... | 16169657 | 640 days ago | IN | 0 ETH | 0.00087486 | ||||
Approve Underlyi... | 16169657 | 640 days ago | IN | 0 ETH | 0.00104823 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16169657 | 640 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
YearnLocker
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IVeYFI } from "../interfaces/IVeYFI.sol"; import { IRewardPool } from "../interfaces/IRewardPool.sol"; /// @title Yearn Locker /// @author StakeDAO /// @notice Locks the YFI tokens to veYFI contract contract YearnLocker { using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ address public governance; address public yearnDepositor; address public accumulator; address public rewardPool; address public constant YFI = 0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e; address public VEYFI; /* ========== EVENTS ========== */ event LockCreated(address indexed user, uint256 value, uint256 duration); event TokenClaimed(address indexed user, uint256 value); event VotedOnGaugeWeight(address indexed _gauge, uint256 _weight); event Released(address indexed user, uint256 value); event GovernanceChanged(address indexed newGovernance); event YFIDepositorChanged(address indexed newYearnDepositor); event AccumulatorChanged(address indexed newAccumulator); event RewardPoolChanged(address indexed newRewardPool); /* ========== CONSTRUCTOR ========== */ constructor( address _governance, address _accumulator, address _veToken, address _rewardPool ) { governance = _governance; accumulator = _accumulator; VEYFI = _veToken; rewardPool = _rewardPool; } /* ========== MODIFIERS ========== */ modifier onlyGovernance() { require(msg.sender == governance, "!gov"); _; } modifier onlyGovernanceOrAcc() { require(msg.sender == governance || msg.sender == accumulator, "!(gov||acc)"); _; } modifier onlyGovernanceOrDepositor() { require(msg.sender == governance || msg.sender == yearnDepositor, "!(gov||YearnDepositor)"); _; } function approveUnderlying() external onlyGovernance { IERC20(YFI).approve(VEYFI, 0); IERC20(YFI).approve(VEYFI, type(uint256).max); } /* ========== MUTATIVE FUNCTIONS ========== */ /// @notice Creates a lock by locking YFI token in the VotingYFI contract for the specified time /// @dev Can only be called by governance or proxy /// @param _value The amount of token to be locked /// @param _unlockTime The duration for which the token is to be locked function createLock(uint256 _value, uint256 _unlockTime) external onlyGovernance { IVeYFI(VEYFI).modify_lock(_value, _unlockTime, address(this)); emit LockCreated(msg.sender, _value, _unlockTime); } /// @notice Increases the amount of YFI locked in veYFI /// @dev The YFI needs to be transferred to this contract before calling /// @param _value The amount by which the lock amount is to be increased function increaseAmount(uint256 _value) external onlyGovernanceOrDepositor { IVeYFI(VEYFI).modify_lock(_value, 0, address(this)); } /// @notice Increases the duration for which YFI is locked in VotingYFI for the user calling the function /// @param _unlockTime The duration in seconds for which the token is to be locked function increaseUnlockTime(uint256 _unlockTime) external onlyGovernanceOrDepositor { IVeYFI(VEYFI).modify_lock(0, _unlockTime, address(this)); } /// @notice Claim the token reward from the VotingYFI RewardPool passing the token as input parameter /// @param _recipient The address which will receive the claimed token reward function claimRewards(address _token, address _recipient) external onlyGovernanceOrAcc { uint256 claimed = IRewardPool(rewardPool).claim(address(this), false); emit TokenClaimed(_recipient, claimed); IERC20(_token).safeTransfer(_recipient, claimed); } /// @notice Withdraw the YFI from VotingYFI /// @dev call only after lock time expires /// @param _recipient The address which will receive the released YFI function release(address _recipient) external onlyGovernance { IVeYFI(VEYFI).withdraw(); uint256 balance = IERC20(YFI).balanceOf(address(this)); IERC20(YFI).safeTransfer(_recipient, balance); emit Released(_recipient, balance); } /// @notice Set new governance address /// @param _governance governance address function setGovernance(address _governance) external onlyGovernance { governance = _governance; emit GovernanceChanged(_governance); } /// @notice Set the YFI Depositor /// @param _yearnDepositor YFI deppositor address function setYFIDepositor(address _yearnDepositor) external onlyGovernance { yearnDepositor = _yearnDepositor; emit YFIDepositorChanged(_yearnDepositor); } /// @notice Set the Reward Pool /// @param _newRewardPool Reward Pool address function setRewardPool(address _newRewardPool) external onlyGovernance { rewardPool = _newRewardPool; emit RewardPoolChanged(_newRewardPool); } /// @notice Set the accumulator /// @param _accumulator accumulator address function setAccumulator(address _accumulator) external onlyGovernance { accumulator = _accumulator; emit AccumulatorChanged(_accumulator); } /// @notice execute a function /// @param to Address to sent the value to /// @param value Value to be sent /// @param data Call function data function execute( address to, uint256 value, bytes calldata data ) external onlyGovernance returns (bool, bytes memory) { (bool success, bytes memory result) = to.call{ value: value }(data); return (success, result); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; interface IRewardPool { function claim(address user, bool relock) external returns (uint256); function checkpoint_token() external; }
// SPDX-License-Identifier: MIT 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: MIT // OpenZeppelin Contracts (last updated v4.6.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 v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "remappings": [ "@0xsequence/=node_modules/@0xsequence/", "@chainlink/=node_modules/@chainlink/", "@ensdomains/=node_modules/@ensdomains/", "@openzeppelin/=node_modules/@openzeppelin/", "@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/", "ds-test/=lib/forge-std/lib/ds-test/src/", "eth-gas-reporter/=node_modules/eth-gas-reporter/", "forge-std/=lib/forge-std/src/", "hardhat-deploy/=node_modules/hardhat-deploy/", "hardhat/=node_modules/hardhat/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_accumulator","type":"address"},{"internalType":"address","name":"_veToken","type":"address"},{"internalType":"address","name":"_rewardPool","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAccumulator","type":"address"}],"name":"AccumulatorChanged","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"LockCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRewardPool","type":"address"}],"name":"RewardPoolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_gauge","type":"address"},{"indexed":false,"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"VotedOnGaugeWeight","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newYearnDepositor","type":"address"}],"name":"YFIDepositorChanged","type":"event"},{"inputs":[],"name":"VEYFI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YFI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accumulator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approveUnderlying","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increaseAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"increaseUnlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_accumulator","type":"address"}],"name":"setAccumulator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRewardPool","type":"address"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yearnDepositor","type":"address"}],"name":"setYFIDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yearnDepositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516200115538038062001155833981016040819052610031916100a0565b600080546001600160a01b039586166001600160a01b03199182161790915560028054948616948216949094179093556004805492851692841692909217909155600380549190931691161790556100f4565b80516001600160a01b038116811461009b57600080fd5b919050565b600080600080608085870312156100b657600080fd5b6100bf85610084565b93506100cd60208601610084565b92506100db60408601610084565b91506100e960608601610084565b905092959194509250565b61105180620001046000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80637c616fe6116100a2578063b61d27f611610071578063b61d27f614610208578063cecb13ac14610229578063d82d41ac1461023c578063f1e42ccd14610257578063f57d4bb31461026a57600080fd5b80637c616fe6146101bc5780637d2f791d146101cf578063ab033ea9146101e2578063b52c05fe146101f557600080fd5b806326d82e60116100de57806326d82e60146101705780635aa6e6751461018357806366666aa91461019657806378238c37146101a957600080fd5b80630338115414610110578063058780721461014057806315456eba1461014a578063191655871461015d575b600080fd5b600254610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61014861027d565b005b610148610158366004610ef3565b6103eb565b61014861016b366004610dfc565b6104c0565b61014861017e366004610dfc565b610632565b600054610123906001600160a01b031681565b600354610123906001600160a01b031681565b6101486101b7366004610dfc565b6106a6565b6101486101ca366004610ef3565b61071a565b600454610123906001600160a01b031681565b6101486101f0366004610dfc565b6107c1565b610148610203366004610f25565b610833565b61021b610216366004610e4a565b6108fe565b604051610137929190610f9f565b610148610237366004610dfc565b61099c565b610123730bc529c00c6401aef6d220be8c6ea1667f6ad93e81565b610148610265366004610e17565b610a10565b600154610123906001600160a01b031681565b6000546001600160a01b031633146102b05760405162461bcd60e51b81526004016102a790610fcd565b60405180910390fd5b6004805460405163095ea7b360e01b81526001600160a01b039091169181019190915260006024820152730bc529c00c6401aef6d220be8c6ea1667f6ad93e9063095ea7b390604401602060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034b9190610ed1565b506004805460405163095ea7b360e01b81526001600160a01b03909116918101919091526000196024820152730bc529c00c6401aef6d220be8c6ea1667f6ad93e9063095ea7b390604401602060405180830381600087803b1580156103b057600080fd5b505af11580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e89190610ed1565b50565b6000546001600160a01b031633148061040e57506001546001600160a01b031633145b6104535760405162461bcd60e51b81526020600482015260166024820152752128676f767c7c596561726e4465706f7369746f722960501b60448201526064016102a7565b600480546040516305155ee360e21b8152918201839052600060248301523060448301526001600160a01b0316906314557b8c906064015b600060405180830381600087803b1580156104a557600080fd5b505af11580156104b9573d6000803e3d6000fd5b5050505050565b6000546001600160a01b031633146104ea5760405162461bcd60e51b81526004016102a790610fcd565b6004805460408051633ccfd60b60e01b815290516001600160a01b0390921692633ccfd60b92828201926000929082900301818387803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b50506040516370a0823160e01b815230600482015260009250730bc529c00c6401aef6d220be8c6ea1667f6ad93e91506370a082319060240160206040518083038186803b15801561059257600080fd5b505afa1580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca9190610f0c565b90506105eb730bc529c00c6401aef6d220be8c6ea1667f6ad93e8383610b50565b816001600160a01b03167fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e8260405161062691815260200190565b60405180910390a25050565b6000546001600160a01b0316331461065c5760405162461bcd60e51b81526004016102a790610fcd565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f0ff1481e5d1f8e515034749e860a1419661a17dbc1e9aa32cb3d6e159994ae9c90600090a250565b6000546001600160a01b031633146106d05760405162461bcd60e51b81526004016102a790610fcd565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f0511fa541cd3b8159d80127fc65a5484ff7955390feac1cf1f10c14c93b7fe4990600090a250565b6000546001600160a01b031633148061073d57506001546001600160a01b031633145b6107825760405162461bcd60e51b81526020600482015260166024820152752128676f767c7c596561726e4465706f7369746f722960501b60448201526064016102a7565b600480546040516305155ee360e21b8152600092810192909252602482018390523060448301526001600160a01b0316906314557b8c9060640161048b565b6000546001600160a01b031633146107eb5760405162461bcd60e51b81526004016102a790610fcd565b600080546001600160a01b0319166001600160a01b038316908117825560405190917fa6a85f15b976d399f39ad43e515e75910bac714bc55eeff6131fb90780d6f74691a250565b6000546001600160a01b0316331461085d5760405162461bcd60e51b81526004016102a790610fcd565b600480546040516305155ee360e21b8152918201849052602482018390523060448301526001600160a01b0316906314557b8c90606401600060405180830381600087803b1580156108ae57600080fd5b505af11580156108c2573d6000803e3d6000fd5b505060408051858152602081018590523393507f167357c41e38a45e1950f61b1f5accf902c878d83f1685f7f72fb666203ce047925001610626565b600080546060906001600160a01b0316331461092c5760405162461bcd60e51b81526004016102a790610fcd565b600080876001600160a01b031687878760405161094a929190610f73565b60006040518083038185875af1925050503d8060008114610987576040519150601f19603f3d011682016040523d82523d6000602084013e61098c565b606091505b5090999098509650505050505050565b6000546001600160a01b031633146109c65760405162461bcd60e51b81526004016102a790610fcd565b600280546001600160a01b0319166001600160a01b0383169081179091556040517f76dc87d21cfee66d285c569296bc83491b75727ee3822c28eadbcdaf1b5d946f90600090a250565b6000546001600160a01b0316331480610a3357506002546001600160a01b031633145b610a6d5760405162461bcd60e51b815260206004820152600b60248201526a2128676f767c7c6163632960a81b60448201526064016102a7565b6003546040516392fd2daf60e01b8152306004820152600060248201819052916001600160a01b0316906392fd2daf90604401602060405180830381600087803b158015610aba57600080fd5b505af1158015610ace573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af29190610f0c565b9050816001600160a01b03167fe42df0d9493dfd0d7f69902c895b94c190a53e8c27876a86f45e7c997d9d8f7c82604051610b2f91815260200190565b60405180910390a2610b4b6001600160a01b0384168383610b50565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610b4b92869291600091610be0918516908490610c5d565b805190915015610b4b5780806020019051810190610bfe9190610ed1565b610b4b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a7565b6060610c6c8484600085610c76565b90505b9392505050565b606082471015610cd75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a7565b6001600160a01b0385163b610d2e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a7565b600080866001600160a01b03168587604051610d4a9190610f83565b60006040518083038185875af1925050503d8060008114610d87576040519150601f19603f3d011682016040523d82523d6000602084013e610d8c565b606091505b5091509150610d9c828286610da7565b979650505050505050565b60608315610db6575081610c6f565b825115610dc65782518084602001fd5b8160405162461bcd60e51b81526004016102a79190610fba565b80356001600160a01b0381168114610df757600080fd5b919050565b600060208284031215610e0e57600080fd5b610c6f82610de0565b60008060408385031215610e2a57600080fd5b610e3383610de0565b9150610e4160208401610de0565b90509250929050565b60008060008060608587031215610e6057600080fd5b610e6985610de0565b935060208501359250604085013567ffffffffffffffff80821115610e8d57600080fd5b818701915087601f830112610ea157600080fd5b813581811115610eb057600080fd5b886020828501011115610ec257600080fd5b95989497505060200194505050565b600060208284031215610ee357600080fd5b81518015158114610c6f57600080fd5b600060208284031215610f0557600080fd5b5035919050565b600060208284031215610f1e57600080fd5b5051919050565b60008060408385031215610f3857600080fd5b50508035926020909101359150565b60008151808452610f5f816020860160208601610feb565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251610f95818460208701610feb565b9190910192915050565b8215158152604060208201526000610c6c6040830184610f47565b602081526000610c6f6020830184610f47565b60208082526004908201526310b3b7bb60e11b604082015260600190565b60005b83811015611006578181015183820152602001610fee565b83811115611015576000848401525b5050505056fea2646970667358221220df1f9f01c5c1dfde754ddb4d6fde25f0290951722c5eb0cbd704ff2e409eeff664736f6c634300080700330000000000000000000000000de5199779b43e13b3bec21e91117e18736bc1a80000000000000000000000008b65438178cd4ef67b0177135de84fe7e3c30ec300000000000000000000000090c1f9220d90d3966fbee24045edd73e1d588ad5000000000000000000000000b287a1964aee422911c7b8409f5e5a273c1412fa
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80637c616fe6116100a2578063b61d27f611610071578063b61d27f614610208578063cecb13ac14610229578063d82d41ac1461023c578063f1e42ccd14610257578063f57d4bb31461026a57600080fd5b80637c616fe6146101bc5780637d2f791d146101cf578063ab033ea9146101e2578063b52c05fe146101f557600080fd5b806326d82e60116100de57806326d82e60146101705780635aa6e6751461018357806366666aa91461019657806378238c37146101a957600080fd5b80630338115414610110578063058780721461014057806315456eba1461014a578063191655871461015d575b600080fd5b600254610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61014861027d565b005b610148610158366004610ef3565b6103eb565b61014861016b366004610dfc565b6104c0565b61014861017e366004610dfc565b610632565b600054610123906001600160a01b031681565b600354610123906001600160a01b031681565b6101486101b7366004610dfc565b6106a6565b6101486101ca366004610ef3565b61071a565b600454610123906001600160a01b031681565b6101486101f0366004610dfc565b6107c1565b610148610203366004610f25565b610833565b61021b610216366004610e4a565b6108fe565b604051610137929190610f9f565b610148610237366004610dfc565b61099c565b610123730bc529c00c6401aef6d220be8c6ea1667f6ad93e81565b610148610265366004610e17565b610a10565b600154610123906001600160a01b031681565b6000546001600160a01b031633146102b05760405162461bcd60e51b81526004016102a790610fcd565b60405180910390fd5b6004805460405163095ea7b360e01b81526001600160a01b039091169181019190915260006024820152730bc529c00c6401aef6d220be8c6ea1667f6ad93e9063095ea7b390604401602060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034b9190610ed1565b506004805460405163095ea7b360e01b81526001600160a01b03909116918101919091526000196024820152730bc529c00c6401aef6d220be8c6ea1667f6ad93e9063095ea7b390604401602060405180830381600087803b1580156103b057600080fd5b505af11580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e89190610ed1565b50565b6000546001600160a01b031633148061040e57506001546001600160a01b031633145b6104535760405162461bcd60e51b81526020600482015260166024820152752128676f767c7c596561726e4465706f7369746f722960501b60448201526064016102a7565b600480546040516305155ee360e21b8152918201839052600060248301523060448301526001600160a01b0316906314557b8c906064015b600060405180830381600087803b1580156104a557600080fd5b505af11580156104b9573d6000803e3d6000fd5b5050505050565b6000546001600160a01b031633146104ea5760405162461bcd60e51b81526004016102a790610fcd565b6004805460408051633ccfd60b60e01b815290516001600160a01b0390921692633ccfd60b92828201926000929082900301818387803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b50506040516370a0823160e01b815230600482015260009250730bc529c00c6401aef6d220be8c6ea1667f6ad93e91506370a082319060240160206040518083038186803b15801561059257600080fd5b505afa1580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca9190610f0c565b90506105eb730bc529c00c6401aef6d220be8c6ea1667f6ad93e8383610b50565b816001600160a01b03167fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e8260405161062691815260200190565b60405180910390a25050565b6000546001600160a01b0316331461065c5760405162461bcd60e51b81526004016102a790610fcd565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f0ff1481e5d1f8e515034749e860a1419661a17dbc1e9aa32cb3d6e159994ae9c90600090a250565b6000546001600160a01b031633146106d05760405162461bcd60e51b81526004016102a790610fcd565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f0511fa541cd3b8159d80127fc65a5484ff7955390feac1cf1f10c14c93b7fe4990600090a250565b6000546001600160a01b031633148061073d57506001546001600160a01b031633145b6107825760405162461bcd60e51b81526020600482015260166024820152752128676f767c7c596561726e4465706f7369746f722960501b60448201526064016102a7565b600480546040516305155ee360e21b8152600092810192909252602482018390523060448301526001600160a01b0316906314557b8c9060640161048b565b6000546001600160a01b031633146107eb5760405162461bcd60e51b81526004016102a790610fcd565b600080546001600160a01b0319166001600160a01b038316908117825560405190917fa6a85f15b976d399f39ad43e515e75910bac714bc55eeff6131fb90780d6f74691a250565b6000546001600160a01b0316331461085d5760405162461bcd60e51b81526004016102a790610fcd565b600480546040516305155ee360e21b8152918201849052602482018390523060448301526001600160a01b0316906314557b8c90606401600060405180830381600087803b1580156108ae57600080fd5b505af11580156108c2573d6000803e3d6000fd5b505060408051858152602081018590523393507f167357c41e38a45e1950f61b1f5accf902c878d83f1685f7f72fb666203ce047925001610626565b600080546060906001600160a01b0316331461092c5760405162461bcd60e51b81526004016102a790610fcd565b600080876001600160a01b031687878760405161094a929190610f73565b60006040518083038185875af1925050503d8060008114610987576040519150601f19603f3d011682016040523d82523d6000602084013e61098c565b606091505b5090999098509650505050505050565b6000546001600160a01b031633146109c65760405162461bcd60e51b81526004016102a790610fcd565b600280546001600160a01b0319166001600160a01b0383169081179091556040517f76dc87d21cfee66d285c569296bc83491b75727ee3822c28eadbcdaf1b5d946f90600090a250565b6000546001600160a01b0316331480610a3357506002546001600160a01b031633145b610a6d5760405162461bcd60e51b815260206004820152600b60248201526a2128676f767c7c6163632960a81b60448201526064016102a7565b6003546040516392fd2daf60e01b8152306004820152600060248201819052916001600160a01b0316906392fd2daf90604401602060405180830381600087803b158015610aba57600080fd5b505af1158015610ace573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af29190610f0c565b9050816001600160a01b03167fe42df0d9493dfd0d7f69902c895b94c190a53e8c27876a86f45e7c997d9d8f7c82604051610b2f91815260200190565b60405180910390a2610b4b6001600160a01b0384168383610b50565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610b4b92869291600091610be0918516908490610c5d565b805190915015610b4b5780806020019051810190610bfe9190610ed1565b610b4b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a7565b6060610c6c8484600085610c76565b90505b9392505050565b606082471015610cd75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a7565b6001600160a01b0385163b610d2e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a7565b600080866001600160a01b03168587604051610d4a9190610f83565b60006040518083038185875af1925050503d8060008114610d87576040519150601f19603f3d011682016040523d82523d6000602084013e610d8c565b606091505b5091509150610d9c828286610da7565b979650505050505050565b60608315610db6575081610c6f565b825115610dc65782518084602001fd5b8160405162461bcd60e51b81526004016102a79190610fba565b80356001600160a01b0381168114610df757600080fd5b919050565b600060208284031215610e0e57600080fd5b610c6f82610de0565b60008060408385031215610e2a57600080fd5b610e3383610de0565b9150610e4160208401610de0565b90509250929050565b60008060008060608587031215610e6057600080fd5b610e6985610de0565b935060208501359250604085013567ffffffffffffffff80821115610e8d57600080fd5b818701915087601f830112610ea157600080fd5b813581811115610eb057600080fd5b886020828501011115610ec257600080fd5b95989497505060200194505050565b600060208284031215610ee357600080fd5b81518015158114610c6f57600080fd5b600060208284031215610f0557600080fd5b5035919050565b600060208284031215610f1e57600080fd5b5051919050565b60008060408385031215610f3857600080fd5b50508035926020909101359150565b60008151808452610f5f816020860160208601610feb565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251610f95818460208701610feb565b9190910192915050565b8215158152604060208201526000610c6c6040830184610f47565b602081526000610c6f6020830184610f47565b60208082526004908201526310b3b7bb60e11b604082015260600190565b60005b83811015611006578181015183820152602001610fee565b83811115611015576000848401525b5050505056fea2646970667358221220df1f9f01c5c1dfde754ddb4d6fde25f0290951722c5eb0cbd704ff2e409eeff664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000de5199779b43e13b3bec21e91117e18736bc1a80000000000000000000000008b65438178cd4ef67b0177135de84fe7e3c30ec300000000000000000000000090c1f9220d90d3966fbee24045edd73e1d588ad5000000000000000000000000b287a1964aee422911c7b8409f5e5a273c1412fa
-----Decoded View---------------
Arg [0] : _governance (address): 0x0dE5199779b43E13B3Bec21e91117E18736BC1A8
Arg [1] : _accumulator (address): 0x8b65438178CD4EF67b0177135dE84Fe7E3C30ec3
Arg [2] : _veToken (address): 0x90c1f9220d90d3966FbeE24045EDd73E1d588aD5
Arg [3] : _rewardPool (address): 0xb287a1964AEE422911c7b8409f5E5A273c1412fA
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000de5199779b43e13b3bec21e91117e18736bc1a8
Arg [1] : 0000000000000000000000008b65438178cd4ef67b0177135de84fe7e3c30ec3
Arg [2] : 00000000000000000000000090c1f9220d90d3966fbee24045edd73e1d588ad5
Arg [3] : 000000000000000000000000b287a1964aee422911c7b8409f5e5a273c1412fa
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $4,826.82 | 0.0001373 | $0.6627 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.