More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,636 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 19983533 | 137 days ago | IN | 0 ETH | 0.00201174 | ||||
Withdraw | 19464220 | 209 days ago | IN | 0 ETH | 0.00271943 | ||||
Unstake | 19464053 | 209 days ago | IN | 0 ETH | 0.00302958 | ||||
Claim | 19423405 | 215 days ago | IN | 0 ETH | 0.00335366 | ||||
Unstake | 18596065 | 331 days ago | IN | 0 ETH | 0.0017042 | ||||
Stake | 18596030 | 331 days ago | IN | 0 ETH | 0.00199549 | ||||
Unstake | 18537385 | 339 days ago | IN | 0 ETH | 0.00452272 | ||||
Unstake | 18346214 | 366 days ago | IN | 0 ETH | 0.00044154 | ||||
Unstake | 16086970 | 683 days ago | IN | 0 ETH | 0.00085351 | ||||
Claim | 15651869 | 744 days ago | IN | 0 ETH | 0.0005487 | ||||
Unstake | 15484744 | 769 days ago | IN | 0 ETH | 0.00137939 | ||||
Unstake | 14667683 | 901 days ago | IN | 0 ETH | 0.00542518 | ||||
Unstake | 14358735 | 949 days ago | IN | 0 ETH | 0.00230476 | ||||
Claim | 13284864 | 1116 days ago | IN | 0 ETH | 0.00629113 | ||||
Claim | 13245405 | 1122 days ago | IN | 0 ETH | 0.0078107 | ||||
Transfer | 13178272 | 1133 days ago | IN | 0 ETH | 0.00183138 | ||||
Withdraw | 12951010 | 1168 days ago | IN | 0 ETH | 0.0011619 | ||||
Claim | 12919231 | 1173 days ago | IN | 0 ETH | 0.00166241 | ||||
Claim | 12891553 | 1177 days ago | IN | 0 ETH | 0.00102616 | ||||
Claim | 12852854 | 1183 days ago | IN | 0 ETH | 0.00169346 | ||||
Claim | 12799517 | 1192 days ago | IN | 0 ETH | 0.00064831 | ||||
Claim | 12778634 | 1195 days ago | IN | 0 ETH | 0.00235013 | ||||
Claim | 12728139 | 1203 days ago | IN | 0 ETH | 0.00081039 | ||||
Withdraw | 12725965 | 1203 days ago | IN | 0 ETH | 0.00026304 | ||||
Withdraw | 12725939 | 1203 days ago | IN | 0 ETH | 0.0007426 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
19983533 | 137 days ago | 0 ETH | |||||
19464220 | 209 days ago | 0 ETH | |||||
19464053 | 209 days ago | 0 ETH | |||||
18596065 | 331 days ago | 0 ETH | |||||
18596030 | 331 days ago | 0 ETH | |||||
18537385 | 339 days ago | 0 ETH | |||||
18346214 | 366 days ago | 0 ETH | |||||
16086970 | 683 days ago | 0 ETH | |||||
15484744 | 769 days ago | 0 ETH | |||||
14667683 | 901 days ago | 0 ETH | |||||
14358735 | 949 days ago | 0 ETH | |||||
12951010 | 1168 days ago | 0 ETH | |||||
12725939 | 1203 days ago | 0 ETH | |||||
12673549 | 1211 days ago | 0 ETH | |||||
12632343 | 1218 days ago | 0 ETH | |||||
12605902 | 1222 days ago | 0 ETH | |||||
12550032 | 1230 days ago | 0 ETH | |||||
12528746 | 1234 days ago | 0 ETH | |||||
12500673 | 1238 days ago | 0 ETH | |||||
12500575 | 1238 days ago | 0 ETH | |||||
12347726 | 1262 days ago | 0 ETH | |||||
12340042 | 1263 days ago | 0 ETH | |||||
12223561 | 1281 days ago | 0 ETH | |||||
12103321 | 1299 days ago | 0 ETH | |||||
12081449 | 1303 days ago | 0 ETH |
Loading...
Loading
Contract Name:
UniV2SyntheticToken
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-16 */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.12; // /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // /** * @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); } // struct AttoDecimal { uint256 mantissa; } library AttoDecimalLib { using SafeMath for uint256; uint256 internal constant BASE = 10; uint256 internal constant EXPONENTIATION = 18; uint256 internal constant ONE_MANTISSA = BASE**EXPONENTIATION; function convert(uint256 integer) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: integer.mul(ONE_MANTISSA)}); } function add(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: a.mantissa.add(b.mantissa)}); } function sub(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: a.mantissa.sub(b.mantissa)}); } function mul(AttoDecimal memory a, uint256 b) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: a.mantissa.mul(b)}); } function div(uint256 a, uint256 b) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: a.mul(ONE_MANTISSA).div(b)}); } function div(AttoDecimal memory a, uint256 b) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: a.mantissa.div(b)}); } function div(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) { return AttoDecimal({mantissa: a.mantissa.mul(ONE_MANTISSA).div(b.mantissa)}); } function floor(AttoDecimal memory a) internal pure returns (uint256) { return a.mantissa.div(ONE_MANTISSA); } function lte(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (bool) { return a.mantissa <= b.mantissa; } } // abstract contract Owned { address public nominatedOwner; address public owner; event OwnerChanged(address oldOwner, address newOwner); event OwnerNominated(address newOwner); constructor(address _owner) internal { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); owner = nominatedOwner; nominatedOwner = address(0); emit OwnerChanged(owner, nominatedOwner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } modifier onlyOwner { require(msg.sender == owner, "Only the contract owner may perform this action"); _; } } // /** * @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 in 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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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); } } } } // /** * @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"); } } } // contract TokensStorage { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 private _rewardPool; uint256 private _rewardSupply; uint256 private _totalSupply; IERC20 private _rewardsToken; IERC20 private _stakingToken; mapping(address => uint256) private _balances; mapping(address => uint256) private _claimed; mapping(address => uint256) private _rewards; function rewardPool() public view returns (uint256) { return _rewardPool; } function rewardSupply() public view returns (uint256) { return _rewardSupply; } function totalSupply() public view returns (uint256) { return _totalSupply; } function rewardsToken() public view returns (IERC20) { return _rewardsToken; } function stakingToken() public view returns (IERC20) { return _stakingToken; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function claimedOf(address account) public view returns (uint256) { return _claimed[account]; } function rewardOf(address account) public view returns (uint256) { return _rewards[account]; } constructor(IERC20 rewardsToken_, IERC20 stakingToken_) public { _rewardsToken = rewardsToken_; _stakingToken = stakingToken_; } function _onMint(address account, uint256 amount) internal virtual {} function _onBurn(address account, uint256 amount) internal virtual {} function _stake(address account, uint256 amount) internal { _stakingToken.safeTransferFrom(account, address(this), amount); _balances[account] = _balances[account].add(amount); _totalSupply = _totalSupply.add(amount); _onMint(account, amount); } function _unstake(address account, uint256 amount) internal { _stakingToken.safeTransfer(account, amount); _balances[account] = _balances[account].sub(amount); _totalSupply = _totalSupply.sub(amount); _onBurn(account, amount); } function _increaseRewardPool(address owner, uint256 amount) internal { _rewardsToken.safeTransferFrom(owner, address(this), amount); _rewardSupply = _rewardSupply.add(amount); _rewardPool = _rewardPool.add(amount); } function _reduceRewardPool(address owner, uint256 amount) internal { _rewardsToken.safeTransfer(owner, amount); _rewardSupply = _rewardSupply.sub(amount); _rewardPool = _rewardPool.sub(amount); } function _addReward(address account, uint256 amount) internal { _rewards[account] = _rewards[account].add(amount); _rewardPool = _rewardPool.sub(amount); } function _withdraw(address account, uint256 amount) internal { _rewardsToken.safeTransfer(account, amount); _claimed[account] = _claimed[account].sub(amount); } function _claim(address account, uint256 amount) internal { _rewards[account] = _rewards[account].sub(amount); _rewardSupply = _rewardSupply.sub(amount); _claimed[account] = _claimed[account].add(amount); } function _transferBalance( address from, address to, uint256 amount ) internal { _balances[from] = _balances[from].sub(amount); _balances[to] = _balances[to].add(amount); } } // contract UniV2Staking is Owned, TokensStorage { using SafeMath for uint256; using AttoDecimalLib for AttoDecimal; function getBlockNumber() internal virtual view returns (uint256) { return block.number; } function getTimestamp() internal virtual view returns (uint256) { return block.timestamp; } uint256 public constant REWARD_UNLOCKING_TIME = 8 days; uint256 public constant SECONDS_PER_BLOCK = 15; uint256 public constant BLOCKS_PER_DAY = 1 days / SECONDS_PER_BLOCK; uint256 public constant MAX_DISTRIBUTION_DURATION = 90 days * BLOCKS_PER_DAY; mapping(address => uint256) public rewardUnlockingTime; uint256 private _lastUpdateBlockNumber; uint256 private _perBlockReward; uint256 private _blockNumberOfDistributionEnding; AttoDecimal private _rewardPerToken; mapping(address => AttoDecimal) private _paidRates; function lastUpdateBlockNumber() public view returns (uint256) { return _lastUpdateBlockNumber; } function perBlockReward() public view returns (uint256) { return _perBlockReward; } function blockNumberOfDistributionEnding() public view returns (uint256) { return _blockNumberOfDistributionEnding; } function getRewardPerToken() internal view returns (AttoDecimal memory) { uint256 lastRewardBlockNumber = Math.min(getBlockNumber(), _blockNumberOfDistributionEnding); if (lastRewardBlockNumber <= _lastUpdateBlockNumber) return _rewardPerToken; return _getRewardPerToken(lastRewardBlockNumber); } function _getRewardPerToken(uint256 forBlockNumber) internal view returns (AttoDecimal memory) { uint256 totalSupply_ = totalSupply(); if (totalSupply_ == 0) return AttoDecimalLib.convert(0); uint256 totalReward = forBlockNumber.sub(_lastUpdateBlockNumber).mul(_perBlockReward); AttoDecimal memory newRewardPerToken = AttoDecimalLib.div(totalReward, totalSupply_); return _rewardPerToken.add(newRewardPerToken); } function rewardPerToken() external view returns ( uint256 mantissa, uint256 base, uint256 exponentiation ) { return (getRewardPerToken().mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION); } function paidRateOf(address account) external view returns ( uint256 mantissa, uint256 base, uint256 exponentiation ) { return (_paidRates[account].mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION); } function earnedOf(address account) public view returns (uint256) { AttoDecimal memory rewardPerToken_ = getRewardPerToken(); if (rewardPerToken_.lte(_paidRates[account])) return 0; uint256 balance = balanceOf(account); if (balance == 0) return 0; AttoDecimal memory ratesDiff = rewardPerToken_.sub(_paidRates[account]); return ratesDiff.mul(balance).floor(); } event RewardStrategyChanged(uint256 perBlockReward, uint256 duration); constructor( IERC20 rewardsToken_, IERC20 stakingToken_, address owner_ ) public Owned(owner_) TokensStorage(rewardsToken_, stakingToken_) {} function stake(uint256 amount) public onlyPositiveAmount(amount) { _lockRewards(msg.sender); _stake(msg.sender, amount); } function unstake(uint256 amount) public onlyPositiveAmount(amount) { require(amount <= balanceOf(msg.sender), "Unstaking amount exceeds staked balance"); _lockRewards(msg.sender); _unstake(msg.sender, amount); } function claim(uint256 amount) public onlyPositiveAmount(amount) { _lockRewards(msg.sender); require(amount <= rewardOf(msg.sender), "Claiming amount exceeds received rewards"); rewardUnlockingTime[msg.sender] = getTimestamp().add(REWARD_UNLOCKING_TIME); _claim(msg.sender, amount); } function withdraw(uint256 amount) public onlyPositiveAmount(amount) { require(getTimestamp() >= rewardUnlockingTime[msg.sender], "Reward not unlocked yet"); require(amount <= claimedOf(msg.sender), "Withdrawing amount exceeds claimed balance"); _withdraw(msg.sender, amount); } function setRewardStrategy(uint256 perBlockReward_, uint256 duration) public onlyOwner returns (bool succeed) { require(duration > 0, "Duration is zero"); require(duration <= MAX_DISTRIBUTION_DURATION, "Distribution duration too long"); _lockRates(); uint256 currentBlockNumber = getBlockNumber(); uint256 nextDistributionRequiredPool = perBlockReward_.mul(duration); uint256 notDistributedReward = _blockNumberOfDistributionEnding <= currentBlockNumber ? 0 : _blockNumberOfDistributionEnding.sub(currentBlockNumber).mul(_perBlockReward); if (nextDistributionRequiredPool > notDistributedReward) { _increaseRewardPool(owner, nextDistributionRequiredPool.sub(notDistributedReward)); } else if (nextDistributionRequiredPool < notDistributedReward) { _reduceRewardPool(owner, notDistributedReward.sub(nextDistributionRequiredPool)); } _perBlockReward = perBlockReward_; _blockNumberOfDistributionEnding = currentBlockNumber.add(duration); emit RewardStrategyChanged(perBlockReward_, duration); return true; } function lockRewards() public { _lockRewards(msg.sender); } function _moveStake( address from, address to, uint256 amount ) internal { _lockRewards(from); _lockRewards(to); _transferBalance(from, to, amount); } function _lockRates(uint256 blockNumber) private { _rewardPerToken = _getRewardPerToken(blockNumber); _lastUpdateBlockNumber = blockNumber; } function _lockRates() private { uint256 currentBlockNumber = getBlockNumber(); if (_perBlockReward > 0 && currentBlockNumber >= _blockNumberOfDistributionEnding) { _lockRates(_blockNumberOfDistributionEnding); _perBlockReward = 0; } _lockRates(currentBlockNumber); } function _lockRewards(address account) private { _lockRates(); uint256 earned = earnedOf(account); if (earned > 0) _addReward(account, earned); _paidRates[account] = _rewardPerToken; } modifier onlyPositiveAmount(uint256 amount) { require(amount > 0, "Amount is not positive"); _; } } // contract UniV2SyntheticToken is UniV2Staking { uint256 public decimals; string public name; string public symbol; mapping(address => mapping(address => uint256)) internal _allowances; function allowance(address owner, address spender) external view returns (uint256) { return _allowances[owner][spender]; } event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); constructor( string memory name_, string memory symbol_, uint256 decimals_, IERC20 rewardsToken_, IERC20 stakingToken_, address owner_ ) public UniV2Staking(rewardsToken_, stakingToken_, owner_) { name = name_; symbol = symbol_; decimals = decimals_; } function _onMint(address account, uint256 amount) internal override { emit Transfer(address(0), account, amount); } function _onBurn(address account, uint256 amount) internal override { emit Transfer(account, address(0), amount); } function transfer(address recipient, uint256 amount) external onlyPositiveAmount(amount) returns (bool) { require(balanceOf(recipient) >= amount, "Transfer amount exceeds balance"); _transfer(msg.sender, recipient, amount); return true; } function approve(address spender, uint256 amount) external returns (bool) { _allowances[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) external onlyPositiveAmount(amount) returns (bool) { require(_allowances[sender][recipient] >= amount, "Transfer amount exceeds allowance"); _transfer(sender, recipient, amount); _allowances[sender][recipient] = _allowances[sender][recipient].sub(amount); return true; } function _transfer( address sender, address recipient, uint256 amount ) internal { _moveStake(sender, recipient, amount); emit Transfer(sender, recipient, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"decimals_","type":"uint256"},{"internalType":"contract IERC20","name":"rewardsToken_","type":"address"},{"internalType":"contract IERC20","name":"stakingToken_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardStrategyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BLOCKS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DISTRIBUTION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_UNLOCKING_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_PER_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockNumberOfDistributionEnding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earnedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"paidRateOf","outputs":[{"internalType":"uint256","name":"mantissa","type":"uint256"},{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"exponentiation","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perBlockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"rewardOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"mantissa","type":"uint256"},{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"exponentiation","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardUnlockingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"perBlockReward_","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setRewardStrategy","outputs":[{"internalType":"bool","name":"succeed","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200395338038062003953833981810160405260c08110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b838201915060208201858111156200012c57600080fd5b82518660018202830111640100000000821117156200014a57600080fd5b8083526020830192505050908051906020019080838360005b838110156200018057808201518184015260208101905062000163565b50505050905090810190601f168015620001ae5780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190805190602001909291908051906020019092919080519060200190929190505050828282828282600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200028a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4f776e657220616464726573732063616e6e6f7420626520300000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c600082604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a15081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050508560119080519060200190620003d792919062000404565b508460129080519060200190620003f092919062000404565b5083601081905550505050505050620004aa565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200044757805160ff191683800117855562000478565b8280016001018555821562000478579182015b82811115620004775782518255916020019190600101906200045a565b5b5090506200048791906200048b565b5090565b5b80821115620004a65760008160009055506001016200048c565b5090565b61349980620004ba6000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80636bb987fe11610125578063b1fd81d6116100ad578063c1d742581161007c578063c1d742581461095f578063cd3daf9d1461097d578063d1af0c7d146109a9578063dd62ed3e146109dd578063e3c5729d14610a555761021c565b8063b1fd81d6146108ad578063b289d00b146108cb578063b4c6e416146108e9578063baa3f7ee146109075761021c565b80638da5cb5b116100f45780638da5cb5b1461074657806394ec82771461077a57806395d89b4114610798578063a694fc3a1461081b578063a9059cbb146108495761021c565b80636bb987fe1461069257806370a08231146106b057806372f702f31461070857806379ba50971461073c5761021c565b8063313ce567116101a857806353a47bb71161017757806353a47bb71461056e578063574c7e9d146105a257806358d6bc151461060857806366666aa9146106565780636b0c341b146106745761021c565b8063313ce567146104c0578063376d771a146104de578063379607f5146104e85780633ba1356c146105165761021c565b80631d62ebd9116101ef5780631d62ebd91461036a57806323895555146103c257806323b872dd146103e05780632e17de78146104645780632e1a7d4d146104925761021c565b806306fdde0314610221578063095ea7b3146102a45780631627540c1461030857806318160ddd1461034c575b600080fd5b610229610aad565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561026957808201518184015260208101905061024e565b50505050905090810190601f1680156102965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102f0600480360360408110156102ba57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b4b565b60405180821515815260200191505060405180910390f35b61034a6004803603602081101561031e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c3d565b005b610354610d73565b6040518082815260200191505060405180910390f35b6103ac6004803603602081101561038057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d7d565b6040518082815260200191505060405180910390f35b6103ca610dc6565b6040518082815260200191505060405180910390f35b61044c600480360360608110156103f657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ddc565b60405180821515815260200191505060405180910390f35b6104906004803603602081101561047a57600080fd5b8101908080359060200190929190505050611050565b005b6104be600480360360208110156104a857600080fd5b810190808035906020019092919050505061113f565b005b6104c86112e1565b6040518082815260200191505060405180910390f35b6104e66112e7565b005b610514600480360360208110156104fe57600080fd5b81019080803590602001909291905050506112f2565b005b6105586004803603602081101561052c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611441565b6040518082815260200191505060405180910390f35b610576611581565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105e4600480360360208110156105b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115a5565b60405180848152602001838152602001828152602001935050505060405180910390f35b61063e6004803603604081101561061e57600080fd5b8101908080359060200190929190803590602001909291905050506115fe565b60405180821515815260200191505060405180910390f35b61065e61190d565b6040518082815260200191505060405180910390f35b61067c611917565b6040518082815260200191505060405180910390f35b61069a611921565b6040518082815260200191505060405180910390f35b6106f2600480360360208110156106c657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611932565b6040518082815260200191505060405180910390f35b61071061197b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107446119a5565b005b61074e611b9a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610782611bc0565b6040518082815260200191505060405180910390f35b6107a0611bca565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107e05780820151818401526020810190506107c5565b50505050905090810190601f16801561080d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6108476004803603602081101561083157600080fd5b8101908080359060200190929190505050611c68565b005b6108956004803603604081101561085f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611cf6565b60405180821515815260200191505060405180910390f35b6108b5611e03565b6040518082815260200191505060405180910390f35b6108d3611e0a565b6040518082815260200191505060405180910390f35b6108f1611e14565b6040518082815260200191505060405180910390f35b6109496004803603602081101561091d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e1e565b6040518082815260200191505060405180910390f35b610967611e67565b6040518082815260200191505060405180910390f35b610985611e6c565b60405180848152602001838152602001828152602001935050505060405180910390f35b6109b1611e8c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a3f600480360360408110156109f357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611eb6565b6040518082815260200191505060405180910390f35b610a9760048036036020811015610a6b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f3d565b6040518082815260200191505060405180910390f35b60118054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b435780601f10610b1857610100808354040283529160200191610b43565b820191906000526020600020905b815481529060010190602001808311610b2657829003601f168201915b505050505081565b600081601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ce3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806133c0602f913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000600454905090565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600f6201518081610dd357fe5b046276a7000281565b60008160008111610e55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b82601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610f2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806133776021913960400191505060405180910390fd5b610f35858585611f55565b610fc483601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060019150509392505050565b80600081116110c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b6110d033611932565b821115611128576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806133506027913960400191505060405180910390fd5b61113133612014565b61113b338361208f565b5050565b80600081116111b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111fe61219a565b1015611272576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f526577617264206e6f7420756e6c6f636b65642079657400000000000000000081525060200191505060405180910390fd5b61127b33611e1e565b8211156112d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613410602a913960400191505060405180910390fd5b6112dd33836121a2565b5050565b60105481565b6112f033612014565b565b8060008111611369576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b61137233612014565b61137b33610d7d565b8211156113d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806133986028913960400191505060405180910390fd5b6113f0620a8c006113e261219a565b61228890919063ffffffff16565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061143d3383612310565b5050565b600061144b613307565b611453612459565b90506114bb600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806020016040529081600082015481525050826124b090919063ffffffff16565b156114ca57600091505061157c565b60006114d584611932565b905060008114156114eb5760009250505061157c565b6114f3613307565b611559600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806020016040529081600082015481525050846124c690919063ffffffff16565b905061157661157183836124ff90919063ffffffff16565b612534565b93505050505b919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600a60129250925092509193909250565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806133c0602f913960400191505060405180910390fd5b6000821161171c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4475726174696f6e206973207a65726f0000000000000000000000000000000081525060200191505060405180910390fd5b600f620151808161172957fe5b046276a700028211156117a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f446973747269627574696f6e206475726174696f6e20746f6f206c6f6e67000081525060200191505060405180910390fd5b6117ac612558565b60006117b661259d565b905060006117cd84866125a590919063ffffffff16565b9050600082600d54111561180957611804600c546117f685600d54611fca90919063ffffffff16565b6125a590919063ffffffff16565b61180c565b60005b90508082111561185957611854600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661184f8385611fca90919063ffffffff16565b61262b565b6118a1565b808210156118a05761189f600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661189a8484611fca90919063ffffffff16565b6126b4565b5b5b85600c819055506118bb858461228890919063ffffffff16565b600d819055507fbc1de98124926348fe8e6959ee37194f931c09201dda22e160a9943ca1b66db98686604051808381526020018281526020019250505060405180910390a16001935050505092915050565b6000600254905090565b6000600354905090565b600f620151808161192e57fe5b0481565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061331b6035913960400191505060405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c54905090565b60128054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611c605780601f10611c3557610100808354040283529160200191611c60565b820191906000526020600020905b815481529060010190602001808311611c4357829003601f168201915b505050505081565b8060008111611cdf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b611ce833612014565b611cf2338361273b565b5050565b60008160008111611d6f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b82611d7985611932565b1015611ded576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5472616e7366657220616d6f756e7420657863656564732062616c616e63650081525060200191505060405180910390fd5b611df8338585611f55565b600191505092915050565b620a8c0081565b6000600d54905090565b6000600b54905090565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600f81565b6000806000611e79612459565b60000151600a6012925092509250909192565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a6020528060005260406000206000915090505481565b611f60838383612848565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600061200c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061286a565b905092915050565b61201c612558565b600061202782611441565b9050600081111561203d5761203c828261292a565b5b600e600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015481600001559050505050565b6120dc8282600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129de9092919063ffffffff16565b61212e81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061218681600454611fca90919063ffffffff16565b6004819055506121968282612a80565b5050565b600042905090565b6121ef8282600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129de9092919063ffffffff16565b61224181600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600080828401905083811015612306576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61236281600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506123ba81600354611fca90919063ffffffff16565b60038190555061241281600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b612461613307565b600061247661246e61259d565b600d54612aea565b9050600b5481116124a057600e6040518060200160405290816000820154815250509150506124ad565b6124a981612b03565b9150505b90565b6000816000015183600001511115905092915050565b6124ce613307565b60405180602001604052806124f484600001518660000151611fca90919063ffffffff16565b815250905092915050565b612507613307565b60405180602001604052806125298486600001516125a590919063ffffffff16565b815250905092915050565b60006125516012600a0a8360000151612ba790919063ffffffff16565b9050919050565b600061256261259d565b90506000600c541180156125785750600d548110155b1561259157612588600d54612bf1565b6000600c819055505b61259a81612bf1565b50565b600043905090565b6000808314156125b85760009050612625565b60008284029050828482816125c957fe5b0414612620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806133ef6021913960400191505060405180910390fd5b809150505b92915050565b61267a823083600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c13909392919063ffffffff16565b61268f8160035461228890919063ffffffff16565b6003819055506126aa8160025461228890919063ffffffff16565b6002819055505050565b6127018282600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129de9092919063ffffffff16565b61271681600354611fca90919063ffffffff16565b60038190555061273181600254611fca90919063ffffffff16565b6002819055505050565b61278a823083600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c13909392919063ffffffff16565b6127dc81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506128348160045461228890919063ffffffff16565b6004819055506128448282612cd4565b5050565b61285183612014565b61285a82612014565b612865838383612d3e565b505050565b6000838311158290612917576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128dc5780820151818401526020810190506128c1565b50505050905090810190601f1680156129095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b61297c81600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506129d481600254611fca90919063ffffffff16565b6002819055505050565b612a7b8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e6d565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b6000818310612af95781612afb565b825b905092915050565b612b0b613307565b6000612b15610d73565b90506000811415612b3257612b2a6000612f5c565b915050612ba2565b6000612b5d600c54612b4f600b5487611fca90919063ffffffff16565b6125a590919063ffffffff16565b9050612b67613307565b612b718284612f90565b9050612b9c81600e604051806020016040529081600082015481525050612fd790919063ffffffff16565b93505050505b919050565b6000612be983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613010565b905092915050565b612bfa81612b03565b600e6000820151816000015590505080600b8190555050565b612cce846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e6d565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b612d9081600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612e2581600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6060612ecf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166130d69092919063ffffffff16565b9050600081511115612f5757808060200190516020811015612ef057600080fd5b8101908080519060200190929190505050612f56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061343a602a913960400191505060405180910390fd5b5b505050565b612f64613307565b6040518060200160405280612f866012600a0a856125a590919063ffffffff16565b8152509050919050565b612f98613307565b6040518060200160405280612fcc84612fbe6012600a0a886125a590919063ffffffff16565b612ba790919063ffffffff16565b815250905092915050565b612fdf613307565b60405180602001604052806130058460000151866000015161228890919063ffffffff16565b815250905092915050565b600080831182906130bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613081578082015181840152602081019050613066565b50505050905090810190601f1680156130ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816130c857fe5b049050809150509392505050565b60606130e584846000856130ee565b90509392505050565b60606130f9856132f4565b61316b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106131bb5780518252602082019150602081019050602083039250613198565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461321d576040519150601f19603f3d011682016040523d82523d6000602084013e613222565b606091505b509150915081156132375780925050506132ec565b60008151111561324a5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156132b1578082015181840152602081019050613296565b50505050905090810190601f1680156132de5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b905060008111915050919050565b604051806020016040528060008152509056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e657273686970556e7374616b696e6720616d6f756e742065786365656473207374616b65642062616c616e63655472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436c61696d696e6720616d6f756e74206578636565647320726563656976656420726577617264734f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775769746864726177696e6720616d6f756e74206578636565647320636c61696d65642062616c616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220374b5e860cc615d483c1327c549f820143561a94163283c417467af11bdb71b864736f6c634300060c003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000120000000000000000000000002baecdf43734f22fd5c152db08e3c27233f0c7d200000000000000000000000099b1db3318aa3040f336fb65c55400e164ddcd7f000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0000000000000000000000000000000000000000000000000000000000000001b4d44414f204f4d2d45544820556e692d5632204c5020546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000b6d64616f4f6d4574684c50000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80636bb987fe11610125578063b1fd81d6116100ad578063c1d742581161007c578063c1d742581461095f578063cd3daf9d1461097d578063d1af0c7d146109a9578063dd62ed3e146109dd578063e3c5729d14610a555761021c565b8063b1fd81d6146108ad578063b289d00b146108cb578063b4c6e416146108e9578063baa3f7ee146109075761021c565b80638da5cb5b116100f45780638da5cb5b1461074657806394ec82771461077a57806395d89b4114610798578063a694fc3a1461081b578063a9059cbb146108495761021c565b80636bb987fe1461069257806370a08231146106b057806372f702f31461070857806379ba50971461073c5761021c565b8063313ce567116101a857806353a47bb71161017757806353a47bb71461056e578063574c7e9d146105a257806358d6bc151461060857806366666aa9146106565780636b0c341b146106745761021c565b8063313ce567146104c0578063376d771a146104de578063379607f5146104e85780633ba1356c146105165761021c565b80631d62ebd9116101ef5780631d62ebd91461036a57806323895555146103c257806323b872dd146103e05780632e17de78146104645780632e1a7d4d146104925761021c565b806306fdde0314610221578063095ea7b3146102a45780631627540c1461030857806318160ddd1461034c575b600080fd5b610229610aad565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561026957808201518184015260208101905061024e565b50505050905090810190601f1680156102965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102f0600480360360408110156102ba57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b4b565b60405180821515815260200191505060405180910390f35b61034a6004803603602081101561031e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c3d565b005b610354610d73565b6040518082815260200191505060405180910390f35b6103ac6004803603602081101561038057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d7d565b6040518082815260200191505060405180910390f35b6103ca610dc6565b6040518082815260200191505060405180910390f35b61044c600480360360608110156103f657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ddc565b60405180821515815260200191505060405180910390f35b6104906004803603602081101561047a57600080fd5b8101908080359060200190929190505050611050565b005b6104be600480360360208110156104a857600080fd5b810190808035906020019092919050505061113f565b005b6104c86112e1565b6040518082815260200191505060405180910390f35b6104e66112e7565b005b610514600480360360208110156104fe57600080fd5b81019080803590602001909291905050506112f2565b005b6105586004803603602081101561052c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611441565b6040518082815260200191505060405180910390f35b610576611581565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105e4600480360360208110156105b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115a5565b60405180848152602001838152602001828152602001935050505060405180910390f35b61063e6004803603604081101561061e57600080fd5b8101908080359060200190929190803590602001909291905050506115fe565b60405180821515815260200191505060405180910390f35b61065e61190d565b6040518082815260200191505060405180910390f35b61067c611917565b6040518082815260200191505060405180910390f35b61069a611921565b6040518082815260200191505060405180910390f35b6106f2600480360360208110156106c657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611932565b6040518082815260200191505060405180910390f35b61071061197b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107446119a5565b005b61074e611b9a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610782611bc0565b6040518082815260200191505060405180910390f35b6107a0611bca565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107e05780820151818401526020810190506107c5565b50505050905090810190601f16801561080d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6108476004803603602081101561083157600080fd5b8101908080359060200190929190505050611c68565b005b6108956004803603604081101561085f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611cf6565b60405180821515815260200191505060405180910390f35b6108b5611e03565b6040518082815260200191505060405180910390f35b6108d3611e0a565b6040518082815260200191505060405180910390f35b6108f1611e14565b6040518082815260200191505060405180910390f35b6109496004803603602081101561091d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e1e565b6040518082815260200191505060405180910390f35b610967611e67565b6040518082815260200191505060405180910390f35b610985611e6c565b60405180848152602001838152602001828152602001935050505060405180910390f35b6109b1611e8c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a3f600480360360408110156109f357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611eb6565b6040518082815260200191505060405180910390f35b610a9760048036036020811015610a6b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f3d565b6040518082815260200191505060405180910390f35b60118054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b435780601f10610b1857610100808354040283529160200191610b43565b820191906000526020600020905b815481529060010190602001808311610b2657829003601f168201915b505050505081565b600081601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ce3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806133c0602f913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000600454905090565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600f6201518081610dd357fe5b046276a7000281565b60008160008111610e55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b82601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610f2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806133776021913960400191505060405180910390fd5b610f35858585611f55565b610fc483601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060019150509392505050565b80600081116110c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b6110d033611932565b821115611128576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806133506027913960400191505060405180910390fd5b61113133612014565b61113b338361208f565b5050565b80600081116111b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111fe61219a565b1015611272576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f526577617264206e6f7420756e6c6f636b65642079657400000000000000000081525060200191505060405180910390fd5b61127b33611e1e565b8211156112d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613410602a913960400191505060405180910390fd5b6112dd33836121a2565b5050565b60105481565b6112f033612014565b565b8060008111611369576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b61137233612014565b61137b33610d7d565b8211156113d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806133986028913960400191505060405180910390fd5b6113f0620a8c006113e261219a565b61228890919063ffffffff16565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061143d3383612310565b5050565b600061144b613307565b611453612459565b90506114bb600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806020016040529081600082015481525050826124b090919063ffffffff16565b156114ca57600091505061157c565b60006114d584611932565b905060008114156114eb5760009250505061157c565b6114f3613307565b611559600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806020016040529081600082015481525050846124c690919063ffffffff16565b905061157661157183836124ff90919063ffffffff16565b612534565b93505050505b919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600a60129250925092509193909250565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806133c0602f913960400191505060405180910390fd5b6000821161171c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4475726174696f6e206973207a65726f0000000000000000000000000000000081525060200191505060405180910390fd5b600f620151808161172957fe5b046276a700028211156117a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f446973747269627574696f6e206475726174696f6e20746f6f206c6f6e67000081525060200191505060405180910390fd5b6117ac612558565b60006117b661259d565b905060006117cd84866125a590919063ffffffff16565b9050600082600d54111561180957611804600c546117f685600d54611fca90919063ffffffff16565b6125a590919063ffffffff16565b61180c565b60005b90508082111561185957611854600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661184f8385611fca90919063ffffffff16565b61262b565b6118a1565b808210156118a05761189f600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661189a8484611fca90919063ffffffff16565b6126b4565b5b5b85600c819055506118bb858461228890919063ffffffff16565b600d819055507fbc1de98124926348fe8e6959ee37194f931c09201dda22e160a9943ca1b66db98686604051808381526020018281526020019250505060405180910390a16001935050505092915050565b6000600254905090565b6000600354905090565b600f620151808161192e57fe5b0481565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061331b6035913960400191505060405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c54905090565b60128054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611c605780601f10611c3557610100808354040283529160200191611c60565b820191906000526020600020905b815481529060010190602001808311611c4357829003601f168201915b505050505081565b8060008111611cdf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b611ce833612014565b611cf2338361273b565b5050565b60008160008111611d6f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f416d6f756e74206973206e6f7420706f7369746976650000000000000000000081525060200191505060405180910390fd5b82611d7985611932565b1015611ded576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5472616e7366657220616d6f756e7420657863656564732062616c616e63650081525060200191505060405180910390fd5b611df8338585611f55565b600191505092915050565b620a8c0081565b6000600d54905090565b6000600b54905090565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600f81565b6000806000611e79612459565b60000151600a6012925092509250909192565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a6020528060005260406000206000915090505481565b611f60838383612848565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600061200c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061286a565b905092915050565b61201c612558565b600061202782611441565b9050600081111561203d5761203c828261292a565b5b600e600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015481600001559050505050565b6120dc8282600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129de9092919063ffffffff16565b61212e81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061218681600454611fca90919063ffffffff16565b6004819055506121968282612a80565b5050565b600042905090565b6121ef8282600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129de9092919063ffffffff16565b61224181600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600080828401905083811015612306576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61236281600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506123ba81600354611fca90919063ffffffff16565b60038190555061241281600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b612461613307565b600061247661246e61259d565b600d54612aea565b9050600b5481116124a057600e6040518060200160405290816000820154815250509150506124ad565b6124a981612b03565b9150505b90565b6000816000015183600001511115905092915050565b6124ce613307565b60405180602001604052806124f484600001518660000151611fca90919063ffffffff16565b815250905092915050565b612507613307565b60405180602001604052806125298486600001516125a590919063ffffffff16565b815250905092915050565b60006125516012600a0a8360000151612ba790919063ffffffff16565b9050919050565b600061256261259d565b90506000600c541180156125785750600d548110155b1561259157612588600d54612bf1565b6000600c819055505b61259a81612bf1565b50565b600043905090565b6000808314156125b85760009050612625565b60008284029050828482816125c957fe5b0414612620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806133ef6021913960400191505060405180910390fd5b809150505b92915050565b61267a823083600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c13909392919063ffffffff16565b61268f8160035461228890919063ffffffff16565b6003819055506126aa8160025461228890919063ffffffff16565b6002819055505050565b6127018282600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129de9092919063ffffffff16565b61271681600354611fca90919063ffffffff16565b60038190555061273181600254611fca90919063ffffffff16565b6002819055505050565b61278a823083600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c13909392919063ffffffff16565b6127dc81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506128348160045461228890919063ffffffff16565b6004819055506128448282612cd4565b5050565b61285183612014565b61285a82612014565b612865838383612d3e565b505050565b6000838311158290612917576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128dc5780820151818401526020810190506128c1565b50505050905090810190601f1680156129095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b61297c81600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506129d481600254611fca90919063ffffffff16565b6002819055505050565b612a7b8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e6d565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b6000818310612af95781612afb565b825b905092915050565b612b0b613307565b6000612b15610d73565b90506000811415612b3257612b2a6000612f5c565b915050612ba2565b6000612b5d600c54612b4f600b5487611fca90919063ffffffff16565b6125a590919063ffffffff16565b9050612b67613307565b612b718284612f90565b9050612b9c81600e604051806020016040529081600082015481525050612fd790919063ffffffff16565b93505050505b919050565b6000612be983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613010565b905092915050565b612bfa81612b03565b600e6000820151816000015590505080600b8190555050565b612cce846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e6d565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b612d9081600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fca90919063ffffffff16565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612e2581600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461228890919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6060612ecf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166130d69092919063ffffffff16565b9050600081511115612f5757808060200190516020811015612ef057600080fd5b8101908080519060200190929190505050612f56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061343a602a913960400191505060405180910390fd5b5b505050565b612f64613307565b6040518060200160405280612f866012600a0a856125a590919063ffffffff16565b8152509050919050565b612f98613307565b6040518060200160405280612fcc84612fbe6012600a0a886125a590919063ffffffff16565b612ba790919063ffffffff16565b815250905092915050565b612fdf613307565b60405180602001604052806130058460000151866000015161228890919063ffffffff16565b815250905092915050565b600080831182906130bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613081578082015181840152602081019050613066565b50505050905090810190601f1680156130ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816130c857fe5b049050809150509392505050565b60606130e584846000856130ee565b90509392505050565b60606130f9856132f4565b61316b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106131bb5780518252602082019150602081019050602083039250613198565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461321d576040519150601f19603f3d011682016040523d82523d6000602084013e613222565b606091505b509150915081156132375780925050506132ec565b60008151111561324a5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156132b1578082015181840152602081019050613296565b50505050905090810190601f1680156132de5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b905060008111915050919050565b604051806020016040528060008152509056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e657273686970556e7374616b696e6720616d6f756e742065786365656473207374616b65642062616c616e63655472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436c61696d696e6720616d6f756e74206578636565647320726563656976656420726577617264734f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775769746864726177696e6720616d6f756e74206578636565647320636c61696d65642062616c616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220374b5e860cc615d483c1327c549f820143561a94163283c417467af11bdb71b864736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000120000000000000000000000002baecdf43734f22fd5c152db08e3c27233f0c7d200000000000000000000000099b1db3318aa3040f336fb65c55400e164ddcd7f000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0000000000000000000000000000000000000000000000000000000000000001b4d44414f204f4d2d45544820556e692d5632204c5020546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000b6d64616f4f6d4574684c50000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): MDAO OM-ETH Uni-V2 LP Token
Arg [1] : symbol_ (string): mdaoOmEthLP
Arg [2] : decimals_ (uint256): 18
Arg [3] : rewardsToken_ (address): 0x2baEcDf43734F22FD5c152DB08E3C27233F0c7d2
Arg [4] : stakingToken_ (address): 0x99B1dB3318Aa3040F336Fb65c55400E164DDcd7f
Arg [5] : owner_ (address): 0xd4eeE3D50588D7dee8Dcc42635E50093E0AA8Cc0
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000002baecdf43734f22fd5c152db08e3c27233f0c7d2
Arg [4] : 00000000000000000000000099b1db3318aa3040f336fb65c55400e164ddcd7f
Arg [5] : 000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0
Arg [6] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [7] : 4d44414f204f4d2d45544820556e692d5632204c5020546f6b656e0000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [9] : 6d64616f4f6d4574684c50000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.