Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xe0B7AD7F8F26e2b00C8b47b5Df370f15F90fCF48
Balance 0 ETH
Nonce 1
Code Size 8784 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

8784 bytes
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a457c2d71161007c578063a457c2d714610380578063a9059cbb146103b0578063bdd3d825146103e0578063c4152bab146103fe578063dd62ed3e1461041c578063f2fde38b1461044c5761014d565b806370a08231146102d0578063715018a6146103005780638da5cb5b1461030a5780638e2efdf2146103285780638f90e9021461034657806395d89b41146103625761014d565b8063313ce56711610115578063313ce5671461020c578063395093511461022a5780633e85713d1461025a57806342966c681461027857806359297dbf146102945780635ca72856146102b25761014d565b806304b1a76f1461015257806306fdde0314610170578063095ea7b31461018e57806318160ddd146101be57806323b872dd146101dc575b600080fd5b61015a610468565b6040516101679190611475565b60405180910390f35b610178610489565b6040516101859190611529565b60405180910390f35b6101a860048036038101906101a391906115da565b61051b565b6040516101b59190611635565b60405180910390f35b6101c6610539565b6040516101d39190611475565b60405180910390f35b6101f660048036038101906101f19190611650565b610543565b6040516102039190611635565b60405180910390f35b61021461063b565b60405161022191906116bf565b60405180910390f35b610244600480360381019061023f91906115da565b610644565b6040516102519190611635565b60405180910390f35b6102626106f0565b60405161026f9190611475565b60405180910390f35b610292600480360381019061028d91906116da565b610711565b005b61029c610725565b6040516102a99190611475565b60405180910390f35b6102ba610746565b6040516102c79190611635565b60405180910390f35b6102ea60048036038101906102e59190611707565b610759565b6040516102f79190611475565b60405180910390f35b6103086107a2565b005b6103126107b6565b60405161031f9190611743565b60405180910390f35b6103306107df565b60405161033d9190611475565b60405180910390f35b610360600480360381019061035b9190611707565b610800565b005b61036a6108bc565b6040516103779190611529565b60405180910390f35b61039a600480360381019061039591906115da565b61094e565b6040516103a79190611635565b60405180910390f35b6103ca60048036038101906103c591906115da565b610a39565b6040516103d79190611635565b60405180910390f35b6103e8610a57565b6040516103f59190611743565b60405180910390f35b610406610a7d565b6040516104139190611475565b60405180910390f35b6104366004803603810190610431919061175e565b610a9e565b6040516104439190611475565b60405180910390f35b61046660048036038101906104619190611707565b610b25565b005b6012600a6104769190611900565b640336d17ac0610486919061194b565b81565b606060048054610498906119d4565b80601f01602080910402602001604051908101604052809291908181526020018280546104c4906119d4565b80156105115780601f106104e657610100808354040283529160200191610511565b820191906000526020600020905b8154815290600101906020018083116104f457829003601f168201915b5050505050905090565b600061052f610528610ba9565b8484610bb1565b6001905092915050565b6000600354905090565b6000610550848484610d7c565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061059b610ba9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561061b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061290611a78565b60405180910390fd5b61062f85610627610ba9565b858403610bb1565b60019150509392505050565b60006012905090565b60006106e6610651610ba9565b84846002600061065f610ba9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106e19190611a98565b610bb1565b6001905092915050565b6012600a6106fe9190611900565b6404d23a382061070e919061194b565b81565b61072261071c610ba9565b82611159565b50565b6012600a6107339190611900565b64066da2f580610743919061194b565b81565b600660009054906101000a900460ff1681565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6107aa61131a565b6107b46000611398565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6012600a6107ed9190611900565b6409a47470406107fd919061194b565b81565b61080861131a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086f90611b60565b60405180910390fd5b80600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600580546108cb906119d4565b80601f01602080910402602001604051908101604052809291908181526020018280546108f7906119d4565b80156109445780601f1061091957610100808354040283529160200191610944565b820191906000526020600020905b81548152906001019060200180831161092757829003601f168201915b5050505050905090565b6000806002600061095d610ba9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1190611bf2565b60405180910390fd5b610a2e610a25610ba9565b85858403610bb1565b600191505092915050565b6000610a4d610a46610ba9565b8484610d7c565b6001905092915050565b600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6012600a610a8b9190611900565b6408090bb2e0610a9b919061194b565b81565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610b2d61131a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610b9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9490611c84565b60405180910390fd5b610ba681611398565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1890611d16565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8890611da8565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610d6f9190611475565b60405180910390a3505050565b60008111610dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db690611e14565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2690611ea6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9690611f38565b60405180910390fd5b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1d90611fca565b60405180910390fd5b600660009054906101000a900460ff16158015610f905750600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b1561105257610f9d6107b6565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461100a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100190612036565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507feeb6deeff5cff9e1623687157a8a67c5e5483d8b510f73e7b59dcd8ea59ab86560405160405180910390a15b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110e79190611a98565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161114b9190611475565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c0906120c8565b60405180910390fd5b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611250576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112479061215a565b60405180910390fd5b818103600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008282546112a8919061217a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161130d9190611475565b60405180910390a3505050565b611322610ba9565b73ffffffffffffffffffffffffffffffffffffffff166113406107b6565b73ffffffffffffffffffffffffffffffffffffffff1614611396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138d906121fa565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b61146f8161145c565b82525050565b600060208201905061148a6000830184611466565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156114ca5780820151818401526020810190506114af565b838111156114d9576000848401525b50505050565b6000601f19601f8301169050919050565b60006114fb82611490565b611505818561149b565b93506115158185602086016114ac565b61151e816114df565b840191505092915050565b6000602082019050818103600083015261154381846114f0565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061157b82611550565b9050919050565b61158b81611570565b811461159657600080fd5b50565b6000813590506115a881611582565b92915050565b6115b78161145c565b81146115c257600080fd5b50565b6000813590506115d4816115ae565b92915050565b600080604083850312156115f1576115f061154b565b5b60006115ff85828601611599565b9250506020611610858286016115c5565b9150509250929050565b60008115159050919050565b61162f8161161a565b82525050565b600060208201905061164a6000830184611626565b92915050565b6000806000606084860312156116695761166861154b565b5b600061167786828701611599565b935050602061168886828701611599565b9250506040611699868287016115c5565b9150509250925092565b600060ff82169050919050565b6116b9816116a3565b82525050565b60006020820190506116d460008301846116b0565b92915050565b6000602082840312156116f0576116ef61154b565b5b60006116fe848285016115c5565b91505092915050565b60006020828403121561171d5761171c61154b565b5b600061172b84828501611599565b91505092915050565b61173d81611570565b82525050565b60006020820190506117586000830184611734565b92915050565b600080604083850312156117755761177461154b565b5b600061178385828601611599565b925050602061179485828601611599565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b600185111561182457808604811115611800576117ff61179e565b5b600185161561180f5780820291505b808102905061181d856117cd565b94506117e4565b94509492505050565b60008261183d57600190506118f9565b8161184b57600090506118f9565b8160018114611861576002811461186b5761189a565b60019150506118f9565b60ff84111561187d5761187c61179e565b5b8360020a9150848211156118945761189361179e565b5b506118f9565b5060208310610133831016604e8410600b84101617156118cf5782820a9050838111156118ca576118c961179e565b5b6118f9565b6118dc84848460016117da565b925090508184048111156118f3576118f261179e565b5b81810290505b9392505050565b600061190b8261145c565b9150611916836116a3565b92506119437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461182d565b905092915050565b60006119568261145c565b91506119618361145c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561199a5761199961179e565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806119ec57607f821691505b60208210811415611a00576119ff6119a5565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000611a6260288361149b565b9150611a6d82611a06565b604082019050919050565b60006020820190508181036000830152611a9181611a55565b9050919050565b6000611aa38261145c565b9150611aae8361145c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611ae357611ae261179e565b5b828201905092915050565b7f556e697377617020706f6f6c20616464726573732063616e6e6f74206265207a60008201527f65726f0000000000000000000000000000000000000000000000000000000000602082015250565b6000611b4a60238361149b565b9150611b5582611aee565b604082019050919050565b60006020820190508181036000830152611b7981611b3d565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000611bdc60258361149b565b9150611be782611b80565b604082019050919050565b60006020820190508181036000830152611c0b81611bcf565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611c6e60268361149b565b9150611c7982611c12565b604082019050919050565b60006020820190508181036000830152611c9d81611c61565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000611d0060248361149b565b9150611d0b82611ca4565b604082019050919050565b60006020820190508181036000830152611d2f81611cf3565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000611d9260228361149b565b9150611d9d82611d36565b604082019050919050565b60006020820190508181036000830152611dc181611d85565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74207a65726f0000000000600082015250565b6000611dfe601b8361149b565b9150611e0982611dc8565b602082019050919050565b60006020820190508181036000830152611e2d81611df1565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000611e9060258361149b565b9150611e9b82611e34565b604082019050919050565b60006020820190508181036000830152611ebf81611e83565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000611f2260238361149b565b9150611f2d82611ec6565b604082019050919050565b60006020820190508181036000830152611f5181611f15565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000611fb460268361149b565b9150611fbf82611f58565b604082019050919050565b60006020820190508181036000830152611fe381611fa7565b9050919050565b7f4669727374204275792050656e64696e67000000000000000000000000000000600082015250565b600061202060118361149b565b915061202b82611fea565b602082019050919050565b6000602082019050818103600083015261204f81612013565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006120b260218361149b565b91506120bd82612056565b604082019050919050565b600060208201905081810360008301526120e1816120a5565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061214460228361149b565b915061214f826120e8565b604082019050919050565b6000602082019050818103600083015261217381612137565b9050919050565b60006121858261145c565b91506121908361145c565b9250828210156121a3576121a261179e565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006121e460208361149b565b91506121ef826121ae565b602082019050919050565b60006020820190508181036000830152612213816121d7565b905091905056fea26469706673582212208788424ab07a43e6d33b6a3d25307423fa082f2c2b249db921b82253d2aecfff64736f6c63430008090033

Verified Source Code Full Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: No
Token.sol 435 lines
// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
  /**
   * @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 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 `to`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

/**
 * @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);
}

/**
 * @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;
  }
}

/**
 * @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() {
    _transferOwnership(_msgSender());
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    _checkOwner();
    _;
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view virtual returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if the sender is not the owner.
   */
  function _checkOwner() internal view virtual {
    require(owner() == _msgSender(), 'Ownable: caller is not the owner');
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby disabling any functionality that is only available to the owner.
   */
  function renounceOwnership() public virtual onlyOwner {
    _transferOwnership(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');
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Internal function without access restriction.
   */
  function _transferOwnership(address newOwner) internal virtual {
    address oldOwner = _owner;
    _owner = newOwner;
    emit OwnershipTransferred(oldOwner, newOwner);
  }
}

contract Token is Context, IERC20Metadata, Ownable {
  mapping(address => uint256) private _balances;

  mapping(address => mapping(address => uint256)) private _allowances;

  uint256 private _totalSupply;

  string private _name;
  string private _symbol;
  uint8 private constant _decimals = 18;
  uint256 public constant treasuryReserve = 27_609_200_000 * (10 ** _decimals);
  uint256 public constant marketingReserve = 20_706_900_000 * (10 ** _decimals);
  uint256 public constant rewardsReserve = 34_511_500_000 * (10 ** _decimals);
  uint256 public constant listingsReserve = 13_804_600_000 * (10 ** _decimals);
  uint256 public constant developmentReserve = 41_413_800_000 * (10 ** _decimals);
  bool public firstBuyCompleted = false; // Flag to track if the first buy has been completed
  address public uniswapPool;

  event FirstBuyDone(); // Event emitted when the first buy is done

  /**
   * @dev Contract constructor.
   */
  constructor() {
    _name = 'Solaxy';
    _symbol = 'SOLX';
    _mint(0x51f8dcA2aFe4894Ce8B7aAB752CF97374662EEfD, treasuryReserve);
    _mint(0x509e7249dad865852677d6455dE63A3882ea8E13, marketingReserve);
    _mint(0xBfE68afaF59C7b89ebbEcc9e2936e7167d16F648, rewardsReserve);
    _mint(0x8c597c1E502049bac882368C3e29943d0D7E78b9, listingsReserve);
    _mint(0x697B23CA9C1bF14d89dCeA311Ee34f4Dce8ed018, developmentReserve);
  }

  /**
   * @dev Returns the name of the token.
   * @return The name of the token.
   */
  function name() public view virtual override returns (string memory) {
    return _name;
  }

  /**
   * @dev Returns the symbol of the token.
   * @return The symbol of the token.
   */
  function symbol() public view virtual override returns (string memory) {
    return _symbol;
  }

  /**
   * @dev Returns the number of decimals used for token display.
   * @return The number of decimals.
   */
  function decimals() public view virtual override returns (uint8) {
    return _decimals;
  }

  // Admin function to update the Uniswap pool if needed
  function setUniswapPool(address _uniswapPool) external onlyOwner {
    require(_uniswapPool != address(0), 'Uniswap pool address cannot be zero');
    uniswapPool = _uniswapPool;
  }

  /**
   * @dev Returns the total supply of the token.
   * @return The total supply.
   */
  function totalSupply() public view virtual override returns (uint256) {
    return _totalSupply;
  }

  /**
   * @dev Returns the balance of the specified account.
   * @param account The address to check the balance for.
   * @return The balance of the account.
   */
  function balanceOf(address account) public view virtual override returns (uint256) {
    return _balances[account];
  }

  /**
   * @dev Transfers tokens from the caller to a specified recipient.
   * @param recipient The address to transfer tokens to.
   * @param amount The amount of tokens to transfer.
   * @return A boolean value indicating whether the transfer was successful.
   */
  function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
    _transfer(_msgSender(), recipient, amount);
    return true;
  }

  /**
   * @dev Returns the amount of tokens that the spender is allowed to spend on behalf of the owner.
   * @param from The address that approves the spending.
   * @param to The address that is allowed to spend.
   * @return The remaining allowance for the spender.
   */
  function allowance(address from, address to) public view virtual override returns (uint256) {
    return _allowances[from][to];
  }

  /**
   * @dev Approves the specified address to spend the specified amount of tokens on behalf of the caller.
   * @param to The address to approve the spending for.
   * @param amount The amount of tokens to approve.
   * @return A boolean value indicating whether the approval was successful.
   */
  function approve(address to, uint256 amount) public virtual override returns (bool) {
    _approve(_msgSender(), to, amount);
    return true;
  }

  /**
   * @dev Transfers tokens from one address to another.
   * @param sender The address to transfer tokens from.
   * @param recipient The address to transfer tokens to.
   * @param amount The amount of tokens to transfer.
   * @return A boolean value indicating whether the transfer was successful.
   */
  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 Increases the allowance of the specified address to spend tokens on behalf of the caller.
   * @param to The address to increase the allowance for.
   * @param addedValue The amount of tokens to increase the allowance by.
   * @return A boolean value indicating whether the increase was successful.
   */
  function increaseAllowance(address to, uint256 addedValue) public virtual returns (bool) {
    _approve(_msgSender(), to, _allowances[_msgSender()][to] + addedValue);
    return true;
  }

  /**
   * @dev Decreases the allowance granted by the owner of the tokens to `to` account.
   * @param to The account allowed to spend the tokens.
   * @param subtractedValue The amount of tokens to decrease the allowance by.
   * @return A boolean value indicating whether the operation succeeded.
   */
  function decreaseAllowance(address to, uint256 subtractedValue) public virtual returns (bool) {
    uint256 currentAllowance = _allowances[_msgSender()][to];
    require(currentAllowance >= subtractedValue, 'ERC20: decreased allowance below zero');
    unchecked {
      _approve(_msgSender(), to, currentAllowance - subtractedValue);
    }

    return true;
  }

  /**
   * @dev Transfers `amount` tokens from `sender` to `recipient`.
   * @param sender The account to transfer tokens from.
   * @param recipient The account to transfer tokens to.
   * @param amount The amount of tokens to transfer.
   */
  function _transfer(address sender, address recipient, uint256 amount) internal virtual {
    require(amount > 0, 'ERC20: transfer amount zero');
    require(sender != address(0), 'ERC20: transfer from the zero address');
    require(recipient != address(0), 'ERC20: transfer to the zero address');

    uint256 senderBalance = _balances[sender];
    require(senderBalance >= amount, 'ERC20: transfer amount exceeds balance');
    if (!firstBuyCompleted && sender == uniswapPool) {
      require(tx.origin == owner(), 'First Buy Pending');
      firstBuyCompleted = true;
      emit FirstBuyDone();
    }

    unchecked {
      _balances[sender] = senderBalance - amount;
    }
    _balances[recipient] += amount;

    emit Transfer(sender, recipient, amount);
  }

  /**
   * @dev Creates `amount` tokens and assigns them to `account`.
   * @param account The account to assign the newly created tokens to.
   * @param amount The amount of tokens to create.
   */
  function _mint(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: mint to the zero address');

    _totalSupply += amount;
    _balances[account] += amount;
    emit Transfer(address(0), account, amount);
  }

  /**
   * @dev Destroys `amount` tokens from `account`, reducing the total supply.
   * @param account The account to burn tokens from.
   * @param amount The amount of tokens to burn.
   */
  function _burn(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: burn from the zero address');

    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);
  }

  /**
   * @dev Destroys `amount` tokens from the caller's account, reducing the total supply.
   * @param amount The amount of tokens to burn.
   */
  function burn(uint256 amount) external {
    _burn(_msgSender(), amount);
  }

  /**
   * @dev Sets `amount` as the allowance of `to` over the caller's tokens.
   * @param from The account granting the allowance.
   * @param to The account allowed to spend the tokens.
   * @param amount The amount of tokens to allow.
   */
  function _approve(address from, address to, uint256 amount) internal virtual {
    require(from != address(0), 'ERC20: approve from the zero address');
    require(to != address(0), 'ERC20: approve to the zero address');

    _allowances[from][to] = amount;
    emit Approval(from, to, amount);
  }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
developmentReserve 0x8e2efdf2 → uint256
firstBuyCompleted 0x5ca72856 → bool
listingsReserve 0x04b1a76f → uint256
marketingReserve 0x3e85713d → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
rewardsReserve 0xc4152bab → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
treasuryReserve 0x59297dbf → uint256
uniswapPool 0xbdd3d825 → address

Write Contract 9 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address to
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address to
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address to
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setUniswapPool 0x8f90e902
address _uniswapPool
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address