More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 10,249 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Yield | 299622833 | 86 days ago | IN | 0 ETH | 0.00000152 | ||||
Get Yield | 297943889 | 91 days ago | IN | 0 ETH | 0.00000268 | ||||
Get Yield | 292725206 | 106 days ago | IN | 0 ETH | 0.00000454 | ||||
Get Yield | 283411075 | 133 days ago | IN | 0 ETH | 0.00000584 | ||||
Get Yield | 282000891 | 137 days ago | IN | 0 ETH | 0.00000425 | ||||
Get Yield | 281850790 | 138 days ago | IN | 0 ETH | 0.0000029 | ||||
Get Yield | 281641841 | 138 days ago | IN | 0 ETH | 0.0000097 | ||||
Get Yield | 276190690 | 154 days ago | IN | 0 ETH | 0.00000261 | ||||
Get Yield | 273890349 | 161 days ago | IN | 0 ETH | 0.00000586 | ||||
Get Yield | 273146825 | 163 days ago | IN | 0 ETH | 0.00000921 | ||||
Get Yield | 266472134 | 182 days ago | IN | 0 ETH | 0.00000198 | ||||
Get Yield | 257222039 | 209 days ago | IN | 0 ETH | 0.00000226 | ||||
Get Yield | 252866728 | 222 days ago | IN | 0 ETH | 0.00000154 | ||||
Get Yield | 250682582 | 228 days ago | IN | 0 ETH | 0.0000017 | ||||
Get Yield | 233558613 | 278 days ago | IN | 0 ETH | 0.00000255 | ||||
Get Yield | 223298245 | 308 days ago | IN | 0 ETH | 0.00000173 | ||||
Get Yield | 222181911 | 311 days ago | IN | 0 ETH | 0.00000171 | ||||
Get Yield | 219243722 | 320 days ago | IN | 0 ETH | 0.00000165 | ||||
Get Yield | 217340279 | 325 days ago | IN | 0 ETH | 0.00000207 | ||||
Get Yield | 217325207 | 325 days ago | IN | 0 ETH | 0.00000194 | ||||
Get Yield | 215131195 | 332 days ago | IN | 0 ETH | 0.0000016 | ||||
Get Yield | 214647147 | 333 days ago | IN | 0 ETH | 0.00000167 | ||||
Get Yield | 213595830 | 336 days ago | IN | 0 ETH | 0.00000415 | ||||
Get Yield | 213592024 | 336 days ago | IN | 0 ETH | 0.00000191 | ||||
Get Yield | 213528256 | 336 days ago | IN | 0 ETH | 0.00000194 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72083552 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082380 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082224 | 764 days ago | 0 ETH | ||||
72082104 | 764 days ago | 0 ETH |
Loading...
Loading
Contract Name:
veDPXYieldDistributor
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // Contracts import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // Libraries import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { Math } from "@openzeppelin/contracts/utils/math/Math.sol"; // Interfaces import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IveDPX } from "./IveDPX.sol"; /// @title Distributes rewards based on the claimer's veDPX balance /// @notice Contract forked and modified from - https://etherscan.io/address/0xc6764e58b36e26b08Fd1d2AeD4538c02171fA872#code contract veDPXYieldDistributor is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ // Instances IveDPX public veDPX; IERC20 public emittedToken; // Constant for price precision uint256 public constant PRICE_PRECISION = 1e6; // Yield and period related uint256 public periodFinish; uint256 public lastUpdateTime; uint256 public yieldRate; uint256 public yieldDuration = 604800; // 7 * 86400 (7 days) mapping(address => bool) public reward_notifiers; // Yield tracking uint256 public yieldPerVeDPXStored = 0; mapping(address => uint256) public userYieldPerTokenPaid; mapping(address => uint256) public yields; // veDPX tracking uint256 public totalVeDPXParticipating = 0; uint256 public totalVeDPXSupplyStored = 0; mapping(address => bool) public userIsInitialized; mapping(address => uint256) public userVeDPXCheckpointed; mapping(address => uint256) public userVeDPXEndpointCheckpointed; mapping(address => uint256) private lastRewardClaimTime; // staker addr -> timestamp // Greylists mapping(address => bool) public greylist; // Admin booleans for emergencies bool public yieldCollectionPaused = false; // For emergencies struct LockedBalance { int128 amount; uint256 end; } /* ========== MODIFIERS ========== */ modifier notYieldCollectionPaused() { require(yieldCollectionPaused == false, "Yield collection is paused"); _; } modifier checkpointUser(address account) { _checkpointUser(account); _; } /* ========== CONSTRUCTOR ========== */ constructor(address _emittedToken, address _veDPX_address) { emittedToken = IERC20(_emittedToken); veDPX = IveDPX(_veDPX_address); lastUpdateTime = block.timestamp; reward_notifiers[msg.sender] = true; } /* ========== VIEWS ========== */ function fractionParticipating() external view returns (uint256) { return totalVeDPXParticipating.mul(PRICE_PRECISION).div(totalVeDPXSupplyStored); } // Only positions with locked veDPX can accrue yield. Otherwise, expired-locked veDPX // is de-facto rewards for DPX. function eligibleCurrentVeDPX(address account) public view returns (uint256 eligible_vedpx_bal, uint256 stored_ending_timestamp) { uint256 curr_vedpx_bal = veDPX.balanceOf(account); // Stored is used to prevent abuse stored_ending_timestamp = userVeDPXEndpointCheckpointed[account]; // Only unexpired veDPX should be eligible if ( stored_ending_timestamp != 0 && (block.timestamp >= stored_ending_timestamp) ) { eligible_vedpx_bal = 0; } else if (block.timestamp >= stored_ending_timestamp) { eligible_vedpx_bal = 0; } else { eligible_vedpx_bal = curr_vedpx_bal; } } function lastTimeYieldApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function yieldPerVeDPX() public view returns (uint256) { if (totalVeDPXSupplyStored == 0) { return yieldPerVeDPXStored; } else { return ( yieldPerVeDPXStored.add( lastTimeYieldApplicable() .sub(lastUpdateTime) .mul(yieldRate) .mul(1e18) .div(totalVeDPXSupplyStored) ) ); } } function earned(address account) public view returns (uint256) { // Uninitialized users should not earn anything yet if (!userIsInitialized[account]) return 0; // Get eligible veDPX balances ( uint256 eligible_current_vedpx, uint256 ending_timestamp ) = eligibleCurrentVeDPX(account); // If your veDPX is unlocked uint256 eligible_time_fraction = PRICE_PRECISION; if (eligible_current_vedpx == 0) { // And you already claimed after expiration if (lastRewardClaimTime[account] >= ending_timestamp) { // You get NOTHING. You LOSE. Good DAY ser! return 0; } // You haven't claimed yet else { uint256 eligible_time = (ending_timestamp).sub( lastRewardClaimTime[account] ); uint256 total_time = (block.timestamp).sub( lastRewardClaimTime[account] ); eligible_time_fraction = PRICE_PRECISION.mul(eligible_time).div( total_time ); } } // If the amount of veDPX increased, only pay off based on the old balance // Otherwise, take the midpoint uint256 vedpx_balance_to_use; { uint256 old_vedpx_balance = userVeDPXCheckpointed[account]; if (eligible_current_vedpx > old_vedpx_balance) { vedpx_balance_to_use = old_vedpx_balance; } else { vedpx_balance_to_use = ((eligible_current_vedpx).add(old_vedpx_balance)) .div(2); } } return ( vedpx_balance_to_use .mul(yieldPerVeDPX().sub(userYieldPerTokenPaid[account])) .mul(eligible_time_fraction) .div(1e18 * PRICE_PRECISION) .add(yields[account]) ); } function getYieldForDuration() external view returns (uint256) { return (yieldRate.mul(yieldDuration)); } /* ========== MUTATIVE FUNCTIONS ========== */ function _checkpointUser(address account) internal { // Need to retro-adjust some things if the period hasn't been renewed, then start a new one sync(); // Calculate the earnings first _syncEarned(account); // Get the old and the new veDPX balances uint256 old_vedpx_balance = userVeDPXCheckpointed[account]; uint256 new_vedpx_balance = veDPX.balanceOf(account); // Update the user's stored veDPX balance userVeDPXCheckpointed[account] = new_vedpx_balance; // Update the user's stored ending timestamp IveDPX.LockedBalance memory curr_locked_bal_pack = veDPX.locked(account); userVeDPXEndpointCheckpointed[account] = curr_locked_bal_pack.end; // Update the total amount participating if (new_vedpx_balance >= old_vedpx_balance) { uint256 weight_diff = new_vedpx_balance.sub(old_vedpx_balance); totalVeDPXParticipating = totalVeDPXParticipating.add(weight_diff); } else { uint256 weight_diff = old_vedpx_balance.sub(new_vedpx_balance); totalVeDPXParticipating = totalVeDPXParticipating.sub(weight_diff); } // Mark the user as initialized if (!userIsInitialized[account]) { userIsInitialized[account] = true; lastRewardClaimTime[account] = block.timestamp; } } function _syncEarned(address account) internal { if (account != address(0)) { uint256 earned0 = earned(account); yields[account] = earned0; userYieldPerTokenPaid[account] = yieldPerVeDPXStored; } } // Anyone can checkpoint another user function checkpointOtherUser(address user_addr) external { _checkpointUser(user_addr); } // Checkpoints the user function checkpoint() external { _checkpointUser(msg.sender); } function getYield() external nonReentrant notYieldCollectionPaused checkpointUser(msg.sender) returns (uint256 yield0) { require(greylist[msg.sender] == false, "Address has been greylisted"); yield0 = yields[msg.sender]; if (yield0 > 0) { yields[msg.sender] = 0; emittedToken.safeTransfer(msg.sender, yield0); emit YieldCollected(msg.sender, yield0); } lastRewardClaimTime[msg.sender] = block.timestamp; } function sync() public { // Update the total veDPX supply yieldPerVeDPXStored = yieldPerVeDPX(); totalVeDPXSupplyStored = veDPX.totalSupply(); lastUpdateTime = lastTimeYieldApplicable(); } function notifyRewardAmount(uint256 amount) external { // Only whitelisted addresses can notify rewards require(reward_notifiers[msg.sender], "Sender not whitelisted"); // Handle the transfer of emission tokens via `transferFrom` to reduce the number // of transactions required and ensure correctness of the emission amount emittedToken.safeTransferFrom(msg.sender, address(this), amount); // Update some values beforehand sync(); // Update the new yieldRate if (block.timestamp >= periodFinish) { yieldRate = amount.div(yieldDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(yieldRate); yieldRate = amount.add(leftover).div(yieldDuration); } // Update duration-related info lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(yieldDuration); emit RewardAdded(amount, yieldRate); } /* ========== RESTRICTED FUNCTIONS ========== */ // Added to support recovering LP Yield and other mistaken tokens from other systems to be distributed to holders function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { // Only the owner address can ever receive the recovery withdrawal IERC20(tokenAddress).safeTransfer(owner(), tokenAmount); emit RecoveredERC20(tokenAddress, tokenAmount); } function setYieldDuration(uint256 _yieldDuration) external onlyOwner { require( periodFinish == 0 || block.timestamp > periodFinish, "Previous yield period must be complete before changing the duration for the new period" ); yieldDuration = _yieldDuration; emit YieldDurationUpdated(yieldDuration); } function greylistAddress(address _address) external onlyOwner { greylist[_address] = !(greylist[_address]); } function toggleRewardNotifier(address notifier_addr) external onlyOwner { reward_notifiers[notifier_addr] = !reward_notifiers[notifier_addr]; } function setPauses(bool _yieldCollectionPaused) external onlyOwner { yieldCollectionPaused = _yieldCollectionPaused; } function setYieldRate(uint256 _new_rate0, bool sync_too) external onlyOwner { yieldRate = _new_rate0; if (sync_too) { sync(); } } /* ========== EVENTS ========== */ event RewardAdded(uint256 reward, uint256 yieldRate); event YieldCollected(address indexed user, uint256 yield); event YieldDurationUpdated(uint256 newDuration); event RecoveredERC20(address token, uint256 amount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IveDPX { struct LockedBalance { int128 amount; uint256 end; } function commit_transfer_ownership(address addr) external; function apply_transfer_ownership() external; function commit_smart_wallet_checker(address addr) external; function apply_smart_wallet_checker() external; function toggleEmergencyUnlock() external; function recoverERC20(address token_addr, uint256 amount) external; function get_last_user_slope(address addr) external view returns (int128); function user_point_history__ts(address _addr, uint256 _idx) external view returns (uint256); function locked__end(address _addr) external view returns (uint256); function checkpoint() external; function deposit_for(address _addr, uint256 _value) external; function create_lock(uint256 _value, uint256 _unlock_time) external; function increase_amount(uint256 _value) external; function increase_unlock_time(uint256 _unlock_time) external; function withdraw() external; function balanceOf(address addr) external view returns (uint256); function balanceOf(address addr, uint256 _t) external view returns (uint256); function balanceOfAt(address addr, uint256 _block) external view returns (uint256); function totalSupply() external view returns (uint256); function totalSupply(uint256 t) external view returns (uint256); function totalSupplyAt(uint256 _block) external view returns (uint256); function totalFXSSupply() external view returns (uint256); function totalFXSSupplyAt(uint256 _block) external view returns (uint256); function changeController(address _newController) external; function token() external view returns (address); function supply() external view returns (uint256); function locked(address addr) external view returns (LockedBalance memory); function epoch() external view returns (uint256); function point_history(uint256 arg0) external view returns ( int128 bias, int128 slope, uint256 ts, uint256 blk, uint256 fxs_amt ); function user_point_history(address arg0, uint256 arg1) external view returns ( int128 bias, int128 slope, uint256 ts, uint256 blk, uint256 fxs_amt ); function user_point_epoch(address arg0) external view returns (uint256); function slope_changes(uint256 arg0) external view returns (int128); function controller() external view returns (address); function transfersEnabled() external view returns (bool); function emergencyUnlockActive() external view returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function version() external view returns (string memory); function decimals() external view returns (uint256); function future_smart_wallet_checker() external view returns (address); function smart_wallet_checker() external view returns (address); function admin() external view returns (address); function future_admin() external view returns (address); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_emittedToken","type":"address"},{"internalType":"address","name":"_veDPX_address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoveredERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"yieldRate","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"yield","type":"uint256"}],"name":"YieldCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"YieldDurationUpdated","type":"event"},{"inputs":[],"name":"PRICE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user_addr","type":"address"}],"name":"checkpointOtherUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"eligibleCurrentVeDPX","outputs":[{"internalType":"uint256","name":"eligible_vedpx_bal","type":"uint256"},{"internalType":"uint256","name":"stored_ending_timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emittedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fractionParticipating","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getYield","outputs":[{"internalType":"uint256","name":"yield0","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getYieldForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"greylist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"greylistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeYieldApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reward_notifiers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_yieldCollectionPaused","type":"bool"}],"name":"setPauses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_yieldDuration","type":"uint256"}],"name":"setYieldDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_rate0","type":"uint256"},{"internalType":"bool","name":"sync_too","type":"bool"}],"name":"setYieldRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"notifier_addr","type":"address"}],"name":"toggleRewardNotifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalVeDPXParticipating","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVeDPXSupplyStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userIsInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userVeDPXCheckpointed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userVeDPXEndpointCheckpointed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userYieldPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veDPX","outputs":[{"internalType":"contract IveDPX","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldCollectionPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldPerVeDPX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldPerVeDPXStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"yields","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405262093a8060075560006009819055600c819055600d556013805460ff191690553480156200003157600080fd5b506040516200195038038062001950833981016040819052620000549162000125565b6200005f33620000b8565b6001808055600380546001600160a01b039485166001600160a01b031991821617909155600280549390941692169190911790915542600555336000908152600860205260409020805460ff191690911790556200015d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200012057600080fd5b919050565b600080604083850312156200013957600080fd5b620001448362000108565b9150620001546020840162000108565b90509250929050565b6117e3806200016d6000396000f3fe608060405234801561001057600080fd5b50600436106102315760003560e01c80638da5cb5b11610130578063ad1148cb116100b8578063ebe2b12b1161007c578063ebe2b12b146104c3578063f1f105d3146104cc578063f2fde38b146104ec578063fc939bb1146104ff578063fff6cae91461050757600080fd5b8063ad1148cb14610489578063c2c4c5c114610496578063c8f33c911461049e578063e172cf21146104a7578063e9218ff6146104b057600080fd5b806395082d25116100ff57806395082d25146104205780639f8a835a1461042a578063a4bc8dd51461043d578063a875f47214610460578063abcf4abb1461048057600080fd5b80638da5cb5b146103d657806391519bda146103e7578063941d9f65146103fa578063948e25a21461040d57600080fd5b806342c92f6e116101be578063715018a611610182578063715018a61461037557806374ea0b981461037d5780637c2628711461039057806388e9f85e146103985780638980f11f146103c357600080fd5b806342c92f6e1461031157806350fe98ac1461032457806356d9fff3146103445780635c151f1d1461034c5780636999ac931461036c57600080fd5b80632b19009f116102055780632b19009f146102a057806331ca208c146102a85780633397b1ce146102cb5780633c6b16ab146102d457806340022665146102e957600080fd5b80628cc2621461023657806314b305371461025c578063193f9bd91461028f57806319aec6d214610298575b600080fd5b61024961024436600461151b565b61050f565b6040519081526020015b60405180910390f35b61027f61026a36600461151b565b600e6020526000908152604090205460ff1681565b6040519015158152602001610253565b610249600c5481565b6102496106a8565b6102496106c6565b61027f6102b636600461151b565b60126020526000908152604090205460ff1681565b610249600d5481565b6102e76102e2366004611536565b61070c565b005b6102fc6102f736600461151b565b610842565b60408051928352602083019190915201610253565b6102e761031f36600461151b565b61091a565b61024961033236600461151b565b600b6020526000908152604090205481565b61024961096d565b61024961035a36600461151b565b60106020526000908152604090205481565b61024960065481565b6102e761097b565b6102e761038b366004611536565b6109b1565b610249610ab1565b6002546103ab906001600160a01b031681565b6040516001600160a01b039091168152602001610253565b6102e76103d136600461154f565b610c59565b6000546001600160a01b03166103ab565b6102e76103f5366004611587565b610cef565b6102e761040836600461151b565b610d30565b6102e761041b3660046115b7565b610d83565b610249620f424081565b6102e761043836600461151b565b610dc0565b61027f61044b36600461151b565b60086020526000908152604090205460ff1681565b61024961046e36600461151b565b600a6020526000908152604090205481565b61024960095481565b60135461027f9060ff1681565b6102e7610dcc565b61024960055481565b61024960075481565b6003546103ab906001600160a01b031681565b61024960045481565b6102496104da36600461151b565b600f6020526000908152604090205481565b6102e76104fa36600461151b565b610dd5565b610249610e6d565b6102e7610e8d565b6001600160a01b0381166000908152600e602052604081205460ff1661053757506000919050565b60008061054384610842565b9092509050620f4240826105e5576001600160a01b038516600090815260116020526040902054821161057b57506000949350505050565b6001600160a01b03851660009081526011602052604081205461059f908490610f25565b6001600160a01b038716600090815260116020526040812054919250906105c7904290610f25565b90506105e0816105da620f424085610f38565b90610f44565b925050505b6001600160a01b0385166000908152600f60205260408120548085111561060e57809150610620565b61061d60026105da8784610f50565b91505b506001600160a01b0386166000908152600b602052604090205461069e90610698610656620f4240670de0b6b3a76400006115ea565b6001600160a01b038a166000908152600a60205260409020546105da9087906106929061068b906106856106c6565b90610f25565b8890610f38565b90610f38565b90610f50565b9695505050505050565b60006106c1600754600654610f3890919063ffffffff16565b905090565b6000600d54600014156106da575060095490565b6106c1610703600d546105da670de0b6b3a764000061069260065461069260055461068561096d565b60095490610f50565b3360009081526008602052604090205460ff166107695760405162461bcd60e51b815260206004820152601660248201527514d95b99195c881b9bdd081dda1a5d195b1a5cdd195960521b60448201526064015b60405180910390fd5b600354610781906001600160a01b0316333084610f5c565b610789610e8d565b60045442106107a8576007546107a0908290610f44565b6006556107eb565b6004546000906107b89042610f25565b905060006107d160065483610f3890919063ffffffff16565b6007549091506107e5906105da8584610f50565b60065550505b4260058190556007546107fe9190610f50565b6004556006546040805183815260208101929092527f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f5591015b60405180910390a150565b6002546040516370a0823160e01b81526001600160a01b03838116600483015260009283928392909116906370a082319060240160206040518083038186803b15801561088e57600080fd5b505afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190611609565b6001600160a01b0385166000908152601060205260409020549250905081158015906108f25750814210155b156109005760009250610914565b8142106109105760009250610914565b8092505b50915091565b6000546001600160a01b031633146109445760405162461bcd60e51b815260040161076090611622565b6001600160a01b03166000908152600860205260409020805460ff19811660ff90911615179055565b60006106c142600454610fcd565b6000546001600160a01b031633146109a55760405162461bcd60e51b815260040161076090611622565b6109af6000610fe3565b565b6000546001600160a01b031633146109db5760405162461bcd60e51b815260040161076090611622565b60045415806109eb575060045442115b610a7c5760405162461bcd60e51b815260206004820152605660248201527f50726576696f7573207969656c6420706572696f64206d75737420626520636f60448201527f6d706c657465206265666f7265206368616e67696e67207468652064757261746064820152751a5bdb88199bdc881d1a19481b995dc81c195c9a5bd960521b608482015260a401610760565b60078190556040518181527fce653f06b9044b00e7d9d01b9b4228e84812092cb6a38371889bef19370d21f790602001610837565b600060026001541415610b065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610760565b600260015560135460ff1615610b5e5760405162461bcd60e51b815260206004820152601a60248201527f5969656c6420636f6c6c656374696f6e206973207061757365640000000000006044820152606401610760565b33610b6881611033565b3360009081526012602052604090205460ff1615610bc85760405162461bcd60e51b815260206004820152601b60248201527f4164647265737320686173206265656e20677265796c697374656400000000006044820152606401610760565b336000908152600b602052604090205491508115610c3f57336000818152600b6020526040812055600354610c09916001600160a01b03909116908461122e565b60405182815233907fe542fd70a6e48b1017b003a83582b8b431ba620b546e8febe1d6c063d04d0ad69060200160405180910390a25b503360009081526011602052604090204290556001805590565b6000546001600160a01b03163314610c835760405162461bcd60e51b815260040161076090611622565b610ca9610c986000546001600160a01b031690565b6001600160a01b038416908361122e565b604080516001600160a01b0384168152602081018390527f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b1910160405180910390a15050565b6000546001600160a01b03163314610d195760405162461bcd60e51b815260040161076090611622565b60068290558015610d2c57610d2c610e8d565b5050565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b815260040161076090611622565b6001600160a01b03166000908152601260205260409020805460ff19811660ff90911615179055565b6000546001600160a01b03163314610dad5760405162461bcd60e51b815260040161076090611622565b6013805460ff1916911515919091179055565b610dc981611033565b50565b6109af33611033565b6000546001600160a01b03163314610dff5760405162461bcd60e51b815260040161076090611622565b6001600160a01b038116610e645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610760565b610dc981610fe3565b60006106c1600d546105da620f4240600c54610f3890919063ffffffff16565b610e956106c6565b600955600254604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b158015610edd57600080fd5b505afa158015610ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f159190611609565b600d55610f2061096d565b600555565b6000610f318284611657565b9392505050565b6000610f3182846115ea565b6000610f31828461166e565b6000610f318284611690565b6040516001600160a01b0380851660248301528316604482015260648101829052610fc79085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611263565b50505050565b6000818310610fdc5781610f31565b5090919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61103b610e8d565b61104481611335565b6001600160a01b038181166000818152600f60205260408082205460025491516370a0823160e01b815260048101949094529391929116906370a082319060240160206040518083038186803b15801561109d57600080fd5b505afa1580156110b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d59190611609565b6001600160a01b038481166000818152600f6020526040808220859055600254905163cbf9fe5f60e01b81526004810193909352939450929091169063cbf9fe5f90602401604080518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116991906116a8565b6020808201516001600160a01b0387166000908152601090925260409091205590508282106111b757600061119e8385610f25565b600c549091506111ae9082610f50565b600c55506111d8565b60006111c38484610f25565b600c549091506111d39082610f25565b600c55505b6001600160a01b0384166000908152600e602052604090205460ff16610fc7576001600160a01b0384166000908152600e60209081526040808320805460ff191660011790556011909152902042905550505050565b6040516001600160a01b03831660248201526044810182905261125e90849063a9059cbb60e01b90606401610f90565b505050565b60006112b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661137e9092919063ffffffff16565b80519091501561125e57808060200190518101906112d69190611715565b61125e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610760565b6001600160a01b03811615610dc957600061134f8261050f565b6001600160a01b0383166000908152600b6020908152604080832093909355600954600a909152919020555050565b606061138d8484600085611395565b949350505050565b6060824710156113f65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610760565b6001600160a01b0385163b61144d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610760565b600080866001600160a01b03168587604051611469919061175e565b60006040518083038185875af1925050503d80600081146114a6576040519150601f19603f3d011682016040523d82523d6000602084013e6114ab565b606091505b50915091506114bb8282866114c6565b979650505050505050565b606083156114d5575081610f31565b8251156114e55782518084602001fd5b8160405162461bcd60e51b8152600401610760919061177a565b80356001600160a01b038116811461151657600080fd5b919050565b60006020828403121561152d57600080fd5b610f31826114ff565b60006020828403121561154857600080fd5b5035919050565b6000806040838503121561156257600080fd5b61156b836114ff565b946020939093013593505050565b8015158114610dc957600080fd5b6000806040838503121561159a57600080fd5b8235915060208301356115ac81611579565b809150509250929050565b6000602082840312156115c957600080fd5b8135610f3181611579565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611604576116046115d4565b500290565b60006020828403121561161b57600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015611669576116696115d4565b500390565b60008261168b57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156116a3576116a36115d4565b500190565b6000604082840312156116ba57600080fd5b6040516040810181811067ffffffffffffffff821117156116eb57634e487b7160e01b600052604160045260246000fd5b6040528251600f81900b811461170057600080fd5b81526020928301519281019290925250919050565b60006020828403121561172757600080fd5b8151610f3181611579565b60005b8381101561174d578181015183820152602001611735565b83811115610fc75750506000910152565b60008251611770818460208701611732565b9190910192915050565b6020815260008251806020840152611799816040850160208701611732565b601f01601f1916919091016040019291505056fea2646970667358221220fb1fe963a5129bd6c4cc48078cdd217f3819da07f04f55b818d306de6ca278d564736f6c634300080900330000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee5500000000000000000000000080789d252a288e93b01d82373d767d71a75d9f16
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102315760003560e01c80638da5cb5b11610130578063ad1148cb116100b8578063ebe2b12b1161007c578063ebe2b12b146104c3578063f1f105d3146104cc578063f2fde38b146104ec578063fc939bb1146104ff578063fff6cae91461050757600080fd5b8063ad1148cb14610489578063c2c4c5c114610496578063c8f33c911461049e578063e172cf21146104a7578063e9218ff6146104b057600080fd5b806395082d25116100ff57806395082d25146104205780639f8a835a1461042a578063a4bc8dd51461043d578063a875f47214610460578063abcf4abb1461048057600080fd5b80638da5cb5b146103d657806391519bda146103e7578063941d9f65146103fa578063948e25a21461040d57600080fd5b806342c92f6e116101be578063715018a611610182578063715018a61461037557806374ea0b981461037d5780637c2628711461039057806388e9f85e146103985780638980f11f146103c357600080fd5b806342c92f6e1461031157806350fe98ac1461032457806356d9fff3146103445780635c151f1d1461034c5780636999ac931461036c57600080fd5b80632b19009f116102055780632b19009f146102a057806331ca208c146102a85780633397b1ce146102cb5780633c6b16ab146102d457806340022665146102e957600080fd5b80628cc2621461023657806314b305371461025c578063193f9bd91461028f57806319aec6d214610298575b600080fd5b61024961024436600461151b565b61050f565b6040519081526020015b60405180910390f35b61027f61026a36600461151b565b600e6020526000908152604090205460ff1681565b6040519015158152602001610253565b610249600c5481565b6102496106a8565b6102496106c6565b61027f6102b636600461151b565b60126020526000908152604090205460ff1681565b610249600d5481565b6102e76102e2366004611536565b61070c565b005b6102fc6102f736600461151b565b610842565b60408051928352602083019190915201610253565b6102e761031f36600461151b565b61091a565b61024961033236600461151b565b600b6020526000908152604090205481565b61024961096d565b61024961035a36600461151b565b60106020526000908152604090205481565b61024960065481565b6102e761097b565b6102e761038b366004611536565b6109b1565b610249610ab1565b6002546103ab906001600160a01b031681565b6040516001600160a01b039091168152602001610253565b6102e76103d136600461154f565b610c59565b6000546001600160a01b03166103ab565b6102e76103f5366004611587565b610cef565b6102e761040836600461151b565b610d30565b6102e761041b3660046115b7565b610d83565b610249620f424081565b6102e761043836600461151b565b610dc0565b61027f61044b36600461151b565b60086020526000908152604090205460ff1681565b61024961046e36600461151b565b600a6020526000908152604090205481565b61024960095481565b60135461027f9060ff1681565b6102e7610dcc565b61024960055481565b61024960075481565b6003546103ab906001600160a01b031681565b61024960045481565b6102496104da36600461151b565b600f6020526000908152604090205481565b6102e76104fa36600461151b565b610dd5565b610249610e6d565b6102e7610e8d565b6001600160a01b0381166000908152600e602052604081205460ff1661053757506000919050565b60008061054384610842565b9092509050620f4240826105e5576001600160a01b038516600090815260116020526040902054821161057b57506000949350505050565b6001600160a01b03851660009081526011602052604081205461059f908490610f25565b6001600160a01b038716600090815260116020526040812054919250906105c7904290610f25565b90506105e0816105da620f424085610f38565b90610f44565b925050505b6001600160a01b0385166000908152600f60205260408120548085111561060e57809150610620565b61061d60026105da8784610f50565b91505b506001600160a01b0386166000908152600b602052604090205461069e90610698610656620f4240670de0b6b3a76400006115ea565b6001600160a01b038a166000908152600a60205260409020546105da9087906106929061068b906106856106c6565b90610f25565b8890610f38565b90610f38565b90610f50565b9695505050505050565b60006106c1600754600654610f3890919063ffffffff16565b905090565b6000600d54600014156106da575060095490565b6106c1610703600d546105da670de0b6b3a764000061069260065461069260055461068561096d565b60095490610f50565b3360009081526008602052604090205460ff166107695760405162461bcd60e51b815260206004820152601660248201527514d95b99195c881b9bdd081dda1a5d195b1a5cdd195960521b60448201526064015b60405180910390fd5b600354610781906001600160a01b0316333084610f5c565b610789610e8d565b60045442106107a8576007546107a0908290610f44565b6006556107eb565b6004546000906107b89042610f25565b905060006107d160065483610f3890919063ffffffff16565b6007549091506107e5906105da8584610f50565b60065550505b4260058190556007546107fe9190610f50565b6004556006546040805183815260208101929092527f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f5591015b60405180910390a150565b6002546040516370a0823160e01b81526001600160a01b03838116600483015260009283928392909116906370a082319060240160206040518083038186803b15801561088e57600080fd5b505afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190611609565b6001600160a01b0385166000908152601060205260409020549250905081158015906108f25750814210155b156109005760009250610914565b8142106109105760009250610914565b8092505b50915091565b6000546001600160a01b031633146109445760405162461bcd60e51b815260040161076090611622565b6001600160a01b03166000908152600860205260409020805460ff19811660ff90911615179055565b60006106c142600454610fcd565b6000546001600160a01b031633146109a55760405162461bcd60e51b815260040161076090611622565b6109af6000610fe3565b565b6000546001600160a01b031633146109db5760405162461bcd60e51b815260040161076090611622565b60045415806109eb575060045442115b610a7c5760405162461bcd60e51b815260206004820152605660248201527f50726576696f7573207969656c6420706572696f64206d75737420626520636f60448201527f6d706c657465206265666f7265206368616e67696e67207468652064757261746064820152751a5bdb88199bdc881d1a19481b995dc81c195c9a5bd960521b608482015260a401610760565b60078190556040518181527fce653f06b9044b00e7d9d01b9b4228e84812092cb6a38371889bef19370d21f790602001610837565b600060026001541415610b065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610760565b600260015560135460ff1615610b5e5760405162461bcd60e51b815260206004820152601a60248201527f5969656c6420636f6c6c656374696f6e206973207061757365640000000000006044820152606401610760565b33610b6881611033565b3360009081526012602052604090205460ff1615610bc85760405162461bcd60e51b815260206004820152601b60248201527f4164647265737320686173206265656e20677265796c697374656400000000006044820152606401610760565b336000908152600b602052604090205491508115610c3f57336000818152600b6020526040812055600354610c09916001600160a01b03909116908461122e565b60405182815233907fe542fd70a6e48b1017b003a83582b8b431ba620b546e8febe1d6c063d04d0ad69060200160405180910390a25b503360009081526011602052604090204290556001805590565b6000546001600160a01b03163314610c835760405162461bcd60e51b815260040161076090611622565b610ca9610c986000546001600160a01b031690565b6001600160a01b038416908361122e565b604080516001600160a01b0384168152602081018390527f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b1910160405180910390a15050565b6000546001600160a01b03163314610d195760405162461bcd60e51b815260040161076090611622565b60068290558015610d2c57610d2c610e8d565b5050565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b815260040161076090611622565b6001600160a01b03166000908152601260205260409020805460ff19811660ff90911615179055565b6000546001600160a01b03163314610dad5760405162461bcd60e51b815260040161076090611622565b6013805460ff1916911515919091179055565b610dc981611033565b50565b6109af33611033565b6000546001600160a01b03163314610dff5760405162461bcd60e51b815260040161076090611622565b6001600160a01b038116610e645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610760565b610dc981610fe3565b60006106c1600d546105da620f4240600c54610f3890919063ffffffff16565b610e956106c6565b600955600254604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b158015610edd57600080fd5b505afa158015610ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f159190611609565b600d55610f2061096d565b600555565b6000610f318284611657565b9392505050565b6000610f3182846115ea565b6000610f31828461166e565b6000610f318284611690565b6040516001600160a01b0380851660248301528316604482015260648101829052610fc79085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611263565b50505050565b6000818310610fdc5781610f31565b5090919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61103b610e8d565b61104481611335565b6001600160a01b038181166000818152600f60205260408082205460025491516370a0823160e01b815260048101949094529391929116906370a082319060240160206040518083038186803b15801561109d57600080fd5b505afa1580156110b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d59190611609565b6001600160a01b038481166000818152600f6020526040808220859055600254905163cbf9fe5f60e01b81526004810193909352939450929091169063cbf9fe5f90602401604080518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116991906116a8565b6020808201516001600160a01b0387166000908152601090925260409091205590508282106111b757600061119e8385610f25565b600c549091506111ae9082610f50565b600c55506111d8565b60006111c38484610f25565b600c549091506111d39082610f25565b600c55505b6001600160a01b0384166000908152600e602052604090205460ff16610fc7576001600160a01b0384166000908152600e60209081526040808320805460ff191660011790556011909152902042905550505050565b6040516001600160a01b03831660248201526044810182905261125e90849063a9059cbb60e01b90606401610f90565b505050565b60006112b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661137e9092919063ffffffff16565b80519091501561125e57808060200190518101906112d69190611715565b61125e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610760565b6001600160a01b03811615610dc957600061134f8261050f565b6001600160a01b0383166000908152600b6020908152604080832093909355600954600a909152919020555050565b606061138d8484600085611395565b949350505050565b6060824710156113f65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610760565b6001600160a01b0385163b61144d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610760565b600080866001600160a01b03168587604051611469919061175e565b60006040518083038185875af1925050503d80600081146114a6576040519150601f19603f3d011682016040523d82523d6000602084013e6114ab565b606091505b50915091506114bb8282866114c6565b979650505050505050565b606083156114d5575081610f31565b8251156114e55782518084602001fd5b8160405162461bcd60e51b8152600401610760919061177a565b80356001600160a01b038116811461151657600080fd5b919050565b60006020828403121561152d57600080fd5b610f31826114ff565b60006020828403121561154857600080fd5b5035919050565b6000806040838503121561156257600080fd5b61156b836114ff565b946020939093013593505050565b8015158114610dc957600080fd5b6000806040838503121561159a57600080fd5b8235915060208301356115ac81611579565b809150509250929050565b6000602082840312156115c957600080fd5b8135610f3181611579565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611604576116046115d4565b500290565b60006020828403121561161b57600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015611669576116696115d4565b500390565b60008261168b57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156116a3576116a36115d4565b500190565b6000604082840312156116ba57600080fd5b6040516040810181811067ffffffffffffffff821117156116eb57634e487b7160e01b600052604160045260246000fd5b6040528251600f81900b811461170057600080fd5b81526020928301519281019290925250919050565b60006020828403121561172757600080fd5b8151610f3181611579565b60005b8381101561174d578181015183820152602001611735565b83811115610fc75750506000910152565b60008251611770818460208701611732565b9190910192915050565b6020815260008251806020840152611799816040850160208701611732565b601f01601f1916919091016040019291505056fea2646970667358221220fb1fe963a5129bd6c4cc48078cdd217f3819da07f04f55b818d306de6ca278d564736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee5500000000000000000000000080789d252a288e93b01d82373d767d71a75d9f16
-----Decoded View---------------
Arg [0] : _emittedToken (address): 0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55
Arg [1] : _veDPX_address (address): 0x80789D252A288E93b01D82373d767D71a75D9F16
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee55
Arg [1] : 00000000000000000000000080789d252a288e93b01d82373d767d71a75d9f16
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.