Contract 0xed2b42d3c9c6e97e11755bb37df29b6375ede3eb 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc7b928e7ef041461b76b5be65da6acc0feb847504a4bf1de7b7eb9bf7ef6dd50Approve257742622023-02-03 9:28:221 hr 18 mins ago0x340d23addd2ed8984e86cd982fa037d13cfbda11 IN  Heroes of NFT: HON Token0 AVAX0.001227851 26.5
0x7ad2b3cb8f59bea14f476496dbe3fce34c35c3c206339953e6ef9d588e006d99Approve257643962023-02-03 3:52:326 hrs 54 mins ago0x9bb9b1fc128ca59a722f8d4fdf8faca7d779adbe IN  Heroes of NFT: HON Token0 AVAX0.001257821455 27.146835064
0x60000d7aac74aa4782ebf4a8145ae876003d39d147dfa5a4497beb4b1328b0e7Approve257569752023-02-02 23:41:2511 hrs 5 mins ago0x96b503af0c0df8cad96c7719311ad1104e9b10c5 IN  Heroes of NFT: HON Token0 AVAX0.001235165 26.5
0x42ab4f746f6eaedc82fe371c2676b6b72d3e5100d25c971faa981be868da8891Approve257545292023-02-02 22:18:4812 hrs 28 mins ago0xad825c17b85f2cc8230f2a29dd948ce1711006fc IN  Heroes of NFT: HON Token0 AVAX0.001235165 26.5
0xc6e2f0bd413daaac318324c972410f010f59cd8220c5eaa60f6f7cb3c97a287eApprove257544672023-02-02 22:16:4312 hrs 30 mins ago0xad825c17b85f2cc8230f2a29dd948ce1711006fc IN  Heroes of NFT: HON Token0 AVAX0.001227851 26.5
0x6e1c34c6f796af5459dc639828c40bcbc0b964d79222674718746f303a913cb1Approve257538862023-02-02 21:57:5412 hrs 49 mins ago0x290dd11135003acb798841a80d3c6f93e387c615 IN  Heroes of NFT: HON Token0 AVAX0.00127038085 27.425
0x0e8fa320a211e8c44c629b7d86b2f0c7c92ba78599d8348aed7673ac30e1bb17Approve257529522023-02-02 21:28:0013 hrs 19 mins ago0x0752b2eca26fc0ad44c461f5bf47eac8d6b5b05d IN  Heroes of NFT: HON Token0 AVAX0.001238712389 26.576107896
0xac775b9617cee8d9f00b9e7c5e4acaf45e97f5850bddd379d004c89a3c3673e3Approve257527182023-02-02 21:20:2613 hrs 26 mins ago0x610351848efbb815a500d9dac2fb15b0a51727b3 IN  Heroes of NFT: HON Token0 AVAX0.001250329377 26.825346
0x323a87a6d145f6157bc11d6f085ddb0a7070fe1ea11ee1d0ea6f5097fa058cfaApprove257515272023-02-02 20:41:1014 hrs 5 mins ago0x5c09f70e638f59d725dc1ce0849b1c2924f12662 IN  Heroes of NFT: HON Token0 AVAX0.001227851 26.5
0xe33ab6fd0b60d52f09aeec1a64d5e382fb92713ff8f5acbfa97f9b72a9c8b0b1Approve257498272023-02-02 19:44:1515 hrs 2 mins ago0x8e0fd6ab040360dd674dff0f0c24308b3b056499 IN  Heroes of NFT: HON Token0 AVAX0.001266345569 27.168967385
0xd1d65c0804cc9a6437c78ed33607c9e5f5ad9be6988bfcdb4377548e35d001c4Approve257482482023-02-02 18:51:5815 hrs 55 mins ago0x3c98335a3ce8fc6cf31f2d4a0e7999beab04f7e2 IN  Heroes of NFT: HON Token0 AVAX0.001227851 26.5
0xdaf274d75039f32d4d35d2a0fc23e1dd4a20a10871d188e683d9da1115802121Approve257466552023-02-02 17:58:4816 hrs 48 mins ago0x9bee988bf4ed024fcb27e6d0a0169d970e0b94ed IN  Heroes of NFT: HON Token0 AVAX0.00125134227
0x1f866e63d5c0ab8a3c7d9b9b12f9574cd2f17a8be7bcefbdf3dda64095680d71Approve257457312023-02-02 17:27:5117 hrs 19 mins ago0xa5dc93e6241f085cbea600afd9b719d8f1e181c1 IN  Heroes of NFT: HON Token0 AVAX0.001227851 26.5
0x43863f40bef3009e2dd145819f4db60846aa1ce2813dc4c837d555e54e77f98aTransfer257440342023-02-02 16:31:1118 hrs 15 mins ago0x165208365d96126069a78c437505ded9d10c7a2d IN  Heroes of NFT: HON Token0 AVAX0.001035885 26.5
0x6d25e7d51ceb3b8d34cd0af7fe4b32c406c5fddbf6ed257f845b912aa7b024d1Approve257436272023-02-02 16:17:3218 hrs 29 mins ago0x374e0a3b92c09466268e8070a47d34a1277e4207 IN  Heroes of NFT: HON Token0 AVAX0.001249332104 26.963614281
0xf6c7853f705f600853049df8edb1a8f39fee0f48a65ce5c976e4ecdc00002dd3Approve257431692023-02-02 16:02:1818 hrs 44 mins ago0xc18c503a74c756547b526973c07ef9e9f034c60a IN  Heroes of NFT: HON Token0 AVAX0.001272695605 27.305205
0x53625a05622216f8c06f1d4aebcc6826063271f8351c95644a92f958ae4f837fTransfer257427422023-02-02 15:48:0518 hrs 58 mins ago0xd1c29a3179b69d75ef06af31dff31a41ac0af23b IN  Heroes of NFT: HON Token0 AVAX0.001489035 26.5
0x98479fe2ad1123f5c4c5f9e78031703cf460acc932dce68793c05f09242d0d35Approve257421952023-02-02 15:29:4619 hrs 17 mins ago0xbb21688b298205e7c48098ec22b177d5a98988a5 IN  Heroes of NFT: HON Token0 AVAX0.000774701 26.5
0x69906e7c7f5a0e831574fb1147ba027cf14a4883fc0a3702b51721421ec42a6fApprove257421772023-02-02 15:29:1019 hrs 17 mins ago0xbb21688b298205e7c48098ec22b177d5a98988a5 IN  Heroes of NFT: HON Token0 AVAX0.00127827925 27.425
0x85febb76af638cd4fffa43ac49c0f87681a76601600ab7f6b98c8faa626ab500Transfer257420672023-02-02 15:25:2719 hrs 21 mins ago0xe892633601efa85b7035dda10ede4d5040116f81 IN  Heroes of NFT: HON Token0 AVAX0.001534496232 27.30906269
0x69a10c24c2dbe1ce6dcef3d952a0d11f36fc8f1e38b8006a996ef69ef8eed90bApprove257411972023-02-02 14:57:0219 hrs 50 mins ago0x4c898f69d63b92bf6eb90f45f49d4ecd2925656b IN  Heroes of NFT: HON Token0 AVAX0.0012794445 27.45
0x3c48983e3a1811335fe72eb880f2596712149d2a60dd8c3074a5c454c9ae1f7eApprove257398752023-02-02 14:13:0720 hrs 33 mins ago0xa1199f99953cd1cca1f0f348e734821c37bf313c IN  Heroes of NFT: HON Token0 AVAX0.001227533 26.5
0x93e5c09a4ffbfb600c67efc910c917773a9e5906974e323ea8f8f166618ea31dApprove257390202023-02-02 13:44:3221 hrs 2 mins ago0xa347bd299af662abdccda106e9cacebd4243ba48 IN  Heroes of NFT: HON Token0 AVAX0.001227851 26.5
0x02afc7cc8346bac09936df68937114ffa1a521d86f7e3234875452af09ded626Approve257376372023-02-02 13:02:1821 hrs 44 mins ago0xff9cba0655a450d19e23ba0e05e5d70c090ef449 IN  Heroes of NFT: HON Token0 AVAX0.001255832026 27.103898363
0x9febe607512777d6a0b5ef845bbf67a5466658b0ab9eaca6bf71dd44c113211eApprove257375732023-02-02 13:00:1021 hrs 46 mins ago0x4cf64f64957baefb825f88eb44f5278d6d425dea IN  Heroes of NFT: HON Token0 AVAX0.000800965 27.5
[ Download CSV Export 

OVERVIEW

Heroes of NFT is a gaming metaverse which gathers all the game enthusiasts and enable them to build, trade and promote their creations.

Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x07da8e3d05b74dc0e445ea191738a232d041c44f7a11f39b477bce18cebb286b232123152022-12-04 18:10:0760 days 16 hrs ago Heroes of NFT: HON TokenHeroes of NFT: Deployer2.32805599155262962 AVAX
0x1b122a49eeed3eb518039267832fcb72fdb82c7583e227af2c936cb61070f94b55980942021-10-13 20:48:00477 days 13 hrs ago Heroes of NFT: HON TokenHeroes of NFT: Deployer0.01 AVAX
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
HonToken

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : HonToken.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.3;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./libraries/NativeAssets.sol";

// HonToken with Governance.
contract HonToken is Ownable, ERC20 {
  // Avalanche X-chain address
  uint256 private immutable _assetID;

  // Fixed cap token
  uint256 public immutable maxSupply;
  address payable public stuckAccount;

  /// @dev Hon Token
  constructor(uint256 _maxSupply, uint256 assetID_, address _stuckAccount) ERC20("HonToken", "HON") {
    maxSupply = _maxSupply;
    _assetID = assetID_;
    stuckAccount = payable(_stuckAccount);
  }

  /// @dev ARC20 compatibility events
  event Deposit(address indexed dst, uint256 value);
  event Withdrawal(address indexed src, uint256 value);

  /// @dev ARC20 - Deposit function
  function deposit() external {
    uint256 updatedBalance = NativeAssets.assetBalance(address(this), _assetID);
    // Multiply with 1 gwei to increase decimals from 9(avm) to 18(evm)
    uint256 depositAmount = (updatedBalance * 1 gwei) - totalSupply();
    require(depositAmount > 0, "Deposit amount should be more than zero");
    require(depositAmount + totalSupply() <= maxSupply, "Maximum supply is reached.");

    _mint(msg.sender, depositAmount);
    emit Deposit(msg.sender, depositAmount);
  }

  /// @dev ARC20 - Withdraw function
  function withdraw(uint256 amount) external {
    // Divide by 1 gwei to decrease decimals from 18(evm) to 9(avm)
    // Division always floors
    uint256 native_amount = amount / 1 gwei;
    require(native_amount > 0, "amount must be greater than 1 gwei");
    require(balanceOf(msg.sender) >= native_amount, "insufficent funds");
    _burn(msg.sender, native_amount);
    NativeAssets.assetCall(msg.sender, _assetID, native_amount, "");
    emit Withdrawal(msg.sender, native_amount);
  }

  /// @dev Returns the `assetID` of the underlying asset this contract handles.
  function assetID() external view returns (uint256) {
    return _assetID;
  }

  /// @dev Mint grants delegation power
  function _mint(address account, uint256 amount) internal override {
    super._mint(account, amount);
    _moveDelegates(address(0), _delegates[account], amount);
  }

  /// @dev Burn revokes delegation power
  function _burn(address account, uint256 amount) internal override {
    super._burn(account, amount);
    _moveDelegates(_delegates[account], address(0), amount);
  }

  /// @dev Transfer moves the delegation power
  function transfer(address recipient, uint256 amount) public override returns (bool) {
    super.transfer(recipient, amount);
    _moveDelegates(_delegates[msg.sender], _delegates[recipient], amount);
    return true;
  }

  /// @dev Transfer moves the delegation power
  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) public override returns (bool) {
    super.transferFrom(sender, recipient, amount);
    _moveDelegates(_delegates[sender], _delegates[recipient], amount);
    return true;
  }

  /// @dev Get signer address from tx hash
  function recover(
    bytes32 hash,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) internal pure returns (address) {
    // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
    // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
    // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
    // signatures from current libraries generate a unique signature with an s-value in the lower half order.
    //
    // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
    // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
    // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
    // these malleable signatures as well.
    require(
      uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
      "ECDSA: invalid signature 's' value"
    );
    require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

    // If the signature is valid (and not malleable), return the signer address
    address signer = ecrecover(hash, v, r, s);
    require(signer != address(0), "ECDSA: invalid signature");

    return signer;
  }

  // Copied and modified from YAM code:
  // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
  // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
  // Which is copied and modified from COMPOUND:
  // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

  /// @dev A record of each accounts delegate
  mapping(address => address) internal _delegates;

  /// @dev A checkpoint for marking number of votes from a given block
  struct Checkpoint {
    uint32 fromBlock;
    uint256 votes;
  }

  /// @dev A record of votes checkpoints for each account, by index
  mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

  /// @dev The number of checkpoints for each account
  mapping(address => uint32) public numCheckpoints;

  /// @dev The EIP-712 typehash for the contract's domain
  bytes32 public constant DOMAIN_TYPEHASH =
    keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

  /// @dev The EIP-712 typehash for the delegation struct used by the contract
  bytes32 public constant DELEGATION_TYPEHASH =
    keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

  /// @dev A record of states for signing / validating signatures
  mapping(address => uint256) public nonces;

  /// @dev An event thats emitted when an account changes its delegate
  event DelegateChanged(
    address indexed delegator,
    address indexed fromDelegate,
    address indexed toDelegate
  );

  /// @dev An event thats emitted when a delegate account's vote balance changes
  event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

  /**
   * @dev Delegate votes from `msg.sender` to `delegatee`
   * @param delegator The address to get delegatee for
   */
  function delegates(address delegator) external view returns (address) {
    return _delegates[delegator];
  }

  /**
   * @dev Delegate votes from `msg.sender` to `delegatee`
   * @param delegatee The address to delegate votes to
   */
  function delegate(address delegatee) external {
    return _delegate(msg.sender, delegatee);
  }

  /**
   * @dev Delegates votes from signatory to `delegatee`
   * @param delegatee The address to delegate votes to
   * @param nonce The contract state required to match the signature
   * @param expiry The time at which to expire the signature
   * @param v The recovery byte of the signature
   * @param r Half of the ECDSA signature pair
   * @param s Half of the ECDSA signature pair
   */
  function delegateBySig(
    address delegatee,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external {
    bytes32 domainSeparator = keccak256(
      abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this))
    );

    bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));

    bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));

    address signatory = recover(digest, v, r, s); // TODO: Implement ECDSA recover() function instead of this
    require(signatory != address(0), "HON::delegateBySig: invalid signature");
    require(nonce == nonces[signatory]++, "HON::delegateBySig: invalid nonce");
    require(block.timestamp <= expiry, "HON::delegateBySig: signature expired");
    return _delegate(signatory, delegatee);
  }

  /**
   * @dev Gets the current votes balance for `account`
   * @param account The address to get votes balance
   * @return The number of current votes for `account`
   */
  function getCurrentVotes(address account) external view returns (uint256) {
    uint32 nCheckpoints = numCheckpoints[account];
    return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
  }

  /**
   * @dev Determine the prior number of votes for an account as of a block number
   * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
   * @param account The address of the account to check
   * @param blockNumber The block number to get the vote balance at
   * @return The number of votes the account had as of the given block
   */
  function getPriorVotes(address account, uint256 blockNumber) external view returns (uint256) {
    require(blockNumber < block.number, "HON::getPriorVotes: not yet determined");

    uint32 nCheckpoints = numCheckpoints[account];
    if (nCheckpoints == 0) {
      return 0;
    }

    // First check most recent balance
    if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
      return checkpoints[account][nCheckpoints - 1].votes;
    }

    // Next check implicit zero balance
    if (checkpoints[account][0].fromBlock > blockNumber) {
      return 0;
    }

    uint32 lower = 0;
    uint32 upper = nCheckpoints - 1;
    while (upper > lower) {
      uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
      Checkpoint memory cp = checkpoints[account][center];
      if (cp.fromBlock == blockNumber) {
        return cp.votes;
      } else if (cp.fromBlock < blockNumber) {
        lower = center;
      } else {
        upper = center - 1;
      }
    }
    return checkpoints[account][lower].votes;
  }

  function _delegate(address delegator, address delegatee) internal {
    address currentDelegate = _delegates[delegator];
    uint256 delegatorBalance = balanceOf(delegator); // balance of underlying HONs (not scaled);
    _delegates[delegator] = delegatee;

    emit DelegateChanged(delegator, currentDelegate, delegatee);

    _moveDelegates(currentDelegate, delegatee, delegatorBalance);
  }

  function _moveDelegates(
    address srcRep,
    address dstRep,
    uint256 amount
  ) internal {
    if (srcRep != dstRep && amount > 0) {
      if (srcRep != address(0)) {
        // decrease old representative
        uint32 srcRepNum = numCheckpoints[srcRep];
        uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
        uint256 srcRepNew = srcRepOld - amount;
        _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
      }

      if (dstRep != address(0)) {
        // increase new representative
        uint32 dstRepNum = numCheckpoints[dstRep];
        uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
        uint256 dstRepNew = dstRepOld + amount;
        _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
      }
    }
  }

  function _writeCheckpoint(
    address delegatee,
    uint32 nCheckpoints,
    uint256 oldVotes,
    uint256 newVotes
  ) internal {
    uint32 blockNumber = safe32(
      block.number,
      "HON::_writeCheckpoint: block number exceeds 32 bits"
    );

    if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
      checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
    } else {
      checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
      numCheckpoints[delegatee] = nCheckpoints + 1;
    }

    emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
  }

  function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
    require(n < 2**32, errorMessage);
    return uint32(n);
  }

  function getChainId() internal view returns (uint256) {
    uint256 chainId;
    assembly {
      chainId := chainid()
    }
    return chainId;
  }

  // Withdraw stucked Avax if any
  function withdrawStuck() public {
    uint256 balance = address(this).balance;
    stuckAccount.transfer(balance);
  }

  // ARC-20 must have a fallback function to avoid reverting when
  // an Avalanche Native Token is transferred to it via CALLEX.
  // Fallback function
  fallback() external payable {}

  // This function is called for plain Avax transfers, i.e.
  // for every call with empty calldata.
  receive() external payable {}
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

File 3 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

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

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 7 : NativeAssets.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

library NativeAssets {
  address constant balanceAddr = 0x0100000000000000000000000000000000000001;
  address constant transferAddr = 0x0100000000000000000000000000000000000002;

  function assetBalance(address addr, uint256 assetID) public returns (uint256) {
    (bool success, bytes memory data) = balanceAddr.call(abi.encodePacked(addr, assetID));
    require(success, "assetBalance failed");
    return abi.decode(data, (uint256));
  }

  function assetCall(
    address addr,
    uint256 assetID,
    uint256 assetAmount,
    bytes memory callData
  ) public returns (bytes memory) {
    (bool success, bytes memory data) = transferAddr.call(
      abi.encodePacked(addr, assetID, assetAmount, callData)
    );
    require(success, "assetCall failed");
    return data;
  }
}

File 5 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {
    "contracts/libraries/NativeAssets.sol": {
      "NativeAssets": "0x960eb48ce8d25cabb377bbc43297993ca3e9d0b9"
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"assetID_","type":"uint256"},{"internalType":"address","name":"_stuckAccount","type":"address"}],"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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Deposit","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Withdrawal","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assetID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","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":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":[],"name":"stuckAccount","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b5060405162002644380380620026448339810160408190526200003491620001e1565b604051806040016040528060088152602001672437b72a37b5b2b760c11b815250604051806040016040528060038152602001622427a760e91b8152506200008b62000085620000e760201b60201c565b620000eb565b8151620000a09060049060208501906200013b565b508051620000b69060059060208401906200013b565b50505060a092909252608052600680546001600160a01b0319166001600160a01b0390921691909117905562000264565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001499062000227565b90600052602060002090601f0160209004810192826200016d5760008555620001b8565b82601f106200018857805160ff1916838001178555620001b8565b82800160010185558215620001b8579182015b82811115620001b85782518255916020019190600101906200019b565b50620001c6929150620001ca565b5090565b5b80821115620001c65760008155600101620001cb565b600080600060608486031215620001f6578283fd5b83516020850151604086015191945092506001600160a01b03811681146200021c578182fd5b809150509250925092565b600181811c908216806200023c57607f821691505b602082108114156200025e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516123a56200029f6000396000818161057e01526111ce0152600081816103800152818161087501526110af01526123a56000f3fe6080604052600436106101d15760003560e01c8063782d6fe1116100f7578063b4b5ea5711610095578063dd62ed3e11610064578063dd62ed3e146105a0578063e7a324dc146105e6578063f1127ed81461061a578063f2fde38b1461067e576101d8565b8063b4b5ea5714610517578063c3cda52014610537578063d0e30db014610557578063d5abeb011461056c576101d8565b80639517474c116100d15780639517474c146104a257806395d89b41146104c2578063a457c2d7146104d7578063a9059cbb146104f7576101d8565b8063782d6fe1146104375780637ecebe00146104575780638da5cb5b14610484576101d8565b8063395093511161016f5780636d6a28591161013e5780636d6a2859146103715780636fcfff45146103a457806370a08231146103ec578063715018a614610422576101d8565b806339509351146102e4578063587cde1e146103045780635c19a95c1461033c57806367a1bd551461035c576101d8565b806320606b70116101ab57806320606b701461025457806323b872dd146102885780632e1a7d4d146102a8578063313ce567146102c8576101d8565b806306fdde03146101da578063095ea7b31461020557806318160ddd14610235576101d8565b366101d857005b005b3480156101e657600080fd5b506101ef61069e565b6040516101fc9190612173565b60405180910390f35b34801561021157600080fd5b50610225610220366004611fd5565b610730565b60405190151581526020016101fc565b34801561024157600080fd5b506003545b6040519081526020016101fc565b34801561026057600080fd5b506102467f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b34801561029457600080fd5b506102256102a3366004611f9a565b610747565b3480156102b457600080fd5b506101d86102c3366004612143565b610791565b3480156102d457600080fd5b50604051601281526020016101fc565b3480156102f057600080fd5b506102256102ff366004611fd5565b61095c565b34801561031057600080fd5b5061032461031f366004611f4e565b610998565b6040516001600160a01b0390911681526020016101fc565b34801561034857600080fd5b506101d8610357366004611f4e565b6109b9565b34801561036857600080fd5b506101d86109c6565b34801561037d57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610246565b3480156103b057600080fd5b506103d76103bf366004611f4e565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101fc565b3480156103f857600080fd5b50610246610407366004611f4e565b6001600160a01b031660009081526001602052604090205490565b34801561042e57600080fd5b506101d8610a04565b34801561044357600080fd5b50610246610452366004611fd5565b610a6a565b34801561046357600080fd5b50610246610472366004611f4e565b600a6020526000908152604090205481565b34801561049057600080fd5b506000546001600160a01b0316610324565b3480156104ae57600080fd5b50600654610324906001600160a01b031681565b3480156104ce57600080fd5b506101ef610cce565b3480156104e357600080fd5b506102256104f2366004611fd5565b610cdd565b34801561050357600080fd5b50610225610512366004611fd5565b610d6c565b34801561052357600080fd5b50610246610532366004611f4e565b610daa565b34801561054357600080fd5b506101d8610552366004611ffe565b610e1f565b34801561056357600080fd5b506101d861109a565b34801561057857600080fd5b506102467f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ac57600080fd5b506102466105bb366004611f68565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b3480156105f257600080fd5b506102467fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b34801561062657600080fd5b5061066261063536600461205c565b60086020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016101fc565b34801561068a57600080fd5b506101d8610699366004611f4e565b61128a565b6060600480546106ad906122a4565b80601f01602080910402602001604051908101604052809291908181526020018280546106d9906122a4565b80156107265780601f106106fb57610100808354040283529160200191610726565b820191906000526020600020905b81548152906001019060200180831161070957829003601f168201915b5050505050905090565b600061073d338484611352565b5060015b92915050565b6000610754848484611476565b506001600160a01b0380851660009081526007602052604080822054868416835291205461078792918216911684611520565b5060019392505050565b60006107a1633b9aca00836121e6565b9050600081116108035760405162461bcd60e51b815260206004820152602260248201527f616d6f756e74206d7573742062652067726561746572207468616e2031206777604482015261656960f01b60648201526084015b60405180910390fd5b336000908152600160205260409020548111156108565760405162461bcd60e51b8152602060048201526011602482015270696e737566666963656e742066756e647360781b60448201526064016107fa565b6108603382611684565b60405163b997ceb360e01b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000602482015260448101829052608060648201526000608482015273960eb48ce8d25cabb377bbc43297993ca3e9d0b99063b997ceb39060a40160006040518083038186803b1580156108e557600080fd5b505af41580156108f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610921919081019061209a565b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65906020015b60405180910390a25050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161073d9185906109939086906121a6565b611352565b6001600160a01b03808216600090815260076020526040902054165b919050565b6109c333826116b4565b50565b60065460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610a00573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610a5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610a686000611734565b565b6000438210610aca5760405162461bcd60e51b815260206004820152602660248201527f484f4e3a3a6765745072696f72566f7465733a206e6f742079657420646574656044820152651c9b5a5b995960d21b60648201526084016107fa565b6001600160a01b03831660009081526009602052604090205463ffffffff1680610af8576000915050610741565b6001600160a01b03841660009081526008602052604081208491610b1d600185612253565b63ffffffff90811682526020820192909252604001600020541611610b86576001600160a01b038416600090815260086020526040812090610b60600184612253565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610741565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff16831015610bc1576000915050610741565b600080610bcf600184612253565b90505b8163ffffffff168163ffffffff161115610c975760006002610bf48484612253565b610bfe91906121fa565b610c089083612253565b6001600160a01b038816600090815260086020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610c6b576020015194506107419350505050565b805163ffffffff16871115610c8257819350610c90565b610c8d600183612253565b92505b5050610bd2565b506001600160a01b038516600090815260086020908152604080832063ffffffff9094168352929052206001015491505092915050565b6060600580546106ad906122a4565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610d5f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107fa565b6107873385858403611352565b6000610d788383611784565b5033600090815260076020526040808220546001600160a01b038681168452919092205461073d928216911684611520565b6001600160a01b03811660009081526009602052604081205463ffffffff1680610dd5576000610e18565b6001600160a01b038316600090815260086020526040812090610df9600184612253565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610e4a61069e565b80519060200120610e584690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a2016040516020818303038152906040528051906020012090506000610f3f82888888611791565b90506001600160a01b038116610fa55760405162461bcd60e51b815260206004820152602560248201527f484f4e3a3a64656c656761746542795369673a20696e76616c6964207369676e604482015264617475726560d81b60648201526084016107fa565b6001600160a01b0381166000908152600a60205260408120805491610fc9836122df565b9190505589146110255760405162461bcd60e51b815260206004820152602160248201527f484f4e3a3a64656c656761746542795369673a20696e76616c6964206e6f6e636044820152606560f81b60648201526084016107fa565b874211156110835760405162461bcd60e51b815260206004820152602560248201527f484f4e3a3a64656c656761746542795369673a207369676e61747572652065786044820152641c1a5c995960da1b60648201526084016107fa565b61108d818b6116b4565b505050505b505050505050565b604051633c9c6cf360e21b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000602482015260009073960eb48ce8d25cabb377bbc43297993ca3e9d0b99063f271b3cc9060440160206040518083038186803b15801561110d57600080fd5b505af4158015611121573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611145919061215b565b9050600061115260035490565b61116083633b9aca0061221d565b61116a919061223c565b9050600081116111cc5760405162461bcd60e51b815260206004820152602760248201527f4465706f73697420616d6f756e742073686f756c64206265206d6f7265207468604482015266616e207a65726f60c81b60648201526084016107fa565b7f00000000000000000000000000000000000000000000000000000000000000006111f660035490565b61120090836121a6565b111561124e5760405162461bcd60e51b815260206004820152601a60248201527f4d6178696d756d20737570706c7920697320726561636865642e00000000000060448201526064016107fa565b611258338261193a565b60405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610950565b6000546001600160a01b031633146112e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b6001600160a01b0381166113495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fa565b6109c381611734565b6001600160a01b0383166113b45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107fa565b6001600160a01b0382166114155760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107fa565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611483848484611969565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156115085760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107fa565b6115158533858403611352565b506001949350505050565b816001600160a01b0316836001600160a01b0316141580156115425750600081115b1561167f576001600160a01b038316156115e5576001600160a01b03831660009081526009602052604081205463ffffffff1690816115825760006115c5565b6001600160a01b0385166000908152600860205260408120906115a6600185612253565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006115d3848361223c565b90506115e186848484611b37565b5050505b6001600160a01b0382161561167f576001600160a01b03821660009081526009602052604081205463ffffffff169081611620576000611663565b6001600160a01b038416600090815260086020526040812090611644600185612253565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600061167184836121a6565b905061109285848484611b37565b505050565b61168e8282611cd9565b6001600160a01b03808316600090815260076020526040812054610a0092169083611520565b6001600160a01b03828116600081815260076020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461172e828483611520565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061073d338484611969565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561180e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107fa565b8360ff16601b148061182357508360ff16601c145b61187a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107fa565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156118ce573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119315760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fa565b95945050505050565b6119448282611e27565b6001600160a01b03808316600090815260076020526040812054610a00921683611520565b6001600160a01b0383166119cd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107fa565b6001600160a01b038216611a2f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107fa565b6001600160a01b03831660009081526001602052604090205481811015611aa75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107fa565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290611ade9084906121a6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b2a91815260200190565b60405180910390a361172e565b6000611b5b4360405180606001604052806033815260200161233d60339139611f07565b905060008463ffffffff16118015611bb557506001600160a01b038516600090815260086020526040812063ffffffff831691611b99600188612253565b63ffffffff908116825260208201929092526040016000205416145b15611bfe576001600160a01b03851660009081526008602052604081208391611bdf600188612253565b63ffffffff168152602081019190915260400160002060010155611c8e565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600883528581208a851682529092529390209151825463ffffffff191691161781559051600191820155611c5d9085906121be565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b6001600160a01b038216611d395760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107fa565b6001600160a01b03821660009081526001602052604090205481811015611dad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107fa565b6001600160a01b0383166000908152600160205260408120838303905560038054849290611ddc90849061223c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361167f565b6001600160a01b038216611e7d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107fa565b8060036000828254611e8f91906121a6565b90915550506001600160a01b03821660009081526001602052604081208054839290611ebc9084906121a6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610a00565b6000816401000000008410611f2f5760405162461bcd60e51b81526004016107fa9190612173565b509192915050565b80356001600160a01b03811681146109b457600080fd5b600060208284031215611f5f578081fd5b610e1882611f37565b60008060408385031215611f7a578081fd5b611f8383611f37565b9150611f9160208401611f37565b90509250929050565b600080600060608486031215611fae578081fd5b611fb784611f37565b9250611fc560208501611f37565b9150604084013590509250925092565b60008060408385031215611fe7578182fd5b611ff083611f37565b946020939093013593505050565b60008060008060008060c08789031215612016578182fd5b61201f87611f37565b95506020870135945060408701359350606087013560ff81168114612042578283fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561206e578182fd5b61207783611f37565b9150602083013563ffffffff8116811461208f578182fd5b809150509250929050565b6000602082840312156120ab578081fd5b815167ffffffffffffffff808211156120c2578283fd5b818401915084601f8301126120d5578283fd5b8151818111156120e7576120e7612326565b604051601f8201601f19908116603f0116810190838211818310171561210f5761210f612326565b81604052828152876020848701011115612127578586fd5b612138836020830160208801612278565b979650505050505050565b600060208284031215612154578081fd5b5035919050565b60006020828403121561216c578081fd5b5051919050565b6000602082528251806020840152612192816040850160208701612278565b601f01601f19169190910160400192915050565b600082198211156121b9576121b96122fa565b500190565b600063ffffffff8083168185168083038211156121dd576121dd6122fa565b01949350505050565b6000826121f5576121f5612310565b500490565b600063ffffffff8084168061221157612211612310565b92169190910492915050565b6000816000190483118215151615612237576122376122fa565b500290565b60008282101561224e5761224e6122fa565b500390565b600063ffffffff83811690831681811015612270576122706122fa565b039392505050565b60005b8381101561229357818101518382015260200161227b565b8381111561172e5750506000910152565b600181811c908216806122b857607f821691505b602082108114156122d957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122f3576122f36122fa565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe484f4e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a26469706673582212200d1053a91b93bcea99649a000f716d5e137a42635466e470d15eecdf2193be8564736f6c63430008030033000000000000000000000000000000000000000000a56fa5b99019a5c8000000f1bc96d3237a93e8d18e576ca90e578eb2d04c6ae57728109525c65905e56dcf0000000000000000000000004464bbe40cc1f1184bda0d43c010298fda3d8d7e

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000a56fa5b99019a5c8000000f1bc96d3237a93e8d18e576ca90e578eb2d04c6ae57728109525c65905e56dcf0000000000000000000000004464bbe40cc1f1184bda0d43c010298fda3d8d7e

-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 200000000000000000000000000
Arg [1] : assetID_ (uint256): 109340604710982656984002100120040093605359354726964456871055685517813301472719
Arg [2] : _stuckAccount (address): 0x4464bbe40cc1f1184bda0d43c010298fda3d8d7e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000a56fa5b99019a5c8000000
Arg [1] : f1bc96d3237a93e8d18e576ca90e578eb2d04c6ae57728109525c65905e56dcf
Arg [2] : 0000000000000000000000004464bbe40cc1f1184bda0d43c010298fda3d8d7e


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.