Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
OokiToken
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-15 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @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); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } /** * @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 guidelines: functions revert instead * of 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 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @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); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(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: * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @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 to 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 { } } contract OokiToken is ERC20, Ownable { constructor() ERC20("Ooki Token", "OOKI") public {} uint256 public totalMinted; uint256 public totalBurned; function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); totalMinted = totalMinted.add(_amount); } function burn(uint256 _amount) public onlyOwner { _burn(msg.sender, _amount); totalBurned = totalBurned.add(_amount); } function rescue(IERC20 _token) public onlyOwner { SafeERC20.safeTransfer(_token, msg.sender, _token.balanceOf(address(this))); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600a81526927b7b5b4902a37b5b2b760b11b6020808301918252835180850190945260048452634f4f4b4960e01b9084015281519192916200006091600391620000f2565b50805162000076906004906020840190620000f2565b50506005805460ff1916601217905550600062000092620000ee565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200018e565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200013557805160ff191683800117855562000165565b8280016001018555821562000165579182015b828111156200016557825182559160200191906001019062000148565b506200017392915062000177565b5090565b5b8082111562000173576000815560010162000178565b611502806200019e6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063a457c2d711610071578063a457c2d714610350578063a9059cbb1461037c578063d89135cd146103a8578063dd62ed3e146103b0578063f2fde38b146103de57610121565b8063715018a6146102ee578063839006f2146102f65780638da5cb5b1461031c57806395d89b4114610340578063a2309ff81461034857610121565b8063313ce567116100f4578063313ce56714610233578063395093511461025157806340c10f191461027d57806342966c68146102ab57806370a08231146102c857610121565b806306fdde0314610126578063095ea7b3146101a357806318160ddd146101e357806323b872dd146101fd575b600080fd5b61012e610404565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b03813516906020013561049a565b604080519115158252519081900360200190f35b6101eb6104b7565b60408051918252519081900360200190f35b6101cf6004803603606081101561021357600080fd5b506001600160a01b038135811691602081013590911690604001356104bd565b61023b610545565b6040805160ff9092168252519081900360200190f35b6101cf6004803603604081101561026757600080fd5b506001600160a01b03813516906020013561054e565b6102a96004803603604081101561029357600080fd5b506001600160a01b03813516906020013561059c565b005b6102a9600480360360208110156102c157600080fd5b503561061c565b6101eb600480360360208110156102de57600080fd5b50356001600160a01b031661069b565b6102a96106b6565b6102a96004803603602081101561030c57600080fd5b50356001600160a01b0316610768565b610324610850565b604080516001600160a01b039092168252519081900360200190f35b61012e610864565b6101eb6108c5565b6101cf6004803603604081101561036657600080fd5b506001600160a01b0381351690602001356108cb565b6101cf6004803603604081101561039257600080fd5b506001600160a01b038135169060200135610933565b6101eb610947565b6101eb600480360360408110156103c657600080fd5b506001600160a01b038135811691602001351661094d565b6102a9600480360360208110156103f457600080fd5b50356001600160a01b0316610978565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104905780601f1061046557610100808354040283529160200191610490565b820191906000526020600020905b81548152906001019060200180831161047357829003601f168201915b5050505050905090565b60006104ae6104a7610a86565b8484610a8a565b50600192915050565b60025490565b60006104ca848484610b76565b61053a846104d6610a86565b610535856040518060600160405280602881526020016113cc602891396001600160a01b038a16600090815260016020526040812090610514610a86565b6001600160a01b031681526020810191909152604001600020549190610cd1565b610a8a565b5060015b9392505050565b60055460ff1690565b60006104ae61055b610a86565b84610535856001600061056c610a86565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610d68565b6105a4610a86565b6001600160a01b03166105b5610850565b6001600160a01b0316146105fe576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b6106088282610dc2565b6006546106159082610d68565b6006555050565b610624610a86565b6001600160a01b0316610635610850565b6001600160a01b03161461067e576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b6106883382610eb2565b6007546106959082610d68565b60075550565b6001600160a01b031660009081526020819052604090205490565b6106be610a86565b6001600160a01b03166106cf610850565b6001600160a01b031614610718576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b610770610a86565b6001600160a01b0316610781610850565b6001600160a01b0316146107ca576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b61084d8133836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d602081101561084657600080fd5b5051610fae565b50565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104905780601f1061046557610100808354040283529160200191610490565b60065481565b60006104ae6108d8610a86565b84610535856040518060600160405280602581526020016114a86025913960016000610902610a86565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610cd1565b60006104ae610940610a86565b8484610b76565b60075481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610980610a86565b6001600160a01b0316610991610850565b6001600160a01b0316146109da576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b6001600160a01b038116610a1f5760405162461bcd60e51b81526004018080602001828103825260268152602001806113386026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b038316610acf5760405162461bcd60e51b815260040180806020018281038252602481526020018061145a6024913960400191505060405180910390fd5b6001600160a01b038216610b145760405162461bcd60e51b815260040180806020018281038252602281526020018061135e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610bbb5760405162461bcd60e51b81526004018080602001828103825260258152602001806114356025913960400191505060405180910390fd5b6001600160a01b038216610c005760405162461bcd60e51b81526004018080602001828103825260238152602001806112f36023913960400191505060405180910390fd5b610c0b838383611000565b610c4881604051806060016040528060268152602001611380602691396001600160a01b0386166000908152602081905260409020549190610cd1565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610c779082610d68565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610d605760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d25578181015183820152602001610d0d565b50505050905090810190601f168015610d525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561053e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610e1d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610e2960008383611000565b600254610e369082610d68565b6002556001600160a01b038216600090815260208190526040902054610e5c9082610d68565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610ef75760405162461bcd60e51b81526004018080602001828103825260218152602001806114146021913960400191505060405180910390fd5b610f0382600083611000565b610f4081604051806060016040528060228152602001611316602291396001600160a01b0385166000908152602081905260409020549190610cd1565b6001600160a01b038316600090815260208190526040902055600254610f669082611005565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611000908490611062565b505050565b60008282111561105c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60606110b7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111139092919063ffffffff16565b805190915015611000578080602001905160208110156110d657600080fd5b50516110005760405162461bcd60e51b815260040180806020018281038252602a81526020018061147e602a913960400191505060405180910390fd5b6060611122848460008561112a565b949350505050565b60608247101561116b5760405162461bcd60e51b81526004018080602001828103825260268152602001806113a66026913960400191505060405180910390fd5b61117485611286565b6111c5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106112045780518252601f1990920191602091820191016111e5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611266576040519150601f19603f3d011682016040523d82523d6000602084013e61126b565b606091505b509150915061127b82828661128c565b979650505050505050565b3b151590565b6060831561129b57508161053e565b8251156112ab5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610d25578181015183820152602001610d0d56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c7bbb03d86c4bf195d3fa8a4449b5407b5ba59ee40d8cb7337bdd23a7d5433f164736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063a457c2d711610071578063a457c2d714610350578063a9059cbb1461037c578063d89135cd146103a8578063dd62ed3e146103b0578063f2fde38b146103de57610121565b8063715018a6146102ee578063839006f2146102f65780638da5cb5b1461031c57806395d89b4114610340578063a2309ff81461034857610121565b8063313ce567116100f4578063313ce56714610233578063395093511461025157806340c10f191461027d57806342966c68146102ab57806370a08231146102c857610121565b806306fdde0314610126578063095ea7b3146101a357806318160ddd146101e357806323b872dd146101fd575b600080fd5b61012e610404565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b03813516906020013561049a565b604080519115158252519081900360200190f35b6101eb6104b7565b60408051918252519081900360200190f35b6101cf6004803603606081101561021357600080fd5b506001600160a01b038135811691602081013590911690604001356104bd565b61023b610545565b6040805160ff9092168252519081900360200190f35b6101cf6004803603604081101561026757600080fd5b506001600160a01b03813516906020013561054e565b6102a96004803603604081101561029357600080fd5b506001600160a01b03813516906020013561059c565b005b6102a9600480360360208110156102c157600080fd5b503561061c565b6101eb600480360360208110156102de57600080fd5b50356001600160a01b031661069b565b6102a96106b6565b6102a96004803603602081101561030c57600080fd5b50356001600160a01b0316610768565b610324610850565b604080516001600160a01b039092168252519081900360200190f35b61012e610864565b6101eb6108c5565b6101cf6004803603604081101561036657600080fd5b506001600160a01b0381351690602001356108cb565b6101cf6004803603604081101561039257600080fd5b506001600160a01b038135169060200135610933565b6101eb610947565b6101eb600480360360408110156103c657600080fd5b506001600160a01b038135811691602001351661094d565b6102a9600480360360208110156103f457600080fd5b50356001600160a01b0316610978565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104905780601f1061046557610100808354040283529160200191610490565b820191906000526020600020905b81548152906001019060200180831161047357829003601f168201915b5050505050905090565b60006104ae6104a7610a86565b8484610a8a565b50600192915050565b60025490565b60006104ca848484610b76565b61053a846104d6610a86565b610535856040518060600160405280602881526020016113cc602891396001600160a01b038a16600090815260016020526040812090610514610a86565b6001600160a01b031681526020810191909152604001600020549190610cd1565b610a8a565b5060015b9392505050565b60055460ff1690565b60006104ae61055b610a86565b84610535856001600061056c610a86565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610d68565b6105a4610a86565b6001600160a01b03166105b5610850565b6001600160a01b0316146105fe576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b6106088282610dc2565b6006546106159082610d68565b6006555050565b610624610a86565b6001600160a01b0316610635610850565b6001600160a01b03161461067e576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b6106883382610eb2565b6007546106959082610d68565b60075550565b6001600160a01b031660009081526020819052604090205490565b6106be610a86565b6001600160a01b03166106cf610850565b6001600160a01b031614610718576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b610770610a86565b6001600160a01b0316610781610850565b6001600160a01b0316146107ca576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b61084d8133836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d602081101561084657600080fd5b5051610fae565b50565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104905780601f1061046557610100808354040283529160200191610490565b60065481565b60006104ae6108d8610a86565b84610535856040518060600160405280602581526020016114a86025913960016000610902610a86565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610cd1565b60006104ae610940610a86565b8484610b76565b60075481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610980610a86565b6001600160a01b0316610991610850565b6001600160a01b0316146109da576040805162461bcd60e51b815260206004820181905260248201526000805160206113f4833981519152604482015290519081900360640190fd5b6001600160a01b038116610a1f5760405162461bcd60e51b81526004018080602001828103825260268152602001806113386026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b038316610acf5760405162461bcd60e51b815260040180806020018281038252602481526020018061145a6024913960400191505060405180910390fd5b6001600160a01b038216610b145760405162461bcd60e51b815260040180806020018281038252602281526020018061135e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610bbb5760405162461bcd60e51b81526004018080602001828103825260258152602001806114356025913960400191505060405180910390fd5b6001600160a01b038216610c005760405162461bcd60e51b81526004018080602001828103825260238152602001806112f36023913960400191505060405180910390fd5b610c0b838383611000565b610c4881604051806060016040528060268152602001611380602691396001600160a01b0386166000908152602081905260409020549190610cd1565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610c779082610d68565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610d605760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d25578181015183820152602001610d0d565b50505050905090810190601f168015610d525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561053e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610e1d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610e2960008383611000565b600254610e369082610d68565b6002556001600160a01b038216600090815260208190526040902054610e5c9082610d68565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610ef75760405162461bcd60e51b81526004018080602001828103825260218152602001806114146021913960400191505060405180910390fd5b610f0382600083611000565b610f4081604051806060016040528060228152602001611316602291396001600160a01b0385166000908152602081905260409020549190610cd1565b6001600160a01b038316600090815260208190526040902055600254610f669082611005565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611000908490611062565b505050565b60008282111561105c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60606110b7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111139092919063ffffffff16565b805190915015611000578080602001905160208110156110d657600080fd5b50516110005760405162461bcd60e51b815260040180806020018281038252602a81526020018061147e602a913960400191505060405180910390fd5b6060611122848460008561112a565b949350505050565b60608247101561116b5760405162461bcd60e51b81526004018080602001828103825260268152602001806113a66026913960400191505060405180910390fd5b61117485611286565b6111c5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106112045780518252601f1990920191602091820191016111e5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611266576040519150601f19603f3d011682016040523d82523d6000602084013e61126b565b606091505b509150915061127b82828661128c565b979650505050505050565b3b151590565b6060831561129b57508161053e565b8251156112ab5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610d25578181015183820152602001610d0d56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c7bbb03d86c4bf195d3fa8a4449b5407b5ba59ee40d8cb7337bdd23a7d5433f164736f6c634300060c0033
Deployed Bytecode Sourcemap
35777:622:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26904:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29050:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29050:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;28003:108;;;:::i;:::-;;;;;;;;;;;;;;;;29701:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29701:321:0;;;;;;;;;;;;;;;;;:::i;27847:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;30431:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30431:218:0;;;;;;;;:::i;35948:148::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35948:148:0;;;;;;;;:::i;:::-;;36104:142;;;;;;;;;;;;;;;;-1:-1:-1;36104:142:0;;:::i;28174:127::-;;;;;;;;;;;;;;;;-1:-1:-1;28174:127:0;-1:-1:-1;;;;;28174:127:0;;:::i;2629:148::-;;;:::i;36254:142::-;;;;;;;;;;;;;;;;-1:-1:-1;36254:142:0;-1:-1:-1;;;;;36254:142:0;;:::i;1978:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1978:87:0;;;;;;;;;;;;;;27114:95;;;:::i;35880:26::-;;;:::i;31152:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31152:269:0;;;;;;;;:::i;28514:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28514:175:0;;;;;;;;:::i;35913:26::-;;;:::i;28752:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28752:151:0;;;;;;;;;;:::i;2932:244::-;;;;;;;;;;;;;;;;-1:-1:-1;2932:244:0;-1:-1:-1;;;;;2932:244:0;;:::i;26904:91::-;26982:5;26975:12;;;;;;;;-1:-1:-1;;26975:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26949:13;;26975:12;;26982:5;;26975:12;;26982:5;26975:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26904:91;:::o;29050:169::-;29133:4;29150:39;29159:12;:10;:12::i;:::-;29173:7;29182:6;29150:8;:39::i;:::-;-1:-1:-1;29207:4:0;29050:169;;;;:::o;28003:108::-;28091:12;;28003:108;:::o;29701:321::-;29807:4;29824:36;29834:6;29842:9;29853:6;29824:9;:36::i;:::-;29871:121;29880:6;29888:12;:10;:12::i;:::-;29902:89;29940:6;29902:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29902:19:0;;;;;;:11;:19;;;;;;29922:12;:10;:12::i;:::-;-1:-1:-1;;;;;29902:33:0;;;;;;;;;;;;-1:-1:-1;29902:33:0;;;:89;:37;:89::i;:::-;29871:8;:121::i;:::-;-1:-1:-1;30010:4:0;29701:321;;;;;;:::o;27847:91::-;27921:9;;;;27847:91;:::o;30431:218::-;30519:4;30536:83;30545:12;:10;:12::i;:::-;30559:7;30568:50;30607:10;30568:11;:25;30580:12;:10;:12::i;:::-;-1:-1:-1;;;;;30568:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;30568:25:0;;;:34;;;;;;;;;;;:38;:50::i;35948:148::-;2209:12;:10;:12::i;:::-;-1:-1:-1;;;;;2198:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2198:23:0;;2190:68;;;;;-1:-1:-1;;;2190:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2190:68:0;;;;;;;;;;;;;;;36020:19:::1;36026:3;36031:7;36020:5;:19::i;:::-;36064:11;::::0;:24:::1;::::0;36080:7;36064:15:::1;:24::i;:::-;36050:11;:38:::0;-1:-1:-1;;35948:148:0:o;36104:142::-;2209:12;:10;:12::i;:::-;-1:-1:-1;;;;;2198:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2198:23:0;;2190:68;;;;;-1:-1:-1;;;2190:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2190:68:0;;;;;;;;;;;;;;;36163:26:::1;36169:10;36181:7;36163:5;:26::i;:::-;36214:11;::::0;:24:::1;::::0;36230:7;36214:15:::1;:24::i;:::-;36200:11;:38:::0;-1:-1:-1;36104:142:0:o;28174:127::-;-1:-1:-1;;;;;28275:18:0;28248:7;28275:18;;;;;;;;;;;;28174:127::o;2629:148::-;2209:12;:10;:12::i;:::-;-1:-1:-1;;;;;2198:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2198:23:0;;2190:68;;;;;-1:-1:-1;;;2190:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2190:68:0;;;;;;;;;;;;;;;2720:6:::1;::::0;2699:40:::1;::::0;2736:1:::1;::::0;2720:6:::1;::::0;::::1;-1:-1:-1::0;;;;;2720:6:0::1;::::0;2699:40:::1;::::0;2736:1;;2699:40:::1;2750:6;:19:::0;;-1:-1:-1;;;;;;2750:19:0::1;::::0;;2629:148::o;36254:142::-;2209:12;:10;:12::i;:::-;-1:-1:-1;;;;;2198:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2198:23:0;;2190:68;;;;;-1:-1:-1;;;2190:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2190:68:0;;;;;;;;;;;;;;;36313:75:::1;36336:6;36344:10;36356:6;-1:-1:-1::0;;;;;36356:16:0::1;;36381:4;36356:31;;;;;;;;;;;;;-1:-1:-1::0;;;;;36356:31:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;36356:31:0;36313:22:::1;:75::i;:::-;36254:142:::0;:::o;1978:87::-;2051:6;;;;;-1:-1:-1;;;;;2051:6:0;;1978:87::o;27114:95::-;27194:7;27187:14;;;;;;;;-1:-1:-1;;27187:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27161:13;;27187:14;;27194:7;;27187:14;;27194:7;27187:14;;;;;;;;;;;;;;;;;;;;;;;;35880:26;;;;:::o;31152:269::-;31245:4;31262:129;31271:12;:10;:12::i;:::-;31285:7;31294:96;31333:15;31294:96;;;;;;;;;;;;;;;;;:11;:25;31306:12;:10;:12::i;:::-;-1:-1:-1;;;;;31294:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;31294:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;28514:175::-;28600:4;28617:42;28627:12;:10;:12::i;:::-;28641:9;28652:6;28617:9;:42::i;35913:26::-;;;;:::o;28752:151::-;-1:-1:-1;;;;;28868:18:0;;;28841:7;28868:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;28752:151::o;2932:244::-;2209:12;:10;:12::i;:::-;-1:-1:-1;;;;;2198:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2198:23:0;;2190:68;;;;;-1:-1:-1;;;2190:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2190:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3021:22:0;::::1;3013:73;;;;-1:-1:-1::0;;;3013:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3123:6;::::0;3102:38:::1;::::0;-1:-1:-1;;;;;3102:38:0;;::::1;::::0;3123:6:::1;::::0;::::1;;::::0;3102:38:::1;::::0;;;::::1;3151:6;:17:::0;;-1:-1:-1;;;;;3151:17:0;;::::1;;;-1:-1:-1::0;;;;;;3151:17:0;;::::1;::::0;;;::::1;::::0;;2932:244::o;607:106::-;695:10;607:106;:::o;34299:346::-;-1:-1:-1;;;;;34401:19:0;;34393:68;;;;-1:-1:-1;;;34393:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34480:21:0;;34472:68;;;;-1:-1:-1;;;34472:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34553:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;34605:32;;;;;;;;;;;;;;;;;34299:346;;;:::o;31911:539::-;-1:-1:-1;;;;;32017:20:0;;32009:70;;;;-1:-1:-1;;;32009:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32098:23:0;;32090:71;;;;-1:-1:-1;;;32090:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32174:47;32195:6;32203:9;32214:6;32174:20;:47::i;:::-;32254:71;32276:6;32254:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32254:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;32234:17:0;;;:9;:17;;;;;;;;;;;:91;;;;32359:20;;;;;;;:32;;32384:6;32359:24;:32::i;:::-;-1:-1:-1;;;;;32336:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;32407:35;;;;;;;32336:20;;32407:35;;;;;;;;;;;;;31911:539;;;:::o;19367:166::-;19453:7;19489:12;19481:6;;;;19473:29;;;;-1:-1:-1;;;19473:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;19520:5:0;;;19367:166::o;16540:179::-;16598:7;16630:5;;;16654:6;;;;16646:46;;;;;-1:-1:-1;;;16646:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;32732:378;-1:-1:-1;;;;;32816:21:0;;32808:65;;;;;-1:-1:-1;;;32808:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32886:49;32915:1;32919:7;32928:6;32886:20;:49::i;:::-;32963:12;;:24;;32980:6;32963:16;:24::i;:::-;32948:12;:39;-1:-1:-1;;;;;33019:18:0;;:9;:18;;;;;;;;;;;:30;;33042:6;33019:22;:30::i;:::-;-1:-1:-1;;;;;32998:18:0;;:9;:18;;;;;;;;;;;:51;;;;33065:37;;;;;;;32998:18;;:9;;33065:37;;;;;;;;;;32732:378;;:::o;33443:418::-;-1:-1:-1;;;;;33527:21:0;;33519:67;;;;-1:-1:-1;;;33519:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33599:49;33620:7;33637:1;33641:6;33599:20;:49::i;:::-;33682:68;33705:6;33682:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33682:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;33661:18:0;;:9;:18;;;;;;;;;;:89;33776:12;;:24;;33793:6;33776:16;:24::i;:::-;33761:12;:39;33816:37;;;;;;;;33842:1;;-1:-1:-1;;;;;33816:37:0;;;;;;;;;;;;33443:418;;:::o;21766:177::-;21876:58;;;-1:-1:-1;;;;;21876:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21876:58:0;-1:-1:-1;;;21876:58:0;;;21849:86;;21869:5;;21849:19;:86::i;:::-;21766:177;;;:::o;17002:158::-;17060:7;17093:1;17088;:6;;17080:49;;;;;-1:-1:-1;;;17080:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17147:5:0;;;17002:158::o;24071:761::-;24495:23;24521:69;24549:4;24521:69;;;;;;;;;;;;;;;;;24529:5;-1:-1:-1;;;;;24521:27:0;;;:69;;;;;:::i;:::-;24605:17;;24495:95;;-1:-1:-1;24605:21:0;24601:224;;24747:10;24736:30;;;;;;;;;;;;;;;-1:-1:-1;24736:30:0;24728:85;;;;-1:-1:-1;;;24728:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9495:195;9598:12;9630:52;9652:6;9660:4;9666:1;9669:12;9630:21;:52::i;:::-;9623:59;9495:195;-1:-1:-1;;;;9495:195:0:o;10547:530::-;10674:12;10732:5;10707:21;:30;;10699:81;;;;-1:-1:-1;;;10699:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10799:18;10810:6;10799:10;:18::i;:::-;10791:60;;;;;-1:-1:-1;;;10791:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10925:12;10939:23;10966:6;-1:-1:-1;;;;;10966:11:0;10986:5;10994:4;10966:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;10966:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10924:75;;;;11017:52;11035:7;11044:10;11056:12;11017:17;:52::i;:::-;11010:59;10547:530;-1:-1:-1;;;;;;;10547:530:0:o;6577:422::-;6944:20;6983:8;;;6577:422::o;13087:742::-;13202:12;13231:7;13227:595;;;-1:-1:-1;13262:10:0;13255:17;;13227:595;13376:17;;:21;13372:439;;13639:10;13633:17;13700:15;13687:10;13683:2;13679:19;13672:44;13587:148;13775:20;;-1:-1:-1;;;13775:20:0;;;;;;;;;;;;;;;;;13782:12;;13775:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://c7bbb03d86c4bf195d3fa8a4449b5407b5ba59ee40d8cb7337bdd23a7d5433f1
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.