More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 25 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 17909624 | 7 days ago | IN | 0 ETH | 0.00000583 | ||||
Claim All For Ac... | 17747867 | 14 days ago | IN | 0 ETH | 0.00003717 | ||||
Unstake For Acco... | 17742276 | 14 days ago | IN | 0 ETH | 0.00005488 | ||||
Claim All For Ac... | 17742141 | 14 days ago | IN | 0 ETH | 0.00002471 | ||||
Approve | 17363559 | 30 days ago | IN | 0 ETH | 0.00000554 | ||||
Approve | 16933895 | 46 days ago | IN | 0 ETH | 0.00000573 | ||||
Transfer | 16555967 | 61 days ago | IN | 0 ETH | 0.00000325 | ||||
Transfer | 16555960 | 61 days ago | IN | 0 ETH | 0.0000092 | ||||
Approve | 16105274 | 78 days ago | IN | 0 ETH | 0.00000529 | ||||
Claim All For Ac... | 16000592 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000585 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000529 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000524 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000519 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000513 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000509 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000457 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000454 | 81 days ago | IN | 0 ETH | 0.00002621 | ||||
Claim All For Ac... | 16000450 | 81 days ago | IN | 0 ETH | 0.00002621 | ||||
Claim All For Ac... | 16000447 | 81 days ago | IN | 0 ETH | 0.00002621 | ||||
Claim All For Ac... | 16000443 | 81 days ago | IN | 0 ETH | 0.00002621 | ||||
Claim All For Ac... | 16000440 | 81 days ago | IN | 0 ETH | 0.00002621 | ||||
Claim All For Ac... | 16000436 | 81 days ago | IN | 0 ETH | 0.00002621 | ||||
Claim All For Ac... | 16000432 | 81 days ago | IN | 0 ETH | 0.00001572 | ||||
Claim All For Ac... | 16000429 | 81 days ago | IN | 0 ETH | 0.00001572 |
Loading...
Loading
Contract Name:
FeeQlpTracker
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./RewardTracker.sol"; contract StakedQlpTracker is RewardTracker { constructor() public RewardTracker("Fee + Staked QLP", "fsQLP") {} } contract FeeQlpTracker is RewardTracker { constructor() public RewardTracker("Fee QLP", "fQLP") {} }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; contract Governable { address public gov; constructor() public { gov = msg.sender; } modifier onlyGov() { require(msg.sender == gov, "Governable: forbidden"); _; } function setGov(address _gov) external onlyGov { gov = _gov; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @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; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./IERC20.sol"; import "../math/SafeMath.sol"; import "../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.3._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.3._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.6.12; interface IRewardDistributor { function getAllRewardTokens() external view returns (address[] memory); function tokensPerInterval(address _rewardToken) external view returns (uint256); function pendingRewards(address _rewardToken) external view returns (uint256); function distribute(address _rewardToken) external returns (uint256); function addRewardToken(address _token) external; function removeRewardToken(address _token) external; function allRewardTokensLength() external view returns (uint256); function allRewardTokens(uint256) external view returns (address); function rewardTokens(address _token) external view returns (bool); function allTokens(address _token) external view returns (bool); function rewardTokenCount() external view returns (uint256); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.6.12; interface IRewardTracker { function depositBalances(address _account, address _depositToken) external view returns (uint256); function stakedAmounts(address _account) external view returns (uint256); function updateRewards(address _rewardToken) external; function stake(address _depositToken, uint256 _amount) external; function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external; function unstake(address _depositToken, uint256 _amount) external; function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external; function tokensPerInterval(address _rewardToken) external view returns (uint256); function claim(address _rewardToken, address _receiver) external returns (uint256); function claimForAccount(address _account, address _rewardToken, address _receiver) external returns (uint256); function claimAll(address _receiver) external returns (address[] memory,uint256[] memory); function claimAllForAccount(address _account, address _receiver) external returns (address[] memory,uint256[] memory); function claimable(address _account, address _rewardToken) external view returns (uint256); function claimableAll(address _account) external view returns (address[] memory,uint256[] memory); function averageStakedAmounts(address _account) external view returns (uint256); function cumulativeRewards(address _account, address _rewardToken) external view returns (uint256); function hasCumulativeRewards(address _account) external view returns (bool); function getAllRewardTokens() external view returns (address[] memory); function rewardTokens(address _rewardToken) external view returns (bool); function allTokens(address _rewardToken) external view returns (bool); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.6.12; import "../libraries/math/SafeMath.sol"; import "../libraries/token/IERC20.sol"; import "../libraries/token/SafeERC20.sol"; import "../libraries/utils/ReentrancyGuard.sol"; import "./interfaces/IRewardDistributor.sol"; import "./interfaces/IRewardTracker.sol"; import "../access/Governable.sol"; contract RewardTracker is IERC20, ReentrancyGuard, IRewardTracker, Governable { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 public constant BASIS_POINTS_DIVISOR = 10000; uint256 public constant PRECISION = 1e30; uint8 public constant decimals = 18; bool public isInitialized; string public name; string public symbol; address public distributor; mapping(address => bool) public isDepositToken; mapping(address => mapping(address => uint256)) public override depositBalances; mapping(address => uint256) public totalDepositSupply; uint256 public override totalSupply; mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowances; mapping(address => uint256) public cumulativeRewardPerToken; mapping(address => uint256) public override stakedAmounts; mapping(address => mapping(address => uint256)) public claimableReward; mapping(address => mapping(address => uint256)) public previousCumulatedRewardPerToken; mapping(address => mapping(address => uint256)) public override cumulativeRewards; mapping(address => uint256) public override averageStakedAmounts; bool public inPrivateTransferMode; bool public inPrivateStakingMode; bool public inPrivateClaimingMode; mapping(address => bool) public isHandler; event Claim(address indexed receiver,address rewardToken, uint256 amount); constructor(string memory _name, string memory _symbol) public { name = _name; symbol = _symbol; } function initialize(address[] memory _depositTokens, address _distributor) external onlyGov { require(!isInitialized, "RewardTracker: already initialized"); isInitialized = true; for (uint256 i = 0; i < _depositTokens.length; i++) { address depositToken = _depositTokens[i]; isDepositToken[depositToken] = true; } distributor = _distributor; } function setDepositToken(address _depositToken, bool _isDepositToken) external onlyGov { isDepositToken[_depositToken] = _isDepositToken; } function setInPrivateTransferMode(bool _inPrivateTransferMode) external onlyGov { inPrivateTransferMode = _inPrivateTransferMode; } function setInPrivateStakingMode(bool _inPrivateStakingMode) external onlyGov { inPrivateStakingMode = _inPrivateStakingMode; } function setInPrivateClaimingMode(bool _inPrivateClaimingMode) external onlyGov { inPrivateClaimingMode = _inPrivateClaimingMode; } function setHandler(address _handler, bool _isActive) external onlyGov { isHandler[_handler] = _isActive; } // to help users who accidentally send their tokens to this contract function withdrawToken( address _token, address _account, uint256 _amount ) external onlyGov { IERC20(_token).safeTransfer(_account, _amount); } function balanceOf(address _account) external view override returns (uint256) { return balances[_account]; } function stake(address _depositToken, uint256 _amount) external override nonReentrant { if (inPrivateStakingMode) { revert("RewardTracker: action not enabled"); } _stake(msg.sender, msg.sender, _depositToken, _amount); } function stakeForAccount( address _fundingAccount, address _account, address _depositToken, uint256 _amount ) external override nonReentrant { _validateHandler(); _stake(_fundingAccount, _account, _depositToken, _amount); } function unstake(address _depositToken, uint256 _amount) external override nonReentrant { if (inPrivateStakingMode) { revert("RewardTracker: action not enabled"); } _unstake(msg.sender, _depositToken, _amount, msg.sender); } function unstakeForAccount( address _account, address _depositToken, uint256 _amount, address _receiver ) external override nonReentrant { _validateHandler(); _unstake(_account, _depositToken, _amount, _receiver); } function transfer(address _recipient, uint256 _amount) external override returns (bool) { _transfer(msg.sender, _recipient, _amount); return true; } function allowance(address _owner, address _spender) external view override returns (uint256) { return allowances[_owner][_spender]; } function approve(address _spender, uint256 _amount) external override returns (bool) { _approve(msg.sender, _spender, _amount); return true; } function transferFrom( address _sender, address _recipient, uint256 _amount ) external override returns (bool) { if (isHandler[msg.sender]) { _transfer(_sender, _recipient, _amount); return true; } uint256 nextAllowance = allowances[_sender][msg.sender].sub(_amount, "RewardTracker: transfer amount exceeds allowance"); _approve(_sender, msg.sender, nextAllowance); _transfer(_sender, _recipient, _amount); return true; } function tokensPerInterval(address _rewardToken) external view override returns (uint256) { return IRewardDistributor(distributor).tokensPerInterval(_rewardToken); } function updateRewards(address _rewardToken) external override nonReentrant { require(IRewardDistributor(distributor).allTokens(_rewardToken), "RewardTracker: invalid _rewardToken"); _updateRewards(address(0),_rewardToken); } function hasCumulativeRewards(address _account) external view override returns (bool) { uint256 length = IRewardDistributor(distributor).allRewardTokensLength(); for (uint256 i = 0; i < length; i++) { address token = IRewardDistributor(distributor).allRewardTokens(i); if(cumulativeRewards[_account][token] > 0){ return true; } } return false; } function claimAll(address _receiver) external override nonReentrant returns (address[] memory,uint256[] memory) { if (inPrivateClaimingMode) { revert("RewardTracker: action not enabled"); } return _claimAll(msg.sender, _receiver); } function claim(address _rewardToken, address _receiver) external override nonReentrant returns (uint256) { if (inPrivateClaimingMode) { revert("RewardTracker: action not enabled"); } require(IRewardDistributor(distributor).allTokens(_rewardToken), "RewardTracker: invalid _rewardToken"); return _claim(msg.sender, _rewardToken, _receiver); } function claimAllForAccount(address _account, address _receiver) external override nonReentrant returns (address[] memory,uint256[] memory) { _validateHandler(); return _claimAll(_account, _receiver); } function _claimAll(address _account, address _receiver) private returns (address[] memory,uint256[] memory) { uint256 length = IRewardDistributor(distributor).allRewardTokensLength(); address[] memory tokens = new address[](length); uint256[] memory amounts = new uint256[](length); for (uint256 i = 0; i < length; i++) { address token = IRewardDistributor(distributor).allRewardTokens(i); tokens[i] = token; amounts[i] = _claim(_account, token, _receiver); } return (tokens,amounts); } function claimForAccount(address _account, address _rewardToken, address _receiver) external override nonReentrant returns (uint256) { _validateHandler(); require(IRewardDistributor(distributor).allTokens(_rewardToken), "RewardTracker: invalid _rewardToken"); return _claim(_account, _rewardToken, _receiver); } function claimableAll(address _account) external view override returns (address[] memory,uint256[] memory) { uint256 length = IRewardDistributor(distributor).allRewardTokensLength(); address[] memory tokens = new address[](length); uint256[] memory amounts = new uint256[](length); for (uint256 i = 0; i < length; i++) { address token = IRewardDistributor(distributor).allRewardTokens(i); uint256 amount = claimable(_account, token); tokens[i] = token; amounts[i] = amount; } return (tokens,amounts); } function claimable(address _account, address _rewardToken) public view override returns (uint256) { require(IRewardDistributor(distributor).allTokens(_rewardToken), "RewardTracker: invalid _rewardToken"); uint256 stakedAmount = stakedAmounts[_account]; if (stakedAmount == 0) { return claimableReward[_account][_rewardToken]; } uint256 supply = totalSupply; uint256 pendingRewards = IRewardDistributor(distributor).pendingRewards(_rewardToken).mul(PRECISION); uint256 nextCumulativeRewardPerToken = cumulativeRewardPerToken[_rewardToken].add(pendingRewards.div(supply)); return claimableReward[_account][_rewardToken].add(stakedAmount.mul(nextCumulativeRewardPerToken.sub(previousCumulatedRewardPerToken[_account][_rewardToken])).div(PRECISION)); } function getAllRewardTokens() external override view returns (address[] memory) { return IRewardDistributor(distributor).getAllRewardTokens(); } function rewardTokens(address _rewardToken) external override view returns (bool) { return IRewardDistributor(distributor).rewardTokens(_rewardToken); } function allTokens(address _rewardToken) external override view returns (bool) { return IRewardDistributor(distributor).allTokens(_rewardToken); } function _claim(address _account, address _rewardToken, address _receiver) private returns (uint256) { _updateRewards(_account, _rewardToken); uint256 tokenAmount = claimableReward[_account][_rewardToken]; claimableReward[_account][_rewardToken] = 0; if (tokenAmount > 0) { IERC20(_rewardToken).safeTransfer(_receiver, tokenAmount); emit Claim(_account, _rewardToken, tokenAmount); } return tokenAmount; } function _mint(address _account, uint256 _amount) internal { require(_account != address(0), "RewardTracker: mint to the zero address"); totalSupply = totalSupply.add(_amount); balances[_account] = balances[_account].add(_amount); emit Transfer(address(0), _account, _amount); } function _burn(address _account, uint256 _amount) internal { require(_account != address(0), "RewardTracker: burn from the zero address"); balances[_account] = balances[_account].sub(_amount, "RewardTracker: burn amount exceeds balance"); totalSupply = totalSupply.sub(_amount); emit Transfer(_account, address(0), _amount); } function _transfer( address _sender, address _recipient, uint256 _amount ) private { require(_sender != address(0), "RewardTracker: transfer from the zero address"); require(_recipient != address(0), "RewardTracker: transfer to the zero address"); if (inPrivateTransferMode) { _validateHandler(); } balances[_sender] = balances[_sender].sub(_amount, "RewardTracker: transfer amount exceeds balance"); balances[_recipient] = balances[_recipient].add(_amount); emit Transfer(_sender, _recipient, _amount); } function _approve( address _owner, address _spender, uint256 _amount ) private { require(_owner != address(0), "RewardTracker: approve from the zero address"); require(_spender != address(0), "RewardTracker: approve to the zero address"); allowances[_owner][_spender] = _amount; emit Approval(_owner, _spender, _amount); } function _validateHandler() private view { require(isHandler[msg.sender], "RewardTracker: forbidden"); } function _stake( address _fundingAccount, address _account, address _depositToken, uint256 _amount ) private { require(_amount != 0, "RewardTracker: invalid _amount"); require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken"); IERC20(_depositToken).safeTransferFrom(_fundingAccount, address(this), _amount); _updateRewardsAll(_account); stakedAmounts[_account] = stakedAmounts[_account].add(_amount); depositBalances[_account][_depositToken] = depositBalances[_account][_depositToken].add(_amount); totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken].add(_amount); _mint(_account, _amount); } function _unstake( address _account, address _depositToken, uint256 _amount, address _receiver ) private { require(_amount != 0, "RewardTracker: invalid _amount"); require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken"); _updateRewardsAll(_account); uint256 stakedAmount = stakedAmounts[_account]; require(stakedAmounts[_account] >= _amount, "RewardTracker: _amount exceeds stakedAmount"); stakedAmounts[_account] = stakedAmount.sub(_amount); uint256 depositBalance = depositBalances[_account][_depositToken]; require(depositBalance >= _amount, "RewardTracker: _amount exceeds depositBalance"); depositBalances[_account][_depositToken] = depositBalance.sub(_amount); totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken].sub(_amount); _burn(_account, _amount); IERC20(_depositToken).safeTransfer(_receiver, _amount); } function _updateRewardsAll(address _account) private { uint256 length = IRewardDistributor(distributor).allRewardTokensLength(); for (uint256 i = 0; i < length; i++) { address token = IRewardDistributor(distributor).allRewardTokens(i); _updateRewards(_account, token); } } function _updateRewards(address _account, address _rewardToken) private { uint256 blockReward = IRewardDistributor(distributor).distribute(_rewardToken); uint256 supply = totalSupply; uint256 _cumulativeRewardPerToken = cumulativeRewardPerToken[_rewardToken]; if (supply > 0 && blockReward > 0) { _cumulativeRewardPerToken = _cumulativeRewardPerToken.add(blockReward.mul(PRECISION).div(supply)); cumulativeRewardPerToken[_rewardToken] = _cumulativeRewardPerToken; } // cumulativeRewardPerToken can only increase // so if cumulativeRewardPerToken is zero, it means there are no rewards yet if (_cumulativeRewardPerToken == 0) { return; } if (_account > address(0)) { _updateAccountRewards(_account, _rewardToken, _cumulativeRewardPerToken); } } function _updateAccountRewards(address _account, address _rewardToken, uint256 _cumulativeRewardPerToken) private { uint256 stakedAmount = stakedAmounts[_account]; uint256 accountReward = stakedAmount.mul(_cumulativeRewardPerToken.sub(previousCumulatedRewardPerToken[_account][_rewardToken])).div(PRECISION); uint256 _claimableReward = claimableReward[_account][_rewardToken].add(accountReward); claimableReward[_account][_rewardToken] = _claimableReward; previousCumulatedRewardPerToken[_account][_rewardToken] = _cumulativeRewardPerToken; if (_claimableReward > 0 && stakedAmounts[_account] > 0) { uint256 nextCumulativeReward = cumulativeRewards[_account][_rewardToken].add(accountReward); averageStakedAmounts[_account] = averageStakedAmounts[_account].mul(cumulativeRewards[_account][_rewardToken]).div(nextCumulativeReward).add( stakedAmount.mul(accountReward).div(nextCumulativeReward) ); cumulativeRewards[_account][_rewardToken] = nextCumulativeReward; } } }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","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":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"allTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","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":"","type":"address"}],"name":"averageStakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimAll","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimAllForAccount","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimForAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimableAll","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"claimableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cumulativeRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"cumulativeRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"depositBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRewardTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"hasCumulativeRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateClaimingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateStakingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateTransferMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositTokens","type":"address[]"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDepositToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isHandler","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"previousCumulatedRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"rewardTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"bool","name":"_isDepositToken","type":"bool"}],"name":"setDepositToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateClaimingMode","type":"bool"}],"name":"setInPrivateClaimingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateStakingMode","type":"bool"}],"name":"setInPrivateStakingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateTransferMode","type":"bool"}],"name":"setInPrivateTransferMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundingAccount","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"tokensPerInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalDepositSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"unstakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040805180820182526007815266046656520514c560cc1b602080830191825283518085019094526004845263066514c560e41b908401526001600081905580546001600160a01b031916331790558151919291620000749160029162000093565b5080516200008a90600390602084019062000093565b5050506200012f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000d657805160ff191683800117855562000106565b8280016001018555821562000106579182015b8281111562000106578251825591602001919060010190620000e9565b506200011492915062000118565b5090565b5b8082111562000114576000815560010162000119565b61390d806200013f6000396000f3fe608060405234801561001057600080fd5b50600436106102675760003560e01c806301e336671461026c57806303bc5477146102a457806306fdde03146102e4578063095ea7b314610361578063098bf59d146103a157806310c1c103146103dd578063126082cf1461040357806312d43a511461040b57806312edb24c1461042f57806318160ddd146104875780631d30d5bc1461048f57806321c0b342146104ae57806323b872dd146104dc578063270da2401461051257806327e235e314610538578063313ce5671461055e578063392e53cd1461057c5780633cd7f70014610584578063462d0b2e146105a357806346ea87af1461064f578063552ce1dc1461067557806355b6ed5c1461069b5780635a47a1a7146106c95780635aacb6f3146106e85780635fd61965146107a757806370a08231146107cd57806377329f35146107f3578063790b5a6c1461081957806395d89b411461085557806395ded45c1461085d5780639862ddb6146108835780639cb7de4b146108a95780639e2e6023146108d7578063a318021714610905578063a39331a81461092b578063a9059cbb14610959578063aaf5eb6814610985578063adc9772e1461098d578063b89e45b3146109b9578063bfe10928146109df578063c2a672e0146109e7578063c5fa273014610a13578063cb9bb45f14610a1b578063cfad57a214610a41578063d26abffa14610a67578063d4570c1c14610a95578063dd62ed3e14610ac3578063dfbaefb114610af1578063e44b755814610af9578063f5ab16cc14610b27578063f5d9d63e14610b4d578063f76033d314610b7b578063f777b81314610b83575b600080fd5b6102a26004803603606081101561028257600080fd5b506001600160a01b03813581169160208101359091169060400135610bbb565b005b6102d2600480360360408110156102ba57600080fd5b506001600160a01b0381358116916020013516610c21565b60408051918252519081900360200190f35b6102ec610c3e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032657818101518382015260200161030e565b50505050905090810190601f1680156103535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61038d6004803603604081101561037757600080fd5b506001600160a01b038135169060200135610cc9565b604080519115158252519081900360200190f35b6102a2600480360360808110156103b757600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516610ce0565b6102d2600480360360208110156103f357600080fd5b50356001600160a01b0316610d4a565b6102d2610d5c565b610413610d62565b604080516001600160a01b039092168252519081900360200190f35b610437610d71565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561047357818101518382015260200161045b565b505050509050019250505060405180910390f35b6102d2610e8d565b6102a2600480360360208110156104a557600080fd5b50351515610e93565b6102d2600480360360408110156104c457600080fd5b506001600160a01b0381358116916020013516610efa565b61038d600480360360608110156104f257600080fd5b506001600160a01b0381358116916020810135909116906040013561106f565b6102d26004803603602081101561052857600080fd5b50356001600160a01b0316611109565b6102d26004803603602081101561054e57600080fd5b50356001600160a01b03166111a1565b6105666111b3565b6040805160ff9092168252519081900360200190f35b61038d6111b8565b6102a26004803603602081101561059a57600080fd5b503515156111c8565b6102a2600480360360408110156105b957600080fd5b810190602081018135600160201b8111156105d357600080fd5b8201836020820111156105e557600080fd5b803590602001918460208302840111600160201b8311171561060657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b031691506112319050565b61038d6004803603602081101561066557600080fd5b50356001600160a01b0316611354565b6102d26004803603602081101561068b57600080fd5b50356001600160a01b0316611369565b6102d2600480360360408110156106b157600080fd5b506001600160a01b038135811691602001351661137b565b6102a2600480360360208110156106df57600080fd5b50351515611398565b61070e600480360360208110156106fe57600080fd5b50356001600160a01b03166113f8565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561075257818101518382015260200161073a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610791578181015183820152602001610779565b5050505090500194505050505060405180910390f35b6102a2600480360360208110156107bd57600080fd5b50356001600160a01b03166115f2565b6102d2600480360360208110156107e357600080fd5b50356001600160a01b0316611708565b61070e6004803603602081101561080957600080fd5b50356001600160a01b0316611723565b6102a26004803603608081101561082f57600080fd5b506001600160a01b038135811691602081013582169160408201351690606001356117d2565b6102ec611831565b61038d6004803603602081101561087357600080fd5b50356001600160a01b031661188c565b6102d26004803603602081101561089957600080fd5b50356001600160a01b03166118f0565b6102a2600480360360408110156108bf57600080fd5b506001600160a01b0381351690602001351515611902565b61070e600480360360408110156108ed57600080fd5b506001600160a01b038135811691602001351661197a565b6102d26004803603602081101561091b57600080fd5b50356001600160a01b03166119ea565b6102d26004803603604081101561094157600080fd5b506001600160a01b03813581169160200135166119fc565b61038d6004803603604081101561096f57600080fd5b506001600160a01b038135169060200135611a19565b6102d2611a26565b6102a2600480360360408110156109a357600080fd5b506001600160a01b038135169060200135611a36565b61038d600480360360208110156109cf57600080fd5b50356001600160a01b0316611add565b610413611af2565b6102a2600480360360408110156109fd57600080fd5b506001600160a01b038135169060200135611b01565b61038d611b9f565b61038d60048036036020811015610a3157600080fd5b50356001600160a01b0316611bad565b6102a260048036036020811015610a5757600080fd5b50356001600160a01b0316611cf0565b6102d260048036036040811015610a7d57600080fd5b506001600160a01b0381358116916020013516611d5f565b6102d260048036036040811015610aab57600080fd5b506001600160a01b0381358116916020013516611d7c565b6102d260048036036040811015610ad957600080fd5b506001600160a01b0381358116916020013516611fed565b61038d612018565b6102a260048036036040811015610b0f57600080fd5b506001600160a01b0381351690602001351515612021565b61038d60048036036020811015610b3d57600080fd5b50356001600160a01b0316612099565b6102d260048036036040811015610b6357600080fd5b506001600160a01b03813581169160200135166120fd565b61038d61211a565b6102d260048036036060811015610b9957600080fd5b506001600160a01b038135811691602081013582169160409091013516612129565b6001546001600160a01b03163314610c08576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b610c1c6001600160a01b038416838361225f565b505050565b600e60209081526000928352604080842090915290825290205481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610cc15780601f10610c9657610100808354040283529160200191610cc1565b820191906000526020600020905b815481529060010190602001808311610ca457829003601f168201915b505050505081565b6000610cd63384846122b1565b5060015b92915050565b60026000541415610d26576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b6002600055610d3361239d565b610d3f848484846123fe565b505060016000555050565b600c6020526000908152604090205481565b61271081565b6001546001600160a01b031681565b6060600460009054906101000a90046001600160a01b03166001600160a01b03166312edb24c6040518163ffffffff1660e01b815260040160006040518083038186803b158015610dc157600080fd5b505afa158015610dd5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610dfe57600080fd5b8101908080516040519392919084600160201b821115610e1d57600080fd5b908301906020820185811115610e3257600080fd5b82518660208202830111600160201b82111715610e4e57600080fd5b82525081516020918201928201910280838360005b83811015610e7b578181015183820152602001610e63565b50505050905001604052505050905090565b60085481565b6001546001600160a01b03163314610ee0576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b601180549115156101000261ff0019909216919091179055565b600060026000541415610f42576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005560115462010000900460ff1615610f8f5760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610ff157600080fd5b505afa158015611005573d6000803e3d6000fd5b505050506040513d602081101561101b57600080fd5b50516110585760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b6110633384846125f7565b60016000559392505050565b3360009081526012602052604081205460ff161561109a57611092848484612698565b506001611102565b60006110e48360405180606001604052806030815260200161382b603091396001600160a01b0388166000908152600a6020908152604080832033845290915290205491906127eb565b90506110f18533836122b1565b6110fc858585612698565b60019150505b9392505050565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663270da240836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d602081101561119757600080fd5b505190505b919050565b60096020526000908152604090205481565b601281565b600154600160a01b900460ff1681565b6001546001600160a01b03163314611215576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b60118054911515620100000262ff000019909216919091179055565b6001546001600160a01b0316331461127e576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b600154600160a01b900460ff16156112c75760405162461bcd60e51b81526004018080602001828103825260228152602001806137956022913960400191505060405180910390fd5b6001805460ff60a01b1916600160a01b17905560005b82518110156113305760008382815181106112f457fe5b6020908102919091018101516001600160a01b03166000908152600590915260409020805460ff191660019081179091559190910190506112dd565b50600480546001600160a01b0319166001600160a01b039290921691909117905550565b60126020526000908152604090205460ff1681565b60076020526000908152604090205481565b600a60209081526000928352604080842090915290825290205481565b6001546001600160a01b031633146113e5576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b6060806000600460009054906101000a90046001600160a01b03166001600160a01b031663286c6a946040518163ffffffff1660e01b815260040160206040518083038186803b15801561144b57600080fd5b505afa15801561145f573d6000803e3d6000fd5b505050506040513d602081101561147557600080fd5b505190506060816001600160401b038111801561149157600080fd5b506040519080825280602002602001820160405280156114bb578160200160208202803683370190505b5090506060826001600160401b03811180156114d657600080fd5b50604051908082528060200260200182016040528015611500578160200160208202803683370190505b50905060005b838110156115e65760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b15801561155b57600080fd5b505afa15801561156f573d6000803e3d6000fd5b505050506040513d602081101561158557600080fd5b5051905060006115958983611d7c565b9050818584815181106115a457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050808484815181106115d157fe5b60209081029190910101525050600101611506565b50909350915050915091565b60026000541415611638576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b60026000556004805460408051632577b51760e21b81526001600160a01b0385811694820194909452905192909116916395ded45c91602480820192602092909190829003018186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d60208110156116b857600080fd5b50516116f55760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b611700600082612882565b506001600055565b6001600160a01b031660009081526009602052604090205490565b6060806002600054141561176c576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005560115462010000900460ff16156117b95760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b6117c333846129b9565b60016000559094909350915050565b60026000541415611818576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005561182561239d565b610d3f84848484612bb3565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610cc15780601f10610c9657610100808354040283529160200191610cc1565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561116d57600080fd5b600b6020526000908152604090205481565b6001546001600160a01b0316331461194f576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b606080600260005414156119c3576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b60026000556119d061239d565b6119da84846129b9565b6001600055909590945092505050565b60106020526000908152604090205481565b600f60209081526000928352604080842090915290825290205481565b6000610cd6338484612698565b68327cb2734119d3b7a9601e1b81565b60026000541415611a7c576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b6002600055601154610100900460ff1615611ac85760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b611ad433338484612bb3565b50506001600055565b60056020526000908152604090205460ff1681565b6004546001600160a01b031681565b60026000541415611b47576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b6002600055601154610100900460ff1615611b935760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b611ad4338383336123fe565b601154610100900460ff1681565b6004805460408051630a1b1aa560e21b8152905160009384936001600160a01b03169263286c6a949281830192602092829003018186803b158015611bf157600080fd5b505afa158015611c05573d6000803e3d6000fd5b505050506040513d6020811015611c1b57600080fd5b5051905060005b81811015611ce65760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b158015611c7757600080fd5b505afa158015611c8b573d6000803e3d6000fd5b505050506040513d6020811015611ca157600080fd5b50516001600160a01b038087166000908152600f602090815260408083209385168352929052205490915015611cdd576001935050505061119c565b50600101611c22565b5060009392505050565b6001546001600160a01b03163314611d3d576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600d60209081526000928352604080842090915290825290205481565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611de057600080fd5b505afa158015611df4573d6000803e3d6000fd5b505050506040513d6020811015611e0a57600080fd5b5051611e475760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b6001600160a01b0383166000908152600c602052604090205480611e925750506001600160a01b038083166000908152600d6020908152604080832093851683529290522054610cda565b60085460048054604080516318ebd13160e11b81526001600160a01b03888116948201949094529051600093611f2b9368327cb2734119d3b7a9601e1b939116916331d7a26291602480820192602092909190829003018186803b158015611ef957600080fd5b505afa158015611f0d573d6000803e3d6000fd5b505050506040513d6020811015611f2357600080fd5b505190612d2d565b90506000611f5b611f3c8385612d86565b6001600160a01b0388166000908152600b602052604090205490612dc5565b6001600160a01b038089166000908152600e60209081526040808320938b1683529290522054909150611fe290611fb69068327cb2734119d3b7a9601e1b90611fb090611fa9908690612e1d565b8890612d2d565b90612d86565b6001600160a01b03808a166000908152600d60209081526040808320938c168352929052205490612dc5565b979650505050505050565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b60115460ff1681565b6001546001600160a01b0316331461206e576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663f5ab16cc836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561116d57600080fd5b600660209081526000928352604080842090915290825290205481565b60115462010000900460ff1681565b600060026000541415612171576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005561217e61239d565b600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156121e057600080fd5b505afa1580156121f4573d6000803e3d6000fd5b505050506040513d602081101561220a57600080fd5b50516122475760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b6122528484846125f7565b6001600055949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c1c908490612e5f565b6001600160a01b0383166122f65760405162461bcd60e51b815260040180806020018281038252602c815260200180613686602c913960400191505060405180910390fd5b6001600160a01b03821661233b5760405162461bcd60e51b815260040180806020018281038252602a81526020018061374a602a913960400191505060405180910390fd5b6001600160a01b038084166000818152600a6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b3360009081526012602052604090205460ff166123fc576040805162461bcd60e51b81526020600482015260186024820152772932bbb0b9322a3930b1b5b2b91d103337b93134b23232b760411b604482015290519081900360640190fd5b565b8161243e576040805162461bcd60e51b815260206004820152601e60248201526000805160206135ce833981519152604482015290519081900360640190fd5b6001600160a01b03831660009081526005602052604090205460ff166124955760405162461bcd60e51b81526004018080602001828103825260248152602001806137266024913960400191505060405180910390fd5b61249e84612f10565b6001600160a01b0384166000908152600c6020526040902054828110156124f65760405162461bcd60e51b815260040180806020018281038252602b815260200180613638602b913960400191505060405180910390fd5b6125008184612e1d565b6001600160a01b038087166000908152600c6020908152604080832094909455600681528382209288168252919091522054838110156125715760405162461bcd60e51b815260040180806020018281038252602d8152602001806138a6602d913960400191505060405180910390fd5b61257b8185612e1d565b6001600160a01b038088166000908152600660209081526040808320938a1683529281528282209390935560079092529020546125b89085612e1d565b6001600160a01b0386166000908152600760205260409020556125db8685613027565b6125ef6001600160a01b038616848661225f565b505050505050565b60006126038484612882565b6001600160a01b038481166000908152600d60209081526040808320938716835292905290812080549190558015612690576126496001600160a01b038516848361225f565b604080516001600160a01b038681168252602082018490528251908816927f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068928290030190a25b949350505050565b6001600160a01b0383166126dd5760405162461bcd60e51b815260040180806020018281038252602d8152602001806137b7602d913960400191505060405180910390fd5b6001600160a01b0382166127225760405162461bcd60e51b815260040180806020018281038252602b8152602001806136fb602b913960400191505060405180910390fd5b60115460ff16156127355761273561239d565b612772816040518060600160405280602e81526020016138d3602e91396001600160a01b03861660009081526009602052604090205491906127eb565b6001600160a01b0380851660009081526009602052604080822093909355908416815220546127a19082612dc5565b6001600160a01b03808416600081815260096020908152604091829020949094558051858152905191939287169260008051602061380b83398151915292918290030190a3505050565b6000818484111561287a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561283f578181015183820152602001612827565b50505050905090810190601f16801561286c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166363453ae1836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156128e857600080fd5b505af11580156128fc573d6000803e3d6000fd5b505050506040513d602081101561291257600080fd5b50516008546001600160a01b0384166000908152600b60205260409020549192509081158015906129435750600083115b1561298a5761296c61296583611fb08668327cb2734119d3b7a9601e1b612d2d565b8290612dc5565b6001600160a01b0385166000908152600b6020526040902081905590505b80612997575050506129b5565b6001600160a01b038516156129b1576129b1858583613105565b5050505b5050565b6060806000600460009054906101000a90046001600160a01b03166001600160a01b031663286c6a946040518163ffffffff1660e01b815260040160206040518083038186803b158015612a0c57600080fd5b505afa158015612a20573d6000803e3d6000fd5b505050506040513d6020811015612a3657600080fd5b505190506060816001600160401b0381118015612a5257600080fd5b50604051908082528060200260200182016040528015612a7c578160200160208202803683370190505b5090506060826001600160401b0381118015612a9757600080fd5b50604051908082528060200260200182016040528015612ac1578160200160208202803683370190505b50905060005b83811015612ba65760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b158015612b1c57600080fd5b505afa158015612b30573d6000803e3d6000fd5b505050506040513d6020811015612b4657600080fd5b505184519091508190859084908110612b5b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612b8689828a6125f7565b838381518110612b9257fe5b602090810291909101015250600101612ac7565b5090969095509350505050565b80612bf3576040805162461bcd60e51b815260206004820152601e60248201526000805160206135ce833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526005602052604090205460ff16612c4a5760405162461bcd60e51b81526004018080602001828103825260248152602001806137266024913960400191505060405180910390fd5b612c5f6001600160a01b0383168530846132c9565b612c6883612f10565b6001600160a01b0383166000908152600c6020526040902054612c8b9082612dc5565b6001600160a01b038085166000908152600c6020908152604080832094909455600681528382209286168252919091522054612cc79082612dc5565b6001600160a01b0380851660009081526006602090815260408083209387168352928152828220939093556007909252902054612d049082612dc5565b6001600160a01b038316600090815260076020526040902055612d278382613323565b50505050565b600082612d3c57506000610cda565b82820282848281612d4957fe5b04146111025760405162461bcd60e51b81526004018080602001828103825260218152602001806137746021913960400191505060405180910390fd5b600061110283836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b8152506133e1565b600082820183811015611102576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b600061110283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506127eb565b6060612eb4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134469092919063ffffffff16565b805190915015610c1c57808060200190516020811015612ed357600080fd5b5051610c1c5760405162461bcd60e51b815260040180806020018281038252602a81526020018061385b602a913960400191505060405180910390fd5b6000600460009054906101000a90046001600160a01b03166001600160a01b031663286c6a946040518163ffffffff1660e01b815260040160206040518083038186803b158015612f6057600080fd5b505afa158015612f74573d6000803e3d6000fd5b505050506040513d6020811015612f8a57600080fd5b5051905060005b81811015610c1c5760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b158015612fe657600080fd5b505afa158015612ffa573d6000803e3d6000fd5b505050506040513d602081101561301057600080fd5b5051905061301e8482612882565b50600101612f91565b6001600160a01b03821661306c5760405162461bcd60e51b81526004018080602001828103825260298152602001806136b26029913960400191505060405180910390fd5b6130a9816040518060600160405280602a81526020016135ee602a91396001600160a01b03851660009081526009602052604090205491906127eb565b6001600160a01b0383166000908152600960205260409020556008546130cf9082612e1d565b6008556040805182815290516000916001600160a01b0385169160008051602061380b8339815191529181900360200190a35050565b6001600160a01b038084166000908152600c6020908152604080832054600e835281842094871684529390915281205461315d9068327cb2734119d3b7a9601e1b90611fb090613156908790612e1d565b8590612d2d565b6001600160a01b038087166000908152600d60209081526040808320938916835292905290812054919250906131939083612dc5565b6001600160a01b038088166000818152600d60209081526040808320948b16808452948252808320869055928252600e8152828220938252929092529020859055905080158015906131fc57506001600160a01b0386166000908152600c602052604090205415155b156125ef576001600160a01b038087166000908152600f602090815260408083209389168352929052908120546132339084612dc5565b905061328f61324682611fb08787612d2d565b6001600160a01b03808a166000818152600f60209081526040808320948d16835293815283822054928252601090529190912054613289918591611fb091612d2d565b90612dc5565b6001600160a01b03808916600090815260106020908152604080832094909455600f8152838220928a168252919091522055505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612d27908590612e5f565b6001600160a01b0382166133685760405162461bcd60e51b81526004018080602001828103825260278152602001806137e46027913960400191505060405180910390fd5b6008546133759082612dc5565b6008556001600160a01b03821660009081526009602052604090205461339b9082612dc5565b6001600160a01b038316600081815260096020908152604080832094909455835185815293519293919260008051602061380b8339815191529281900390910190a35050565b600081836134305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561283f578181015183820152602001612827565b50600083858161343c57fe5b0495945050505050565b606061269084846000858561345a85613561565b6134ab576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106134ea5780518252601f1990920191602091820191016134cb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461354c576040519150601f19603f3d011682016040523d82523d6000602084013e613551565b606091505b5091509150611fe2828286613567565b3b151590565b60608315613576575081611102565b8251156135865782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561283f57818101518382015260200161282756fe526577617264547261636b65723a20696e76616c6964205f616d6f756e740000526577617264547261636b65723a206275726e20616d6f756e7420657863656564732062616c616e63655265656e7472616e637947756172643a207265656e7472616e742063616c6c00526577617264547261636b65723a205f616d6f756e742065786365656473207374616b6564416d6f756e74526577617264547261636b65723a20696e76616c6964205f726577617264546f6b656e526577617264547261636b65723a20617070726f76652066726f6d20746865207a65726f2061646472657373526577617264547261636b65723a206275726e2066726f6d20746865207a65726f2061646472657373476f7665726e61626c653a20666f7262696464656e0000000000000000000000526577617264547261636b65723a207472616e7366657220746f20746865207a65726f2061646472657373526577617264547261636b65723a20696e76616c6964205f6465706f736974546f6b656e526577617264547261636b65723a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526577617264547261636b65723a20616c726561647920696e697469616c697a6564526577617264547261636b65723a207472616e736665722066726f6d20746865207a65726f2061646472657373526577617264547261636b65723a206d696e7420746f20746865207a65726f2061646472657373ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef526577617264547261636b65723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564526577617264547261636b65723a20616374696f6e206e6f7420656e61626c6564526577617264547261636b65723a205f616d6f756e742065786365656473206465706f73697442616c616e6365526577617264547261636b65723a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a164736f6c634300060c000a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102675760003560e01c806301e336671461026c57806303bc5477146102a457806306fdde03146102e4578063095ea7b314610361578063098bf59d146103a157806310c1c103146103dd578063126082cf1461040357806312d43a511461040b57806312edb24c1461042f57806318160ddd146104875780631d30d5bc1461048f57806321c0b342146104ae57806323b872dd146104dc578063270da2401461051257806327e235e314610538578063313ce5671461055e578063392e53cd1461057c5780633cd7f70014610584578063462d0b2e146105a357806346ea87af1461064f578063552ce1dc1461067557806355b6ed5c1461069b5780635a47a1a7146106c95780635aacb6f3146106e85780635fd61965146107a757806370a08231146107cd57806377329f35146107f3578063790b5a6c1461081957806395d89b411461085557806395ded45c1461085d5780639862ddb6146108835780639cb7de4b146108a95780639e2e6023146108d7578063a318021714610905578063a39331a81461092b578063a9059cbb14610959578063aaf5eb6814610985578063adc9772e1461098d578063b89e45b3146109b9578063bfe10928146109df578063c2a672e0146109e7578063c5fa273014610a13578063cb9bb45f14610a1b578063cfad57a214610a41578063d26abffa14610a67578063d4570c1c14610a95578063dd62ed3e14610ac3578063dfbaefb114610af1578063e44b755814610af9578063f5ab16cc14610b27578063f5d9d63e14610b4d578063f76033d314610b7b578063f777b81314610b83575b600080fd5b6102a26004803603606081101561028257600080fd5b506001600160a01b03813581169160208101359091169060400135610bbb565b005b6102d2600480360360408110156102ba57600080fd5b506001600160a01b0381358116916020013516610c21565b60408051918252519081900360200190f35b6102ec610c3e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032657818101518382015260200161030e565b50505050905090810190601f1680156103535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61038d6004803603604081101561037757600080fd5b506001600160a01b038135169060200135610cc9565b604080519115158252519081900360200190f35b6102a2600480360360808110156103b757600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516610ce0565b6102d2600480360360208110156103f357600080fd5b50356001600160a01b0316610d4a565b6102d2610d5c565b610413610d62565b604080516001600160a01b039092168252519081900360200190f35b610437610d71565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561047357818101518382015260200161045b565b505050509050019250505060405180910390f35b6102d2610e8d565b6102a2600480360360208110156104a557600080fd5b50351515610e93565b6102d2600480360360408110156104c457600080fd5b506001600160a01b0381358116916020013516610efa565b61038d600480360360608110156104f257600080fd5b506001600160a01b0381358116916020810135909116906040013561106f565b6102d26004803603602081101561052857600080fd5b50356001600160a01b0316611109565b6102d26004803603602081101561054e57600080fd5b50356001600160a01b03166111a1565b6105666111b3565b6040805160ff9092168252519081900360200190f35b61038d6111b8565b6102a26004803603602081101561059a57600080fd5b503515156111c8565b6102a2600480360360408110156105b957600080fd5b810190602081018135600160201b8111156105d357600080fd5b8201836020820111156105e557600080fd5b803590602001918460208302840111600160201b8311171561060657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b031691506112319050565b61038d6004803603602081101561066557600080fd5b50356001600160a01b0316611354565b6102d26004803603602081101561068b57600080fd5b50356001600160a01b0316611369565b6102d2600480360360408110156106b157600080fd5b506001600160a01b038135811691602001351661137b565b6102a2600480360360208110156106df57600080fd5b50351515611398565b61070e600480360360208110156106fe57600080fd5b50356001600160a01b03166113f8565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561075257818101518382015260200161073a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610791578181015183820152602001610779565b5050505090500194505050505060405180910390f35b6102a2600480360360208110156107bd57600080fd5b50356001600160a01b03166115f2565b6102d2600480360360208110156107e357600080fd5b50356001600160a01b0316611708565b61070e6004803603602081101561080957600080fd5b50356001600160a01b0316611723565b6102a26004803603608081101561082f57600080fd5b506001600160a01b038135811691602081013582169160408201351690606001356117d2565b6102ec611831565b61038d6004803603602081101561087357600080fd5b50356001600160a01b031661188c565b6102d26004803603602081101561089957600080fd5b50356001600160a01b03166118f0565b6102a2600480360360408110156108bf57600080fd5b506001600160a01b0381351690602001351515611902565b61070e600480360360408110156108ed57600080fd5b506001600160a01b038135811691602001351661197a565b6102d26004803603602081101561091b57600080fd5b50356001600160a01b03166119ea565b6102d26004803603604081101561094157600080fd5b506001600160a01b03813581169160200135166119fc565b61038d6004803603604081101561096f57600080fd5b506001600160a01b038135169060200135611a19565b6102d2611a26565b6102a2600480360360408110156109a357600080fd5b506001600160a01b038135169060200135611a36565b61038d600480360360208110156109cf57600080fd5b50356001600160a01b0316611add565b610413611af2565b6102a2600480360360408110156109fd57600080fd5b506001600160a01b038135169060200135611b01565b61038d611b9f565b61038d60048036036020811015610a3157600080fd5b50356001600160a01b0316611bad565b6102a260048036036020811015610a5757600080fd5b50356001600160a01b0316611cf0565b6102d260048036036040811015610a7d57600080fd5b506001600160a01b0381358116916020013516611d5f565b6102d260048036036040811015610aab57600080fd5b506001600160a01b0381358116916020013516611d7c565b6102d260048036036040811015610ad957600080fd5b506001600160a01b0381358116916020013516611fed565b61038d612018565b6102a260048036036040811015610b0f57600080fd5b506001600160a01b0381351690602001351515612021565b61038d60048036036020811015610b3d57600080fd5b50356001600160a01b0316612099565b6102d260048036036040811015610b6357600080fd5b506001600160a01b03813581169160200135166120fd565b61038d61211a565b6102d260048036036060811015610b9957600080fd5b506001600160a01b038135811691602081013582169160409091013516612129565b6001546001600160a01b03163314610c08576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b610c1c6001600160a01b038416838361225f565b505050565b600e60209081526000928352604080842090915290825290205481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610cc15780601f10610c9657610100808354040283529160200191610cc1565b820191906000526020600020905b815481529060010190602001808311610ca457829003601f168201915b505050505081565b6000610cd63384846122b1565b5060015b92915050565b60026000541415610d26576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b6002600055610d3361239d565b610d3f848484846123fe565b505060016000555050565b600c6020526000908152604090205481565b61271081565b6001546001600160a01b031681565b6060600460009054906101000a90046001600160a01b03166001600160a01b03166312edb24c6040518163ffffffff1660e01b815260040160006040518083038186803b158015610dc157600080fd5b505afa158015610dd5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610dfe57600080fd5b8101908080516040519392919084600160201b821115610e1d57600080fd5b908301906020820185811115610e3257600080fd5b82518660208202830111600160201b82111715610e4e57600080fd5b82525081516020918201928201910280838360005b83811015610e7b578181015183820152602001610e63565b50505050905001604052505050905090565b60085481565b6001546001600160a01b03163314610ee0576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b601180549115156101000261ff0019909216919091179055565b600060026000541415610f42576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005560115462010000900460ff1615610f8f5760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610ff157600080fd5b505afa158015611005573d6000803e3d6000fd5b505050506040513d602081101561101b57600080fd5b50516110585760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b6110633384846125f7565b60016000559392505050565b3360009081526012602052604081205460ff161561109a57611092848484612698565b506001611102565b60006110e48360405180606001604052806030815260200161382b603091396001600160a01b0388166000908152600a6020908152604080832033845290915290205491906127eb565b90506110f18533836122b1565b6110fc858585612698565b60019150505b9392505050565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663270da240836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d602081101561119757600080fd5b505190505b919050565b60096020526000908152604090205481565b601281565b600154600160a01b900460ff1681565b6001546001600160a01b03163314611215576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b60118054911515620100000262ff000019909216919091179055565b6001546001600160a01b0316331461127e576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b600154600160a01b900460ff16156112c75760405162461bcd60e51b81526004018080602001828103825260228152602001806137956022913960400191505060405180910390fd5b6001805460ff60a01b1916600160a01b17905560005b82518110156113305760008382815181106112f457fe5b6020908102919091018101516001600160a01b03166000908152600590915260409020805460ff191660019081179091559190910190506112dd565b50600480546001600160a01b0319166001600160a01b039290921691909117905550565b60126020526000908152604090205460ff1681565b60076020526000908152604090205481565b600a60209081526000928352604080842090915290825290205481565b6001546001600160a01b031633146113e5576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b6060806000600460009054906101000a90046001600160a01b03166001600160a01b031663286c6a946040518163ffffffff1660e01b815260040160206040518083038186803b15801561144b57600080fd5b505afa15801561145f573d6000803e3d6000fd5b505050506040513d602081101561147557600080fd5b505190506060816001600160401b038111801561149157600080fd5b506040519080825280602002602001820160405280156114bb578160200160208202803683370190505b5090506060826001600160401b03811180156114d657600080fd5b50604051908082528060200260200182016040528015611500578160200160208202803683370190505b50905060005b838110156115e65760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b15801561155b57600080fd5b505afa15801561156f573d6000803e3d6000fd5b505050506040513d602081101561158557600080fd5b5051905060006115958983611d7c565b9050818584815181106115a457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050808484815181106115d157fe5b60209081029190910101525050600101611506565b50909350915050915091565b60026000541415611638576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b60026000556004805460408051632577b51760e21b81526001600160a01b0385811694820194909452905192909116916395ded45c91602480820192602092909190829003018186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d60208110156116b857600080fd5b50516116f55760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b611700600082612882565b506001600055565b6001600160a01b031660009081526009602052604090205490565b6060806002600054141561176c576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005560115462010000900460ff16156117b95760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b6117c333846129b9565b60016000559094909350915050565b60026000541415611818576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005561182561239d565b610d3f84848484612bb3565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610cc15780601f10610c9657610100808354040283529160200191610cc1565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561116d57600080fd5b600b6020526000908152604090205481565b6001546001600160a01b0316331461194f576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b606080600260005414156119c3576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b60026000556119d061239d565b6119da84846129b9565b6001600055909590945092505050565b60106020526000908152604090205481565b600f60209081526000928352604080842090915290825290205481565b6000610cd6338484612698565b68327cb2734119d3b7a9601e1b81565b60026000541415611a7c576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b6002600055601154610100900460ff1615611ac85760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b611ad433338484612bb3565b50506001600055565b60056020526000908152604090205460ff1681565b6004546001600160a01b031681565b60026000541415611b47576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b6002600055601154610100900460ff1615611b935760405162461bcd60e51b81526004018080602001828103825260218152602001806138856021913960400191505060405180910390fd5b611ad4338383336123fe565b601154610100900460ff1681565b6004805460408051630a1b1aa560e21b8152905160009384936001600160a01b03169263286c6a949281830192602092829003018186803b158015611bf157600080fd5b505afa158015611c05573d6000803e3d6000fd5b505050506040513d6020811015611c1b57600080fd5b5051905060005b81811015611ce65760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b158015611c7757600080fd5b505afa158015611c8b573d6000803e3d6000fd5b505050506040513d6020811015611ca157600080fd5b50516001600160a01b038087166000908152600f602090815260408083209385168352929052205490915015611cdd576001935050505061119c565b50600101611c22565b5060009392505050565b6001546001600160a01b03163314611d3d576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600d60209081526000928352604080842090915290825290205481565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611de057600080fd5b505afa158015611df4573d6000803e3d6000fd5b505050506040513d6020811015611e0a57600080fd5b5051611e475760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b6001600160a01b0383166000908152600c602052604090205480611e925750506001600160a01b038083166000908152600d6020908152604080832093851683529290522054610cda565b60085460048054604080516318ebd13160e11b81526001600160a01b03888116948201949094529051600093611f2b9368327cb2734119d3b7a9601e1b939116916331d7a26291602480820192602092909190829003018186803b158015611ef957600080fd5b505afa158015611f0d573d6000803e3d6000fd5b505050506040513d6020811015611f2357600080fd5b505190612d2d565b90506000611f5b611f3c8385612d86565b6001600160a01b0388166000908152600b602052604090205490612dc5565b6001600160a01b038089166000908152600e60209081526040808320938b1683529290522054909150611fe290611fb69068327cb2734119d3b7a9601e1b90611fb090611fa9908690612e1d565b8890612d2d565b90612d86565b6001600160a01b03808a166000908152600d60209081526040808320938c168352929052205490612dc5565b979650505050505050565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b60115460ff1681565b6001546001600160a01b0316331461206e576040805162461bcd60e51b815260206004820152601560248201526000805160206136db833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663f5ab16cc836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561116d57600080fd5b600660209081526000928352604080842090915290825290205481565b60115462010000900460ff1681565b600060026000541415612171576040805162461bcd60e51b815260206004820152601f6024820152600080516020613618833981519152604482015290519081900360640190fd5b600260005561217e61239d565b600460009054906101000a90046001600160a01b03166001600160a01b03166395ded45c846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156121e057600080fd5b505afa1580156121f4573d6000803e3d6000fd5b505050506040513d602081101561220a57600080fd5b50516122475760405162461bcd60e51b81526004018080602001828103825260238152602001806136636023913960400191505060405180910390fd5b6122528484846125f7565b6001600055949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c1c908490612e5f565b6001600160a01b0383166122f65760405162461bcd60e51b815260040180806020018281038252602c815260200180613686602c913960400191505060405180910390fd5b6001600160a01b03821661233b5760405162461bcd60e51b815260040180806020018281038252602a81526020018061374a602a913960400191505060405180910390fd5b6001600160a01b038084166000818152600a6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b3360009081526012602052604090205460ff166123fc576040805162461bcd60e51b81526020600482015260186024820152772932bbb0b9322a3930b1b5b2b91d103337b93134b23232b760411b604482015290519081900360640190fd5b565b8161243e576040805162461bcd60e51b815260206004820152601e60248201526000805160206135ce833981519152604482015290519081900360640190fd5b6001600160a01b03831660009081526005602052604090205460ff166124955760405162461bcd60e51b81526004018080602001828103825260248152602001806137266024913960400191505060405180910390fd5b61249e84612f10565b6001600160a01b0384166000908152600c6020526040902054828110156124f65760405162461bcd60e51b815260040180806020018281038252602b815260200180613638602b913960400191505060405180910390fd5b6125008184612e1d565b6001600160a01b038087166000908152600c6020908152604080832094909455600681528382209288168252919091522054838110156125715760405162461bcd60e51b815260040180806020018281038252602d8152602001806138a6602d913960400191505060405180910390fd5b61257b8185612e1d565b6001600160a01b038088166000908152600660209081526040808320938a1683529281528282209390935560079092529020546125b89085612e1d565b6001600160a01b0386166000908152600760205260409020556125db8685613027565b6125ef6001600160a01b038616848661225f565b505050505050565b60006126038484612882565b6001600160a01b038481166000908152600d60209081526040808320938716835292905290812080549190558015612690576126496001600160a01b038516848361225f565b604080516001600160a01b038681168252602082018490528251908816927f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068928290030190a25b949350505050565b6001600160a01b0383166126dd5760405162461bcd60e51b815260040180806020018281038252602d8152602001806137b7602d913960400191505060405180910390fd5b6001600160a01b0382166127225760405162461bcd60e51b815260040180806020018281038252602b8152602001806136fb602b913960400191505060405180910390fd5b60115460ff16156127355761273561239d565b612772816040518060600160405280602e81526020016138d3602e91396001600160a01b03861660009081526009602052604090205491906127eb565b6001600160a01b0380851660009081526009602052604080822093909355908416815220546127a19082612dc5565b6001600160a01b03808416600081815260096020908152604091829020949094558051858152905191939287169260008051602061380b83398151915292918290030190a3505050565b6000818484111561287a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561283f578181015183820152602001612827565b50505050905090810190601f16801561286c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000600460009054906101000a90046001600160a01b03166001600160a01b03166363453ae1836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156128e857600080fd5b505af11580156128fc573d6000803e3d6000fd5b505050506040513d602081101561291257600080fd5b50516008546001600160a01b0384166000908152600b60205260409020549192509081158015906129435750600083115b1561298a5761296c61296583611fb08668327cb2734119d3b7a9601e1b612d2d565b8290612dc5565b6001600160a01b0385166000908152600b6020526040902081905590505b80612997575050506129b5565b6001600160a01b038516156129b1576129b1858583613105565b5050505b5050565b6060806000600460009054906101000a90046001600160a01b03166001600160a01b031663286c6a946040518163ffffffff1660e01b815260040160206040518083038186803b158015612a0c57600080fd5b505afa158015612a20573d6000803e3d6000fd5b505050506040513d6020811015612a3657600080fd5b505190506060816001600160401b0381118015612a5257600080fd5b50604051908082528060200260200182016040528015612a7c578160200160208202803683370190505b5090506060826001600160401b0381118015612a9757600080fd5b50604051908082528060200260200182016040528015612ac1578160200160208202803683370190505b50905060005b83811015612ba65760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b158015612b1c57600080fd5b505afa158015612b30573d6000803e3d6000fd5b505050506040513d6020811015612b4657600080fd5b505184519091508190859084908110612b5b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612b8689828a6125f7565b838381518110612b9257fe5b602090810291909101015250600101612ac7565b5090969095509350505050565b80612bf3576040805162461bcd60e51b815260206004820152601e60248201526000805160206135ce833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526005602052604090205460ff16612c4a5760405162461bcd60e51b81526004018080602001828103825260248152602001806137266024913960400191505060405180910390fd5b612c5f6001600160a01b0383168530846132c9565b612c6883612f10565b6001600160a01b0383166000908152600c6020526040902054612c8b9082612dc5565b6001600160a01b038085166000908152600c6020908152604080832094909455600681528382209286168252919091522054612cc79082612dc5565b6001600160a01b0380851660009081526006602090815260408083209387168352928152828220939093556007909252902054612d049082612dc5565b6001600160a01b038316600090815260076020526040902055612d278382613323565b50505050565b600082612d3c57506000610cda565b82820282848281612d4957fe5b04146111025760405162461bcd60e51b81526004018080602001828103825260218152602001806137746021913960400191505060405180910390fd5b600061110283836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b8152506133e1565b600082820183811015611102576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b600061110283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506127eb565b6060612eb4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134469092919063ffffffff16565b805190915015610c1c57808060200190516020811015612ed357600080fd5b5051610c1c5760405162461bcd60e51b815260040180806020018281038252602a81526020018061385b602a913960400191505060405180910390fd5b6000600460009054906101000a90046001600160a01b03166001600160a01b031663286c6a946040518163ffffffff1660e01b815260040160206040518083038186803b158015612f6057600080fd5b505afa158015612f74573d6000803e3d6000fd5b505050506040513d6020811015612f8a57600080fd5b5051905060005b81811015610c1c5760048054604080516327ba031760e21b8152928301849052516000926001600160a01b0390921691639ee80c5c916024808301926020929190829003018186803b158015612fe657600080fd5b505afa158015612ffa573d6000803e3d6000fd5b505050506040513d602081101561301057600080fd5b5051905061301e8482612882565b50600101612f91565b6001600160a01b03821661306c5760405162461bcd60e51b81526004018080602001828103825260298152602001806136b26029913960400191505060405180910390fd5b6130a9816040518060600160405280602a81526020016135ee602a91396001600160a01b03851660009081526009602052604090205491906127eb565b6001600160a01b0383166000908152600960205260409020556008546130cf9082612e1d565b6008556040805182815290516000916001600160a01b0385169160008051602061380b8339815191529181900360200190a35050565b6001600160a01b038084166000908152600c6020908152604080832054600e835281842094871684529390915281205461315d9068327cb2734119d3b7a9601e1b90611fb090613156908790612e1d565b8590612d2d565b6001600160a01b038087166000908152600d60209081526040808320938916835292905290812054919250906131939083612dc5565b6001600160a01b038088166000818152600d60209081526040808320948b16808452948252808320869055928252600e8152828220938252929092529020859055905080158015906131fc57506001600160a01b0386166000908152600c602052604090205415155b156125ef576001600160a01b038087166000908152600f602090815260408083209389168352929052908120546132339084612dc5565b905061328f61324682611fb08787612d2d565b6001600160a01b03808a166000818152600f60209081526040808320948d16835293815283822054928252601090529190912054613289918591611fb091612d2d565b90612dc5565b6001600160a01b03808916600090815260106020908152604080832094909455600f8152838220928a168252919091522055505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612d27908590612e5f565b6001600160a01b0382166133685760405162461bcd60e51b81526004018080602001828103825260278152602001806137e46027913960400191505060405180910390fd5b6008546133759082612dc5565b6008556001600160a01b03821660009081526009602052604090205461339b9082612dc5565b6001600160a01b038316600081815260096020908152604080832094909455835185815293519293919260008051602061380b8339815191529281900390910190a35050565b600081836134305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561283f578181015183820152602001612827565b50600083858161343c57fe5b0495945050505050565b606061269084846000858561345a85613561565b6134ab576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106134ea5780518252601f1990920191602091820191016134cb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461354c576040519150601f19603f3d011682016040523d82523d6000602084013e613551565b606091505b5091509150611fe2828286613567565b3b151590565b60608315613576575081611102565b8251156135865782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561283f57818101518382015260200161282756fe526577617264547261636b65723a20696e76616c6964205f616d6f756e740000526577617264547261636b65723a206275726e20616d6f756e7420657863656564732062616c616e63655265656e7472616e637947756172643a207265656e7472616e742063616c6c00526577617264547261636b65723a205f616d6f756e742065786365656473207374616b6564416d6f756e74526577617264547261636b65723a20696e76616c6964205f726577617264546f6b656e526577617264547261636b65723a20617070726f76652066726f6d20746865207a65726f2061646472657373526577617264547261636b65723a206275726e2066726f6d20746865207a65726f2061646472657373476f7665726e61626c653a20666f7262696464656e0000000000000000000000526577617264547261636b65723a207472616e7366657220746f20746865207a65726f2061646472657373526577617264547261636b65723a20696e76616c6964205f6465706f736974546f6b656e526577617264547261636b65723a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526577617264547261636b65723a20616c726561647920696e697469616c697a6564526577617264547261636b65723a207472616e736665722066726f6d20746865207a65726f2061646472657373526577617264547261636b65723a206d696e7420746f20746865207a65726f2061646472657373ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef526577617264547261636b65723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564526577617264547261636b65723a20616374696f6e206e6f7420656e61626c6564526577617264547261636b65723a205f616d6f756e742065786365656473206465706f73697442616c616e6365526577617264547261636b65723a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a164736f6c634300060c000a
Loading...
Loading
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.