More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 119 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 13881446 | 1107 days ago | IN | 0 ETH | 0.00479294 | ||||
Withdraw | 13756561 | 1126 days ago | IN | 0 ETH | 0.00752049 | ||||
Withdraw | 13732390 | 1130 days ago | IN | 0 ETH | 0.00681912 | ||||
Withdraw | 13695882 | 1136 days ago | IN | 0 ETH | 0.00885109 | ||||
Withdraw | 13549301 | 1159 days ago | IN | 0 ETH | 0.0093199 | ||||
Withdraw | 13453874 | 1174 days ago | IN | 0 ETH | 0.00439409 | ||||
Withdraw | 13411901 | 1181 days ago | IN | 0 ETH | 0.00812263 | ||||
Withdraw | 13362935 | 1188 days ago | IN | 0 ETH | 0.00863004 | ||||
Withdraw | 13357129 | 1189 days ago | IN | 0 ETH | 0.0046545 | ||||
Withdraw | 13349069 | 1190 days ago | IN | 0 ETH | 0.0041187 | ||||
Deposit | 13348101 | 1191 days ago | IN | 0 ETH | 0.00173334 | ||||
Deposit | 13348101 | 1191 days ago | IN | 0 ETH | 0.00169681 | ||||
Deposit | 13348038 | 1191 days ago | IN | 0 ETH | 0.00647504 | ||||
Withdraw | 13346238 | 1191 days ago | IN | 0 ETH | 0.0023719 | ||||
Withdraw | 13344587 | 1191 days ago | IN | 0 ETH | 0.00563387 | ||||
Withdraw | 13344169 | 1191 days ago | IN | 0 ETH | 0.0044911 | ||||
Withdraw | 13339840 | 1192 days ago | IN | 0 ETH | 0.00491689 | ||||
Withdraw | 13339407 | 1192 days ago | IN | 0 ETH | 0.00354507 | ||||
Withdraw | 13339065 | 1192 days ago | IN | 0 ETH | 0.00470307 | ||||
Withdraw | 13334341 | 1193 days ago | IN | 0 ETH | 0.00765693 | ||||
Withdraw | 13333405 | 1193 days ago | IN | 0 ETH | 0.00495536 | ||||
Withdraw | 13322560 | 1195 days ago | IN | 0 ETH | 0.00847636 | ||||
Withdraw | 13322421 | 1195 days ago | IN | 0 ETH | 0.00853571 | ||||
Withdraw | 13321141 | 1195 days ago | IN | 0 ETH | 0.00837837 | ||||
Withdraw | 13321136 | 1195 days ago | IN | 0 ETH | 0.00662824 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x53c8e7F2...a7D883373 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokensFarm
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-09-23 */ // Sources flattened with hardhat v2.1.2 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/math/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @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"); } } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/access/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () 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; } } // File contracts/TokensFarm.sol pragma solidity 0.6.12; contract TokensFarm is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; enum EarlyWithdrawPenalty { NO_PENALTY, BURN_REWARDS, REDISTRIBUTE_REWARDS } // Info of each user. struct StakeInfo { uint256 amount; // How many tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. uint256 depositTime; // Time when user deposited. } IERC20 public tokenStaked; // Address of ERC20 token contract. uint256 public lastRewardTime; // Last time number that ERC20s distribution occurs. uint256 public accERC20PerShare; // Accumulated ERC20s per share, times 1e36. uint256 public totalDeposits; // Total tokens deposited in the farm. // If contractor allows early withdraw on stakes bool public isEarlyWithdrawAllowed; // Minimal period of time to stake uint256 public minTimeToStake; // Address of the ERC20 Token contract. IERC20 public erc20; // The total amount of ERC20 that's paid out as reward. uint256 public paidOut; // ERC20 tokens rewarded per second. uint256 public rewardPerSecond; // Total rewards added to farm uint256 public totalRewards; // Info of each user that stakes ERC20 tokens. mapping (address => StakeInfo[]) public stakeInfo; // The time when farming starts. uint256 public startTime; // The time when farming ends. uint256 public endTime; // Early withdraw penalty EarlyWithdrawPenalty public penalty; // Counter for funding uint256 fundCounter; // Congress address address public congressAddress; // Events event Deposit(address indexed user, uint256 stakeId, uint256 amount); event Withdraw(address indexed user, uint256 stakeId, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 stakeId, uint256 amount); event EarlyWithdrawPenaltyChange(EarlyWithdrawPenalty penalty); modifier validateStakeByStakeId(address _user, uint256 stakeId) { require(stakeId < stakeInfo[_user].length, "Stake does not exist"); _; } constructor( IERC20 _erc20, uint256 _rewardPerSecond, uint256 _startTime, uint256 _minTimeToStake, bool _isEarlyWithdrawAllowed, EarlyWithdrawPenalty _penalty, IERC20 _tokenStaked, address _congressAddress ) public { require(address(_erc20) != address(0x0), "Wrong token address."); require(_rewardPerSecond > 0, "Rewards per second must be > 0."); require(_startTime >= block.timestamp, "Start timne can not be in the past."); erc20 = _erc20; rewardPerSecond = _rewardPerSecond; startTime = _startTime; endTime = _startTime; minTimeToStake = _minTimeToStake; isEarlyWithdrawAllowed = _isEarlyWithdrawAllowed; congressAddress = _congressAddress; _setEarlyWithdrawPenalty(_penalty); _addPool(_tokenStaked); } // Set minimun time to stake function setMinTimeToStake(uint256 _minTimeToStake) external onlyOwner { minTimeToStake = _minTimeToStake; } // Set early withdrawal penalty, if applicable function _setEarlyWithdrawPenalty(EarlyWithdrawPenalty _penalty) internal { require(isEarlyWithdrawAllowed, "Early withdrawal is not allowed, so there is no penalty."); penalty = _penalty; emit EarlyWithdrawPenaltyChange(penalty); } // Fund the farm, increase the end time function fund(uint256 _amount) external { fundCounter = fundCounter.add(1); _fundInternal(_amount); erc20.safeTransferFrom(address(msg.sender), address(this), _amount); if (fundCounter == 2) { transferOwnership(congressAddress); } } // Internally fund the farm by adding farmed rewards by user to the end function _fundInternal(uint _amount) internal { require(block.timestamp < endTime, "fund: too late, the farm is closed"); require(_amount > 0, "Amount must be greater than 0."); // Compute new end time endTime += _amount.div(rewardPerSecond); // Increase farm total rewards totalRewards = totalRewards.add(_amount); } // Add a new ERC20 token to the pool. Can only be called by the owner. function _addPool(IERC20 _tokenStaked) internal { require(address(_tokenStaked) != address(0x0), "Must input valid address."); require(address(tokenStaked) == address(0x0), "Pool can be set only once."); uint256 _lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime; tokenStaked = _tokenStaked; lastRewardTime = _lastRewardTime; accERC20PerShare = 0; totalDeposits = 0; } // View function to see deposited ERC20 token for a user. function deposited(address _user, uint256 stakeId) public view validateStakeByStakeId(_user, stakeId) returns (uint256) { StakeInfo storage stake = stakeInfo[_user][stakeId]; return stake.amount; } // View function to see pending ERC20s for a user. function pending(address _user, uint256 stakeId) public view validateStakeByStakeId(_user, stakeId) returns (uint256) { StakeInfo storage stake = stakeInfo[_user][stakeId]; if(stake.amount == 0) { return 0; } uint256 _accERC20PerShare = accERC20PerShare; uint256 tokenSupply = totalDeposits; if (block.timestamp > lastRewardTime && tokenSupply != 0) { uint256 lastTime = block.timestamp < endTime ? block.timestamp : endTime; uint256 timeToCompare = lastRewardTime < endTime ? lastRewardTime : endTime; uint256 nrOfSeconds = lastTime.sub(timeToCompare); uint256 erc20Reward = nrOfSeconds.mul(rewardPerSecond); _accERC20PerShare = _accERC20PerShare.add(erc20Reward.mul(1e36).div(tokenSupply)); } return stake.amount.mul(_accERC20PerShare).div(1e36).sub(stake.rewardDebt); } // View function to see deposit timestamp for a user. function depositTimestamp(address _user, uint256 stakeId) public view validateStakeByStakeId(_user, stakeId) returns (uint256) { StakeInfo storage stake = stakeInfo[_user][stakeId]; return stake.depositTime; } // View function for total reward the farm has yet to pay out. function totalPending() external view returns (uint256) { if (block.timestamp <= startTime) { return 0; } uint256 lastTime = block.timestamp < endTime ? block.timestamp : endTime; return rewardPerSecond.mul(lastTime - startTime).sub(paidOut); } // Update reward variables of the given pool to be up-to-date. function updatePool() public { uint256 lastTime = block.timestamp < endTime ? block.timestamp : endTime; if (lastTime <= lastRewardTime) { return; } uint256 tokenSupply = totalDeposits; if (tokenSupply == 0) { lastRewardTime = lastTime; return; } uint256 nrOfSeconds = lastTime.sub(lastRewardTime); uint256 erc20Reward = nrOfSeconds.mul(rewardPerSecond); accERC20PerShare = accERC20PerShare.add(erc20Reward.mul(1e36).div(tokenSupply)); lastRewardTime = block.timestamp; } // Deposit ERC20 tokens to Farm for ERC20 allocation. function deposit(uint256 _amount) external { StakeInfo memory stake; // Update pool updatePool(); // Take token and transfer to contract tokenStaked.safeTransferFrom(address(msg.sender), address(this), _amount); // Add amount to the pool total deposits totalDeposits = totalDeposits.add(_amount); // Update user accounting stake.amount = _amount; stake.rewardDebt = stake.amount.mul(accERC20PerShare).div(1e36); stake.depositTime = block.timestamp; uint stakeId = stakeInfo[msg.sender].length; // Push new stake to array of stakes for user stakeInfo[msg.sender].push(stake); // Emit deposit event emit Deposit(msg.sender, stakeId, _amount); } // Withdraw ERC20 tokens from Farm. function withdraw(uint256 _amount, uint256 stakeId) external nonReentrant validateStakeByStakeId(msg.sender, stakeId) { bool minimalTimeStakeRespected; StakeInfo storage stake = stakeInfo[msg.sender][stakeId]; require(stake.amount >= _amount, "withdraw: can't withdraw more than deposit"); updatePool(); // if early withdraw is not allowed, user can't withdraw funds before if(!isEarlyWithdrawAllowed) { minimalTimeStakeRespected = stake.depositTime.add(minTimeToStake) <= block.timestamp; // Check if user has respected minimal time to stake, require it. require(minimalTimeStakeRespected, "User can not withdraw funds yet."); } // Compute pending rewards amount of user rewards uint256 pendingAmount = stake.amount.mul(accERC20PerShare).div(1e36).sub(stake.rewardDebt); // Penalties in case user didn't stake enough time minimalTimeStakeRespected = stake.depositTime.add(minTimeToStake) <= block.timestamp; if(penalty == EarlyWithdrawPenalty.BURN_REWARDS && !minimalTimeStakeRespected) { // Burn to address (1) _erc20Transfer(address(1), pendingAmount); } else if (penalty == EarlyWithdrawPenalty.REDISTRIBUTE_REWARDS && !minimalTimeStakeRespected) { // Re-fund the farm _fundInternal(pendingAmount); } else { // In case either there's no penalty _erc20Transfer(msg.sender, pendingAmount); } stake.amount = stake.amount.sub(_amount); stake.rewardDebt = stake.amount.mul(accERC20PerShare).div(1e36); tokenStaked.safeTransfer(address(msg.sender), _amount); totalDeposits = totalDeposits.sub(_amount); // Emit Withdraw event emit Withdraw(msg.sender, stakeId, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 stakeId) external nonReentrant validateStakeByStakeId(msg.sender, stakeId) { StakeInfo storage stake = stakeInfo[msg.sender][stakeId]; // if early withdraw is not allowed, user can't withdraw funds before if(!isEarlyWithdrawAllowed) { bool minimalTimeStakeRespected = stake.depositTime.add(minTimeToStake) <= block.timestamp; // Check if user has respected minimal time to stake, require it. require(minimalTimeStakeRespected, "User can not withdraw funds yet."); } tokenStaked.safeTransfer(address(msg.sender), stake.amount); totalDeposits = totalDeposits.sub(stake.amount); emit EmergencyWithdraw(msg.sender, stakeId, stake.amount); stake.amount = 0; stake.rewardDebt = 0; } // Get number of stakes user has function getNumberOfUserStakes(address user) external view returns (uint256){ return stakeInfo[user].length; } // Get user pending amounts, stakes and deposit time function getUserStakesAndPendingAmounts(address user) external view returns (uint256[] memory, uint256[] memory, uint256[] memory) { uint256 numberOfStakes = stakeInfo[user].length; uint256[] memory deposits = new uint256[](numberOfStakes); uint256[] memory pendingAmounts = new uint256[](numberOfStakes); uint256[] memory depositTime = new uint256[](numberOfStakes); for (uint i = 0; i < numberOfStakes; i++) { deposits[i] = deposited(user, i); pendingAmounts[i] = pending(user, i); depositTime[i] = depositTimestamp(user, i); } return (deposits, pendingAmounts, depositTime); } // Get total rewards locked/unlocked function getTotalRewardsLockedUnlocked() external view returns (uint256, uint256) { uint256 totalRewardsLocked; uint256 totalRewardsUnlocked; if (block.timestamp <= startTime) { totalRewardsUnlocked = 0; totalRewardsLocked = totalRewards; } else { uint256 lastTime = block.timestamp < endTime ? block.timestamp : endTime; totalRewardsUnlocked = rewardPerSecond.mul(lastTime - startTime); totalRewardsLocked = totalRewards - totalRewardsUnlocked; } return (totalRewardsUnlocked, totalRewardsLocked); } // Transfer ERC20 and update the required ERC20 to payout all rewards function _erc20Transfer(address _to, uint256 _amount) internal { erc20.transfer(_to, _amount); paidOut += _amount; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_erc20","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_minTimeToStake","type":"uint256"},{"internalType":"bool","name":"_isEarlyWithdrawAllowed","type":"bool"},{"internalType":"enum TokensFarm.EarlyWithdrawPenalty","name":"_penalty","type":"uint8"},{"internalType":"contract IERC20","name":"_tokenStaked","type":"address"},{"internalType":"address","name":"_congressAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum TokensFarm.EarlyWithdrawPenalty","name":"penalty","type":"uint8"}],"name":"EarlyWithdrawPenaltyChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"accERC20PerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"congressAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"depositTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"deposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNumberOfUserStakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalRewardsLockedUnlocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakesAndPendingAmounts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEarlyWithdrawAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTimeToStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paidOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penalty","outputs":[{"internalType":"enum TokensFarm.EarlyWithdrawPenalty","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minTimeToStake","type":"uint256"}],"name":"setMinTimeToStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"depositTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenStaked","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063a3705585116100a2578063ca1d209d11610071578063ca1d209d146107d5578063e3161ddd14610803578063e86e8c6d1461080d578063f2fde38b1461086f576101e5565b8063a370558514610711578063b6b55f2514610769578063ba78b2e414610797578063bfa98f75146107b7576101e5565b8063899b8e13116100de578063899b8e13146105785780638da5cb5b146106a15780638f10369a146106d55780639231cf74146106f3576101e5565b8063715018a6146104fe578063785e9e861461050857806378e979251461053c5780637d8820971461055a576101e5565b806339d43ce011610187578063524c4f1f11610156578063524c4f1f146104225780635312ea8e146104505780635c76ca2d1461047e578063688e89c11461049c576101e5565b806339d43ce01461037a5780633f90916a14610398578063441a3e70146103b6578063518f49d8146103ee576101e5565b806315167c03116101c357806315167c03146102565780631c43bd7d146102b8578063264e2d1f146103285780633197cbb61461035c576101e5565b806304601cb9146101ea5780630e15561a1461020f5780630edd2ffc1461022d575b600080fd5b6101f26108b3565b604051808381526020018281526020019250505060405180910390f35b610217610917565b6040518082815260200191505060405180910390f35b61023561091d565b6040518082600281111561024557fe5b815260200191505060405180910390f35b6102a26004803603604081101561026c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610930565b6040518082815260200191505060405180910390f35b610304600480360360408110156102ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b8e565b60405180848152602001838152602001828152602001935050505060405180910390f35b610330610bd2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610364610bf8565b6040518082815260200191505060405180910390f35b610382610bfe565b6040518082815260200191505060405180910390f35b6103a0610c04565b6040518082815260200191505060405180910390f35b6103ec600480360360408110156103cc57600080fd5b810190808035906020019092919080359060200190929190505050610c63565b005b6103f661113f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61044e6004803603602081101561043857600080fd5b8101908080359060200190929190505050611165565b005b61047c6004803603602081101561046657600080fd5b810190808035906020019092919050505061121e565b005b610486611548565b6040518082815260200191505060405180910390f35b6104e8600480360360408110156104b257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061154e565b6040518082815260200191505060405180910390f35b610506611675565b005b6105106117e2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610544611808565b6040518082815260200191505060405180910390f35b61056261180e565b6040518082815260200191505060405180910390f35b6105ba6004803603602081101561058e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611814565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156106055780820151818401526020810190506105ea565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561064757808201518184015260208101905061062c565b50505050905001848103825285818151815260200191508051906020019060200280838360005b8381101561068957808201518184015260208101905061066e565b50505050905001965050505050505060405180910390f35b6106a96119d4565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106dd6119fd565b6040518082815260200191505060405180910390f35b6106fb611a03565b6040518082815260200191505060405180910390f35b6107536004803603602081101561072757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611a09565b6040518082815260200191505060405180910390f35b6107956004803603602081101561077f57600080fd5b8101908080359060200190929190505050611a55565b005b61079f611c51565b60405180821515815260200191505060405180910390f35b6107bf611c64565b6040518082815260200191505060405180910390f35b610801600480360360208110156107eb57600080fd5b8101908080359060200190929190505050611c6a565b005b61080b611d18565b005b6108596004803603604081101561082357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611dea565b6040518082815260200191505060405180910390f35b6108b16004803603602081101561088557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f11565b005b600080600080600d5442116108d05760009050600b54915061090b565b6000600e5442106108e357600e546108e5565b425b9050610900600d548203600a5461210390919063ffffffff16565b915081600b54039250505b80829350935050509091565b600b5481565b600f60009054906101000a900460ff1681565b60008282600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905081106109eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5374616b6520646f6573206e6f7420657869737400000000000000000000000081525060200191505060405180910390fd5b6000600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208581548110610a3757fe5b90600052602060002090600302019050600081600001541415610a5e576000935050610b86565b600060045490506000600554905060035442118015610a7e575060008114155b15610b32576000600e544210610a9657600e54610a98565b425b90506000600e5460035410610aaf57600e54610ab3565b6003545b90506000610aca828461218990919063ffffffff16565b90506000610ae3600a548361210390919063ffffffff16565b9050610b2b610b1c86610b0e6ec097ce7bc90715b34b9f10000000008561210390919063ffffffff16565b61220c90919063ffffffff16565b8761229590919063ffffffff16565b9550505050505b610b808360010154610b726ec097ce7bc90715b34b9f1000000000610b6486886000015461210390919063ffffffff16565b61220c90919063ffffffff16565b61218990919063ffffffff16565b95505050505b505092915050565b600c6020528160005260406000208181548110610ba757fe5b9060005260206000209060030201600091509150508060000154908060010154908060020154905083565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b60045481565b6000600d544211610c185760009050610c60565b6000600e544210610c2b57600e54610c2d565b425b9050610c5c600954610c4e600d548403600a5461210390919063ffffffff16565b61218990919063ffffffff16565b9150505b90565b60026001541415610cdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055503381600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110610d9d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5374616b6520646f6573206e6f7420657869737400000000000000000000000081525060200191505060405180910390fd5b600080600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208581548110610dea57fe5b906000526020600020906003020190508581600001541015610e57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612abd602a913960400191505060405180910390fd5b610e5f611d18565b600660009054906101000a900460ff16610f055742610e8d600754836002015461229590919063ffffffff16565b1115915081610f04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f557365722063616e206e6f742077697468647261772066756e6473207965742e81525060200191505060405180910390fd5b5b6000610f578260010154610f496ec097ce7bc90715b34b9f1000000000610f3b600454876000015461210390919063ffffffff16565b61220c90919063ffffffff16565b61218990919063ffffffff16565b905042610f73600754846002015461229590919063ffffffff16565b1115925060016002811115610f8457fe5b600f60009054906101000a900460ff166002811115610f9f57fe5b148015610faa575082155b15610fbf57610fba60018261231d565b611010565b600280811115610fcb57fe5b600f60009054906101000a900460ff166002811115610fe657fe5b148015610ff1575082155b1561100457610fff81612400565b61100f565b61100e338261231d565b5b5b61102787836000015461218990919063ffffffff16565b82600001819055506110696ec097ce7bc90715b34b9f100000000061105b600454856000015461210390919063ffffffff16565b61220c90919063ffffffff16565b82600101819055506110be3388600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125129092919063ffffffff16565b6110d38760055461218990919063ffffffff16565b6005819055503373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688789604051808381526020018281526020019250505060405180910390a25050505050600180819055505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61116d6125b4565b73ffffffffffffffffffffffffffffffffffffffff1661118b6119d4565b73ffffffffffffffffffffffffffffffffffffffff1614611214576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060078190555050565b60026001541415611297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055503381600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110611358576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5374616b6520646f6573206e6f7420657869737400000000000000000000000081525060200191505060405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002084815481106113a457fe5b90600052602060002090600302019050600660009054906101000a900460ff1661145d576000426113e4600754846002015461229590919063ffffffff16565b111590508061145b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f557365722063616e206e6f742077697468647261772066756e6473207965742e81525060200191505060405180910390fd5b505b6114ae338260000154600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125129092919063ffffffff16565b6114c7816000015460055461218990919063ffffffff16565b6005819055503373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595858360000154604051808381526020018281526020019250505060405180910390a260008160000181905550600081600101819055505050506001808190555050565b60095481565b60008282600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110611609576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5374616b6520646f6573206e6f7420657869737400000000000000000000000081525060200191505060405180910390fd5b6000600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020858154811061165557fe5b906000526020600020906003020190508060000154935050505092915050565b61167d6125b4565b73ffffffffffffffffffffffffffffffffffffffff1661169b6119d4565b73ffffffffffffffffffffffffffffffffffffffff1614611724576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b60055481565b60608060606000600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060608167ffffffffffffffff8111801561187957600080fd5b506040519080825280602002602001820160405280156118a85781602001602082028036833780820191505090505b50905060608267ffffffffffffffff811180156118c457600080fd5b506040519080825280602002602001820160405280156118f35781602001602082028036833780820191505090505b50905060608367ffffffffffffffff8111801561190f57600080fd5b5060405190808252806020026020018201604052801561193e5781602001602082028036833780820191505090505b50905060005b848110156119bf57611956898261154e565b84828151811061196257fe5b6020026020010181815250506119788982610930565b83828151811061198457fe5b60200260200101818152505061199a8982611dea565b8282815181106119a657fe5b6020026020010181815250508080600101915050611944565b50828282965096509650505050509193909250565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a5481565b60035481565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b611a5d612a0c565b611a65611d18565b611ab4333084600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125bc909392919063ffffffff16565b611ac98260055461229590919063ffffffff16565b60058190555081816000018181525050611b136ec097ce7bc90715b34b9f1000000000611b05600454846000015161210390919063ffffffff16565b61220c90919063ffffffff16565b816020018181525050428160400181815250506000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002015550503373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158285604051808381526020018281526020019250505060405180910390a2505050565b600660009054906101000a900460ff1681565b60075481565b611c80600160105461229590919063ffffffff16565b601081905550611c8f81612400565b611cde333083600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125bc909392919063ffffffff16565b60026010541415611d1557611d14601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611f11565b5b50565b6000600e544210611d2b57600e54611d2d565b425b90506003548111611d3e5750611de8565b600060055490506000811415611d5c57816003819055505050611de8565b6000611d736003548461218990919063ffffffff16565b90506000611d8c600a548361210390919063ffffffff16565b9050611dd6611dc584611db76ec097ce7bc90715b34b9f10000000008561210390919063ffffffff16565b61220c90919063ffffffff16565b60045461229590919063ffffffff16565b60048190555042600381905550505050505b565b60008282600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110611ea5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5374616b6520646f6573206e6f7420657869737400000000000000000000000081525060200191505060405180910390fd5b6000600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208581548110611ef157fe5b906000526020600020906003020190508060020154935050505092915050565b611f196125b4565b73ffffffffffffffffffffffffffffffffffffffff16611f376119d4565b73ffffffffffffffffffffffffffffffffffffffff1614611fc0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612046576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a2e6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808314156121165760009050612183565b600082840290508284828161212757fe5b041461217e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612a7a6021913960400191505060405180910390fd5b809150505b92915050565b600082821115612201576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6000808211612283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161228c57fe5b04905092915050565b600080828401905083811015612313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156123b057600080fd5b505af11580156123c4573d6000803e3d6000fd5b505050506040513d60208110156123da57600080fd5b810190808051906020019092919050505050806009600082825401925050819055505050565b600e54421061245a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612a9b6022913960400191505060405180910390fd5b600081116124d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f416d6f756e74206d7573742062652067726561746572207468616e20302e000081525060200191505060405180910390fd5b6124e5600a548261220c90919063ffffffff16565b600e6000828254019250508190555061250981600b5461229590919063ffffffff16565b600b8190555050565b6125af8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061267d565b505050565b600033905090565b612677846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061267d565b50505050565b60606126df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661276c9092919063ffffffff16565b90506000815111156127675780806020019051602081101561270057600080fd5b8101908080519060200190929190505050612766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612ae7602a913960400191505060405180910390fd5b5b505050565b606061277b8484600085612784565b90509392505050565b6060824710156127df576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a546026913960400191505060405180910390fd5b6127e88561292d565b61285a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106128aa5780518252602082019150602081019050602083039250612887565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461290c576040519150601f19603f3d011682016040523d82523d6000602084013e612911565b606091505b5091509150612921828286612940565b92505050949350505050565b600080823b905060008111915050919050565b6060831561295057829050612a05565b6000835111156129635782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129ca5780820151818401526020810190506129af565b50505050905090810190601f1680156129f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b6040518060600160405280600081526020016000815260200160008152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7766756e643a20746f6f206c6174652c20746865206661726d20697320636c6f73656477697468647261773a2063616e2774207769746864726177206d6f7265207468616e206465706f7369745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220eb43d77a6c2c859e8b0081104cf02dbf9600ea907f1c002348496703b2b1b0f964736f6c634300060c0033
Deployed Bytecode Sourcemap
28235:13213:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40595:628;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;29507:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29814:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;33581:935;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29593:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29935:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29754:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28894:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34891:300;;;:::i;:::-;;;;;;;;;;;;;;;;;;;36801:1899;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;28725:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;31408:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;38773:844;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29363:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;33297:220;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24895:148;;;:::i;:::-;;29276:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29687:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28979:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;39853:692;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24244:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29434:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28801:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;39663:124;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;35949:803;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29114:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29195:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31909:307;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35267:615;;;:::i;:::-;;34583:232;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25198:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;40595:628;40659:7;40668;40688:26;40725:28;40789:9;;40770:15;:28;40766:388;;40838:1;40815:24;;40875:12;;40854:33;;40766:388;;;40920:16;40957:7;;40939:15;:25;:53;;40985:7;;40939:53;;;40967:15;40939:53;40920:72;;41030:41;41061:9;;41050:8;:20;41030:15;;:19;;:41;;;;:::i;:::-;41007:64;;41122:20;41107:12;;:35;41086:56;;40766:388;;41174:20;41196:18;41166:49;;;;;;40595:628;;:::o;29507:27::-;;;;:::o;29814:35::-;;;;;;;;;;;;;:::o;33581:935::-;33690:7;33665:5;33672:7;30389:9;:16;30399:5;30389:16;;;;;;;;;;;;;;;:23;;;;30379:7;:33;30371:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33710:23:::1;33736:9;:16;33746:5;33736:16;;;;;;;;;;;;;;;33753:7;33736:25;;;;;;;;;;;;;;;;;;33710:51;;33793:1;33777:5;:12;;;:17;33774:57;;;33818:1;33811:8;;;;;33774:57;33843:25;33871:16;;33843:44;;33898:19;33920:13;;33898:35;;33968:14;;33950:15;:32;:52;;;;;34001:1;33986:11;:16;;33950:52;33946:476;;;34019:16;34056:7;;34038:15;:25;:53;;34084:7;;34038:53;;;34066:15;34038:53;34019:72;;34106:21;34147:7;;34130:14;;:24;:51;;34174:7;;34130:51;;;34157:14;;34130:51;34106:75;;34196:19;34218:27;34231:13;34218:8;:12;;:27;;;;:::i;:::-;34196:49;;34260:19;34282:32;34298:15;;34282:11;:15;;:32;;;;:::i;:::-;34260:54;;34349:61;34371:38;34397:11;34371:21;34387:4;34371:11;:15;;:21;;;;:::i;:::-;:25;;:38;;;;:::i;:::-;34349:17;:21;;:61;;;;:::i;:::-;34329:81;;33946:476;;;;;34441:67;34491:5;:16;;;34441:45;34481:4;34441:35;34458:17;34441:5;:12;;;:16;;:35;;;;:::i;:::-;:39;;:45;;;;:::i;:::-;:49;;:67;;;;:::i;:::-;34434:74;;;;;30448:1;33581:935:::0;;;;;;:::o;29593:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;29935:30::-;;;;;;;;;;;;;:::o;29754:22::-;;;;:::o;28894:31::-;;;;:::o;34891:300::-;34938:7;34981:9;;34962:15;:28;34958:69;;35014:1;35007:8;;;;34958:69;35039:16;35076:7;;35058:15;:25;:53;;35104:7;;35058:53;;;35086:15;35058:53;35039:72;;35129:54;35175:7;;35129:41;35160:9;;35149:8;:20;35129:15;;:19;;:41;;;;:::i;:::-;:45;;:54;;;;:::i;:::-;35122:61;;;34891:300;;:::o;36801:1899::-;27207:1;27813:7;;:19;;27805:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27207:1;27946:7;:18;;;;36898:10:::1;36910:7;30389:9;:16;30399:5;30389:16;;;;;;;;;;;;;;;:23;;;;30379:7;:33;30371:66;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;36930:30:::2;36973:23:::0;36999:9:::2;:21;37009:10;36999:21;;;;;;;;;;;;;;;37021:7;36999:30;;;;;;;;;;;;;;;;;;36973:56;;37066:7;37050:5;:12;;;:23;;37042:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37133:12;:10;:12::i;:::-;37241:22;;;;;;;;;;;37237:303;;37349:15;37308:37;37330:14;;37308:5;:17;;;:21;;:37;;;;:::i;:::-;:56;;37280:84;;37466:25;37458:70;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;37237:303;37611:21;37635:66;37684:5;:16;;;37635:44;37674:4;37635:34;37652:16;;37635:5;:12;;;:16;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;:48;;:66;;;;:::i;:::-;37611:90;;37843:15;37802:37;37824:14;;37802:5;:17;;;:21;;:37;;;;:::i;:::-;:56;;37774:84;;37883:33;37872:44;;;;;;;;:7;;;;;;;;;;;:44;;;;;;;;;:74;;;;;37921:25;37920:26;37872:74;37869:489;;;37999:41;38022:1;38026:13;37999:14;:41::i;:::-;37869:489;;;38073:41;38062:52:::0;::::2;;;;;;;:7;;;;;;;;;;;:52;;;;;;;;;:82;;;;;38119:25;38118:26;38062:82;38058:300;;;38194:28;38208:13;38194;:28::i;:::-;38058:300;;;38305:41;38320:10;38332:13;38305:14;:41::i;:::-;38058:300;37869:489;38385:25;38402:7;38385:5;:12;;;:16;;:25;;;;:::i;:::-;38370:5;:12;;:40;;;;38440:44;38479:4;38440:34;38457:16;;38440:5;:12;;;:16;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;38421:5;:16;;:63;;;;38497:54;38530:10;38543:7;38497:11;;;;;;;;;;;:24;;;;:54;;;;;:::i;:::-;38578:26;38596:7;38578:13;;:17;;:26;;;;:::i;:::-;38562:13;:42;;;;38663:10;38654:38;;;38675:7;38684;38654:38;;;;;;;;;;;;;;;;;;;;;;;;30448:1;;;27977::::1;;27163::::0;28125:7;:22;;;;36801:1899;;:::o;28725:25::-;;;;;;;;;;;;;:::o;31408:122::-;24475:12;:10;:12::i;:::-;24464:23;;:7;:5;:7::i;:::-;:23;;;24456:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31507:15:::1;31490:14;:32;;;;31408:122:::0;:::o;38773:844::-;27207:1;27813:7;;:19;;27805:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27207:1;27946:7;:18;;;;38862:10:::1;38874:7;30389:9;:16;30399:5;30389:16;;;;;;;;;;;;;;;:23;;;;30379:7;:33;30371:66;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;38894:23:::2;38920:9;:21;38930:10;38920:21;;;;;;;;;;;;;;;38942:7;38920:30;;;;;;;;;;;;;;;;;;38894:56;;39046:22;;;;;;;;;;;39042:308;;39085:30;39159:15;39118:37;39140:14;;39118:5;:17;;;:21;;:37;;;;:::i;:::-;:56;;39085:89;;39276:25;39268:70;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;39042:308;;39362:59;39395:10;39408:5;:12;;;39362:11;;;;;;;;;;;:24;;;;:59;;;;;:::i;:::-;39448:31;39466:5;:12;;;39448:13;;:17;;:31;;;;:::i;:::-;39432:13;:47;;;;39515:10;39497:52;;;39527:7;39536:5;:12;;;39497:52;;;;;;;;;;;;;;;;;;;;;;;;39577:1;39562:5;:12;;:16;;;;39608:1;39589:5;:16;;:20;;;;30448:1;27977::::1;;27163::::0;28125:7;:22;;;;38773:844;:::o;29363:22::-;;;;:::o;33297:220::-;33408:7;33383:5;33390:7;30389:9;:16;30399:5;30389:16;;;;;;;;;;;;;;;:23;;;;30379:7;:33;30371:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33428:23:::1;33454:9;:16;33464:5;33454:16;;;;;;;;;;;;;;;33471:7;33454:25;;;;;;;;;;;;;;;;;;33428:51;;33497:5;:12;;;33490:19;;;33297:220:::0;;;;;;:::o;24895:148::-;24475:12;:10;:12::i;:::-;24464:23;;:7;:5;:7::i;:::-;:23;;;24456:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25002:1:::1;24965:40;;24986:6;::::0;::::1;;;;;;;;24965:40;;;;;;;;;;;;25033:1;25016:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;24895:148::o:0;29276:19::-;;;;;;;;;;;;;:::o;29687:24::-;;;;:::o;28979:28::-;;;;:::o;39853:692::-;39930:16;39948;39966;39995:22;40020:9;:15;40030:4;40020:15;;;;;;;;;;;;;;;:22;;;;39995:47;;40055:25;40097:14;40083:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40055:57;;40123:31;40171:14;40157:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40123:63;;40197:28;40242:14;40228:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40197:60;;40275:6;40270:209;40291:14;40287:1;:18;40270:209;;;40341:18;40351:4;40357:1;40341:9;:18::i;:::-;40327:8;40336:1;40327:11;;;;;;;;;;;;;:32;;;;;40394:16;40402:4;40408:1;40394:7;:16::i;:::-;40374:14;40389:1;40374:17;;;;;;;;;;;;;:36;;;;;40442:25;40459:4;40465:1;40442:16;:25::i;:::-;40425:11;40437:1;40425:14;;;;;;;;;;;;;:42;;;;;40307:3;;;;;;;40270:209;;;;40499:8;40509:14;40525:11;40491:46;;;;;;;;;;39853:692;;;;;:::o;24244:87::-;24290:7;24317:6;;;;;;;;;;;24310:13;;24244:87;:::o;29434:30::-;;;;:::o;28801:29::-;;;;:::o;39663:124::-;39731:7;39757:9;:15;39767:4;39757:15;;;;;;;;;;;;;;;:22;;;;39750:29;;39663:124;;;:::o;35949:803::-;36003:22;;:::i;:::-;36062:12;:10;:12::i;:::-;36135:73;36172:10;36193:4;36200:7;36135:11;;;;;;;;;;;:28;;;;:73;;;;;;:::i;:::-;36285:26;36303:7;36285:13;;:17;;:26;;;;:::i;:::-;36269:13;:42;;;;36374:7;36359:5;:12;;:22;;;;;36411:44;36450:4;36411:34;36428:16;;36411:5;:12;;;:16;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;36392:5;:16;;:63;;;;;36486:15;36466:5;:17;;:35;;;;;36514:12;36529:9;:21;36539:10;36529:21;;;;;;;;;;;;;;;:28;;;;36514:43;;36625:9;:21;36635:10;36625:21;;;;;;;;;;;;;;;36652:5;36625:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36715:10;36707:37;;;36727:7;36736;36707:37;;;;;;;;;;;;;;;;;;;;;;;;35949:803;;;:::o;29114:34::-;;;;;;;;;;;;;:::o;29195:29::-;;;;:::o;31909:307::-;31974:18;31990:1;31974:11;;:15;;:18;;;;:::i;:::-;31960:11;:32;;;;32013:22;32027:7;32013:13;:22::i;:::-;32046:67;32077:10;32098:4;32105:7;32046:5;;;;;;;;;;;:22;;;;:67;;;;;;:::i;:::-;32145:1;32130:11;;:16;32126:83;;;32163:34;32181:15;;;;;;;;;;;32163:17;:34::i;:::-;32126:83;31909:307;:::o;35267:615::-;35307:16;35344:7;;35326:15;:25;:53;;35372:7;;35326:53;;;35354:15;35326:53;35307:72;;35408:14;;35396:8;:26;35392:65;;35439:7;;;35392:65;35469:19;35491:13;;35469:35;;35536:1;35521:11;:16;35517:95;;;35571:8;35554:14;:25;;;;35594:7;;;;35517:95;35624:19;35646:28;35659:14;;35646:8;:12;;:28;;;;:::i;:::-;35624:50;;35685:19;35707:32;35723:15;;35707:11;:15;;:32;;;;:::i;:::-;35685:54;;35771:60;35792:38;35818:11;35792:21;35808:4;35792:11;:15;;:21;;;;:::i;:::-;:25;;:38;;;;:::i;:::-;35771:16;;:20;;:60;;;;:::i;:::-;35752:16;:79;;;;35859:15;35842:14;:32;;;;35267:615;;;;;:::o;34583:232::-;34701:7;34676:5;34683:7;30389:9;:16;30399:5;30389:16;;;;;;;;;;;;;;;:23;;;;30379:7;:33;30371:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34721:23:::1;34747:9;:16;34757:5;34747:16;;;;;;;;;;;;;;;34764:7;34747:25;;;;;;;;;;;;;;;;;;34721:51;;34790:5;:17;;;34783:24;;;34583:232:::0;;;;;;:::o;25198:244::-;24475:12;:10;:12::i;:::-;24464:23;;:7;:5;:7::i;:::-;:23;;;24456:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25307:1:::1;25287:22;;:8;:22;;;;25279:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25397:8;25368:38;;25389:6;::::0;::::1;;;;;;;;25368:38;;;;;;;;;;;;25426:8;25417:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;25198:244:::0;:::o;6561:220::-;6619:7;6648:1;6643;:6;6639:20;;;6658:1;6651:8;;;;6639:20;6670:9;6686:1;6682;:5;6670:17;;6715:1;6710;6706;:5;;;;;;:10;6698:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6772:1;6765:8;;;6561:220;;;;;:::o;6144:158::-;6202:7;6235:1;6230;:6;;6222:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6293:1;6289;:5;6282:12;;6144:158;;;;:::o;7259:153::-;7317:7;7349:1;7345;:5;7337:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7403:1;7399;:5;;;;;;7392:12;;7259:153;;;;:::o;5682:179::-;5740:7;5760:9;5776:1;5772;:5;5760:17;;5801:1;5796;:6;;5788:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5852:1;5845:8;;;5682:179;;;;:::o;41306:139::-;41380:5;;;;;;;;;;;:14;;;41395:3;41400:7;41380:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41430:7;41419;;:18;;;;;;;;;;;41306:139;;:::o;32301:376::-;32384:7;;32366:15;:25;32358:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32459:1;32449:7;:11;32441:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32550:28;32562:15;;32550:7;:11;;:28;;;;:::i;:::-;32539:7;;:39;;;;;;;;;;;32644:25;32661:7;32644:12;;:16;;:25;;;;:::i;:::-;32629:12;:40;;;;32301:376;:::o;19058:177::-;19141:86;19161:5;19191:23;;;19216:2;19220:5;19168:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19141:19;:86::i;:::-;19058:177;;;:::o;22773:106::-;22826:15;22861:10;22854:17;;22773:106;:::o;19243:205::-;19344:96;19364:5;19394:27;;;19423:4;19429:2;19433:5;19371:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19344:19;:96::i;:::-;19243:205;;;;:::o;21363:761::-;21787:23;21813:69;21841:4;21813:69;;;;;;;;;;;;;;;;;21821:5;21813:27;;;;:69;;;;;:::i;:::-;21787:95;;21917:1;21897:10;:17;:21;21893:224;;;22039:10;22028:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22020:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21893:224;21363:761;;;:::o;14047:195::-;14150:12;14182:52;14204:6;14212:4;14218:1;14221:12;14182:21;:52::i;:::-;14175:59;;14047:195;;;;;:::o;15099:530::-;15226:12;15284:5;15259:21;:30;;15251:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15351:18;15362:6;15351:10;:18::i;:::-;15343:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15477:12;15491:23;15518:6;:11;;15538:5;15546:4;15518:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15476:75;;;;15569:52;15587:7;15596:10;15608:12;15569:17;:52::i;:::-;15562:59;;;;15099:530;;;;;;:::o;11129:422::-;11189:4;11397:12;11508:7;11496:20;11488:28;;11542:1;11535:4;:8;11528:15;;;11129:422;;;:::o;17639:742::-;17754:12;17783:7;17779:595;;;17814:10;17807:17;;;;17779:595;17948:1;17928:10;:17;:21;17924:439;;;18191:10;18185:17;18252:15;18239:10;18235:2;18231:19;18224:44;18139:148;18334:12;18327:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17639:742;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://eb43d77a6c2c859e8b0081104cf02dbf9600ea907f1c002348496703b2b1b0f9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.057503 | 1,266.3535 | $72.82 |
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.