Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
OrionGovernance
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./interfaces/IOrionGovernance.sol"; import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; contract OrionGovernance is IOrionGovernance, ReentrancyGuardUpgradeable, OwnableUpgradeable { using SafeMath for uint256; using SafeERC20 for IERC20; struct UserData { uint56 balance; uint56 locked_balance; } struct UserVault { uint56 amount; uint64 created_time; } /////////////////////////////////////////////////// // Data fields // NB: Only add new fields BELOW any fields in this section // Must be 8-digit token IERC20 public staking_token_; // Staking balances mapping(address => UserData) public balances_; // Voting contract address (now just 1 voting contract supported) address public voting_contract_address_; // Total balance uint56 public total_balance_; // TODO: decrease writable uint256 count uint256 public periodFinish; uint256 public rewardRate; uint256 public rewardsDuration; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; // Just voting for proposal data mapping(address => uint56) public user_burn_votes_; uint64 public burn_vote_end_; uint56 public total_votes_burn_; uint56 public total_votes_dont_burn_; // Vaults of users for withdrawal mapping(address => UserVault[]) public vaults_; uint64 public extra_fee_seconds; uint16 public extra_fee_percent; // 0 - 1000, where 1000 uint16 public basic_fee_percent; // 0 - 999 uint56 public fee_total; // Add new data fields there.... // ... // End of data fields ///////////////////////////////////////////////////// // Initializer function initialize(address staking_token) public initializer { require(staking_token != address(0), "OGI0"); OwnableUpgradeable.__Ownable_init(); staking_token_ = IERC20(staking_token); } function setVotingContractAddress(address voting_contract_address) external onlyOwner { voting_contract_address_ = voting_contract_address; } function lastTimeRewardApplicable() override public view returns (uint256) { // return Math.min(block.timestamp, periodFinish); return block.timestamp < periodFinish ? block.timestamp : periodFinish; } function rewardPerToken() override public view returns (uint256) { if (total_balance_ == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(uint(total_balance_)) ); } function earned(address account) override public view returns (uint256) { return uint(balances_[account].balance).mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]); } function getRewardForDuration() override external view returns (uint256) { return rewardRate.mul(rewardsDuration); } // Stake function stake(uint56 adding_amount) override public nonReentrant updateReward(msg.sender) { require(adding_amount > 0, "CNS0"); staking_token_.safeTransferFrom(msg.sender, address(this), adding_amount); uint56 balance = balances_[msg.sender].balance; balance += adding_amount; require(balance >= adding_amount, "OF(1)"); balances_[msg.sender].balance = balance; uint56 total_balance = total_balance_; total_balance += adding_amount; require(total_balance >= adding_amount, "OF(3)"); // Maybe not needed total_balance_ = total_balance; emit Staked(msg.sender, uint256(adding_amount)); } // Unstake function withdraw(uint56 removing_amount) override public nonReentrant updateReward(msg.sender) { require(removing_amount > 0, "CNW0"); uint56 balance = balances_[msg.sender].balance; require(balance >= removing_amount, "CNW1"); balance -= removing_amount; balances_[msg.sender].balance= balance; uint56 total_balance = total_balance_; require(total_balance >= removing_amount, "CNW2"); total_balance -= removing_amount; total_balance_ = total_balance; uint56 locked_balance = balances_[msg.sender].locked_balance; require(locked_balance <= balance, "CNW3"); if(voteBurnAvailable()) // Additional checks require(user_burn_votes_[msg.sender] <= balance, "CNW4"); // staking_token_.safeTransfer(msg.sender, removing_amount); vaults_[msg.sender].push(UserVault({ amount: removing_amount, created_time: uint64(block.timestamp)})); emit Withdrawn(msg.sender, uint256(removing_amount)); } function vaultWithdraw(uint index) public nonReentrant { // ? Do we need extra check there UserVault memory vault = vaults_[msg.sender][index]; uint fee_percent = basic_fee_percent; if(vault.created_time + extra_fee_seconds > block.timestamp) // Premature withdrawal, so adjust amount (reduce by percent) fee_percent += extra_fee_percent; uint vault_amount = uint(vault.amount); uint fee_orn = vault_amount.mul(fee_percent).div(1000); fee_total += uint56(fee_orn); uint len = vaults_[msg.sender].length; if(index < len-1) vaults_[msg.sender][index] = vaults_[msg.sender][len-1]; vaults_[msg.sender].pop(); staking_token_.safeTransfer(msg.sender, vault_amount.sub(fee_orn)); } // Only owner could set vault parameters function setVaultParameters(uint16 extra_fee_percent_, uint64 extra_fee_seconds_, uint16 basic_fee_percent_) external onlyOwner { require(extra_fee_percent_ + basic_fee_percent_ < 1000, "VF_1"); extra_fee_percent = extra_fee_percent_; extra_fee_seconds = extra_fee_seconds_; basic_fee_percent = basic_fee_percent_; } function burn(uint56 burn_size, address to) external onlyOwner { require(burn_size <= fee_total, "OW_CNB"); fee_total -= burn_size; staking_token_.safeTransfer(to, burn_size); } function getReward() virtual override public nonReentrant updateReward(msg.sender) { uint256 reward = rewards[msg.sender]; if (reward > 0) { rewards[msg.sender] = 0; staking_token_.safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); } } function exit() virtual override external { withdraw(balances_[msg.sender].balance); getReward(); } function acceptNewLockAmount( address user, uint56 new_lock_amount ) external override onlyVotingContract { uint56 balance = balances_[user].balance; require(balance >= new_lock_amount, "Cannot lock"); balances_[user].locked_balance = new_lock_amount; } function acceptLock( address user, uint56 lock_increase_amount ) external override onlyVotingContract { require(lock_increase_amount > 0, "Can't inc by 0"); uint56 balance = balances_[user].balance; uint56 locked_balance = balances_[user].locked_balance; locked_balance += lock_increase_amount; require(locked_balance >= lock_increase_amount, "OF(4)"); require(locked_balance <= balance, "can't lock more"); balances_[user].locked_balance = locked_balance; } function acceptUnlock( address user, uint56 lock_decrease_amount ) external override onlyVotingContract { require(lock_decrease_amount > 0, "Can't dec by 0"); uint56 locked_balance = balances_[user].locked_balance; require(locked_balance >= lock_decrease_amount, "Can't unlock more"); locked_balance -= lock_decrease_amount; balances_[user].locked_balance = locked_balance; } // Views function getBalance(address user) public view returns(uint56) { return balances_[user].balance; } function getLockedBalance(address user) public view returns(uint56) { return balances_[user].locked_balance; } function getTotalBalance() public view returns(uint56) { return total_balance_; } function getTotalLockedBalance(address user) public view returns(uint56) { uint56 locked_balance = balances_[user].locked_balance; if(voteBurnAvailable()) { uint56 burn_vote_balance = user_burn_votes_[user]; if(burn_vote_balance > locked_balance) locked_balance = burn_vote_balance; } return locked_balance; } function getVaults(address wallet) public view returns(UserVault[] memory) { return vaults_[wallet]; } function getAvailableWithdrawBalance(address user) public view returns(uint56) { return balances_[user].balance - getTotalLockedBalance(user); } // Root methods function notifyRewardAmount(uint256 reward, uint256 _rewardsDuration) external onlyOwner updateReward(address(0)) { require((_rewardsDuration> 1 days) && (_rewardsDuration < 365 days), "Incorrect rewards duration"); rewardsDuration = _rewardsDuration; if (block.timestamp >= periodFinish) { rewardRate = reward.div(rewardsDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(rewardsDuration); } // Ensure the provided reward amount is not more than the balance in the contract. // This keeps the reward rate in the right range, preventing overflows due to // very high values of rewardRate in the earned and rewardsPerToken functions; // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow. uint balance = staking_token_.balanceOf(address(this)); // TODO: review require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high"); lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(rewardsDuration); emit RewardAdded(reward); } function emergencyAssetWithdrawal(address asset) external onlyOwner { IERC20 token = IERC20(asset); token.safeTransfer(owner(), token.balanceOf(address(this))); } // Voting for burn function voteBurn(uint56 voting_amount, bool vote_for_burn) public { require(voteBurnAvailable(), "VB_FIN"); uint56 balance = balances_[msg.sender].balance; uint56 voted_balance = user_burn_votes_[msg.sender]; require(balance >= voted_balance, "VB_OF"); require(voting_amount <= balance - voted_balance, "VB_NE_ORN"); user_burn_votes_[msg.sender] = voted_balance + voting_amount; if(vote_for_burn) total_votes_burn_ += voting_amount; else total_votes_dont_burn_ += voting_amount; } // Is voting available function voteBurnAvailable() public view returns(bool) { return (block.timestamp <= burn_vote_end_); } // Only owner could set vote end function setBurnVoteEnd(uint64 burn_vote_end) external onlyOwner { burn_vote_end_ = burn_vote_end; } //////////////////////// // Modifiers modifier onlyVotingContract() { require(msg.sender == voting_contract_address_, "must be voting"); _; } modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } // Events event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; interface IOrionGovernance { function stake(uint56 adding_amount) external; function withdraw(uint56 removing_amount) external; // Accepting lock by absolute value function acceptNewLockAmount(address user, uint56 new_lock_amount) external; // Accepting lock by diff function acceptLock(address user, uint56 lock_increase_amount) external; function acceptUnlock(address user, uint56 lock_decrease_amount) external; function lastTimeRewardApplicable() external view returns (uint256); function rewardPerToken() external view returns (uint256); function earned(address account) external view returns (uint256); function getRewardForDuration() external view returns (uint256); function getReward() external; function exit() external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /** * @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 ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal initializer { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal initializer { _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; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /* * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return 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; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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); } 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 // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint56","name":"lock_increase_amount","type":"uint56"}],"name":"acceptLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint56","name":"new_lock_amount","type":"uint56"}],"name":"acceptNewLockAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint56","name":"lock_decrease_amount","type":"uint56"}],"name":"acceptUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances_","outputs":[{"internalType":"uint56","name":"balance","type":"uint56"},{"internalType":"uint56","name":"locked_balance","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basic_fee_percent","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint56","name":"burn_size","type":"uint56"},{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burn_vote_end_","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","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":"asset","type":"address"}],"name":"emergencyAssetWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extra_fee_percent","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extra_fee_seconds","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee_total","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAvailableWithdrawBalance","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getLockedBalance","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalBalance","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getTotalLockedBalance","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getVaults","outputs":[{"components":[{"internalType":"uint56","name":"amount","type":"uint56"},{"internalType":"uint64","name":"created_time","type":"uint64"}],"internalType":"struct OrionGovernance.UserVault[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staking_token","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","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":"reward","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"burn_vote_end","type":"uint64"}],"name":"setBurnVoteEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"extra_fee_percent_","type":"uint16"},{"internalType":"uint64","name":"extra_fee_seconds_","type":"uint64"},{"internalType":"uint16","name":"basic_fee_percent_","type":"uint16"}],"name":"setVaultParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"voting_contract_address","type":"address"}],"name":"setVotingContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint56","name":"adding_amount","type":"uint56"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking_token_","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total_balance_","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total_votes_burn_","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total_votes_dont_burn_","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"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":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"user_burn_votes_","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"vaultWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaults_","outputs":[{"internalType":"uint56","name":"amount","type":"uint56"},{"internalType":"uint64","name":"created_time","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint56","name":"voting_amount","type":"uint56"},{"internalType":"bool","name":"vote_for_burn","type":"bool"}],"name":"voteBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"voteBurnAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voting_contract_address_","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint56","name":"removing_amount","type":"uint56"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50612ea1806100206000396000f3fe608060405234801561001057600080fd5b50600436106102d55760003560e01c80638b141fa911610182578063cd3daf9d116100e9578063e9fad8ee116100a2578063f2fde38b1161007c578063f2fde38b146105b1578063f8b2cb4f146105c4578063fb839dda146105d7578063fe7c9c92146105ea576102d5565b8063e9fad8ee1461058e578063ebe2b12b14610596578063f1001f8c1461059e576102d5565b8063cd3daf9d1461053d578063dc8d8abd14610545578063dd3c0c2914610558578063df136d651461056b578063df640b9c14610573578063e5243da114610586576102d5565b8063c40868931161013b578063c4086893146104d3578063c4d66de8146104e6578063c653375d146104f9578063c8f33c911461050c578063c941e01314610514578063c948953a14610535576102d5565b80638b141fa91461046c5780638b8763471461047f5780638da5cb5b14610492578063b31e4b031461049a578063bcfc4429146104ad578063c345a20a146104c0576102d5565b806353498dfb11610241578063715018a6116101fa5780637b0a47ee116101d45780637b0a47ee146104365780637d793edd1461043e5780637f8512c11461045157806380faa57d14610464576102d5565b8063715018a61461041e57806376a4db701461042657806377e84f731461042e576102d5565b806353498dfb146103a75780635fad82ca146103ba57806362b08e70146103c257806362eb1e0d146103d557806366be05da146103e85780636ca34ea2146103fd576102d5565b806323b07bba1161029357806323b07bba14610343578063246132f914610358578063324ea7fc1461036d578063386a9525146103825780633d18b9121461038a57806352a9e1e414610392576102d5565b80628cc262146102da5780630700037d1461030357806312b58349146103165780631506be171461032b57806315b726d0146103335780631c1f78eb1461033b575b600080fd5b6102ed6102e836600461279d565b61060a565b6040516102fa9190612cf9565b60405180910390f35b6102ed61031136600461279d565b610693565b61031e6106a5565b6040516102fa9190612d02565b61031e6106bc565b61031e6106d2565b6102ed6106e8565b61034b610706565b6040516102fa9190612d52565b61036b610366366004612884565b610715565b005b610375610981565b6040516102fa91906129b1565b6102ed610993565b61036b610999565b61039a610ac8565b6040516102fa9190612cea565b61036b6103b53660046128a5565b610ad9565b61039a610dbf565b61036b6103d036600461279d565b610dd0565b61036b6103e33660046127e0565b610e54565b6103f0610f08565b6040516102fa919061293c565b61041061040b36600461279d565b610f17565b6040516102fa929190612d16565b61036b610f3d565b61031e610fe9565b6103f0610fff565b6102ed61100e565b61036b61044c3660046128a5565b611014565b61036b61045f36600461279d565b611216565b6102ed611315565b61036b61047a366004612812565b61132d565b6102ed61048d36600461279d565b611409565b6103f061141b565b61036b6104a83660046128bf565b61142a565b61031e6104bb36600461279d565b611510565b61036b6104ce3660046127e0565b611545565b61031e6104e136600461279d565b61162c565b61036b6104f436600461279d565b611657565b61036b610507366004612922565b611742565b6102ed6117c7565b6105276105223660046127b7565b6117cd565b6040516102fa929190612d30565b61031e611816565b6102ed61182c565b61036b6105533660046127e0565b6118a3565b61031e61056636600461279d565b6119c3565b6102ed6119de565b61036b6105813660046128e8565b6119e4565b61034b611b22565b61036b611b31565b6102ed611b5d565b61031e6105ac36600461279d565b611b63565b61036b6105bf36600461279d565b611bd2565b61031e6105d236600461279d565b611cd5565b61036b6105e5366004612854565b611cf9565b6105fd6105f836600461279d565b611f53565b6040516102fa9190612950565b6001600160a01b038116600090815260a06020908152604080832054609f90925282205461068b919061068590670de0b6b3a76400009061067f906106579061065161182c565b90611fe5565b6001600160a01b03881660009081526098602052604090205466ffffffffffffff1690612047565b906120a7565b9061210e565b90505b919050565b60a06020526000908152604090205481565b609954600160a01b900466ffffffffffffff165b90565b60a254600160401b900466ffffffffffffff1681565b60a254600160781b900466ffffffffffffff1681565b6000610701609c54609b5461204790919063ffffffff16565b905090565b60a4546001600160401b031681565b61071d612168565b6001600160a01b031661072e61141b565b6001600160a01b031614610777576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b600061078161182c565b609e5561078c611315565b609d556001600160a01b038116156107d3576107a78161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b62015180821180156107e857506301e1338082105b61080d5760405162461bcd60e51b815260040161080490612b21565b60405180910390fd5b609c829055609a54421061083157609c546108299084906120a7565b609b55610874565b609a546000906108419042611fe5565b9050600061085a609b548361204790919063ffffffff16565b609c5490915061086e9061067f878461210e565b609b5550505b6097546040516370a0823160e01b81526000916001600160a01b0316906370a08231906108a590309060040161293c565b60206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f5919061286c565b905061090c609c54826120a790919063ffffffff16565b609b54111561092d5760405162461bcd60e51b815260040161080490612c2b565b42609d819055609c54610940919061210e565b609a556040517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d90610973908690612cf9565b60405180910390a150505050565b60a2546001600160401b031642111590565b609c5481565b600260015414156109df576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b6002600155336109ed61182c565b609e556109f8611315565b609d556001600160a01b03811615610a3f57610a138161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b33600090815260a060205260409020548015610ac05733600081815260a06020526040812055609754610a7e916001600160a01b03909116908361216c565b336001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610ab79190612cf9565b60405180910390a25b505060018055565b60a454600160401b900461ffff1681565b60026001541415610b1f576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b600260015533610b2d61182c565b609e55610b38611315565b609d556001600160a01b03811615610b7f57610b538161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b60008266ffffffffffffff1611610ba85760405162461bcd60e51b815260040161080490612ae5565b3360009081526098602052604090205466ffffffffffffff908116908316811015610be55760405162461bcd60e51b8152600401610804906129fb565b336000908152609860205260409020805466ffffffffffffff19169184900366ffffffffffffff818116939093179091556099549091600160a01b9091048116908416811015610c475760405162461bcd60e51b815260040161080490612bc7565b6099805466ffffffffffffff92869003838116600160a01b0266ffffffffffffff60a01b1990921691909117909155336000908152609860205260409020549091600160381b9091048116908316811115610cb45760405162461bcd60e51b815260040161080490612b58565b610cbc610981565b15610cfc5733600090815260a1602052604090205466ffffffffffffff80851691161115610cfc5760405162461bcd60e51b815260040161080490612b03565b33600081815260a3602090815260408083208151808301835266ffffffffffffff808c168083526001600160401b0342811684880190815285546001810187559589529690972092519290930180549551909616600160381b0267ffffffffffffffff60381b199290911666ffffffffffffff1990951694909417169290921790925590517f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d591610dac91612cf9565b60405180910390a2505060018055505050565b60a454600160501b900461ffff1681565b610dd8612168565b6001600160a01b0316610de961141b565b6001600160a01b031614610e32576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b609980546001600160a01b0319166001600160a01b0392909216919091179055565b6099546001600160a01b03163314610e7e5760405162461bcd60e51b815260040161080490612c81565b6001600160a01b03821660009081526098602052604090205466ffffffffffffff908116908216811015610ec45760405162461bcd60e51b815260040161080490612a38565b506001600160a01b039091166000908152609860205260409020805466ffffffffffffff909216600160381b0266ffffffffffffff60381b19909216919091179055565b6097546001600160a01b031681565b60986020526000908152604090205466ffffffffffffff80821691600160381b90041682565b610f45612168565b6001600160a01b0316610f5661141b565b6001600160a01b031614610f9f576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b60a454600160601b900466ffffffffffffff1681565b6099546001600160a01b031681565b609b5481565b6002600154141561105a576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b60026001553361106861182c565b609e55611073611315565b609d556001600160a01b038116156110ba5761108e8161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b60008266ffffffffffffff16116110e35760405162461bcd60e51b815260040161080490612c0d565b609754611104906001600160a01b0316333066ffffffffffffff86166121c3565b3360009081526098602052604090205466ffffffffffffff90811683019083811690821610156111465760405162461bcd60e51b8152600401610804906129bc565b336000908152609860205260409020805466ffffffffffffff191666ffffffffffffff83811691909117909155609954600160a01b9004811684019084811690821610156111a65760405162461bcd60e51b815260040161080490612a19565b6099805466ffffffffffffff808416600160a01b0266ffffffffffffff60a01b199092169190911790915560405133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9161120491881690612cf9565b60405180910390a25050600180555050565b61121e612168565b6001600160a01b031661122f61141b565b6001600160a01b031614611278576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b8061131161128461141b565b6040516370a0823160e01b81526001600160a01b038416906370a08231906112b090309060040161293c565b60206040518083038186803b1580156112c857600080fd5b505afa1580156112dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611300919061286c565b6001600160a01b038416919061216c565b5050565b6000609a54421061132857609a54610701565b504290565b611335612168565b6001600160a01b031661134661141b565b6001600160a01b03161461138f576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b6103e881840161ffff16106113b65760405162461bcd60e51b815260040161080490612ccc565b60a4805469ffff00000000000000001916600160401b61ffff958616021767ffffffffffffffff19166001600160401b03939093169290921761ffff60501b1916600160501b9190931602919091179055565b609f6020526000908152604090205481565b6065546001600160a01b031690565b611432612168565b6001600160a01b031661144361141b565b6001600160a01b03161461148c576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b60a45466ffffffffffffff600160601b909104811690831611156114c25760405162461bcd60e51b815260040161080490612a7c565b60a4805466ffffffffffffff600160601b808304821686900382160266ffffffffffffff60601b1990921691909117909155609754611311916001600160a01b03909116908390851661216c565b600061151b82611b63565b6001600160a01b03831660009081526098602052604090205466ffffffffffffff16039050919050565b6099546001600160a01b0316331461156f5760405162461bcd60e51b815260040161080490612c81565b60008166ffffffffffffff16116115985760405162461bcd60e51b815260040161080490612b76565b6001600160a01b03821660009081526098602052604090205466ffffffffffffff600160381b90910481169082168110156115e55760405162461bcd60e51b815260040161080490612a9c565b6001600160a01b03929092166000908152609860205260409020805466ffffffffffffff60381b1916600160381b9290930366ffffffffffffff1691909102919091179055565b6001600160a01b0316600090815260986020526040902054600160381b900466ffffffffffffff1690565b600054610100900460ff1680611670575061167061221d565b8061167e575060005460ff16155b6116b95760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156116e4576000805460ff1961ff0019909116610100171660011790555b6001600160a01b03821661170a5760405162461bcd60e51b815260040161080490612ac7565b61171261222e565b609780546001600160a01b0319166001600160a01b0384161790558015611311576000805461ff00191690555050565b61174a612168565b6001600160a01b031661175b61141b565b6001600160a01b0316146117a4576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b60a2805467ffffffffffffffff19166001600160401b0392909216919091179055565b609d5481565b60a360205281600052604060002081815481106117e957600080fd5b60009182526020909120015466ffffffffffffff81169250600160381b90046001600160401b0316905082565b609954600160a01b900466ffffffffffffff1681565b609954600090600160a01b900466ffffffffffffff1661184f5750609e546106b9565b61070161189a609960149054906101000a900466ffffffffffffff1666ffffffffffffff1661067f670de0b6b3a7640000611894609b54611894609d54610651611315565b90612047565b609e549061210e565b6099546001600160a01b031633146118cd5760405162461bcd60e51b815260040161080490612c81565b60008166ffffffffffffff16116118f65760405162461bcd60e51b815260040161080490612be5565b6001600160a01b03821660009081526098602052604090205466ffffffffffffff80821691600160381b90048116830190838116908216101561194b5760405162461bcd60e51b815260040161080490612a5d565b8166ffffffffffffff168166ffffffffffffff16111561197d5760405162461bcd60e51b815260040161080490612b9e565b6001600160a01b039093166000908152609860205260409020805466ffffffffffffff909416600160381b0266ffffffffffffff60381b19909416939093179092555050565b60a16020526000908152604090205466ffffffffffffff1681565b609e5481565b6119ec610981565b611a085760405162461bcd60e51b8152600401610804906129db565b3360009081526098602090815260408083205460a19092529091205466ffffffffffffff918216911680821015611a515760405162461bcd60e51b815260040161080490612c62565b80820366ffffffffffffff168466ffffffffffffff161115611a855760405162461bcd60e51b815260040161080490612ca9565b33600090815260a160205260409020805466ffffffffffffff191685830166ffffffffffffff161790558215611aed5760a2805466ffffffffffffff600160401b80830482168801909116026effffffffffffff000000000000000019909116179055611b1c565b60a2805466ffffffffffffff600160781b808304821688019091160266ffffffffffffff60781b199091161790555b50505050565b60a2546001600160401b031681565b33600090815260986020526040902054611b539066ffffffffffffff16610ad9565b611b5b610999565b565b609a5481565b6001600160a01b038116600090815260986020526040812054600160381b900466ffffffffffffff16611b94610981565b1561068b576001600160a01b038316600090815260a1602052604090205466ffffffffffffff908116908216811115611bcb578091505b5092915050565b611bda612168565b6001600160a01b0316611beb61141b565b6001600160a01b031614611c34576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b6001600160a01b038116611c795760405162461bcd60e51b8152600401808060200182810382526026815260200180612d876026913960400191505060405180910390fd5b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526098602052604090205466ffffffffffffff1690565b60026001541415611d3f576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b600260015533600090815260a360205260408120805483908110611d5f57fe5b60009182526020918290206040805180820190915291015466ffffffffffffff811682526001600160401b03600160381b909104811692820183905260a45491935061ffff600160501b830416924292821601161115611dc95760a454600160401b900461ffff16015b815166ffffffffffffff166000611de66103e861067f8486612047565b60a4805466ffffffffffffff600160601b808304821685019091160266ffffffffffffff60601b1990911617905533600090815260a360205260409020549091506000198101861015611ee45733600090815260a36020526040902080546000198301908110611e5257fe5b9060005260206000200160a36000336001600160a01b03166001600160a01b031681526020019081526020016000208781548110611e8c57fe5b6000918252602090912082549101805466ffffffffffffff191666ffffffffffffff9092169190911780825591546001600160401b03600160381b91829004160267ffffffffffffffff60381b199092169190911790555b33600090815260a360205260409020805480611efc57fe5b600082815260209020810160001990810180546effffffffffffffffffffffffffffff19169055019055611f4733611f348585611fe5565b6097546001600160a01b0316919061216c565b50506001805550505050565b6001600160a01b038116600090815260a360209081526040808320805482518185028101850190935280835260609492939192909184015b82821015611fda576000848152602090819020604080518082019091529084015466ffffffffffffff81168252600160381b90046001600160401b031681830152825260019092019101611f8b565b505050509050919050565b60008282111561203c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261205657506000612041565b8282028284828161206357fe5b04146120a05760405162461bcd60e51b8152600401808060200182810382526021815260200180612e016021913960400191505060405180910390fd5b9392505050565b60008082116120fd576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161210657fe5b049392505050565b6000828201838110156120a0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526121be9084906122e0565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611b1c9085906122e0565b600061222830612391565b15905090565b600054610100900460ff1680612247575061224761221d565b80612255575060005460ff16155b6122905760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156122bb576000805460ff1961ff0019909116610100171660011790555b6122c3612397565b6122cb612437565b80156122dd576000805461ff00191690555b50565b6000612335826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125309092919063ffffffff16565b8051909150156121be5780806020019051602081101561235457600080fd5b50516121be5760405162461bcd60e51b815260040180806020018281038252602a815260200180612e42602a913960400191505060405180910390fd5b3b151590565b600054610100900460ff16806123b057506123b061221d565b806123be575060005460ff16155b6123f95760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156122cb576000805460ff1961ff00199091166101001716600117905580156122dd576000805461ff001916905550565b600054610100900460ff1680612450575061245061221d565b8061245e575060005460ff16155b6124995760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156124c4576000805460ff1961ff0019909116610100171660011790555b60006124ce612168565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156122dd576000805461ff001916905550565b606061253f8484600085612547565b949350505050565b6060824710156125885760405162461bcd60e51b8152600401808060200182810382526026815260200180612dad6026913960400191505060405180910390fd5b61259185612391565b6125e2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106126205780518252601f199092019160209182019101612601565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612682576040519150601f19603f3d011682016040523d82523d6000602084013e612687565b606091505b50915091506126978282866126a2565b979650505050505050565b606083156126b15750816120a0565b8251156126c15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561270b5781810151838201526020016126f3565b50505050905090810190601f1680156127385780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b80356001600160a01b038116811461068e57600080fd5b803561ffff8116811461068e57600080fd5b803566ffffffffffffff8116811461068e57600080fd5b80356001600160401b038116811461068e57600080fd5b6000602082840312156127ae578081fd5b6120a082612746565b600080604083850312156127c9578081fd5b6127d283612746565b946020939093013593505050565b600080604083850312156127f2578182fd5b6127fb83612746565b91506128096020840161276f565b90509250929050565b600080600060608486031215612826578081fd5b61282f8461275d565b925061283d60208501612786565b915061284b6040850161275d565b90509250925092565b600060208284031215612865578081fd5b5035919050565b60006020828403121561287d578081fd5b5051919050565b60008060408385031215612896578182fd5b50508035926020909101359150565b6000602082840312156128b6578081fd5b6120a08261276f565b600080604083850312156128d1578182fd5b6128da8361276f565b915061280960208401612746565b600080604083850312156128fa578182fd5b6129038361276f565b915060208301358015158114612917578182fd5b809150509250929050565b600060208284031215612933578081fd5b6120a082612786565b6001600160a01b0391909116815260200190565b602080825282518282018190526000919060409081850190868401855b828110156129a4578151805166ffffffffffffff1685528601516001600160401b031686850152928401929085019060010161296d565b5091979650505050505050565b901515815260200190565b6020808252600590820152644f4628312960d81b604082015260600190565b6020808252600690820152652b212fa324a760d11b604082015260600190565b602080825260049082015263434e573160e01b604082015260600190565b6020808252600590820152644f4628332960d81b604082015260600190565b6020808252600b908201526a43616e6e6f74206c6f636b60a81b604082015260600190565b6020808252600590820152644f4628342960d81b604082015260600190565b60208082526006908201526527abafa1a72160d11b604082015260600190565b60208082526011908201527043616e277420756e6c6f636b206d6f726560781b604082015260600190565b60208082526004908201526304f4749360e41b604082015260600190565b6020808252600490820152630434e57360e41b604082015260600190565b60208082526004908201526310d395cd60e21b604082015260600190565b6020808252601a908201527f496e636f72726563742072657761726473206475726174696f6e000000000000604082015260600190565b602080825260049082015263434e573360e01b604082015260600190565b6020808252600e908201526d043616e27742064656320627920360941b604082015260600190565b6020808252600f908201526e63616e2774206c6f636b206d6f726560881b604082015260600190565b60208082526004908201526321a72b9960e11b604082015260600190565b6020808252600e908201526d043616e277420696e6320627920360941b604082015260600190565b6020808252600490820152630434e53360e41b604082015260600190565b60208082526018908201527f50726f76696465642072657761726420746f6f20686967680000000000000000604082015260600190565b6020808252600590820152642b212fa7a360d91b604082015260600190565b6020808252600e908201526d6d75737420626520766f74696e6760901b604082015260600190565b6020808252600990820152682b212fa722afa7a92760b91b604082015260600190565b60208082526004908201526356465f3160e01b604082015260600190565b61ffff91909116815260200190565b90815260200190565b66ffffffffffffff91909116815260200190565b66ffffffffffffff92831681529116602082015260400190565b66ffffffffffffff9290921682526001600160401b0316602082015260400190565b6001600160401b039190911681526020019056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122001765ca2f870dad0b2987b81d2b2b26d9fb4e930f06a4a30e6fca09a918c76eb64736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102d55760003560e01c80638b141fa911610182578063cd3daf9d116100e9578063e9fad8ee116100a2578063f2fde38b1161007c578063f2fde38b146105b1578063f8b2cb4f146105c4578063fb839dda146105d7578063fe7c9c92146105ea576102d5565b8063e9fad8ee1461058e578063ebe2b12b14610596578063f1001f8c1461059e576102d5565b8063cd3daf9d1461053d578063dc8d8abd14610545578063dd3c0c2914610558578063df136d651461056b578063df640b9c14610573578063e5243da114610586576102d5565b8063c40868931161013b578063c4086893146104d3578063c4d66de8146104e6578063c653375d146104f9578063c8f33c911461050c578063c941e01314610514578063c948953a14610535576102d5565b80638b141fa91461046c5780638b8763471461047f5780638da5cb5b14610492578063b31e4b031461049a578063bcfc4429146104ad578063c345a20a146104c0576102d5565b806353498dfb11610241578063715018a6116101fa5780637b0a47ee116101d45780637b0a47ee146104365780637d793edd1461043e5780637f8512c11461045157806380faa57d14610464576102d5565b8063715018a61461041e57806376a4db701461042657806377e84f731461042e576102d5565b806353498dfb146103a75780635fad82ca146103ba57806362b08e70146103c257806362eb1e0d146103d557806366be05da146103e85780636ca34ea2146103fd576102d5565b806323b07bba1161029357806323b07bba14610343578063246132f914610358578063324ea7fc1461036d578063386a9525146103825780633d18b9121461038a57806352a9e1e414610392576102d5565b80628cc262146102da5780630700037d1461030357806312b58349146103165780631506be171461032b57806315b726d0146103335780631c1f78eb1461033b575b600080fd5b6102ed6102e836600461279d565b61060a565b6040516102fa9190612cf9565b60405180910390f35b6102ed61031136600461279d565b610693565b61031e6106a5565b6040516102fa9190612d02565b61031e6106bc565b61031e6106d2565b6102ed6106e8565b61034b610706565b6040516102fa9190612d52565b61036b610366366004612884565b610715565b005b610375610981565b6040516102fa91906129b1565b6102ed610993565b61036b610999565b61039a610ac8565b6040516102fa9190612cea565b61036b6103b53660046128a5565b610ad9565b61039a610dbf565b61036b6103d036600461279d565b610dd0565b61036b6103e33660046127e0565b610e54565b6103f0610f08565b6040516102fa919061293c565b61041061040b36600461279d565b610f17565b6040516102fa929190612d16565b61036b610f3d565b61031e610fe9565b6103f0610fff565b6102ed61100e565b61036b61044c3660046128a5565b611014565b61036b61045f36600461279d565b611216565b6102ed611315565b61036b61047a366004612812565b61132d565b6102ed61048d36600461279d565b611409565b6103f061141b565b61036b6104a83660046128bf565b61142a565b61031e6104bb36600461279d565b611510565b61036b6104ce3660046127e0565b611545565b61031e6104e136600461279d565b61162c565b61036b6104f436600461279d565b611657565b61036b610507366004612922565b611742565b6102ed6117c7565b6105276105223660046127b7565b6117cd565b6040516102fa929190612d30565b61031e611816565b6102ed61182c565b61036b6105533660046127e0565b6118a3565b61031e61056636600461279d565b6119c3565b6102ed6119de565b61036b6105813660046128e8565b6119e4565b61034b611b22565b61036b611b31565b6102ed611b5d565b61031e6105ac36600461279d565b611b63565b61036b6105bf36600461279d565b611bd2565b61031e6105d236600461279d565b611cd5565b61036b6105e5366004612854565b611cf9565b6105fd6105f836600461279d565b611f53565b6040516102fa9190612950565b6001600160a01b038116600090815260a06020908152604080832054609f90925282205461068b919061068590670de0b6b3a76400009061067f906106579061065161182c565b90611fe5565b6001600160a01b03881660009081526098602052604090205466ffffffffffffff1690612047565b906120a7565b9061210e565b90505b919050565b60a06020526000908152604090205481565b609954600160a01b900466ffffffffffffff165b90565b60a254600160401b900466ffffffffffffff1681565b60a254600160781b900466ffffffffffffff1681565b6000610701609c54609b5461204790919063ffffffff16565b905090565b60a4546001600160401b031681565b61071d612168565b6001600160a01b031661072e61141b565b6001600160a01b031614610777576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b600061078161182c565b609e5561078c611315565b609d556001600160a01b038116156107d3576107a78161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b62015180821180156107e857506301e1338082105b61080d5760405162461bcd60e51b815260040161080490612b21565b60405180910390fd5b609c829055609a54421061083157609c546108299084906120a7565b609b55610874565b609a546000906108419042611fe5565b9050600061085a609b548361204790919063ffffffff16565b609c5490915061086e9061067f878461210e565b609b5550505b6097546040516370a0823160e01b81526000916001600160a01b0316906370a08231906108a590309060040161293c565b60206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f5919061286c565b905061090c609c54826120a790919063ffffffff16565b609b54111561092d5760405162461bcd60e51b815260040161080490612c2b565b42609d819055609c54610940919061210e565b609a556040517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d90610973908690612cf9565b60405180910390a150505050565b60a2546001600160401b031642111590565b609c5481565b600260015414156109df576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b6002600155336109ed61182c565b609e556109f8611315565b609d556001600160a01b03811615610a3f57610a138161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b33600090815260a060205260409020548015610ac05733600081815260a06020526040812055609754610a7e916001600160a01b03909116908361216c565b336001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610ab79190612cf9565b60405180910390a25b505060018055565b60a454600160401b900461ffff1681565b60026001541415610b1f576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b600260015533610b2d61182c565b609e55610b38611315565b609d556001600160a01b03811615610b7f57610b538161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b60008266ffffffffffffff1611610ba85760405162461bcd60e51b815260040161080490612ae5565b3360009081526098602052604090205466ffffffffffffff908116908316811015610be55760405162461bcd60e51b8152600401610804906129fb565b336000908152609860205260409020805466ffffffffffffff19169184900366ffffffffffffff818116939093179091556099549091600160a01b9091048116908416811015610c475760405162461bcd60e51b815260040161080490612bc7565b6099805466ffffffffffffff92869003838116600160a01b0266ffffffffffffff60a01b1990921691909117909155336000908152609860205260409020549091600160381b9091048116908316811115610cb45760405162461bcd60e51b815260040161080490612b58565b610cbc610981565b15610cfc5733600090815260a1602052604090205466ffffffffffffff80851691161115610cfc5760405162461bcd60e51b815260040161080490612b03565b33600081815260a3602090815260408083208151808301835266ffffffffffffff808c168083526001600160401b0342811684880190815285546001810187559589529690972092519290930180549551909616600160381b0267ffffffffffffffff60381b199290911666ffffffffffffff1990951694909417169290921790925590517f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d591610dac91612cf9565b60405180910390a2505060018055505050565b60a454600160501b900461ffff1681565b610dd8612168565b6001600160a01b0316610de961141b565b6001600160a01b031614610e32576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b609980546001600160a01b0319166001600160a01b0392909216919091179055565b6099546001600160a01b03163314610e7e5760405162461bcd60e51b815260040161080490612c81565b6001600160a01b03821660009081526098602052604090205466ffffffffffffff908116908216811015610ec45760405162461bcd60e51b815260040161080490612a38565b506001600160a01b039091166000908152609860205260409020805466ffffffffffffff909216600160381b0266ffffffffffffff60381b19909216919091179055565b6097546001600160a01b031681565b60986020526000908152604090205466ffffffffffffff80821691600160381b90041682565b610f45612168565b6001600160a01b0316610f5661141b565b6001600160a01b031614610f9f576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b60a454600160601b900466ffffffffffffff1681565b6099546001600160a01b031681565b609b5481565b6002600154141561105a576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b60026001553361106861182c565b609e55611073611315565b609d556001600160a01b038116156110ba5761108e8161060a565b6001600160a01b038216600090815260a06020908152604080832093909355609e54609f909152919020555b60008266ffffffffffffff16116110e35760405162461bcd60e51b815260040161080490612c0d565b609754611104906001600160a01b0316333066ffffffffffffff86166121c3565b3360009081526098602052604090205466ffffffffffffff90811683019083811690821610156111465760405162461bcd60e51b8152600401610804906129bc565b336000908152609860205260409020805466ffffffffffffff191666ffffffffffffff83811691909117909155609954600160a01b9004811684019084811690821610156111a65760405162461bcd60e51b815260040161080490612a19565b6099805466ffffffffffffff808416600160a01b0266ffffffffffffff60a01b199092169190911790915560405133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9161120491881690612cf9565b60405180910390a25050600180555050565b61121e612168565b6001600160a01b031661122f61141b565b6001600160a01b031614611278576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b8061131161128461141b565b6040516370a0823160e01b81526001600160a01b038416906370a08231906112b090309060040161293c565b60206040518083038186803b1580156112c857600080fd5b505afa1580156112dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611300919061286c565b6001600160a01b038416919061216c565b5050565b6000609a54421061132857609a54610701565b504290565b611335612168565b6001600160a01b031661134661141b565b6001600160a01b03161461138f576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b6103e881840161ffff16106113b65760405162461bcd60e51b815260040161080490612ccc565b60a4805469ffff00000000000000001916600160401b61ffff958616021767ffffffffffffffff19166001600160401b03939093169290921761ffff60501b1916600160501b9190931602919091179055565b609f6020526000908152604090205481565b6065546001600160a01b031690565b611432612168565b6001600160a01b031661144361141b565b6001600160a01b03161461148c576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b60a45466ffffffffffffff600160601b909104811690831611156114c25760405162461bcd60e51b815260040161080490612a7c565b60a4805466ffffffffffffff600160601b808304821686900382160266ffffffffffffff60601b1990921691909117909155609754611311916001600160a01b03909116908390851661216c565b600061151b82611b63565b6001600160a01b03831660009081526098602052604090205466ffffffffffffff16039050919050565b6099546001600160a01b0316331461156f5760405162461bcd60e51b815260040161080490612c81565b60008166ffffffffffffff16116115985760405162461bcd60e51b815260040161080490612b76565b6001600160a01b03821660009081526098602052604090205466ffffffffffffff600160381b90910481169082168110156115e55760405162461bcd60e51b815260040161080490612a9c565b6001600160a01b03929092166000908152609860205260409020805466ffffffffffffff60381b1916600160381b9290930366ffffffffffffff1691909102919091179055565b6001600160a01b0316600090815260986020526040902054600160381b900466ffffffffffffff1690565b600054610100900460ff1680611670575061167061221d565b8061167e575060005460ff16155b6116b95760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156116e4576000805460ff1961ff0019909116610100171660011790555b6001600160a01b03821661170a5760405162461bcd60e51b815260040161080490612ac7565b61171261222e565b609780546001600160a01b0319166001600160a01b0384161790558015611311576000805461ff00191690555050565b61174a612168565b6001600160a01b031661175b61141b565b6001600160a01b0316146117a4576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b60a2805467ffffffffffffffff19166001600160401b0392909216919091179055565b609d5481565b60a360205281600052604060002081815481106117e957600080fd5b60009182526020909120015466ffffffffffffff81169250600160381b90046001600160401b0316905082565b609954600160a01b900466ffffffffffffff1681565b609954600090600160a01b900466ffffffffffffff1661184f5750609e546106b9565b61070161189a609960149054906101000a900466ffffffffffffff1666ffffffffffffff1661067f670de0b6b3a7640000611894609b54611894609d54610651611315565b90612047565b609e549061210e565b6099546001600160a01b031633146118cd5760405162461bcd60e51b815260040161080490612c81565b60008166ffffffffffffff16116118f65760405162461bcd60e51b815260040161080490612be5565b6001600160a01b03821660009081526098602052604090205466ffffffffffffff80821691600160381b90048116830190838116908216101561194b5760405162461bcd60e51b815260040161080490612a5d565b8166ffffffffffffff168166ffffffffffffff16111561197d5760405162461bcd60e51b815260040161080490612b9e565b6001600160a01b039093166000908152609860205260409020805466ffffffffffffff909416600160381b0266ffffffffffffff60381b19909416939093179092555050565b60a16020526000908152604090205466ffffffffffffff1681565b609e5481565b6119ec610981565b611a085760405162461bcd60e51b8152600401610804906129db565b3360009081526098602090815260408083205460a19092529091205466ffffffffffffff918216911680821015611a515760405162461bcd60e51b815260040161080490612c62565b80820366ffffffffffffff168466ffffffffffffff161115611a855760405162461bcd60e51b815260040161080490612ca9565b33600090815260a160205260409020805466ffffffffffffff191685830166ffffffffffffff161790558215611aed5760a2805466ffffffffffffff600160401b80830482168801909116026effffffffffffff000000000000000019909116179055611b1c565b60a2805466ffffffffffffff600160781b808304821688019091160266ffffffffffffff60781b199091161790555b50505050565b60a2546001600160401b031681565b33600090815260986020526040902054611b539066ffffffffffffff16610ad9565b611b5b610999565b565b609a5481565b6001600160a01b038116600090815260986020526040812054600160381b900466ffffffffffffff16611b94610981565b1561068b576001600160a01b038316600090815260a1602052604090205466ffffffffffffff908116908216811115611bcb578091505b5092915050565b611bda612168565b6001600160a01b0316611beb61141b565b6001600160a01b031614611c34576040805162461bcd60e51b81526020600482018190526024820152600080516020612e22833981519152604482015290519081900360640190fd5b6001600160a01b038116611c795760405162461bcd60e51b8152600401808060200182810382526026815260200180612d876026913960400191505060405180910390fd5b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526098602052604090205466ffffffffffffff1690565b60026001541415611d3f576040805162461bcd60e51b815260206004820152601f6024820152600080516020612d67833981519152604482015290519081900360640190fd5b600260015533600090815260a360205260408120805483908110611d5f57fe5b60009182526020918290206040805180820190915291015466ffffffffffffff811682526001600160401b03600160381b909104811692820183905260a45491935061ffff600160501b830416924292821601161115611dc95760a454600160401b900461ffff16015b815166ffffffffffffff166000611de66103e861067f8486612047565b60a4805466ffffffffffffff600160601b808304821685019091160266ffffffffffffff60601b1990911617905533600090815260a360205260409020549091506000198101861015611ee45733600090815260a36020526040902080546000198301908110611e5257fe5b9060005260206000200160a36000336001600160a01b03166001600160a01b031681526020019081526020016000208781548110611e8c57fe5b6000918252602090912082549101805466ffffffffffffff191666ffffffffffffff9092169190911780825591546001600160401b03600160381b91829004160267ffffffffffffffff60381b199092169190911790555b33600090815260a360205260409020805480611efc57fe5b600082815260209020810160001990810180546effffffffffffffffffffffffffffff19169055019055611f4733611f348585611fe5565b6097546001600160a01b0316919061216c565b50506001805550505050565b6001600160a01b038116600090815260a360209081526040808320805482518185028101850190935280835260609492939192909184015b82821015611fda576000848152602090819020604080518082019091529084015466ffffffffffffff81168252600160381b90046001600160401b031681830152825260019092019101611f8b565b505050509050919050565b60008282111561203c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261205657506000612041565b8282028284828161206357fe5b04146120a05760405162461bcd60e51b8152600401808060200182810382526021815260200180612e016021913960400191505060405180910390fd5b9392505050565b60008082116120fd576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161210657fe5b049392505050565b6000828201838110156120a0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526121be9084906122e0565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611b1c9085906122e0565b600061222830612391565b15905090565b600054610100900460ff1680612247575061224761221d565b80612255575060005460ff16155b6122905760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156122bb576000805460ff1961ff0019909116610100171660011790555b6122c3612397565b6122cb612437565b80156122dd576000805461ff00191690555b50565b6000612335826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125309092919063ffffffff16565b8051909150156121be5780806020019051602081101561235457600080fd5b50516121be5760405162461bcd60e51b815260040180806020018281038252602a815260200180612e42602a913960400191505060405180910390fd5b3b151590565b600054610100900460ff16806123b057506123b061221d565b806123be575060005460ff16155b6123f95760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156122cb576000805460ff1961ff00199091166101001716600117905580156122dd576000805461ff001916905550565b600054610100900460ff1680612450575061245061221d565b8061245e575060005460ff16155b6124995760405162461bcd60e51b815260040180806020018281038252602e815260200180612dd3602e913960400191505060405180910390fd5b600054610100900460ff161580156124c4576000805460ff1961ff0019909116610100171660011790555b60006124ce612168565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156122dd576000805461ff001916905550565b606061253f8484600085612547565b949350505050565b6060824710156125885760405162461bcd60e51b8152600401808060200182810382526026815260200180612dad6026913960400191505060405180910390fd5b61259185612391565b6125e2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106126205780518252601f199092019160209182019101612601565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612682576040519150601f19603f3d011682016040523d82523d6000602084013e612687565b606091505b50915091506126978282866126a2565b979650505050505050565b606083156126b15750816120a0565b8251156126c15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561270b5781810151838201526020016126f3565b50505050905090810190601f1680156127385780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b80356001600160a01b038116811461068e57600080fd5b803561ffff8116811461068e57600080fd5b803566ffffffffffffff8116811461068e57600080fd5b80356001600160401b038116811461068e57600080fd5b6000602082840312156127ae578081fd5b6120a082612746565b600080604083850312156127c9578081fd5b6127d283612746565b946020939093013593505050565b600080604083850312156127f2578182fd5b6127fb83612746565b91506128096020840161276f565b90509250929050565b600080600060608486031215612826578081fd5b61282f8461275d565b925061283d60208501612786565b915061284b6040850161275d565b90509250925092565b600060208284031215612865578081fd5b5035919050565b60006020828403121561287d578081fd5b5051919050565b60008060408385031215612896578182fd5b50508035926020909101359150565b6000602082840312156128b6578081fd5b6120a08261276f565b600080604083850312156128d1578182fd5b6128da8361276f565b915061280960208401612746565b600080604083850312156128fa578182fd5b6129038361276f565b915060208301358015158114612917578182fd5b809150509250929050565b600060208284031215612933578081fd5b6120a082612786565b6001600160a01b0391909116815260200190565b602080825282518282018190526000919060409081850190868401855b828110156129a4578151805166ffffffffffffff1685528601516001600160401b031686850152928401929085019060010161296d565b5091979650505050505050565b901515815260200190565b6020808252600590820152644f4628312960d81b604082015260600190565b6020808252600690820152652b212fa324a760d11b604082015260600190565b602080825260049082015263434e573160e01b604082015260600190565b6020808252600590820152644f4628332960d81b604082015260600190565b6020808252600b908201526a43616e6e6f74206c6f636b60a81b604082015260600190565b6020808252600590820152644f4628342960d81b604082015260600190565b60208082526006908201526527abafa1a72160d11b604082015260600190565b60208082526011908201527043616e277420756e6c6f636b206d6f726560781b604082015260600190565b60208082526004908201526304f4749360e41b604082015260600190565b6020808252600490820152630434e57360e41b604082015260600190565b60208082526004908201526310d395cd60e21b604082015260600190565b6020808252601a908201527f496e636f72726563742072657761726473206475726174696f6e000000000000604082015260600190565b602080825260049082015263434e573360e01b604082015260600190565b6020808252600e908201526d043616e27742064656320627920360941b604082015260600190565b6020808252600f908201526e63616e2774206c6f636b206d6f726560881b604082015260600190565b60208082526004908201526321a72b9960e11b604082015260600190565b6020808252600e908201526d043616e277420696e6320627920360941b604082015260600190565b6020808252600490820152630434e53360e41b604082015260600190565b60208082526018908201527f50726f76696465642072657761726420746f6f20686967680000000000000000604082015260600190565b6020808252600590820152642b212fa7a360d91b604082015260600190565b6020808252600e908201526d6d75737420626520766f74696e6760901b604082015260600190565b6020808252600990820152682b212fa722afa7a92760b91b604082015260600190565b60208082526004908201526356465f3160e01b604082015260600190565b61ffff91909116815260200190565b90815260200190565b66ffffffffffffff91909116815260200190565b66ffffffffffffff92831681529116602082015260400190565b66ffffffffffffff9290921682526001600160401b0316602082015260400190565b6001600160401b039190911681526020019056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122001765ca2f870dad0b2987b81d2b2b26d9fb4e930f06a4a30e6fca09a918c76eb64736f6c63430007060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.