More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 120 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Pass Go And Coll... | 20742253 | 10 hrs ago | IN | 0 ETH | 0.0003956 | ||||
Pass Go And Coll... | 20681097 | 8 days ago | IN | 0 ETH | 0.00292974 | ||||
Pass Go And Coll... | 20600168 | 20 days ago | IN | 0 ETH | 0.00088315 | ||||
Pass Go And Coll... | 20475474 | 37 days ago | IN | 0 ETH | 0.00218824 | ||||
Pass Go And Coll... | 20408528 | 47 days ago | IN | 0 ETH | 0.0004968 | ||||
Pass Go And Coll... | 19993135 | 105 days ago | IN | 0 ETH | 0.0025851 | ||||
Pass Go And Coll... | 19968482 | 108 days ago | IN | 0 ETH | 0.0106649 | ||||
Pass Go And Coll... | 19958547 | 109 days ago | IN | 0 ETH | 0.00383728 | ||||
Pass Go And Coll... | 19895327 | 118 days ago | IN | 0 ETH | 0.00190217 | ||||
Pass Go And Coll... | 19880032 | 120 days ago | IN | 0 ETH | 0.00238399 | ||||
Pass Go And Coll... | 19857415 | 124 days ago | IN | 0 ETH | 0.00220212 | ||||
Enter Matrix | 19849192 | 125 days ago | IN | 0 ETH | 0.00041022 | ||||
Pass Go And Coll... | 19822122 | 128 days ago | IN | 0 ETH | 0.003247 | ||||
Pass Go And Coll... | 19779168 | 134 days ago | IN | 0 ETH | 0.00261698 | ||||
Enter Matrix | 19778995 | 134 days ago | IN | 0 ETH | 0.00017953 | ||||
Enter Matrix | 19778994 | 134 days ago | IN | 0 ETH | 0.00016645 | ||||
Enter Matrix | 19778986 | 135 days ago | IN | 0 ETH | 0.00015566 | ||||
Enter Matrix | 19778985 | 135 days ago | IN | 0 ETH | 0.00060296 | ||||
Pass Go And Coll... | 19680220 | 148 days ago | IN | 0 ETH | 0.00328541 | ||||
Pass Go And Coll... | 19614836 | 157 days ago | IN | 0 ETH | 0.01454505 | ||||
Pass Go And Coll... | 19534517 | 169 days ago | IN | 0 ETH | 0.01652014 | ||||
Pass Go And Coll... | 19515548 | 171 days ago | IN | 0 ETH | 0.0129733 | ||||
Enter Matrix | 19477407 | 177 days ago | IN | 0 ETH | 0.00432159 | ||||
Enter Matrix | 19244494 | 209 days ago | IN | 0 ETH | 0.0019834 | ||||
Pass Go And Coll... | 19113081 | 228 days ago | IN | 0 ETH | 0.00709932 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
GovernorsFarm
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >0.8.10; import "communal/SafeERC20.sol"; import "local/interfaces/IvdUSH.sol"; import "local/interfaces/IGovFarm.sol"; import "communal/ReentrancyGuard.sol"; import "openzeppelin-contracts/contracts/utils/math/SignedSafeMath.sol"; import {Ownable} from "openzeppelin/access/Ownable.sol"; // ================================================================ // |██╗ ██╗███╗ ██╗███████╗██╗ ██╗███████╗████████╗██╗ ██╗ // |██║ ██║████╗ ██║██╔════╝██║ ██║██╔════╝╚══██╔══╝██║ ██║ // |██║ ██║██╔██╗ ██║███████╗███████║█████╗ ██║ ███████║ // |██║ ██║██║╚██╗██║╚════██║██╔══██║██╔══╝ ██║ ██╔══██║ // |╚██████╔╝██║ ╚████║███████║██║ ██║███████╗ ██║ ██║ ██║ // | ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ // ================================================================ // ======================= GovernorsFarm =+++====================== // ================================================================ // Allows vdUSH users to enter the matrix and receive USH rewards // Users can claim their rewards at any time // No staking needed, just enter the matrix and claim rewards // No user deposits held in this contract! // // Author: unshETH team (github.com/unsheth) // Heavily inspired by StakingRewards, MasterChef // contract GovernorsFarm is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; using SignedSafeMath for int256; IERC20 public immutable USH = IERC20(0xE60779CC1b2c1d0580611c526a8DF0E3f870EC48); IvdUSH public immutable vdUsh = IvdUSH(0xd027Ef82dB658805C9Ba8053196cD6ED1Dd407E4); uint public vdUshPercentage; //percentage of rewards to lock as vdUSH //check if an address has entered the matrix mapping(address => bool) public isInMatrix; address[] public users; //array of users in the matrix uint public ushPerSec; uint public totalSupplyMultiplier = 1e18; //total supply multiplier to adjust for vdush total supply calc mapping(address => uint) public lastClaimTimestamp; mapping(address => uint) public lastClaimVdUshBalance; mapping(address => uint) public lastClaimTotalSupply; mapping(address => bool) public isBlocked; //if a user is blocked from claiming rewards struct Point { int128 bias; int128 slope; // # -dweight / dt uint ts; uint blk; // block } uint internal constant WEEK = 1 weeks; event MatrixEntered(address indexed _user); event RewardsClaimed(address indexed _user, uint _ushClaimed, uint _vdUSHClaimed); event RewardRateUpdated(uint _ushPerSec); event LockPercentageUpdated(uint _vdUshLockPercentage); event BlockListUpdated(address indexed _user, bool _isBlocked); event TotalSupplyMultiplierUpdated(uint _totalSupplyMultiplier); //Constructor constructor(uint _ushPerSec, uint _vdUshPercentage, address _oldGovFarm) { ushPerSec = _ushPerSec; vdUshPercentage = _vdUshPercentage; USH.approve(address(vdUsh), type(uint).max); //for locking on behalf of users //Seed values from V1Farm for migration IGovFarm oldGovFarm = IGovFarm(_oldGovFarm); address[] memory v1Users = oldGovFarm.getAllUsers(); //Gas efficient method to migrate users in v1 farm with no require checks or events for(uint i = 0; i < v1Users.length; ) { address user = v1Users[i]; isInMatrix[user] = true; users.push(user); lastClaimTimestamp[user] = oldGovFarm.lastClaimTimestamp(user); unchecked { ++i; } } } /** * @dev Allows a user with non zero vdUSH balance to enter the matrix and start earning farm rewards. * The user's address is registered in a mapping. * The user's last claim timestamp is set to the current block timestamp (rewards start from the moment they enter). * @param user The address of the user entering the matrix. */ function enterMatrix(address user) external nonReentrant { _enterMatrix(user); } function _enterMatrix(address user) internal { require(!isInMatrix[user], "Already in matrix"); require(vdUsh.balanceOf(user) > 0, "Cannot enter the matrix without vdUSH"); isInMatrix[user] = true; users.push(user); lastClaimTimestamp[user] = block.timestamp; emit MatrixEntered(user); } /** * @dev Calculate user's earned USH and vdUSH rewards since last claim. * User earned rewards are proportional to their share of total vdUSH at the time of claim. * @param user The address of the user entering the matrix. */ function earned(address user) public view returns (uint, uint) { require(isInMatrix[user], "User not in matrix"); //require(startTime!= 0 && block.timestamp > startTime, "Farm not started"); require(!isBlocked[user], "User is blocked from claiming rewards"); //calculate time from which to start accum rewards, max of (time user entered matrix, last claim time) uint lastClaimTimeStamp = lastClaimTimestamp[user]; uint secsSinceLastClaim = block.timestamp - lastClaimTimeStamp; uint lastEpoch = vdUsh.user_point_epoch(user); uint lastEpochTimestamp = vdUsh.user_point_history__ts(user, lastEpoch); uint userVdUsh; uint totalVdUsh; userVdUsh = lastClaimVdUshBalance[user]; totalVdUsh = lastClaimTotalSupply[user]; //sampling: //fyi we start at i=1, bc i=0 is the lastClaim which is already stored for(uint i = 1; i < 53;) { uint timestamp = lastClaimTimeStamp + i * 1 weeks; //if 1 wk after last claim is after current block timestamp, break if(timestamp > block.timestamp) { userVdUsh += vdUsh.balanceOf(user); totalVdUsh += vdUsh.totalSupply(); break; } //round down to nearest week if needed if(timestamp > lastEpochTimestamp) { timestamp = lastEpochTimestamp; } userVdUsh += vdUsh.balanceOfAtT(user, timestamp); //calculate totalSupplyAtT internally due to versioning issue in ve-contracts totalVdUsh += _totalSupplyAtT(timestamp); unchecked{ ++i; } } uint averageVdUshShare = userVdUsh * 1e18 / totalVdUsh; uint totalWeight = averageVdUshShare * secsSinceLastClaim * totalSupplyMultiplier / 1e18; uint ushEarned = totalWeight * ushPerSec / 1e18; uint lockedUsh = ushEarned * vdUshPercentage / 100e18; uint claimableUsh = ushEarned - lockedUsh; return (claimableUsh, lockedUsh); } /* ============================================================================ Calculations to get correct total supply at historical point T ============================================================================ */ function _get_point_history(uint _epoch) internal view returns (Point memory) { (int128 bias, int128 slope, uint ts, uint blk) = vdUsh.point_history(_epoch); return Point(bias, slope, ts, blk); } function _totalSupplyAtT(uint t) internal view returns (uint) { uint _epoch = vdUsh.epoch(); Point memory last_point = _get_point_history(_epoch); return _supply_at(last_point, t); } function _supply_at(Point memory point, uint t) internal view returns (uint) { Point memory last_point = point; uint t_i = (last_point.ts / WEEK) * WEEK; for (uint i = 0; i < 255; ++i) { t_i += WEEK; int128 d_slope = 0; if (t_i > t) { t_i = t; } else { d_slope = vdUsh.slope_changes(t_i); } last_point.bias -= last_point.slope * int128(int(t_i) - int(last_point.ts)); if (t_i == t) { break; } last_point.slope += d_slope; last_point.ts = t_i; } if (last_point.bias < 0) { last_point.bias = 0; } return uint(uint128(last_point.bias)); } /* ============================================================================ Claim ============================================================================ */ function passGoAndCollect(address user) external nonReentrant { uint claimableUsh; uint lockedUsh; (claimableUsh, lockedUsh) = earned(user); require(lockedUsh > 0 || claimableUsh > 0, "Nothing to claim"); lastClaimTimestamp[user] = block.timestamp; lastClaimVdUshBalance[user] = vdUsh.balanceOf(user); lastClaimTotalSupply[user] = vdUsh.totalSupply(); if(lockedUsh > 0) { //add to user's vdUSH if their lock hasn't expired if(vdUsh.balanceOf(user) != 0) { vdUsh.deposit_for(user, 0, 0, lockedUsh); } else { lockedUsh = 0; } } //transfer claimable USH to user if nonzero if(claimableUsh > 0) { USH.safeTransfer(user, claimableUsh); } emit RewardsClaimed(user, claimableUsh, lockedUsh); } //view funcs function getAllUsers() public view returns (address[] memory) { return users; } function getVdUshTotalSupply() public view returns (uint) { return vdUsh.totalSupply(); } function getVdUshTotalSupplyInFarm() public view returns (uint) { uint totalVdUsh; for(uint i = 0; i < users.length;) { address user = users[i]; if(!isBlocked[user]) { totalVdUsh += vdUsh.balanceOf(user); } unchecked{ ++i; } } return totalVdUsh; } //owner funcs function updateRewardRate(uint _ushPerSec) external onlyOwner { ushPerSec = _ushPerSec; emit RewardRateUpdated(_ushPerSec); } function setTotalSupplyMultiplier(uint _totalSupplyMultiplier) external onlyOwner { //make sure to set it in 1e18 terms totalSupplyMultiplier = _totalSupplyMultiplier; emit TotalSupplyMultiplierUpdated(_totalSupplyMultiplier); } function setTotalSupplyMultiplier_onChain() external onlyOwner { totalSupplyMultiplier = vdUsh.totalSupply() * 1e18 / getVdUshTotalSupplyInFarm(); emit TotalSupplyMultiplierUpdated(totalSupplyMultiplier); } function setLockPercentage(uint _vdUshPercentage) external onlyOwner { require(_vdUshPercentage <= 100e18, "Percentage too high"); vdUshPercentage = _vdUshPercentage; emit LockPercentageUpdated(_vdUshPercentage); } function updateBlockList(address _user, bool _isBlocked) external onlyOwner { isBlocked[_user] = _isBlocked; emit BlockListUpdated(_user, _isBlocked); } //emergency funcs function recoverUSH(uint amount, address dst) external onlyOwner { USH.safeTransfer(dst, amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.11 <0.9.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.11; /* * @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 GSN 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 payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.11; import "./Context.sol"; import "./SafeMath.sol"; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.11; /** * @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 () internal { _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 make 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 pragma solidity >=0.6.11; import "./IERC20.sol"; import "./SafeMath.sol"; import "./Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.11; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SignedSafeMath.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SignedSafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SignedSafeMath { /** * @dev Returns the multiplication of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { return a * b; } /** * @dev Returns the integer division of two signed integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(int256 a, int256 b) internal pure returns (int256) { return a / b; } /** * @dev Returns the subtraction of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { return a - b; } /** * @dev Returns the addition of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { return a + b; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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 pragma solidity ^0.8.10; interface IGovFarm { function getAllUsers() external returns (address[] memory); function lastClaimTimestamp(address user) external returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IvdUSH { function totalSupply() external view returns(uint256); function balanceOf(address account) external view returns(uint256); function epoch() external view returns(uint256); function locked(address account) external view returns(uint256); function deposit_for(address _addr, uint _valueA, uint _valueB, uint _valueC) external; function approve(address spender, uint256 amount) external returns (bool); function balanceOfAtT(address account, uint256 ts) external view returns(uint256); function point_history(uint256 _epoch) external view returns(int128 bias, int128 slope, uint ts, uint blk); function user_point_epoch(address account) external view returns(uint256); function user_point_history__ts(address _addr, uint _idx) external view returns (uint256); function slope_changes(uint256 time) external view returns(int128); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 9999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "remappings": [ "@prb/math/=lib/prb-math/src/", "@prb/test/=lib/prb-test/src/", "Common/=lib/Common/", "ERC20/=lib/ERC20/", "Governance/=lib/Governance/", "Math/=lib/Math/", "Staking/=lib/Staking/", "Utils/=lib/Utils/", "communal/=lib/communal/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "layerzerolabs/=lib/solidity-examples/", "local/=src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin/", "prb-math/=lib/prb-math/src/", "prb-test/=lib/prb-math/lib/prb-test/src/", "solidity-examples/=lib/solidity-examples/contracts/", "solmate/=lib/solmate/src/", "src/=lib/prb-math/src/" ], "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_ushPerSec","type":"uint256"},{"internalType":"uint256","name":"_vdUshPercentage","type":"uint256"},{"internalType":"address","name":"_oldGovFarm","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"bool","name":"_isBlocked","type":"bool"}],"name":"BlockListUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vdUshLockPercentage","type":"uint256"}],"name":"LockPercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"MatrixEntered","type":"event"},{"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":"uint256","name":"_ushPerSec","type":"uint256"}],"name":"RewardRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_ushClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_vdUSHClaimed","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_totalSupplyMultiplier","type":"uint256"}],"name":"TotalSupplyMultiplierUpdated","type":"event"},{"inputs":[],"name":"USH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"enterMatrix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllUsers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVdUshTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVdUshTotalSupplyInFarm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isInMatrix","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimVdUshBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"passGoAndCollect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"dst","type":"address"}],"name":"recoverUSH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vdUshPercentage","type":"uint256"}],"name":"setLockPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalSupplyMultiplier","type":"uint256"}],"name":"setTotalSupplyMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTotalSupplyMultiplier_onChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupplyMultiplier","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":"_user","type":"address"},{"internalType":"bool","name":"_isBlocked","type":"bool"}],"name":"updateBlockList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ushPerSec","type":"uint256"}],"name":"updateRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"users","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ushPerSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vdUsh","outputs":[{"internalType":"contract IvdUSH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vdUshPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c080604052346200025a57606081620025c98038038091620000238285620003ef565b8339810103126200025a57805190602062000045604082840151930162000413565b60008054336001600160a01b031982168117835560405193969395869460449486949093906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08580a36001805573e60779cc1b2c1d0580611c526a8df0e3f870ec48918260805273d027ef82db658805c9ba8053196cd6ed1dd407e4918260a052670de0b6b3a764000060065560055560025563095ea7b360e01b84526004840152811960248401525af180156200026857620003b0575b5060405163e2842d7960e01b8152600081600481836001600160a01b0387165af1908115620002685760009162000308575b5060005b8151811015620002a05760018060a01b0360208260051b8401015116908160005260036020526040600020600160ff19825416179055600454680100000000000000008110156200028a5760018101806004558110156200027457600460008181527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9290920180546001600160a01b0319168517905560405163bd9d518b60e01b81529081018490529290602090849060249082906001600160a01b038a165af1908115620002685760009162000228575b600193506000526007602052604060002055016200013c565b90506020833d6020116200025f575b816200024660209383620003ef565b810103126200025a5760019251906200020f565b600080fd5b3d915062000237565b6040513d6000823e3d90fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6040516121a090816200042982396080518181816103120152818161092e0152610b5f015260a0518181816103f90152818161067e015281816108c301528181610a4601528181610e710152818161152f0152818161191801528181611d1b01526121250152f35b90503d806000833e6200031c8183620003ef565b81016020828203126200025a5781516001600160401b03928382116200025a570181601f820112156200025a5780519283116200028a578260051b90604051936200036b6020840186620003ef565b84526020808501928201019283116200025a57602001905b82821062000395575050503862000138565b60208091620003a48462000413565b81520191019062000383565b6020813d602011620003e6575b81620003cc60209383620003ef565b810103126200025a5751801515036200025a573862000106565b3d9150620003bd565b601f909101601f19168101906001600160401b038211908210176200028a57604052565b51906001600160a01b03821682036200025a5756fe6080604052600436101561001257600080fd5b60003560e01c80628cc262146101b657806304f42440146101b157806308115b76146101ac57806310b29b47146101a7578063196a6402146101a25780631ae00ff21461019d578063226125a8146101985780632b188770146101935780632e4e2e4d1461018e57806332bb4b601461018957806335f82a0514610184578063365b98b21461017f5780634c1e220e1461017a5780635b39afbc14610175578063715018a614610170578063775403581461016b5780638da5cb5b146101665780639b3c2f92146101615780639ef3a2611461015c578063b006208b14610157578063bd9d518b14610152578063cac090a61461014d578063e2842d7914610148578063e629166a14610143578063f2fde38b1461013e5763fbac39511461013957600080fd5b61101b565b610f2b565b610e21565b610d5a565b610d37565b610cfd565b61099e565b610952565b61090e565b6108e7565b6108a3565b61082e565b610810565b6107d6565b61077c565b6106d7565b610637565b6105eb565b6105ac565b61050b565b610356565b610338565b6102dc565b6102be565b610213565b6101d6565b600435906001600160a01b03821682036101d157565b600080fd5b346101d15760206003193601126101d1576101f76101f26101bb565b6114a9565b60408051928352602083019190915290f35b801515036101d157565b346101d15760406003193601126101d15761022c6101bb565b7fa8e65dc25b25ed9c00c1693b81f3d26f78c8d0e952946e7cb7f0be3524d83b7c60206001600160a01b036024359361026485610209565b61026c61105a565b169283600052600a82526040600020901515907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8316179055604051908152a2005b60009103126101d157565b346101d15760006003193601126101d1576020600554604051908152f35b346101d15760406003193601126101d1576024356001600160a01b03811681036101d1576103369061030c61105a565b600435907f0000000000000000000000000000000000000000000000000000000000000000611dd1565b005b346101d15760006003193601126101d1576020600654604051908152f35b346101d15760206003193601126101d15761036f6101bb565b61037e600260015414156110b2565b60026001556103b96103b46103b06103a9846001600160a01b03166000526003602052604060002090565b5460ff1690565b1590565b6110fd565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03828116600483015291906020816024817f000000000000000000000000000000000000000000000000000000000000000087165afa801561050657610436916000916104d8575b501515611224565b610481610456826001600160a01b03166000526003602052604060002090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b61048a81611295565b426104a8826001600160a01b03166000526007602052604060002090565b55167f691e5f9799726b60970d92d57c8f608463780648d0bec5d0b5abf9d857747892600080a261033660018055565b6104f9915060203d81116104ff575b6104f181836111c8565b810190611209565b3861042e565b503d6104e7565b611218565b346101d15760206003193601126101d15760043561052761105a565b68056bc75e2d631000008111610568576020817f4000cd85141ef853aa5d69a3dc5121f242f4bb0d3bd84c502bbdc080aa25361e92600255604051908152a1005b606460405162461bcd60e51b815260206004820152601360248201527f50657263656e7461676520746f6f2068696768000000000000000000000000006044820152fd5b346101d15760206003193601126101d1576001600160a01b036105cd6101bb565b166000526003602052602060ff604060002054166040519015158152f35b346101d15760206003193601126101d1577f8c837f83701ba7a7c77095f7c350cd89655bc59f6eb281ad9b1cb19a7018e6a9602060043561062a61105a565b80600655604051908152a1005b346101d15760006003193601126101d1576040517f18160ddd0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa8015610506576020916000916106ba575b50604051908152f35b6106d19150823d81116104ff576104f181836111c8565b386106b1565b346101d15760206003193601126101d1576001600160a01b036106f86101bb565b1660005260086020526020604060002054604051908152f35b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6004548110156107775760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b610711565b346101d15760206003193601126101d1576004356004548110156101d1576001600160a01b0360209160046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b015416604051908152f35b346101d15760206003193601126101d1576001600160a01b036107f76101bb565b1660005260096020526020604060002054604051908152f35b346101d15760006003193601126101d1576020600254604051908152f35b346101d1576000806003193601126108a05761084861105a565b806001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b346101d15760006003193601126101d15760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101d15760006003193601126101d15760206001600160a01b0360005416604051908152f35b346101d15760006003193601126101d15760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101d15760206003193601126101d1577f41d466ebd06fb97e7786086ac8b69b7eb7da798592036251291d34e9791cde01602060043561099161105a565b80600555604051908152a1005b346101d1576020806003193601126101d1576109b86101bb565b906109c8600260015414156110b2565b60026001556109d6826114a9565b91909282159283158094610cf4575b6109ee90611d86565b42610a0c836001600160a01b03166000526007602052604060002090565b556040517f70a08231000000000000000000000000000000000000000000000000000000008082526001600160a01b0384811660048401527f000000000000000000000000000000000000000000000000000000000000000081169690959283816024818b5afa90811561050657600091610cd7575b50610aa0866001600160a01b03166000526008602052604060002090565b556040517f18160ddd00000000000000000000000000000000000000000000000000000000815283816004818b5afa90811561050657600091610cba575b50610afc866001600160a01b03166000526009602052604060002090565b55610b88575b50507fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259350610b4c9085610b58575b60405193849316958360209093929193604081019481520152565b0390a261033660018055565b610b8386847f0000000000000000000000000000000000000000000000000000000000000000611dd1565b610b31565b6040519081526001600160a01b03841660048201528181602481895afa91821561050657600092610c9d575b505015610c6f57833b156101d1576040517f289381dc0000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152600060248201819052604482018190526064820183905290948590608490829084905af1908115610506577fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e32594610b4c92610c56575b505b9038610b02565b80610c63610c6992611177565b806102b3565b38610c4d565b507fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259250610b4c6000610c4f565b610cb39250803d106104ff576104f181836111c8565b3880610bb4565b610cd19150843d86116104ff576104f181836111c8565b38610ade565b610cee9150843d86116104ff576104f181836111c8565b38610a82565b508415156109e5565b346101d15760206003193601126101d1576001600160a01b03610d1e6101bb565b1660005260076020526020604060002054604051908152f35b346101d15760006003193601126101d1576020610d52612066565b604051908152f35b346101d1576000806003193601126108a05760405180916004549081835260208093018092600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90835b818110610e045750505084610dbd9103856111c8565b60405193838594850191818652518092526040850193925b828110610de457505050500390f35b83516001600160a01b031685528695509381019392810192600101610dd5565b82546001600160a01b031684529286019260019283019201610da7565b346101d1576000806003193601126108a057610e3b61105a565b6040517f18160ddd0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa908115610506578291610f0d575b50670de0b6b3a764000090818102918183041490151715610f0857610ed1610ed691610ecb612066565b90611470565b600655565b6006546040519081527f8c837f83701ba7a7c77095f7c350cd89655bc59f6eb281ad9b1cb19a7018e6a990602090a180f35b6113cf565b610f25915060203d81116104ff576104f181836111c8565b38610ea1565b346101d15760206003193601126101d157610f446101bb565b610f4c61105a565b6001600160a01b038091168015610fb1576000918254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b346101d15760206003193601126101d1576001600160a01b0361103c6101bb565b16600052600a602052602060ff604060002054166040519015158152f35b6001600160a01b0360005416330361106e57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156110b957565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b1561110457565b606460405162461bcd60e51b815260206004820152601160248201527f416c726561647920696e206d61747269780000000000000000000000000000006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff811161118b57604052565b611148565b6080810190811067ffffffffffffffff82111761118b57604052565b6040810190811067ffffffffffffffff82111761118b57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761118b57604052565b908160209103126101d1575190565b6040513d6000823e3d90fd5b1561122b57565b608460405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420656e74657220746865206d617472697820776974686f75742060448201527f76645553480000000000000000000000000000000000000000000000000000006064820152fd5b6004546801000000000000000081101561118b576001810180600455811015610777576001600160a01b039060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b1561131a57565b606460405162461bcd60e51b815260206004820152601260248201527f55736572206e6f7420696e206d617472697800000000000000000000000000006044820152fd5b1561136557565b608460405162461bcd60e51b815260206004820152602560248201527f5573657220697320626c6f636b65642066726f6d20636c61696d696e6720726560448201527f77617264730000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908203918211610f0857565b9062093a8091828102928184041490151715610f0857565b90670de0b6b3a764000091828102928184041490151715610f0857565b81810292918115918404141715610f0857565b9062093a808201809211610f0857565b91908201809211610f0857565b811561147a570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6114d16114cc6103a9836001600160a01b03166000526003602052604060002090565b611313565b6114fc6114f76103b06103a9846001600160a01b0316600052600a602052604060002090565b61135e565b611519816001600160a01b03166000526007602052604060002090565b5461152481426113fe565b916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166040928351917f010ae75700000000000000000000000000000000000000000000000000000000835260209060049482858061159d848a83019190916001600160a01b036020820193169052565b0381855afa948515610506576116009584916000916118f1575b508851809781927fda020a18000000000000000000000000000000000000000000000000000000008352858b8401602090939291936001600160a01b0360408201951681520152565b0381855afa948515610506576000956118d2575b509495929190611637866001600160a01b03166000526008602052604060002090565b5495611656816001600160a01b03166000526009602052604060002090565b549760019586975b603589106116e4575b5050505050505050506116a06116976116b7946116926116a09561168d6116ae96611423565b611470565b611440565b60065490611440565b670de0b6b3a7640000900490565b60055490611440565b906116e06116d96116ca60025485611440565b68056bc75e2d63100000900490565b80936113fe565b9190565b909192939495969799986117006116fa8c61140b565b89611463565b99428b116117c457828b116117ba575b83517fd07b705f0000000000000000000000000000000000000000000000000000000081526001600160a01b038716868201908152602081018d90529092919089908490819060400103818b5afa9182156105065761178061178c93611786928e9660009261179b575b50611463565b9c61190e565b90611463565b9a01979695949392919061165e565b6117b39192508d803d106104ff576104f181836111c8565b903861177a565b9199508991611710565b9b9750959750509750955084611815918851809381927f70a082310000000000000000000000000000000000000000000000000000000083528a83019190916001600160a01b036020820193169052565b0381855afa8015610506578593611833926000926118ba5750611463565b9551948580927f18160ddd0000000000000000000000000000000000000000000000000000000082525afa908115610506576116926116a09561168d611891611697956116b79a6116ae996116a09960009361189b575b5050611463565b9784998398611667565b6118b2929350803d106104ff576104f181836111c8565b90388061188a565b6117b3919250853d87116104ff576104f181836111c8565b6118ea919550833d85116104ff576104f181836111c8565b9338611614565b6119089150823d84116104ff576104f181836111c8565b386115b7565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906040517f900cf0cf000000000000000000000000000000000000000000000000000000008152602081600481865afa8015610506576119d893608092600092611a64575b506000606060405161198e81611190565b828152826020820152826040820152015260405180809681947fd1febfb9000000000000000000000000000000000000000000000000000000008352600483019190602083019252565b03915afa91821561050657611a27926000918283918493611a2a575b50611a1890611a0e611a04611a84565b958690600f0b9052565b600f0b6020850152565b60408301526060820152611bd0565b90565b915050611a189250611a53915060803d8111611a5d575b611a4b81836111c8565b810190611aa1565b92939091906119f4565b503d611a41565b611a7d91925060203d81116104ff576104f181836111c8565b903861197d565b60405190611a9182611190565b565b519081600f0b82036101d157565b91908260809103126101d157611ab682611a93565b91611ac360208201611a93565b916060604083015192015190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610f085760010190565b908160209103126101d157611a2790611a93565b81810392916000138015828513169184121617610f0857565b90600f0b90600f0b029081600f0b918203610f0857565b90600f0b90600f0b03906f7fffffffffffffffffffffffffffffff82137fffffffffffffffffffffffffffffffff80000000000000000000000000000000831217610f0857565b90600f0b90600f0b01907fffffffffffffffffffffffffffffffff8000000000000000000000000000000082126f7fffffffffffffffffffffffffffffff831317610f0857565b906040808301611bec611be7825162093a80900490565b61140b565b916000925b60ff8410611c4a575b5050505050611c2c611c2c826000611c1f611c19611a279651600f0b90565b600f0b90565b12611c41575b51600f0b90565b6fffffffffffffffffffffffffffffffff1690565b60008152611c25565b611c5390611453565b600093908086811115611ce257505084935b6020870190611ca3611c9c611c92611c7e8551600f0b90565b611c8c611c198a518c611b12565b90611b2b565b8a51600f0b611b42565b600f0b8952565b868614611cdb5781611cc6611ccd92611cc1611cd5969551600f0b90565b611b89565b600f0b9052565b848452611ad1565b92611bf1565b5050611bfa565b83517f711974840000000000000000000000000000000000000000000000000000000081526004810191909152909490602080826024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9283156105065792611d59575b5050611c65565b611d789250803d10611d7f575b611d7081836111c8565b810190611afe565b3880611d52565b503d611d66565b15611d8d57565b606460405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208083019182526001600160a01b03948516602484015260448084019690965294825290929091611e286064856111c8565b169060405192611e37846111ac565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15611ea857611e83939260009283809351925af1611e7d611f72565b90611fd0565b80519081611e9057505050565b82611a9193611ea3938301019101611eec565b611f01565b6064856040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b908160209103126101d15751611a2781610209565b15611f0857565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b3d15611fcb573d9067ffffffffffffffff821161118b5760405191611fbf60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601846111c8565b82523d6000602084013e565b606090565b90919015611fdc575090565b815115611fec5750805190602001fd5b6040519062461bcd60e51b825281602080600483015282519283602484015260005b84811061204f575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b81810183015186820160440152859350820161200e565b6000806004908154905b81811061207d5750505090565b61209c61208982610740565b90546001600160a01b039160031b1c1690565b6120bf6103b06103a9836001600160a01b0316600052600a602052604060002090565b6120cd575b50600101612070565b909361211990604051927f70a08231000000000000000000000000000000000000000000000000000000008452838060209485938983019190916001600160a01b036020820193169052565b03816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa908115610506576001936121639360009361189b575050611463565b93906120c456fea2646970667358221220b66b263b4515df37aa3ef551c0685750fa6176e2e4b3c376d7a9b033c29c79cb64736f6c6343000812003300000000000000000000000000000000000000000000000002ad5187292c4000000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000e6297a3f7a7ec264ca8e293f927d86e532b5da9a
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c80628cc262146101b657806304f42440146101b157806308115b76146101ac57806310b29b47146101a7578063196a6402146101a25780631ae00ff21461019d578063226125a8146101985780632b188770146101935780632e4e2e4d1461018e57806332bb4b601461018957806335f82a0514610184578063365b98b21461017f5780634c1e220e1461017a5780635b39afbc14610175578063715018a614610170578063775403581461016b5780638da5cb5b146101665780639b3c2f92146101615780639ef3a2611461015c578063b006208b14610157578063bd9d518b14610152578063cac090a61461014d578063e2842d7914610148578063e629166a14610143578063f2fde38b1461013e5763fbac39511461013957600080fd5b61101b565b610f2b565b610e21565b610d5a565b610d37565b610cfd565b61099e565b610952565b61090e565b6108e7565b6108a3565b61082e565b610810565b6107d6565b61077c565b6106d7565b610637565b6105eb565b6105ac565b61050b565b610356565b610338565b6102dc565b6102be565b610213565b6101d6565b600435906001600160a01b03821682036101d157565b600080fd5b346101d15760206003193601126101d1576101f76101f26101bb565b6114a9565b60408051928352602083019190915290f35b801515036101d157565b346101d15760406003193601126101d15761022c6101bb565b7fa8e65dc25b25ed9c00c1693b81f3d26f78c8d0e952946e7cb7f0be3524d83b7c60206001600160a01b036024359361026485610209565b61026c61105a565b169283600052600a82526040600020901515907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8316179055604051908152a2005b60009103126101d157565b346101d15760006003193601126101d1576020600554604051908152f35b346101d15760406003193601126101d1576024356001600160a01b03811681036101d1576103369061030c61105a565b600435907f000000000000000000000000e60779cc1b2c1d0580611c526a8df0e3f870ec48611dd1565b005b346101d15760006003193601126101d1576020600654604051908152f35b346101d15760206003193601126101d15761036f6101bb565b61037e600260015414156110b2565b60026001556103b96103b46103b06103a9846001600160a01b03166000526003602052604060002090565b5460ff1690565b1590565b6110fd565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03828116600483015291906020816024817f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e487165afa801561050657610436916000916104d8575b501515611224565b610481610456826001600160a01b03166000526003602052604060002090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b61048a81611295565b426104a8826001600160a01b03166000526007602052604060002090565b55167f691e5f9799726b60970d92d57c8f608463780648d0bec5d0b5abf9d857747892600080a261033660018055565b6104f9915060203d81116104ff575b6104f181836111c8565b810190611209565b3861042e565b503d6104e7565b611218565b346101d15760206003193601126101d15760043561052761105a565b68056bc75e2d631000008111610568576020817f4000cd85141ef853aa5d69a3dc5121f242f4bb0d3bd84c502bbdc080aa25361e92600255604051908152a1005b606460405162461bcd60e51b815260206004820152601360248201527f50657263656e7461676520746f6f2068696768000000000000000000000000006044820152fd5b346101d15760206003193601126101d1576001600160a01b036105cd6101bb565b166000526003602052602060ff604060002054166040519015158152f35b346101d15760206003193601126101d1577f8c837f83701ba7a7c77095f7c350cd89655bc59f6eb281ad9b1cb19a7018e6a9602060043561062a61105a565b80600655604051908152a1005b346101d15760006003193601126101d1576040517f18160ddd0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e4165afa8015610506576020916000916106ba575b50604051908152f35b6106d19150823d81116104ff576104f181836111c8565b386106b1565b346101d15760206003193601126101d1576001600160a01b036106f86101bb565b1660005260086020526020604060002054604051908152f35b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6004548110156107775760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b610711565b346101d15760206003193601126101d1576004356004548110156101d1576001600160a01b0360209160046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b015416604051908152f35b346101d15760206003193601126101d1576001600160a01b036107f76101bb565b1660005260096020526020604060002054604051908152f35b346101d15760006003193601126101d1576020600254604051908152f35b346101d1576000806003193601126108a05761084861105a565b806001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b346101d15760006003193601126101d15760206040516001600160a01b037f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e4168152f35b346101d15760006003193601126101d15760206001600160a01b0360005416604051908152f35b346101d15760006003193601126101d15760206040516001600160a01b037f000000000000000000000000e60779cc1b2c1d0580611c526a8df0e3f870ec48168152f35b346101d15760206003193601126101d1577f41d466ebd06fb97e7786086ac8b69b7eb7da798592036251291d34e9791cde01602060043561099161105a565b80600555604051908152a1005b346101d1576020806003193601126101d1576109b86101bb565b906109c8600260015414156110b2565b60026001556109d6826114a9565b91909282159283158094610cf4575b6109ee90611d86565b42610a0c836001600160a01b03166000526007602052604060002090565b556040517f70a08231000000000000000000000000000000000000000000000000000000008082526001600160a01b0384811660048401527f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e481169690959283816024818b5afa90811561050657600091610cd7575b50610aa0866001600160a01b03166000526008602052604060002090565b556040517f18160ddd00000000000000000000000000000000000000000000000000000000815283816004818b5afa90811561050657600091610cba575b50610afc866001600160a01b03166000526009602052604060002090565b55610b88575b50507fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259350610b4c9085610b58575b60405193849316958360209093929193604081019481520152565b0390a261033660018055565b610b8386847f000000000000000000000000e60779cc1b2c1d0580611c526a8df0e3f870ec48611dd1565b610b31565b6040519081526001600160a01b03841660048201528181602481895afa91821561050657600092610c9d575b505015610c6f57833b156101d1576040517f289381dc0000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152600060248201819052604482018190526064820183905290948590608490829084905af1908115610506577fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e32594610b4c92610c56575b505b9038610b02565b80610c63610c6992611177565b806102b3565b38610c4d565b507fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259250610b4c6000610c4f565b610cb39250803d106104ff576104f181836111c8565b3880610bb4565b610cd19150843d86116104ff576104f181836111c8565b38610ade565b610cee9150843d86116104ff576104f181836111c8565b38610a82565b508415156109e5565b346101d15760206003193601126101d1576001600160a01b03610d1e6101bb565b1660005260076020526020604060002054604051908152f35b346101d15760006003193601126101d1576020610d52612066565b604051908152f35b346101d1576000806003193601126108a05760405180916004549081835260208093018092600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90835b818110610e045750505084610dbd9103856111c8565b60405193838594850191818652518092526040850193925b828110610de457505050500390f35b83516001600160a01b031685528695509381019392810192600101610dd5565b82546001600160a01b031684529286019260019283019201610da7565b346101d1576000806003193601126108a057610e3b61105a565b6040517f18160ddd0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e4165afa908115610506578291610f0d575b50670de0b6b3a764000090818102918183041490151715610f0857610ed1610ed691610ecb612066565b90611470565b600655565b6006546040519081527f8c837f83701ba7a7c77095f7c350cd89655bc59f6eb281ad9b1cb19a7018e6a990602090a180f35b6113cf565b610f25915060203d81116104ff576104f181836111c8565b38610ea1565b346101d15760206003193601126101d157610f446101bb565b610f4c61105a565b6001600160a01b038091168015610fb1576000918254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b346101d15760206003193601126101d1576001600160a01b0361103c6101bb565b16600052600a602052602060ff604060002054166040519015158152f35b6001600160a01b0360005416330361106e57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156110b957565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b1561110457565b606460405162461bcd60e51b815260206004820152601160248201527f416c726561647920696e206d61747269780000000000000000000000000000006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff811161118b57604052565b611148565b6080810190811067ffffffffffffffff82111761118b57604052565b6040810190811067ffffffffffffffff82111761118b57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761118b57604052565b908160209103126101d1575190565b6040513d6000823e3d90fd5b1561122b57565b608460405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420656e74657220746865206d617472697820776974686f75742060448201527f76645553480000000000000000000000000000000000000000000000000000006064820152fd5b6004546801000000000000000081101561118b576001810180600455811015610777576001600160a01b039060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b1561131a57565b606460405162461bcd60e51b815260206004820152601260248201527f55736572206e6f7420696e206d617472697800000000000000000000000000006044820152fd5b1561136557565b608460405162461bcd60e51b815260206004820152602560248201527f5573657220697320626c6f636b65642066726f6d20636c61696d696e6720726560448201527f77617264730000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908203918211610f0857565b9062093a8091828102928184041490151715610f0857565b90670de0b6b3a764000091828102928184041490151715610f0857565b81810292918115918404141715610f0857565b9062093a808201809211610f0857565b91908201809211610f0857565b811561147a570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6114d16114cc6103a9836001600160a01b03166000526003602052604060002090565b611313565b6114fc6114f76103b06103a9846001600160a01b0316600052600a602052604060002090565b61135e565b611519816001600160a01b03166000526007602052604060002090565b5461152481426113fe565b916001600160a01b037f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e4166040928351917f010ae75700000000000000000000000000000000000000000000000000000000835260209060049482858061159d848a83019190916001600160a01b036020820193169052565b0381855afa948515610506576116009584916000916118f1575b508851809781927fda020a18000000000000000000000000000000000000000000000000000000008352858b8401602090939291936001600160a01b0360408201951681520152565b0381855afa948515610506576000956118d2575b509495929190611637866001600160a01b03166000526008602052604060002090565b5495611656816001600160a01b03166000526009602052604060002090565b549760019586975b603589106116e4575b5050505050505050506116a06116976116b7946116926116a09561168d6116ae96611423565b611470565b611440565b60065490611440565b670de0b6b3a7640000900490565b60055490611440565b906116e06116d96116ca60025485611440565b68056bc75e2d63100000900490565b80936113fe565b9190565b909192939495969799986117006116fa8c61140b565b89611463565b99428b116117c457828b116117ba575b83517fd07b705f0000000000000000000000000000000000000000000000000000000081526001600160a01b038716868201908152602081018d90529092919089908490819060400103818b5afa9182156105065761178061178c93611786928e9660009261179b575b50611463565b9c61190e565b90611463565b9a01979695949392919061165e565b6117b39192508d803d106104ff576104f181836111c8565b903861177a565b9199508991611710565b9b9750959750509750955084611815918851809381927f70a082310000000000000000000000000000000000000000000000000000000083528a83019190916001600160a01b036020820193169052565b0381855afa8015610506578593611833926000926118ba5750611463565b9551948580927f18160ddd0000000000000000000000000000000000000000000000000000000082525afa908115610506576116926116a09561168d611891611697956116b79a6116ae996116a09960009361189b575b5050611463565b9784998398611667565b6118b2929350803d106104ff576104f181836111c8565b90388061188a565b6117b3919250853d87116104ff576104f181836111c8565b6118ea919550833d85116104ff576104f181836111c8565b9338611614565b6119089150823d84116104ff576104f181836111c8565b386115b7565b6001600160a01b037f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e416906040517f900cf0cf000000000000000000000000000000000000000000000000000000008152602081600481865afa8015610506576119d893608092600092611a64575b506000606060405161198e81611190565b828152826020820152826040820152015260405180809681947fd1febfb9000000000000000000000000000000000000000000000000000000008352600483019190602083019252565b03915afa91821561050657611a27926000918283918493611a2a575b50611a1890611a0e611a04611a84565b958690600f0b9052565b600f0b6020850152565b60408301526060820152611bd0565b90565b915050611a189250611a53915060803d8111611a5d575b611a4b81836111c8565b810190611aa1565b92939091906119f4565b503d611a41565b611a7d91925060203d81116104ff576104f181836111c8565b903861197d565b60405190611a9182611190565b565b519081600f0b82036101d157565b91908260809103126101d157611ab682611a93565b91611ac360208201611a93565b916060604083015192015190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610f085760010190565b908160209103126101d157611a2790611a93565b81810392916000138015828513169184121617610f0857565b90600f0b90600f0b029081600f0b918203610f0857565b90600f0b90600f0b03906f7fffffffffffffffffffffffffffffff82137fffffffffffffffffffffffffffffffff80000000000000000000000000000000831217610f0857565b90600f0b90600f0b01907fffffffffffffffffffffffffffffffff8000000000000000000000000000000082126f7fffffffffffffffffffffffffffffff831317610f0857565b906040808301611bec611be7825162093a80900490565b61140b565b916000925b60ff8410611c4a575b5050505050611c2c611c2c826000611c1f611c19611a279651600f0b90565b600f0b90565b12611c41575b51600f0b90565b6fffffffffffffffffffffffffffffffff1690565b60008152611c25565b611c5390611453565b600093908086811115611ce257505084935b6020870190611ca3611c9c611c92611c7e8551600f0b90565b611c8c611c198a518c611b12565b90611b2b565b8a51600f0b611b42565b600f0b8952565b868614611cdb5781611cc6611ccd92611cc1611cd5969551600f0b90565b611b89565b600f0b9052565b848452611ad1565b92611bf1565b5050611bfa565b83517f711974840000000000000000000000000000000000000000000000000000000081526004810191909152909490602080826024817f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e46001600160a01b03165afa9283156105065792611d59575b5050611c65565b611d789250803d10611d7f575b611d7081836111c8565b810190611afe565b3880611d52565b503d611d66565b15611d8d57565b606460405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208083019182526001600160a01b03948516602484015260448084019690965294825290929091611e286064856111c8565b169060405192611e37846111ac565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15611ea857611e83939260009283809351925af1611e7d611f72565b90611fd0565b80519081611e9057505050565b82611a9193611ea3938301019101611eec565b611f01565b6064856040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b908160209103126101d15751611a2781610209565b15611f0857565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b3d15611fcb573d9067ffffffffffffffff821161118b5760405191611fbf60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601846111c8565b82523d6000602084013e565b606090565b90919015611fdc575090565b815115611fec5750805190602001fd5b6040519062461bcd60e51b825281602080600483015282519283602484015260005b84811061204f575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b81810183015186820160440152859350820161200e565b6000806004908154905b81811061207d5750505090565b61209c61208982610740565b90546001600160a01b039160031b1c1690565b6120bf6103b06103a9836001600160a01b0316600052600a602052604060002090565b6120cd575b50600101612070565b909361211990604051927f70a08231000000000000000000000000000000000000000000000000000000008452838060209485938983019190916001600160a01b036020820193169052565b03816001600160a01b037f000000000000000000000000d027ef82db658805c9ba8053196cd6ed1dd407e4165afa908115610506576001936121639360009361189b575050611463565b93906120c456fea2646970667358221220b66b263b4515df37aa3ef551c0685750fa6176e2e4b3c376d7a9b033c29c79cb64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000002ad5187292c4000000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000e6297a3f7a7ec264ca8e293f927d86e532b5da9a
-----Decoded View---------------
Arg [0] : _ushPerSec (uint256): 192900000000000000
Arg [1] : _vdUshPercentage (uint256): 80000000000000000000
Arg [2] : _oldGovFarm (address): 0xe6297A3f7A7eC264CA8e293f927D86e532b5Da9A
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000002ad5187292c4000
Arg [1] : 000000000000000000000000000000000000000000000004563918244f400000
Arg [2] : 000000000000000000000000e6297a3f7a7ec264ca8e293f927d86e532b5da9a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 25 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.001531 | 244,826.374 | $374.75 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.