Source Code
Latest 25 from a total of 6,658 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 14708439 | 13 days ago | IN | 0 MOVR | 0.00010977 | ||||
| Withdraw | 12726997 | 167 days ago | IN | 0 MOVR | 0.00010977 | ||||
| Withdraw | 11918822 | 230 days ago | IN | 0 MOVR | 0.00010977 | ||||
| Withdraw | 11077089 | 292 days ago | IN | 0 MOVR | 0.00015935 | ||||
| Deposit | 10672177 | 321 days ago | IN | 0 MOVR | 0.00015482 | ||||
| Withdraw | 10670866 | 321 days ago | IN | 0 MOVR | 0.00015935 | ||||
| Withdraw | 10670833 | 321 days ago | IN | 0 MOVR | 0.00015935 | ||||
| Withdraw | 9432033 | 409 days ago | IN | 0 MOVR | 0.00063574 | ||||
| Deposit | 7726598 | 532 days ago | IN | 0 MOVR | 0.00042456 | ||||
| Deposit | 7726572 | 532 days ago | IN | 0 MOVR | 0.00044187 | ||||
| Deposit | 7726564 | 532 days ago | IN | 0 MOVR | 0.00044187 | ||||
| Deposit | 7726175 | 532 days ago | IN | 0 MOVR | 0.00042456 | ||||
| Deposit | 6997381 | 587 days ago | IN | 0 MOVR | 0.00042456 | ||||
| Deposit | 6997363 | 587 days ago | IN | 0 MOVR | 0.00044187 | ||||
| Deposit | 6997357 | 587 days ago | IN | 0 MOVR | 0.00047763 | ||||
| Withdraw | 6787643 | 617 days ago | IN | 0 MOVR | 0.00043559 | ||||
| Deposit | 6550465 | 651 days ago | IN | 0 MOVR | 0.00042456 | ||||
| Emergency Withdr... | 6334950 | 683 days ago | IN | 0 MOVR | 0.0000879 | ||||
| Withdraw | 6334934 | 683 days ago | IN | 0 MOVR | 0.00047763 | ||||
| Deposit | 6328433 | 683 days ago | IN | 0 MOVR | 0.00044643 | ||||
| Deposit | 6307549 | 687 days ago | IN | 0 MOVR | 0.00047763 | ||||
| Deposit | 6254313 | 695 days ago | IN | 0 MOVR | 0.00042456 | ||||
| Deposit | 6233515 | 698 days ago | IN | 0 MOVR | 0.00042456 | ||||
| Deposit | 6129836 | 714 days ago | IN | 0 MOVR | 0.00047763 | ||||
| Deposit | 5927672 | 745 days ago | IN | 0 MOVR | 0.0005307 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity)
/** *Submitted for verification at moonriver.moonscan.io on 2021-11-22 */ // Sources flattened with hardhat v2.6.8 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^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/utils/[email protected] pragma solidity ^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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] pragma solidity ^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 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/utils/math/[email protected] pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ 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) { unchecked { 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) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @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 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File @openzeppelin/contracts/security/[email protected] pragma solidity ^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() { _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 @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] pragma solidity ^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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/utils/cryptography/[email protected] pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ├╖ 2 + 1, and for v in (302): v Γêê {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File contracts/OpenZeppelin/ERC20Permit.sol pragma solidity ^0.8.0; // This version of ERC20Permit is from OpenZeppelin as of commit // https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5171e46c47bd6be781aa92315944ca37126d4a73 /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping (address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") { } /** * @dev See {IERC20Permit-permit}. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override { // solhint-disable-next-line not-rely-on-time require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256( abi.encode( _PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline ) ); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } // File contracts/MoonSwapToken.sol pragma solidity ^0.8.0; contract MoonSwapToken is ERC20Permit,ERC20Burnable, Ownable { address public tokenMigrator; constructor() ERC20("MoonSwap Token", "MOON") ERC20Permit("MoonSwap") { } // uint256 constant private _maxTotalSupply = 13666000e18; // 13,666,000 max boos function mint(address _to, uint256 _amount) public { // require(totalSupply() + _amount <= _maxTotalSupply, "ERC20: minting more then MaxTotalSupply"); require(msg.sender == owner() || msg.sender == tokenMigrator,"not owner or token migrator"); _mint(_to, _amount); _moveDelegates(address(0), _to, _amount); } function setTokenMigrator(address _tokenMigrator) external onlyOwner { tokenMigrator = _tokenMigrator; } // Returns maximum total supply of the token // function getMaxTotalSupply() external pure returns (uint256) { // return _maxTotalSupply; // } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol // A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); // A record of states for signing / validating signatures //mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { bool result = super.transferFrom(sender, recipient, amount); // Call parent hook _moveDelegates(sender, recipient, amount); return result; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { bool result = super.transfer(recipient, amount); // Call parent hook _moveDelegates(_msgSender(), recipient, amount); return result; } /** * @param delegator The address to get delegates for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "MOON::delegateBySig: invalid signature"); require(nonce == _useNonce(signatory), "MOON::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "MOON::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "MOON::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying BOOs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld - amount; _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld + amount; _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "MOON::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal view returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // File contracts/MasterChef.sol pragma solidity ^0.8.0; //MasterChef by SushiSwap // The biggest change made is using per second instead of per block for rewards // This is due to Fantoms extremely inconsistent block times // The other biggest change was the removal of the migration functions // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once MOON is sufficiently // distributed and the community can show to govern itself. // // Have fun reading it. Hopefully it's bug-free. contract MasterChef is Ownable,ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of MOONs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accMOONPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accMOONPerShare` (and `lastRewardBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. MOONs to distribute per block. uint256 lastRewardTime; // Last block time that MOONs distribution occurs. uint256 accMOONPerShare; // Accumulated MOONs per share, times 1e12. See below. } // such a spooky token! MoonSwapToken public moon; // Dev address. address public devaddr; // xmoonFee address address public xmoonfee; // moon tokens created per block. uint256 public moonPerSecond; // set a max moon per second, which can never be higher than 1 per second uint256 public constant maxMoonPerSecond = 1e18; uint256 public constant MaxAllocPoint = 60000; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping (uint256 => mapping (address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The block time when moon mining starts. uint256 public immutable startTime; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); constructor( MoonSwapToken _moon, address _devaddr, address _xmoonfee, uint256 _moonPerSecond, uint256 _startTime ) { moon = _moon; devaddr = _devaddr; xmoonfee = _xmoonfee; moonPerSecond = _moonPerSecond; startTime = _startTime; } function poolLength() external view returns (uint256) { return poolInfo.length; } // Changes moon token reward per second, with a cap of maxmoon per second // Good practice to update pools without messing up the contract function setMoonPerSecond(uint256 _moonPerSecond) external onlyOwner { require(_moonPerSecond <= maxMoonPerSecond, "setMoonPerSecond: too many moons!"); // This MUST be done or pool rewards will be calculated with new moon per second // This could unfairly punish small pools that dont have frequent deposits/withdraws/harvests massUpdatePools(); moonPerSecond = _moonPerSecond; } function checkForDuplicate(IERC20 _lpToken) internal view { uint256 length = poolInfo.length; for (uint256 _pid = 0; _pid < length; _pid++) { require(poolInfo[_pid].lpToken != _lpToken, "add: pool already exists!!!!"); } } // Add a new lp to the pool. Can only be called by the owner. function add(uint256 _allocPoint, IERC20 _lpToken) external onlyOwner { require(_allocPoint <= MaxAllocPoint, "add: too many alloc points!!"); checkForDuplicate(_lpToken); // ensure you cant add duplicate pools massUpdatePools(); uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardTime: lastRewardTime, accMOONPerShare: 0 })); } // Update the given pool's MOON allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint) external onlyOwner { require(_allocPoint <= MaxAllocPoint, "add: too many alloc points!!"); massUpdatePools(); totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint; poolInfo[_pid].allocPoint = _allocPoint; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { _from = _from > startTime ? _from : startTime; if (_to < startTime) { return 0; } return _to - _from; } // View function to see pending MOONs on frontend. function pendingMOON(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accMOONPerShare = pool.accMOONPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 moonReward = multiplier.mul(moonPerSecond).mul(pool.allocPoint).div(totalAllocPoint); accMOONPerShare = accMOONPerShare.add(moonReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accMOONPerShare).div(1e12).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardTime = block.timestamp; return; } uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 moonReward = multiplier.mul(moonPerSecond).mul(pool.allocPoint).div(totalAllocPoint); moon.mint(devaddr, moonReward.div(10)); moon.mint(xmoonfee, moonReward.div(20)); moon.mint(address(this), moonReward); pool.accMOONPerShare = pool.accMOONPerShare.add(moonReward.mul(1e12).div(lpSupply)); pool.lastRewardTime = block.timestamp; } // Deposit LP tokens to MasterChef for MOON allocation. function deposit(uint256 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); uint256 pending = user.amount.mul(pool.accMOONPerShare).div(1e12).sub(user.rewardDebt); user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(pool.accMOONPerShare).div(1e12); if(pending > 0) { safeMOONTransfer(msg.sender, pending); } pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) public nonReentrant{ PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accMOONPerShare).div(1e12).sub(user.rewardDebt); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(pool.accMOONPerShare).div(1e12); if(pending > 0) { safeMOONTransfer(msg.sender, pending); } pool.lpToken.safeTransfer(address(msg.sender), _amount); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint oldUserAmount = user.amount; user.amount = 0; user.rewardDebt = 0; pool.lpToken.safeTransfer(address(msg.sender), oldUserAmount); emit EmergencyWithdraw(msg.sender, _pid, oldUserAmount); } // Safe moon transfer function, just in case if rounding error causes pool to not have enough MOONs. function safeMOONTransfer(address _to, uint256 _amount) internal { uint256 moonBal = moon.balanceOf(address(this)); if (_amount > moonBal) { moon.transfer(_to, moonBal); } else { moon.transfer(_to, _amount); } } // Update dev address by the previous dev. function dev(address _devaddr) public { require(msg.sender == devaddr, "dev: wut?"); devaddr = _devaddr; } // update xmoonfee addy function xmoonfeeaddress(address _xmoonfee) public { require(msg.sender == devaddr, "xmoonfee: add?"); xmoonfee = _xmoonfee; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract MoonSwapToken","name":"_moon","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_xmoonfee","type":"address"},{"internalType":"uint256","name":"_moonPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","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":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MaxAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxMoonPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moon","outputs":[{"internalType":"contract MoonSwapToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moonPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingMOON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accMOONPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_moonPerSecond","type":"uint256"}],"name":"setMoonPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xmoonfee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_xmoonfee","type":"address"}],"name":"xmoonfeeaddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a060405260006008553480156200001657600080fd5b5060405162001ce938038062001ce98339810160408190526200003991620000e5565b620000443362000095565b60018055600280546001600160a01b03199081166001600160a01b03978816179091556003805482169587169590951790945560048054909416929094169190911790915560055560805262000163565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080600060a08688031215620000fe57600080fd5b85516200010b816200014a565b60208701519095506200011e816200014a565b604087015190945062000131816200014a565b6060870151608090970151959894975095949392505050565b6001600160a01b03811681146200016057600080fd5b50565b608051611b47620001a2600039600081816102b50152818161062101528181610648015281816110a0015281816110c701526110f10152611b476000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c806378e97925116100ee578063b909485111610097578063e2bbb15811610071578063e2bbb158146103b5578063e99437a3146103c8578063f2fde38b146103d7578063f4b83c4c146103ea57600080fd5b8063b90948511461037c578063d30fff7a1461038f578063d49e77cd146103a257600080fd5b80638da5cb5b116100c85780638da5cb5b146102fd5780638dbb1e3a1461032257806393f1a40b1461033557600080fd5b806378e97925146102b05780638c9b89c5146102d75780638d88a90e146102ea57600080fd5b8063426857c61161015b578063526a5b3411610135578063526a5b34146102845780635312ea8e1461028d578063630b5ba1146102a0578063715018a6146102a857600080fd5b8063426857c61461024b578063441a3e701461025e57806351eb05a61461027157600080fd5b80631ab06ee51161018c5780631ab06ee5146102105780632b8bbbe8146102255780633c7a4fd71461023857600080fd5b8063081e3eda146101b35780631526fe27146101ca57806317caf6f114610207575b600080fd5b6006545b6040519081526020015b60405180910390f35b6101dd6101d8366004611946565b6103f3565b604080516001600160a01b03909516855260208501939093529183015260608201526080016101c1565b6101b760085481565b61022361021e3660046119a8565b610437565b005b610223610233366004611978565b610560565b610223610246366004611946565b61076d565b6101b7610259366004611978565b610836565b61022361026c3660046119a8565b6109b6565b61022361027f366004611946565b610b70565b6101b760055481565b61022361029b366004611946565b610e12565b610223610f13565b610223610f3e565b6101b77f000000000000000000000000000000000000000000000000000000000000000081565b6102236102e5366004611907565b610fa4565b6102236102f8366004611907565b611020565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101c1565b6101b76103303660046119a8565b61109c565b610367610343366004611978565b60076020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101c1565b60025461030a906001600160a01b031681565b60045461030a906001600160a01b031681565b60035461030a906001600160a01b031681565b6102236103c33660046119a8565b611130565b6101b7670de0b6b3a764000081565b6102236103e5366004611907565b61128b565b6101b761ea6081565b6006818154811061040357600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b6000546001600160a01b031633146104965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61ea608111156104e85760405162461bcd60e51b815260206004820152601c60248201527f6164643a20746f6f206d616e7920616c6c6f6320706f696e7473212100000000604482015260640161048d565b6104f0610f13565b806006838154811061050457610504611ae6565b9060005260206000209060040201600101546008546105239190611a72565b61052d9190611a19565b600881905550806006838154811061054757610547611ae6565b9060005260206000209060040201600101819055505050565b6000546001600160a01b031633146105ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b61ea6082111561060c5760405162461bcd60e51b815260206004820152601c60248201527f6164643a20746f6f206d616e7920616c6c6f6320706f696e7473212100000000604482015260640161048d565b6106158161136d565b61061d610f13565b60007f0000000000000000000000000000000000000000000000000000000000000000421161066c577f000000000000000000000000000000000000000000000000000000000000000061066e565b425b60085490915061067e9084611417565b600855604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919095161790935592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b6000546001600160a01b031633146107c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b670de0b6b3a76400008111156108295760405162461bcd60e51b815260206004820152602160248201527f7365744d6f6f6e5065725365636f6e643a20746f6f206d616e79206d6f6f6e736044820152602160f81b606482015260840161048d565b610831610f13565b600555565b6000806006848154811061084c5761084c611ae6565b600091825260208083208784526007825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b8152309681019690965290965091949193919216906370a082319060240160206040518083038186803b1580156108c357600080fd5b505afa1580156108d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fb919061195f565b905083600201544211801561090f57508015155b1561097b57600061092485600201544261109c565b90506000610957600854610951886001015461094b6005548761142390919063ffffffff16565b90611423565b9061142f565b905061097661096f846109518464e8d4a51000611423565b8590611417565b935050505b6109a983600101546109a364e8d4a5100061095186886000015461142390919063ffffffff16565b9061143b565b9450505050505b92915050565b60026001541415610a095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161048d565b6002600181905550600060068381548110610a2657610a26611ae6565b600091825260208083208684526007825260408085203386529092529220805460049092029092019250831115610a9f5760405162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015260640161048d565b610aa884610b70565b6000610ad682600101546109a364e8d4a510006109518760030154876000015461142390919063ffffffff16565b8254909150610ae5908561143b565b8083556003840154610b029164e8d4a51000916109519190611423565b60018301558015610b1757610b173382611447565b8254610b2d906001600160a01b03163386611593565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a3505060018055505050565b600060068281548110610b8557610b85611ae6565b9060005260206000209060040201905080600201544211610ba4575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610be757600080fd5b505afa158015610bfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1f919061195f565b905080610c3157504260029091015550565b6000610c4183600201544261109c565b90506000610c68600854610951866001015461094b6005548761142390919063ffffffff16565b6002546003549192506001600160a01b03908116916340c10f199116610c8f84600a61142f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610cd557600080fd5b505af1158015610ce9573d6000803e3d6000fd5b50506002546004546001600160a01b0391821693506340c10f19925016610d1184601461142f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610d5757600080fd5b505af1158015610d6b573d6000803e3d6000fd5b50506002546040516340c10f1960e01b8152306004820152602481018590526001600160a01b0390911692506340c10f199150604401600060405180830381600087803b158015610dbb57600080fd5b505af1158015610dcf573d6000803e3d6000fd5b50505050610dfd610df28461095164e8d4a510008561142390919063ffffffff16565b600386015490611417565b60038501555050426002909201919091555050565b60026001541415610e655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161048d565b6002600181905550600060068281548110610e8257610e82611ae6565b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610ed2916001600160a01b03919091169083611593565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a35050600180555050565b60065460005b81811015610f3a57610f2a81610b70565b610f3381611ab5565b9050610f19565b5050565b6000546001600160a01b03163314610f985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b610fa2600061160b565b565b6003546001600160a01b03163314610ffe5760405162461bcd60e51b815260206004820152600e60248201527f786d6f6f6e6665653a206164643f000000000000000000000000000000000000604482015260640161048d565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461107a5760405162461bcd60e51b815260206004820152600960248201527f6465763a207775743f0000000000000000000000000000000000000000000000604482015260640161048d565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60007f000000000000000000000000000000000000000000000000000000000000000083116110eb577f00000000000000000000000000000000000000000000000000000000000000006110ed565b825b92507f000000000000000000000000000000000000000000000000000000000000000082101561111f575060006109b0565b6111298383611a72565b9392505050565b600260015414156111835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161048d565b60026001819055506000600683815481106111a0576111a0611ae6565b600091825260208083208684526007825260408085203386529092529220600490910290910191506111d184610b70565b60006111ff82600101546109a364e8d4a510006109518760030154876000015461142390919063ffffffff16565b825490915061120e9085611417565b808355600384015461122b9164e8d4a51000916109519190611423565b60018301558015611240576112403382611447565b8254611257906001600160a01b031633308761165b565b604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610b5d565b6000546001600160a01b031633146112e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b6001600160a01b0381166113615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161048d565b61136a8161160b565b50565b60065460005b8181101561141257826001600160a01b03166006828154811061139857611398611ae6565b60009182526020909120600490910201546001600160a01b031614156114005760405162461bcd60e51b815260206004820152601c60248201527f6164643a20706f6f6c20616c7265616479206578697374732121212100000000604482015260640161048d565b8061140a81611ab5565b915050611373565b505050565b60006111298284611a19565b60006111298284611a53565b60006111298284611a31565b60006111298284611a72565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561148b57600080fd5b505afa15801561149f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c3919061195f565b90508082111561155a5760025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b602060405180830381600087803b15801561151c57600080fd5b505af1158015611530573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115549190611924565b50505050565b60025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401611502565b6040516001600160a01b03831660248201526044810182905261141290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152611693565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526115549085906323b872dd60e01b906084016115bf565b60006116e8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117789092919063ffffffff16565b80519091501561141257808060200190518101906117069190611924565b6114125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161048d565b6060611787848460008561178f565b949350505050565b6060824710156118075760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161048d565b843b6118555760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161048d565b600080866001600160a01b0316858760405161187191906119ca565b60006040518083038185875af1925050503d80600081146118ae576040519150601f19603f3d011682016040523d82523d6000602084013e6118b3565b606091505b50915091506118c38282866118ce565b979650505050505050565b606083156118dd575081611129565b8251156118ed5782518084602001fd5b8160405162461bcd60e51b815260040161048d91906119e6565b60006020828403121561191957600080fd5b813561112981611afc565b60006020828403121561193657600080fd5b8151801515811461112957600080fd5b60006020828403121561195857600080fd5b5035919050565b60006020828403121561197157600080fd5b5051919050565b6000806040838503121561198b57600080fd5b82359150602083013561199d81611afc565b809150509250929050565b600080604083850312156119bb57600080fd5b50508035926020909101359150565b600082516119dc818460208701611a89565b9190910192915050565b6020815260008251806020840152611a05816040850160208701611a89565b601f01601f19169190910160400192915050565b60008219821115611a2c57611a2c611ad0565b500190565b600082611a4e57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611a6d57611a6d611ad0565b500290565b600082821015611a8457611a84611ad0565b500390565b60005b83811015611aa4578181015183820152602001611a8c565b838111156115545750506000910152565b6000600019821415611ac957611ac9611ad0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461136a57600080fdfea2646970667358221220e1316f073e9d0577e16e4065666562c9144224f1dc11a55fc866fd43a5a3718464736f6c634300080600330000000000000000000000000fed6177c230a6091e58d0081dcd31f88a256185000000000000000000000000771baaa23d446f5ac7654434763e0890db0ba58e000000000000000000000000d48843a305761d41215808abe69ec420e90271b200000000000000000000000000000000000000000000000002ea11e32ad5000000000000000000000000000000000000000000000000000000000000619bbe80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c806378e97925116100ee578063b909485111610097578063e2bbb15811610071578063e2bbb158146103b5578063e99437a3146103c8578063f2fde38b146103d7578063f4b83c4c146103ea57600080fd5b8063b90948511461037c578063d30fff7a1461038f578063d49e77cd146103a257600080fd5b80638da5cb5b116100c85780638da5cb5b146102fd5780638dbb1e3a1461032257806393f1a40b1461033557600080fd5b806378e97925146102b05780638c9b89c5146102d75780638d88a90e146102ea57600080fd5b8063426857c61161015b578063526a5b3411610135578063526a5b34146102845780635312ea8e1461028d578063630b5ba1146102a0578063715018a6146102a857600080fd5b8063426857c61461024b578063441a3e701461025e57806351eb05a61461027157600080fd5b80631ab06ee51161018c5780631ab06ee5146102105780632b8bbbe8146102255780633c7a4fd71461023857600080fd5b8063081e3eda146101b35780631526fe27146101ca57806317caf6f114610207575b600080fd5b6006545b6040519081526020015b60405180910390f35b6101dd6101d8366004611946565b6103f3565b604080516001600160a01b03909516855260208501939093529183015260608201526080016101c1565b6101b760085481565b61022361021e3660046119a8565b610437565b005b610223610233366004611978565b610560565b610223610246366004611946565b61076d565b6101b7610259366004611978565b610836565b61022361026c3660046119a8565b6109b6565b61022361027f366004611946565b610b70565b6101b760055481565b61022361029b366004611946565b610e12565b610223610f13565b610223610f3e565b6101b77f00000000000000000000000000000000000000000000000000000000619bbe8081565b6102236102e5366004611907565b610fa4565b6102236102f8366004611907565b611020565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101c1565b6101b76103303660046119a8565b61109c565b610367610343366004611978565b60076020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101c1565b60025461030a906001600160a01b031681565b60045461030a906001600160a01b031681565b60035461030a906001600160a01b031681565b6102236103c33660046119a8565b611130565b6101b7670de0b6b3a764000081565b6102236103e5366004611907565b61128b565b6101b761ea6081565b6006818154811061040357600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b6000546001600160a01b031633146104965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61ea608111156104e85760405162461bcd60e51b815260206004820152601c60248201527f6164643a20746f6f206d616e7920616c6c6f6320706f696e7473212100000000604482015260640161048d565b6104f0610f13565b806006838154811061050457610504611ae6565b9060005260206000209060040201600101546008546105239190611a72565b61052d9190611a19565b600881905550806006838154811061054757610547611ae6565b9060005260206000209060040201600101819055505050565b6000546001600160a01b031633146105ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b61ea6082111561060c5760405162461bcd60e51b815260206004820152601c60248201527f6164643a20746f6f206d616e7920616c6c6f6320706f696e7473212100000000604482015260640161048d565b6106158161136d565b61061d610f13565b60007f00000000000000000000000000000000000000000000000000000000619bbe80421161066c577f00000000000000000000000000000000000000000000000000000000619bbe8061066e565b425b60085490915061067e9084611417565b600855604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919095161790935592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b6000546001600160a01b031633146107c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b670de0b6b3a76400008111156108295760405162461bcd60e51b815260206004820152602160248201527f7365744d6f6f6e5065725365636f6e643a20746f6f206d616e79206d6f6f6e736044820152602160f81b606482015260840161048d565b610831610f13565b600555565b6000806006848154811061084c5761084c611ae6565b600091825260208083208784526007825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b8152309681019690965290965091949193919216906370a082319060240160206040518083038186803b1580156108c357600080fd5b505afa1580156108d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fb919061195f565b905083600201544211801561090f57508015155b1561097b57600061092485600201544261109c565b90506000610957600854610951886001015461094b6005548761142390919063ffffffff16565b90611423565b9061142f565b905061097661096f846109518464e8d4a51000611423565b8590611417565b935050505b6109a983600101546109a364e8d4a5100061095186886000015461142390919063ffffffff16565b9061143b565b9450505050505b92915050565b60026001541415610a095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161048d565b6002600181905550600060068381548110610a2657610a26611ae6565b600091825260208083208684526007825260408085203386529092529220805460049092029092019250831115610a9f5760405162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015260640161048d565b610aa884610b70565b6000610ad682600101546109a364e8d4a510006109518760030154876000015461142390919063ffffffff16565b8254909150610ae5908561143b565b8083556003840154610b029164e8d4a51000916109519190611423565b60018301558015610b1757610b173382611447565b8254610b2d906001600160a01b03163386611593565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a3505060018055505050565b600060068281548110610b8557610b85611ae6565b9060005260206000209060040201905080600201544211610ba4575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610be757600080fd5b505afa158015610bfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1f919061195f565b905080610c3157504260029091015550565b6000610c4183600201544261109c565b90506000610c68600854610951866001015461094b6005548761142390919063ffffffff16565b6002546003549192506001600160a01b03908116916340c10f199116610c8f84600a61142f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610cd557600080fd5b505af1158015610ce9573d6000803e3d6000fd5b50506002546004546001600160a01b0391821693506340c10f19925016610d1184601461142f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610d5757600080fd5b505af1158015610d6b573d6000803e3d6000fd5b50506002546040516340c10f1960e01b8152306004820152602481018590526001600160a01b0390911692506340c10f199150604401600060405180830381600087803b158015610dbb57600080fd5b505af1158015610dcf573d6000803e3d6000fd5b50505050610dfd610df28461095164e8d4a510008561142390919063ffffffff16565b600386015490611417565b60038501555050426002909201919091555050565b60026001541415610e655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161048d565b6002600181905550600060068281548110610e8257610e82611ae6565b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610ed2916001600160a01b03919091169083611593565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a35050600180555050565b60065460005b81811015610f3a57610f2a81610b70565b610f3381611ab5565b9050610f19565b5050565b6000546001600160a01b03163314610f985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b610fa2600061160b565b565b6003546001600160a01b03163314610ffe5760405162461bcd60e51b815260206004820152600e60248201527f786d6f6f6e6665653a206164643f000000000000000000000000000000000000604482015260640161048d565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461107a5760405162461bcd60e51b815260206004820152600960248201527f6465763a207775743f0000000000000000000000000000000000000000000000604482015260640161048d565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60007f00000000000000000000000000000000000000000000000000000000619bbe8083116110eb577f00000000000000000000000000000000000000000000000000000000619bbe806110ed565b825b92507f00000000000000000000000000000000000000000000000000000000619bbe8082101561111f575060006109b0565b6111298383611a72565b9392505050565b600260015414156111835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161048d565b60026001819055506000600683815481106111a0576111a0611ae6565b600091825260208083208684526007825260408085203386529092529220600490910290910191506111d184610b70565b60006111ff82600101546109a364e8d4a510006109518760030154876000015461142390919063ffffffff16565b825490915061120e9085611417565b808355600384015461122b9164e8d4a51000916109519190611423565b60018301558015611240576112403382611447565b8254611257906001600160a01b031633308761165b565b604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610b5d565b6000546001600160a01b031633146112e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b6001600160a01b0381166113615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161048d565b61136a8161160b565b50565b60065460005b8181101561141257826001600160a01b03166006828154811061139857611398611ae6565b60009182526020909120600490910201546001600160a01b031614156114005760405162461bcd60e51b815260206004820152601c60248201527f6164643a20706f6f6c20616c7265616479206578697374732121212100000000604482015260640161048d565b8061140a81611ab5565b915050611373565b505050565b60006111298284611a19565b60006111298284611a53565b60006111298284611a31565b60006111298284611a72565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561148b57600080fd5b505afa15801561149f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c3919061195f565b90508082111561155a5760025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b602060405180830381600087803b15801561151c57600080fd5b505af1158015611530573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115549190611924565b50505050565b60025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401611502565b6040516001600160a01b03831660248201526044810182905261141290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152611693565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526115549085906323b872dd60e01b906084016115bf565b60006116e8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117789092919063ffffffff16565b80519091501561141257808060200190518101906117069190611924565b6114125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161048d565b6060611787848460008561178f565b949350505050565b6060824710156118075760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161048d565b843b6118555760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161048d565b600080866001600160a01b0316858760405161187191906119ca565b60006040518083038185875af1925050503d80600081146118ae576040519150601f19603f3d011682016040523d82523d6000602084013e6118b3565b606091505b50915091506118c38282866118ce565b979650505050505050565b606083156118dd575081611129565b8251156118ed5782518084602001fd5b8160405162461bcd60e51b815260040161048d91906119e6565b60006020828403121561191957600080fd5b813561112981611afc565b60006020828403121561193657600080fd5b8151801515811461112957600080fd5b60006020828403121561195857600080fd5b5035919050565b60006020828403121561197157600080fd5b5051919050565b6000806040838503121561198b57600080fd5b82359150602083013561199d81611afc565b809150509250929050565b600080604083850312156119bb57600080fd5b50508035926020909101359150565b600082516119dc818460208701611a89565b9190910192915050565b6020815260008251806020840152611a05816040850160208701611a89565b601f01601f19169190910160400192915050565b60008219821115611a2c57611a2c611ad0565b500190565b600082611a4e57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611a6d57611a6d611ad0565b500290565b600082821015611a8457611a84611ad0565b500390565b60005b83811015611aa4578181015183820152602001611a8c565b838111156115545750506000910152565b6000600019821415611ac957611ac9611ad0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461136a57600080fdfea2646970667358221220e1316f073e9d0577e16e4065666562c9144224f1dc11a55fc866fd43a5a3718464736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000fed6177c230a6091e58d0081dcd31f88a256185000000000000000000000000771baaa23d446f5ac7654434763e0890db0ba58e000000000000000000000000d48843a305761d41215808abe69ec420e90271b200000000000000000000000000000000000000000000000002ea11e32ad5000000000000000000000000000000000000000000000000000000000000619bbe80
-----Decoded View---------------
Arg [0] : _moon (address): 0x0FeD6177c230A6091E58D0081dcD31F88A256185
Arg [1] : _devaddr (address): 0x771BAaA23D446f5Ac7654434763E0890Db0Ba58E
Arg [2] : _xmoonfee (address): 0xD48843a305761D41215808aBE69eC420e90271B2
Arg [3] : _moonPerSecond (uint256): 210000000000000000
Arg [4] : _startTime (uint256): 1637596800
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000fed6177c230a6091e58d0081dcd31f88a256185
Arg [1] : 000000000000000000000000771baaa23d446f5ac7654434763e0890db0ba58e
Arg [2] : 000000000000000000000000d48843a305761d41215808abe69ec420e90271b2
Arg [3] : 00000000000000000000000000000000000000000000000002ea11e32ad50000
Arg [4] : 00000000000000000000000000000000000000000000000000000000619bbe80
Deployed Bytecode Sourcemap
72420:9977:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75216:95;75288:8;:15;75216:95;;;8735:25:1;;;8723:2;8708:18;75216:95:0;;;;;;;;74252:26;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3305:55:1;;;3287:74;;3392:2;3377:18;;3370:34;;;;3420:18;;;3413:34;3478:2;3463:18;;3456:34;3274:3;3259:19;74252:26:0;3241:255:1;74495:34:0;;;;;;76969:323;;;;;;:::i;:::-;;:::i;:::-;;76255:618;;;;;;:::i;:::-;;:::i;75468:435::-;;;;;;:::i;:::-;;:::i;77672:764::-;;;;;;:::i;:::-;;:::i;80412:728::-;;;;;;:::i;:::-;;:::i;78775:844::-;;;;;;:::i;:::-;;:::i;73999:28::-;;;;;;81211:422;;;;;;:::i;:::-;;:::i;78519:180::-;;;:::i;27141:94::-;;;:::i;74584:34::-;;;;;82245:149;;;;;;:::i;:::-;;:::i;82081:129::-;;;;;;:::i;:::-;;:::i;26490:87::-;26536:7;26563:6;-1:-1:-1;;;;;26563:6:0;26490:87;;;-1:-1:-1;;;;;2271:55:1;;;2253:74;;2241:2;2226:18;26490:87:0;2208:125:1;77368:240:0;;;;;;:::i;:::-;;:::i;74334:66::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8945:25:1;;;9001:2;8986:18;;8979:34;;;;8918:18;74334:66:0;8900:119:1;73821:25:0;;;;;-1:-1:-1;;;;;73821:25:0;;;73930:23;;;;;-1:-1:-1;;;;;73930:23:0;;;73876:22;;;;;-1:-1:-1;;;;;73876:22:0;;;79688:672;;;;;;:::i;:::-;;:::i;74115:47::-;;74158:4;74115:47;;27390:192;;;;;;:::i;:::-;;:::i;74171:45::-;;74211:5;74171:45;;74252:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;74252:26:0;;;;-1:-1:-1;74252:26:0;;;:::o;76969:323::-;26536:7;26563:6;-1:-1:-1;;;;;26563:6:0;25352:10;26710:23;26702:68;;;;-1:-1:-1;;;26702:68:0;;6597:2:1;26702:68:0;;;6579:21:1;;;6616:18;;;6609:30;6675:34;6655:18;;;6648:62;6727:18;;26702:68:0;;;;;;;;;74211:5:::1;77055:11;:28;;77047:69;;;::::0;-1:-1:-1;;;77047:69:0;;7663:2:1;77047:69:0::1;::::0;::::1;7645:21:1::0;7702:2;7682:18;;;7675:30;7741;7721:18;;;7714:58;7789:18;;77047:69:0::1;7635:178:1::0;77047:69:0::1;77129:17;:15;:17::i;:::-;77223:11;77195:8;77204:4;77195:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;;77177:15;;:43;;;;:::i;:::-;:57;;;;:::i;:::-;77159:15;:75;;;;77273:11;77245:8;77254:4;77245:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;:39;;;;76969:323:::0;;:::o;76255:618::-;26536:7;26563:6;-1:-1:-1;;;;;26563:6:0;25352:10;26710:23;26702:68;;;;-1:-1:-1;;;26702:68:0;;6597:2:1;26702:68:0;;;6579:21:1;;;6616:18;;;6609:30;6675:34;6655:18;;;6648:62;6727:18;;26702:68:0;6569:182:1;26702:68:0;74211:5:::1;76344:11;:28;;76336:69;;;::::0;-1:-1:-1;;;76336:69:0;;7663:2:1;76336:69:0::1;::::0;::::1;7645:21:1::0;7702:2;7682:18;;;7675:30;7741;7721:18;;;7714:58;7789:18;;76336:69:0::1;7635:178:1::0;76336:69:0::1;76418:27;76436:8;76418:17;:27::i;:::-;76497:17;:15;:17::i;:::-;76527:22;76570:9;76552:15;:27;:57;;76600:9;76552:57;;;76582:15;76552:57;76638:15;::::0;76527:82;;-1:-1:-1;76638:32:0::1;::::0;76658:11;76638:19:::1;:32::i;:::-;76620:15;:50:::0;76695:169:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;76695:169:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;76695:169:0;;;;;;76681:8:::1;:184:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;76681:184:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;76255:618::o;75468:435::-;26536:7;26563:6;-1:-1:-1;;;;;26563:6:0;25352:10;26710:23;26702:68;;;;-1:-1:-1;;;26702:68:0;;6597:2:1;26702:68:0;;;6579:21:1;;;6616:18;;;6609:30;6675:34;6655:18;;;6648:62;6727:18;;26702:68:0;6569:182:1;26702:68:0;74158:4:::1;75556:14;:34;;75548:80;;;::::0;-1:-1:-1;;;75548:80:0;;4344:2:1;75548:80:0::1;::::0;::::1;4326:21:1::0;4383:2;4363:18;;;4356:30;4422:34;4402:18;;;4395:62;-1:-1:-1;;;4473:18:1;;;4466:31;4514:19;;75548:80:0::1;4316:223:1::0;75548:80:0::1;75834:17;:15;:17::i;:::-;75865:13;:30:::0;75468:435::o;77672:764::-;77745:7;77765:21;77789:8;77798:4;77789:14;;;;;;;;:::i;:::-;;;;;;;;;77838;;;:8;:14;;;;;;-1:-1:-1;;;;;77838:21:0;;;;;;;;;;77789:14;;;;;;;77896:20;;;;77946:12;;:37;;-1:-1:-1;;;77946:37:0;;77977:4;77946:37;;;2253:74:1;;;;77789:14:0;;-1:-1:-1;77838:21:0;;77896:20;;77789:14;;77946:12;;:22;;2226:18:1;;77946:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77927:56;;78016:4;:19;;;77998:15;:37;:54;;;;-1:-1:-1;78039:13:0;;;77998:54;77994:354;;;78069:18;78090:51;78104:4;:19;;;78125:15;78090:13;:51::i;:::-;78069:72;;78156:18;78177:71;78232:15;;78177:50;78211:4;:15;;;78177:29;78192:13;;78177:10;:14;;:29;;;;:::i;:::-;:33;;:50::i;:::-;:54;;:71::i;:::-;78156:92;-1:-1:-1;78281:55:0;78301:34;78326:8;78301:20;78156:92;78316:4;78301:14;:20::i;:34::-;78281:15;;:19;:55::i;:::-;78263:73;;78054:294;;77994:354;78365:63;78412:4;:15;;;78365:42;78402:4;78365:32;78381:15;78365:4;:11;;;:15;;:32;;;;:::i;:42::-;:46;;:63::i;:::-;78358:70;;;;;;77672:764;;;;;:::o;80412:728::-;23694:1;24290:7;;:19;;24282:63;;;;-1:-1:-1;;;24282:63:0;;8431:2:1;24282:63:0;;;8413:21:1;8470:2;8450:18;;;8443:30;8509:33;8489:18;;;8482:61;8560:18;;24282:63:0;8403:181:1;24282:63:0;23694:1;24423:7;:18;;;;80493:21:::1;80517:8;80526:4;80517:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;80566;;;:8:::1;:14:::0;;;;;;80581:10:::1;80566:26:::0;;;;;;;80613:11;;80517:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;80613:22:0;-1:-1:-1;80613:22:0::1;80605:53;;;::::0;-1:-1:-1;;;80605:53:0;;7316:2:1;80605:53:0::1;::::0;::::1;7298:21:1::0;7355:2;7335:18;;;7328:30;7394:20;7374:18;;;7367:48;7432:18;;80605:53:0::1;7288:168:1::0;80605:53:0::1;80671:16;80682:4;80671:10;:16::i;:::-;80700:15;80718:68;80770:4;:15;;;80718:47;80760:4;80718:37;80734:4;:20;;;80718:4;:11;;;:15;;:37;;;;:::i;:68::-;80813:11:::0;;80700:86;;-1:-1:-1;80813:24:0::1;::::0;80829:7;80813:15:::1;:24::i;:::-;80799:38:::0;;;80882:20:::1;::::0;::::1;::::0;80866:47:::1;::::0;80908:4:::1;::::0;80866:37:::1;::::0;80799:38;80866:15:::1;:37::i;:47::-;80848:15;::::0;::::1;:65:::0;80929:11;;80926:80:::1;;80957:37;80974:10;80986:7;80957:16;:37::i;:::-;81016:12:::0;;:55:::1;::::0;-1:-1:-1;;;;;81016:12:0::1;81050:10;81063:7:::0;81016:25:::1;:55::i;:::-;81097:35;::::0;8735:25:1;;;81118:4:0;;81106:10:::1;::::0;81097:35:::1;::::0;8723:2:1;8708:18;81097:35:0::1;;;;;;;;-1:-1:-1::0;;23650:1:0;24602:22;;-1:-1:-1;;;80412:728:0:o;78775:844::-;78827:21;78851:8;78860:4;78851:14;;;;;;;;:::i;:::-;;;;;;;;;;;78827:38;;78899:4;:19;;;78880:15;:38;78876:77;;78935:7;78775:844;:::o;78876:77::-;78982:12;;:37;;-1:-1:-1;;;78982:37:0;;79013:4;78982:37;;;2253:74:1;78963:16:0;;-1:-1:-1;;;;;78982:12:0;;:22;;2226:18:1;;78982:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78963:56;-1:-1:-1;79034:13:0;79030:104;;-1:-1:-1;79086:15:0;79064:19;;;;:37;-1:-1:-1;78775:844:0:o;79030:104::-;79144:18;79165:51;79179:4;:19;;;79200:15;79165:13;:51::i;:::-;79144:72;;79227:18;79248:71;79303:15;;79248:50;79282:4;:15;;;79248:29;79263:13;;79248:10;:14;;:29;;;;:::i;:71::-;79332:4;;79342:7;;79227:92;;-1:-1:-1;;;;;;79332:4:0;;;;:9;;79342:7;79351:18;79227:92;79366:2;79351:14;:18::i;:::-;79332:38;;-1:-1:-1;;;;;;79332:38:0;;;;;;;-1:-1:-1;;;;;2933:55:1;;;79332:38:0;;;2915:74:1;3005:18;;;2998:34;2888:18;;79332:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;79381:4:0;;79391:8;;-1:-1:-1;;;;;79381:4:0;;;;-1:-1:-1;79381:9:0;;-1:-1:-1;79391:8:0;79401:18;:10;79416:2;79401:14;:18::i;:::-;79381:39;;-1:-1:-1;;;;;;79381:39:0;;;;;;;-1:-1:-1;;;;;2933:55:1;;;79381:39:0;;;2915:74:1;3005:18;;;2998:34;2888:18;;79381:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;79431:4:0;;:36;;-1:-1:-1;;;79431:36:0;;79449:4;79431:36;;;2915:74:1;3005:18;;;2998:34;;;-1:-1:-1;;;;;79431:4:0;;;;-1:-1:-1;79431:9:0;;-1:-1:-1;2888:18:1;;79431:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79503:60;79528:34;79553:8;79528:20;79543:4;79528:10;:14;;:20;;;;:::i;:34::-;79503:20;;;;;:24;:60::i;:::-;79480:20;;;:83;-1:-1:-1;;79596:15:0;79574:19;;;;:37;;;;-1:-1:-1;;78775:844:0:o;81211:422::-;23694:1;24290:7;;:19;;24282:63;;;;-1:-1:-1;;;24282:63:0;;8431:2:1;24282:63:0;;;8413:21:1;8470:2;8450:18;;;8443:30;8509:33;8489:18;;;8482:61;8560:18;;24282:63:0;8403:181:1;24282:63:0;23694:1;24423:7;:18;;;;81283:21:::1;81307:8;81316:4;81307:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;81356;;;:8:::1;:14:::0;;;;;;81371:10:::1;81356:26:::0;;;;;;;81416:11;;81438:15;;;-1:-1:-1;81464:15:0;::::1;:19:::0;;;;81307:14:::1;::::0;;::::1;;81496:12:::0;;81307:14;;-1:-1:-1;81356:26:0;;81416:11;81496:61:::1;::::0;-1:-1:-1;;;;;81496:12:0;;;::::1;::::0;81416:11;81496:25:::1;:61::i;:::-;81573:50;::::0;8735:25:1;;;81603:4:0;;81591:10:::1;::::0;81573:50:::1;::::0;8723:2:1;8708:18;81573:50:0::1;;;;;;;-1:-1:-1::0;;23650:1:0;24602:22;;-1:-1:-1;;81211:422:0:o;78519:180::-;78581:8;:15;78564:14;78607:85;78635:6;78629:3;:12;78607:85;;;78665:15;78676:3;78665:10;:15::i;:::-;78643:5;;;:::i;:::-;;;78607:85;;;;78553:146;78519:180::o;27141:94::-;26536:7;26563:6;-1:-1:-1;;;;;26563:6:0;25352:10;26710:23;26702:68;;;;-1:-1:-1;;;26702:68:0;;6597:2:1;26702:68:0;;;6579:21:1;;;6616:18;;;6609:30;6675:34;6655:18;;;6648:62;6727:18;;26702:68:0;6569:182:1;26702:68:0;27206:21:::1;27224:1;27206:9;:21::i;:::-;27141:94::o:0;82245:149::-;82329:7;;-1:-1:-1;;;;;82329:7:0;82315:10;:21;82307:48;;;;-1:-1:-1;;;82307:48:0;;5153:2:1;82307:48:0;;;5135:21:1;5192:2;5172:18;;;5165:30;5231:16;5211:18;;;5204:44;5265:18;;82307:48:0;5125:164:1;82307:48:0;82366:8;:20;;-1:-1:-1;;;;;;82366:20:0;-1:-1:-1;;;;;82366:20:0;;;;;;;;;;82245:149::o;82081:129::-;82152:7;;-1:-1:-1;;;;;82152:7:0;82138:10;:21;82130:43;;;;-1:-1:-1;;;82130:43:0;;6260:2:1;82130:43:0;;;6242:21:1;6299:1;6279:18;;;6272:29;6337:11;6317:18;;;6310:39;6366:18;;82130:43:0;6232:158:1;82130:43:0;82184:7;:18;;-1:-1:-1;;;;;;82184:18:0;-1:-1:-1;;;;;82184:18:0;;;;;;;;;;82081:129::o;77368:240::-;77440:7;77476:9;77468:5;:17;:37;;77496:9;77468:37;;;77488:5;77468:37;77460:45;;77526:9;77520:3;:15;77516:56;;;-1:-1:-1;77559:1:0;77552:8;;77516:56;77589:11;77595:5;77589:3;:11;:::i;:::-;77582:18;77368:240;-1:-1:-1;;;77368:240:0:o;79688:672::-;23694:1;24290:7;;:19;;24282:63;;;;-1:-1:-1;;;24282:63:0;;8431:2:1;24282:63:0;;;8413:21:1;8470:2;8450:18;;;8443:30;8509:33;8489:18;;;8482:61;8560:18;;24282:63:0;8403:181:1;24282:63:0;23694:1;24423:7;:18;;;;79769:21:::1;79793:8;79802:4;79793:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;79842;;;:8:::1;:14:::0;;;;;;79857:10:::1;79842:26:::0;;;;;;;79793:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;79881:16:0::1;79851:4:::0;79881:10:::1;:16::i;:::-;79910:15;79928:68;79980:4;:15;;;79928:47;79970:4;79928:37;79944:4;:20;;;79928:4;:11;;;:15;;:37;;;;:::i;:68::-;80023:11:::0;;79910:86;;-1:-1:-1;80023:24:0::1;::::0;80039:7;80023:15:::1;:24::i;:::-;80009:38:::0;;;80092:20:::1;::::0;::::1;::::0;80076:47:::1;::::0;80118:4:::1;::::0;80076:37:::1;::::0;80009:38;80076:15:::1;:37::i;:47::-;80058:15;::::0;::::1;:65:::0;80139:11;;80136:80:::1;;80167:37;80184:10;80196:7;80167:16;:37::i;:::-;80226:12:::0;;:74:::1;::::0;-1:-1:-1;;;;;80226:12:0::1;80264:10;80285:4;80292:7:::0;80226:29:::1;:74::i;:::-;80318:34;::::0;8735:25:1;;;80338:4:0;;80326:10:::1;::::0;80318:34:::1;::::0;8723:2:1;8708:18;80318:34:0::1;8690:76:1::0;27390:192:0;26536:7;26563:6;-1:-1:-1;;;;;26563:6:0;25352:10;26710:23;26702:68;;;;-1:-1:-1;;;26702:68:0;;6597:2:1;26702:68:0;;;6579:21:1;;;6616:18;;;6609:30;6675:34;6655:18;;;6648:62;6727:18;;26702:68:0;6569:182:1;26702:68:0;-1:-1:-1;;;;;27479:22:0;::::1;27471:73;;;::::0;-1:-1:-1;;;27471:73:0;;4746:2:1;27471:73:0::1;::::0;::::1;4728:21:1::0;4785:2;4765:18;;;4758:30;4824:34;4804:18;;;4797:62;4895:8;4875:18;;;4868:36;4921:19;;27471:73:0::1;4718:228:1::0;27471:73:0::1;27555:19;27565:8;27555:9;:19::i;:::-;27390:192:::0;:::o;75911:269::-;75997:8;:15;75980:14;76023:148;76053:6;76046:4;:13;76023:148;;;76118:8;-1:-1:-1;;;;;76092:34:0;:8;76101:4;76092:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:22;-1:-1:-1;;;;;76092:22:0;:34;;76084:75;;;;-1:-1:-1;;;76084:75:0;;5903:2:1;76084:75:0;;;5885:21:1;5942:2;5922:18;;;5915:30;5981;5961:18;;;5954:58;6029:18;;76084:75:0;5875:178:1;76084:75:0;76061:6;;;;:::i;:::-;;;;76023:148;;;;75969:211;75911:269;:::o;17774:98::-;17832:7;17859:5;17863:1;17859;:5;:::i;18512:98::-;18570:7;18597:5;18601:1;18597;:5;:::i;18911:98::-;18969:7;18996:5;19000:1;18996;:5;:::i;18155:98::-;18213:7;18240:5;18244:1;18240;:5;:::i;81747:278::-;81841:4;;:29;;-1:-1:-1;;;81841:29:0;;81864:4;81841:29;;;2253:74:1;81823:15:0;;-1:-1:-1;;;;;81841:4:0;;:14;;2226:18:1;;81841:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;81823:47;;81895:7;81885;:17;81881:137;;;81919:4;;:27;;-1:-1:-1;;;81919:27:0;;-1:-1:-1;;;;;2933:55:1;;;81919:27:0;;;2915:74:1;3005:18;;;2998:34;;;81919:4:0;;;;:13;;2888:18:1;;81919:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;76023:148;75969:211;75911:269;:::o;81881:137::-;81979:4;;:27;;-1:-1:-1;;;81979:27:0;;-1:-1:-1;;;;;2933:55:1;;;81979:27:0;;;2915:74:1;3005:18;;;2998:34;;;81979:4:0;;;;:13;;2888:18:1;;81979:27:0;2870:168:1;11678:211:0;11822:58;;-1:-1:-1;;;;;2933:55:1;;11822:58:0;;;2915:74:1;3005:18;;;2998:34;;;11795:86:0;;11815:5;;-1:-1:-1;;;11845:23:0;2888:18:1;;11822:58:0;;;;-1:-1:-1;;11822:58:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;11822:58:0;;;;;;;;;;11795:19;:86::i;27590:173::-;27646:16;27665:6;;-1:-1:-1;;;;;27682:17:0;;;-1:-1:-1;;;;;;27682:17:0;;;;;;27715:40;;27665:6;;;;;;;27715:40;;27646:16;27715:40;27635:128;27590:173;:::o;11897:248::-;12068:68;;-1:-1:-1;;;;;2619:15:1;;;12068:68:0;;;2601:34:1;2671:15;;2651:18;;;2644:43;2703:18;;;2696:34;;;12041:96:0;;12061:5;;-1:-1:-1;;;12091:27:0;2513:18:1;;12068:68:0;2495:241:1;14251:716:0;14675:23;14701:69;14729:4;14701:69;;;;;;;;;;;;;;;;;14709:5;-1:-1:-1;;;;;14701:27:0;;;:69;;;;;:::i;:::-;14785:17;;14675:95;;-1:-1:-1;14785:21:0;14781:179;;14882:10;14871:30;;;;;;;;;;;;:::i;:::-;14863:85;;;;-1:-1:-1;;;14863:85:0;;8020:2:1;14863:85:0;;;8002:21:1;8059:2;8039:18;;;8032:30;8098:34;8078:18;;;8071:62;8169:12;8149:18;;;8142:40;8199:19;;14863:85:0;7992:232:1;6518:229:0;6655:12;6687:52;6709:6;6717:4;6723:1;6726:12;6687:21;:52::i;:::-;6680:59;6518:229;-1:-1:-1;;;;6518:229:0:o;7638:510::-;7808:12;7866:5;7841:21;:30;;7833:81;;;;-1:-1:-1;;;7833:81:0;;5496:2:1;7833:81:0;;;5478:21:1;5535:2;5515:18;;;5508:30;5574:34;5554:18;;;5547:62;5645:8;5625:18;;;5618:36;5671:19;;7833:81:0;5468:228:1;7833:81:0;4035:20;;7925:60;;;;-1:-1:-1;;;7925:60:0;;6958:2:1;7925:60:0;;;6940:21:1;6997:2;6977:18;;;6970:30;7036:31;7016:18;;;7009:59;7085:18;;7925:60:0;6930:179:1;7925:60:0;7999:12;8013:23;8040:6;-1:-1:-1;;;;;8040:11:0;8059:5;8066:4;8040:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7998:73;;;;8089:51;8106:7;8115:10;8127:12;8089:16;:51::i;:::-;8082:58;7638:510;-1:-1:-1;;;;;;;7638:510:0:o;10324:712::-;10474:12;10503:7;10499:530;;;-1:-1:-1;10534:10:0;10527:17;;10499:530;10648:17;;:21;10644:374;;10846:10;10840:17;10907:15;10894:10;10890:2;10886:19;10879:44;10644:374;10989:12;10982:20;;-1:-1:-1;;;10982:20:0;;;;;;;;:::i;14:247:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;142:1;139;132:12;94:2;181:9;168:23;200:31;225:5;200:31;:::i;266:277::-;333:6;386:2;374:9;365:7;361:23;357:32;354:2;;;402:1;399;392:12;354:2;434:9;428:16;487:5;480:13;473:21;466:5;463:32;453:2;;509:1;506;499:12;548:180;607:6;660:2;648:9;639:7;635:23;631:32;628:2;;;676:1;673;666:12;628:2;-1:-1:-1;699:23:1;;618:110;-1:-1:-1;618:110:1:o;733:184::-;803:6;856:2;844:9;835:7;831:23;827:32;824:2;;;872:1;869;862:12;824:2;-1:-1:-1;895:16:1;;814:103;-1:-1:-1;814:103:1:o;922:315::-;990:6;998;1051:2;1039:9;1030:7;1026:23;1022:32;1019:2;;;1067:1;1064;1057:12;1019:2;1103:9;1090:23;1080:33;;1163:2;1152:9;1148:18;1135:32;1176:31;1201:5;1176:31;:::i;:::-;1226:5;1216:15;;;1009:228;;;;;:::o;1575:248::-;1643:6;1651;1704:2;1692:9;1683:7;1679:23;1675:32;1672:2;;;1720:1;1717;1710:12;1672:2;-1:-1:-1;;1743:23:1;;;1813:2;1798:18;;;1785:32;;-1:-1:-1;1662:161:1:o;1828:274::-;1957:3;1995:6;1989:13;2011:53;2057:6;2052:3;2045:4;2037:6;2033:17;2011:53;:::i;:::-;2080:16;;;;;1965:137;-1:-1:-1;;1965:137:1:o;3754:383::-;3903:2;3892:9;3885:21;3866:4;3935:6;3929:13;3978:6;3973:2;3962:9;3958:18;3951:34;3994:66;4053:6;4048:2;4037:9;4033:18;4028:2;4020:6;4016:15;3994:66;:::i;:::-;4121:2;4100:15;-1:-1:-1;;4096:29:1;4081:45;;;;4128:2;4077:54;;3875:262;-1:-1:-1;;3875:262:1:o;9024:128::-;9064:3;9095:1;9091:6;9088:1;9085:13;9082:2;;;9101:18;;:::i;:::-;-1:-1:-1;9137:9:1;;9072:80::o;9157:217::-;9197:1;9223;9213:2;;9267:10;9262:3;9258:20;9255:1;9248:31;9302:4;9299:1;9292:15;9330:4;9327:1;9320:15;9213:2;-1:-1:-1;9359:9:1;;9203:171::o;9379:168::-;9419:7;9485:1;9481;9477:6;9473:14;9470:1;9467:21;9462:1;9455:9;9448:17;9444:45;9441:2;;;9492:18;;:::i;:::-;-1:-1:-1;9532:9:1;;9431:116::o;9552:125::-;9592:4;9620:1;9617;9614:8;9611:2;;;9625:18;;:::i;:::-;-1:-1:-1;9662:9:1;;9601:76::o;9682:258::-;9754:1;9764:113;9778:6;9775:1;9772:13;9764:113;;;9854:11;;;9848:18;9835:11;;;9828:39;9800:2;9793:10;9764:113;;;9895:6;9892:1;9889:13;9886:2;;;-1:-1:-1;;9930:1:1;9912:16;;9905:27;9735:205::o;9945:135::-;9984:3;-1:-1:-1;;10005:17:1;;10002:2;;;10025:18;;:::i;:::-;-1:-1:-1;10072:1:1;10061:13;;9992:88::o;10085:127::-;10146:10;10141:3;10137:20;10134:1;10127:31;10177:4;10174:1;10167:15;10201:4;10198:1;10191:15;10217:127;10278:10;10273:3;10269:20;10266:1;10259:31;10309:4;10306:1;10299:15;10333:4;10330:1;10323:15;10349:154;-1:-1:-1;;;;;10428:5:1;10424:54;10417:5;10414:65;10404:2;;10493:1;10490;10483:12
Swarm Source
ipfs://e1316f073e9d0577e16e4065666562c9144224f1dc11a55fc866fd43a5a37184
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in MOVR
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
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.