Contract 0xb7cd6c8c4600aed9985d2c0eb174e0bee56e8854 12

 

Contract Overview

OnyxDAO: ONYX Token
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xff26ad6a1551cf6de0dd201dcffa8a08ecc481e72d3f09cf828245e9bfd81f37Approve1332472252023-09-21 16:55:131 day 15 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000045080.1
0x3d324775fe3e797a2c78f8468292bf345542baf37cf3f8fd80dbab1b0395a652Approve1332471742023-09-21 16:55:001 day 15 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000045080.1
0xbc2f3030b32d372c5b2cb38f348b4aa1b48b6853a75acd2bf4812e560103d6c5Approve1332471282023-09-21 16:54:481 day 15 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000045080.1
0xfc6ba1aa8e85a2c451202ce4f456886e2d144aea6b6e0d90ceb40d66864ae106Approve1332471092023-09-21 16:54:431 day 15 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000044880.1
0xdfbaa5439d6fea91c59a34c206d51cb7c99413dc2221e226a9b310546ad1278aApprove1332460182023-09-21 16:50:101 day 15 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000073520.1
0x5b7ee5c44990f752f1e8ec85c279d6dd05875d6dc98c269e36aa27f5f0666590Approve1332459912023-09-21 16:50:031 day 15 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000073520.1
0x45cc0834200122c4428ffb77b7e80222cada5b421fb0d596827f2d4e0f504a45Approve1332429262023-09-21 16:37:051 day 16 hrs ago0xc28f5e60384b652e12b6d93772e8ed39d292ba18 IN  OnyxDAO: ONYX Token0 ETH0.000065890.1
0x01472067faf04d90072dd45a2c14f0d9f4fc5f5d77dd2425f5dd53909d645cacApprove1329855242023-09-20 22:18:232 days 10 hrs ago0x83a76d3d563a57b3ee7689232c3789e64ba71772 IN  OnyxDAO: ONYX Token0 ETH0.00001859 0.1
0x61d2936e860eec21d95019a2f1296d60fb45faff8b289f99df9f2a62352034ceApprove1329841272023-09-20 22:12:212 days 10 hrs ago0x83a76d3d563a57b3ee7689232c3789e64ba71772 IN  OnyxDAO: ONYX Token0 ETH0.00001755 0.1
0xcd34ef0b4abac85a184731eba82681267aaf80fae350f80524f958d8b4c2b7c8Approve1329840962023-09-20 22:12:122 days 10 hrs ago0x83a76d3d563a57b3ee7689232c3789e64ba71772 IN  OnyxDAO: ONYX Token0 ETH0.00001764 0.1
0xcb57c1a2b4ce792a5b6bba350d3b4d8370c95c88e5b67155a69baee6476af493Approve1326686732023-09-19 23:11:153 days 9 hrs ago0x1c563ce15828bdf85b61455d10b761e9f498e62f IN  OnyxDAO: ONYX Token0 ETH0.0000164 0.1
0x5fc11c93802dfcbb44f60f1fb35451bdf1895ff5fbceb38d5d82629a0f66e134Approve1326686482023-09-19 23:11:073 days 9 hrs ago0x1c563ce15828bdf85b61455d10b761e9f498e62f IN  OnyxDAO: ONYX Token0 ETH0.0000164 0.1
0xab4d68827d47ac9240beaf92d9ab8b3b2cbd9b7ff3d78a8c845517d3e5528f60Approve1326686032023-09-19 23:10:533 days 9 hrs ago0x1c563ce15828bdf85b61455d10b761e9f498e62f IN  OnyxDAO: ONYX Token0 ETH0.0000164 0.1
0x8fd4e9bd561ea6fe0c94d76836998223a9c2297a58b80e420548f6729c639579Approve1326341502023-09-19 20:21:443 days 12 hrs ago0x2b185c762f6fb49a07116ec06b238b58fe2bec53 IN  OnyxDAO: ONYX Token0 ETH0.000023290.1
0xd43ff9df024cac1e7513b128b976ff36e9392cef28206fc8f135b4fcc2465222Approve1324556902023-09-19 7:25:564 days 1 hr ago0x62f7576cfcfcbe7cba9576e237db9f88158215d3 IN  OnyxDAO: ONYX Token0 ETH0.00001356 0.1
0xe0cd1b75760fc79260e45913d398b2a60c8ee180ed011206dd1c6360e041e613Approve1324416752023-09-19 6:24:214 days 2 hrs ago0xdf7106938c64d58583ca7a5b85c1c3fa8108dce0 IN  OnyxDAO: ONYX Token0 ETH0.00001442 0.1
0xb9df703d80926b85d65ae3dd85b159fddcc1004843115f3b0a0146be7d97f0bfApprove1322651362023-09-18 15:58:534 days 16 hrs ago0x310e989c73b58591bb61596972b5019354f8b668 IN  OnyxDAO: ONYX Token0 ETH0.00003267 0.1
0x2792d6477d09127b0bdeda606e7f9eb647e1540716719d5df24f51dbbbf4f827Approve1316898102023-09-16 17:18:506 days 15 hrs ago0x310e989c73b58591bb61596972b5019354f8b668 IN  OnyxDAO: ONYX Token0 ETH0.00001843 0.1
0xfde09547b9d29c34e44a0bada2beb3dcd4b8029fa21ffd9e930c033d5eb574c3Approve1295835302023-09-09 18:50:1513 days 13 hrs ago0x310e989c73b58591bb61596972b5019354f8b668 IN  OnyxDAO: ONYX Token0 ETH0.00002607 0.1
0x40fd677fab9ad46e53a3cda6c2402e65032c03626eec7c9a9b5b05e7d60f02d9Approve1288339442023-09-07 9:20:1915 days 23 hrs ago0x3a11c76440655d4ddff16a4adabba15e98e89786 IN  OnyxDAO: ONYX Token0 ETH0.000032160.1
0x1311b1ed69f76c89fd7e05fb816dd573dc79be060ffc1529ef18ed330e7ee40aApprove1288339232023-09-07 9:20:1415 days 23 hrs ago0x3a11c76440655d4ddff16a4adabba15e98e89786 IN  OnyxDAO: ONYX Token0 ETH0.000032160.1
0x940080a6bc5ed0c2fd1464bfcfc5d6ccf0044b44468382f303228233648b7339Approve1288339022023-09-07 9:20:0815 days 23 hrs ago0x3a11c76440655d4ddff16a4adabba15e98e89786 IN  OnyxDAO: ONYX Token0 ETH0.000032160.1
0x205a3392990f7fb8f8b16b7e0c37ea823931f04adb486ab1275e5d40974ce624Approve1288337482023-09-07 9:19:2915 days 23 hrs ago0x3a11c76440655d4ddff16a4adabba15e98e89786 IN  OnyxDAO: ONYX Token0 ETH0.000032160.1
0x9f375aed34143774bcdab2346131a28e5d2a2f3315409a01c421240dbfba9688Approve1288222932023-09-07 8:30:4916 days 14 mins ago0x53a8bf04b0b952c62b3b969753212340d3a98e7b IN  OnyxDAO: ONYX Token0 ETH0.00002944 0.1
0x0873c3783514e04e7f16d23eb06b10f02444f735a15da534bcab2d3974379c02Approve1282236192023-09-05 10:24:4017 days 22 hrs ago0xd8b2b7f42873f111348c835563e26865474337db IN  OnyxDAO: ONYX Token0 ETH0.0000267 0.1
[ Download CSV Export 

OVERVIEW

Onyx DAO is a DeFi protocol that goes against the grain by using experimental tokenomics to prioritize $ONYX holders. Our goal is to build a project that empowers the community and challenges the status quo in the DeFi space.

Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xe4d793e3f93556facdb6edc9a22666e6de67150853c5e1f10b6be68696ba9f6b712302692023-03-18 22:28:50188 days 10 hrs ago OnyxDAO: Auto Vault OnyxDAO: ONYX Token0 ETH
0xe4d793e3f93556facdb6edc9a22666e6de67150853c5e1f10b6be68696ba9f6b712302692023-03-18 22:28:50188 days 10 hrs ago OnyxDAO: Auto Vault OnyxDAO: ONYX Token0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OnyxToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : OnyxToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

/*

Visit Us At https://www.onyxdao.finance/

 .----------------.  .-----------------. .----------------.  .----------------.   .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. | | .--------------. || .--------------. || .--------------. |
| |     ____     | || | ____  _____  | || |  ____  ____  | || |  ____  ____  | | | |  ________    | || |      __      | || |     ____     | |
| |   .'    `.   | || ||_   \|_   _| | || | |_  _||_  _| | || | |_  _||_  _| | | | | |_   ___ `.  | || |     /  \     | || |   .'    `.   | |
| |  /  .--.  \  | || |  |   \ | |   | || |   \ \  / /   | || |   \ \  / /   | | | |   | |   `. \ | || |    / /\ \    | || |  /  .--.  \  | |
| |  | |    | |  | || |  | |\ \| |   | || |    \ \/ /    | || |    > `' <    | | | |   | |    | | | || |   / ____ \   | || |  | |    | |  | |
| |  \  `--'  /  | || | _| |_\   |_  | || |    _|  |_    | || |  _/ /'`\ \_  | | | |  _| |___.' / | || | _/ /    \ \_ | || |  \  `--'  /  | |
| |   `.____.'   | || ||_____|\____| | || |   |______|   | || | |____||____| | | | | |________.'  | || ||____|  |____|| || |   `.____.'   | |
| |              | || |              | || |              | || |              | | | |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' | | '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------'   '----------------'  '----------------'  '----------------'                                                                                       

*/

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

contract OnyxToken is ERC20, Ownable {

    uint256 immutable private _cap;

    constructor(uint256 initialSupply, uint256 cap_) ERC20("OnyxDAO Token", "ONYX") {
        require(cap_ > 0, "ERC20Capped: cap is 0");
        _mint(msg.sender, initialSupply);
        _cap = cap_;
    }

    /**
     * @dev Returns the cap on the token's total supply.
     */
    function cap() public view virtual returns (uint256) {
        return _cap;
    }

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        require(ERC20.totalSupply() + _amount <= cap(), "ERC20Capped: cap exceeded");
        _mint(_to, _amount);
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 _amount) public onlyOwner {
        require(ERC20.totalSupply() + _amount <= cap(), "ERC20Capped: cap exceeded");
        _mint(_msgSender(), _amount);
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) override internal {
        _moveDelegates(_delegates[from], _delegates[to], amount);
     }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

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

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "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 tokens (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, "_writeCheckpoint: block number exceeds 32 bits");

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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

}

File 2 of 6 : 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 3 of 6 : 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);
}

File 4 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

File 5 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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.openzeppelin.com/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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 6 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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 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);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"uint256","name":"cap_","type":"uint256"}],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","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":[{"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":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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"}]

60a06040523480156200001157600080fd5b50604051620021cc380380620021cc833981016040819052620000349162000686565b604080518082018252600d81526c27b73cbc2220a7902a37b5b2b760991b60208083019182528351808501909452600484526309e9cb2b60e31b9084015281519192916200008591600391620005e0565b5080516200009b906004906020840190620005e0565b505050620000b8620000b26200012460201b60201c565b62000128565b600081116200010e5760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a206361702069732030000000000000000000000060448201526064015b60405180910390fd5b6200011a33836200017a565b60805250620007de565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001d25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000105565b620001e0600083836200024b565b8060026000828254620001f4919062000703565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038084166000908152600660205260408082205485841683529120546200027f9291821691168362000284565b505050565b816001600160a01b0316836001600160a01b031614158015620002a75750600081115b156200027f576001600160a01b0383161562000354576001600160a01b03831660009081526008602052604081205463ffffffff169081620002eb57600062000330565b6001600160a01b0385166000908152600760205260408120906200031160018562000763565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600062000340848362000749565b90506200035086848484620003ff565b5050505b6001600160a01b038216156200027f576001600160a01b03821660009081526008602052604081205463ffffffff16908162000392576000620003d7565b6001600160a01b038416600090815260076020526040812090620003b860018562000763565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000620003e7848362000703565b9050620003f785848484620003ff565b505050505050565b600062000426436040518060600160405280602e81526020016200219e602e9139620005ad565b905060008463ffffffff161180156200048357506001600160a01b038516600090815260076020526040812063ffffffff8316916200046760018862000763565b63ffffffff908116825260208201929092526040016000205416145b15620004d0576001600160a01b03851660009081526007602052604081208391620004b060018862000763565b63ffffffff16815260208101919091526040016000206001015562000562565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600783528581208a851682529092529390209151825463ffffffff191691161781559051600191820155620005319085906200071e565b6001600160a01b0386166000908152600860205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b6000816401000000008410620005d85760405162461bcd60e51b8152600401620001059190620006ab565b509192915050565b828054620005ee906200078b565b90600052602060002090601f0160209004810192826200061257600085556200065d565b82601f106200062d57805160ff19168380011785556200065d565b828001600101855582156200065d579182015b828111156200065d57825182559160200191906001019062000640565b506200066b9291506200066f565b5090565b5b808211156200066b576000815560010162000670565b600080604083850312156200069a57600080fd5b505080516020909101519092909150565b600060208083528351808285015260005b81811015620006da57858101830151858201604001528201620006bc565b81811115620006ed576000604083870101525b50601f01601f1916929092016040019392505050565b60008219821115620007195762000719620007c8565b500190565b600063ffffffff808316818516808303821115620007405762000740620007c8565b01949350505050565b6000828210156200075e576200075e620007c8565b500390565b600063ffffffff83811690831681811015620007835762000783620007c8565b039392505050565b600181811c90821680620007a057607f821691505b60208210811415620007c257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b608051611996620008086000396000818161024c015281816105a601526108cf01526119966000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063715018a6116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e14610406578063e7a324dc14610419578063f1127ed814610440578063f2fde38b1461049757600080fd5b8063a9059cbb146103cd578063b4b5ea57146103e0578063c3cda520146103f357600080fd5b80638da5cb5b116100d35780638da5cb5b1461038e57806395d89b411461039f578063a0712d68146103a7578063a457c2d7146103ba57600080fd5b8063715018a614610353578063782d6fe11461035b5780637ecebe001461036e57600080fd5b8063355274ea11610166578063587cde1e11610140578063587cde1e146102985780635c19a95c146102dc5780636fcfff45146102ef57806370a082311461032a57600080fd5b8063355274ea1461024a578063395093511461027057806340c10f191461028357600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806318160ddd146101ef57806320606b701461020157806323b872dd14610228578063313ce5671461023b575b600080fd5b6101b66104aa565b6040516101c391906117c4565b60405180910390f35b6101df6101da3660046116e1565b61053c565b60405190151581526020016101c3565b6002545b6040519081526020016101c3565b6101f37f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6101df6102363660046116a5565b610556565b604051601281526020016101c3565b7f00000000000000000000000000000000000000000000000000000000000000006101f3565b6101df61027e3660046116e1565b61057a565b6102966102913660046116e1565b61059c565b005b6102c46102a6366004611657565b6001600160a01b039081166000908152600660205260409020541690565b6040516001600160a01b0390911681526020016101c3565b6102966102ea366004611657565b610636565b6103156102fd366004611657565b60086020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101c3565b6101f3610338366004611657565b6001600160a01b031660009081526020819052604090205490565b610296610643565b6101f36103693660046116e1565b610657565b6101f361037c366004611657565b60096020526000908152604090205481565b6005546001600160a01b03166102c4565b6101b66108b6565b6102966103b53660046117ab565b6108c5565b6101df6103c83660046116e1565b610956565b6101df6103db3660046116e1565b6109d1565b6101f36103ee366004611657565b6109df565b61029661040136600461170b565b610a54565b6101f3610414366004611672565b610cf9565b6101f37fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b61047b61044e36600461176b565b60076020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016101c3565b6102966104a5366004611657565b610d24565b6060600380546104b9906118c6565b80601f01602080910402602001604051908101604052809291908181526020018280546104e5906118c6565b80156105325780601f1061050757610100808354040283529160200191610532565b820191906000526020600020905b81548152906001019060200180831161051557829003601f168201915b5050505050905090565b60003361054a818585610d9a565b60019150505b92915050565b600033610564858285610ebe565b61056f858585610f38565b506001949350505050565b60003361054a81858561058d8383610cf9565b6105979190611819565b610d9a565b6105a46110e7565b7f0000000000000000000000000000000000000000000000000000000000000000816105cf60025490565b6105d99190611819565b11156106285760405162461bcd60e51b8152602060048201526019602482015278115490cc8c10d85c1c19590e8818d85c08195e18d959591959603a1b60448201526064015b60405180910390fd5b6106328282611141565b5050565b610640338261120c565b50565b61064b6110e7565b6106556000611285565b565b60004382106106b25760405162461bcd60e51b815260206004820152602160248201527f6765745072696f72566f7465733a206e6f74207965742064657465726d696e656044820152601960fa1b606482015260840161061f565b6001600160a01b03831660009081526008602052604090205463ffffffff16806106e0576000915050610550565b6001600160a01b038416600090815260076020526040812084916107056001856118a1565b63ffffffff9081168252602082019290925260400160002054161161076e576001600160a01b0384166000908152600760205260408120906107486001846118a1565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610550565b6001600160a01b038416600090815260076020908152604080832083805290915290205463ffffffff168310156107a9576000915050610550565b6000806107b76001846118a1565b90505b8163ffffffff168163ffffffff16111561087f57600060026107dc84846118a1565b6107e69190611859565b6107f090836118a1565b6001600160a01b038816600090815260076020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610853576020015194506105509350505050565b805163ffffffff1687111561086a57819350610878565b6108756001836118a1565b92505b50506107ba565b506001600160a01b038516600090815260076020908152604080832063ffffffff9094168352929052206001015491505092915050565b6060600480546104b9906118c6565b6108cd6110e7565b7f0000000000000000000000000000000000000000000000000000000000000000816108f860025490565b6109029190611819565b111561094c5760405162461bcd60e51b8152602060048201526019602482015278115490cc8c10d85c1c19590e8818d85c08195e18d959591959603a1b604482015260640161061f565b6106403382611141565b600033816109648286610cf9565b9050838110156109c45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161061f565b61056f8286868403610d9a565b60003361054a818585610f38565b6001600160a01b03811660009081526008602052604081205463ffffffff1680610a0a576000610a4d565b6001600160a01b038316600090815260076020526040812090610a2e6001846118a1565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610a7f6104aa565b80519060200120610a8d4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610bb9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c1c5760405162461bcd60e51b815260206004820181905260248201527f64656c656761746542795369673a20696e76616c6964207369676e6174757265604482015260640161061f565b6001600160a01b0381166000908152600960205260408120805491610c4083611901565b919050558914610c925760405162461bcd60e51b815260206004820152601c60248201527f64656c656761746542795369673a20696e76616c6964206e6f6e636500000000604482015260640161061f565b87421115610ce25760405162461bcd60e51b815260206004820181905260248201527f64656c656761746542795369673a207369676e61747572652065787069726564604482015260640161061f565b610cec818b61120c565b505050505b505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610d2c6110e7565b6001600160a01b038116610d915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161061f565b61064081611285565b6001600160a01b038316610dfc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161061f565b6001600160a01b038216610e5d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161061f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610eca8484610cf9565b90506000198114610f325781811015610f255760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161061f565b610f328484848403610d9a565b50505050565b6001600160a01b038316610f9c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161061f565b6001600160a01b038216610ffe5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161061f565b6110098383836112d7565b6001600160a01b038316600090815260208190526040902054818110156110815760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161061f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f32565b6005546001600160a01b031633146106555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161061f565b6001600160a01b0382166111975760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161061f565b6111a3600083836112d7565b80600260008282546111b59190611819565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610f3282848361130e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038084166000908152600660205260408082205485841683529120546113099291821691168361130e565b505050565b816001600160a01b0316836001600160a01b0316141580156113305750600081115b15611309576001600160a01b038316156113d3576001600160a01b03831660009081526008602052604081205463ffffffff1690816113705760006113b3565b6001600160a01b0385166000908152600760205260408120906113946001856118a1565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006113c1848361188a565b90506113cf86848484611469565b5050505b6001600160a01b03821615611309576001600160a01b03821660009081526008602052604081205463ffffffff16908161140e576000611451565b6001600160a01b0384166000908152600760205260408120906114326001856118a1565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600061145f8483611819565b9050610cf1858484845b600061148d436040518060600160405280602e8152602001611933602e913961160b565b905060008463ffffffff161180156114e757506001600160a01b038516600090815260076020526040812063ffffffff8316916114cb6001886118a1565b63ffffffff908116825260208201929092526040016000205416145b15611530576001600160a01b038516600090815260076020526040812083916115116001886118a1565b63ffffffff1681526020810191909152604001600020600101556115c0565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600783528581208a851682529092529390209151825463ffffffff19169116178155905160019182015561158f908590611831565b6001600160a01b0386166000908152600860205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106116335760405162461bcd60e51b815260040161061f91906117c4565b509192915050565b80356001600160a01b038116811461165257600080fd5b919050565b60006020828403121561166957600080fd5b610a4d8261163b565b6000806040838503121561168557600080fd5b61168e8361163b565b915061169c6020840161163b565b90509250929050565b6000806000606084860312156116ba57600080fd5b6116c38461163b565b92506116d16020850161163b565b9150604084013590509250925092565b600080604083850312156116f457600080fd5b6116fd8361163b565b946020939093013593505050565b60008060008060008060c0878903121561172457600080fd5b61172d8761163b565b95506020870135945060408701359350606087013560ff8116811461175157600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561177e57600080fd5b6117878361163b565b9150602083013563ffffffff811681146117a057600080fd5b809150509250929050565b6000602082840312156117bd57600080fd5b5035919050565b600060208083528351808285015260005b818110156117f1578581018301518582016040015282016117d5565b81811115611803576000604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561182c5761182c61191c565b500190565b600063ffffffff8083168185168083038211156118505761185061191c565b01949350505050565b600063ffffffff8084168061187e57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60008282101561189c5761189c61191c565b500390565b600063ffffffff838116908316818110156118be576118be61191c565b039392505050565b600181811c908216806118da57607f821691505b602082108114156118fb57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119155761191561191c565b5060010190565b634e487b7160e01b600052601160045260246000fdfe5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a2646970667358221220fa2c656e964d844ee702a75dc0812caa8205c047621660ee4dbaf3b07feda38964736f6c634300080700335f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473000000000000000000000000000000000000000000000878678326eac9000000000000000000000000000000000000000000000000014c75dedbb77f51400000

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

000000000000000000000000000000000000000000000878678326eac9000000000000000000000000000000000000000000000000014c75dedbb77f51400000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 40000000000000000000000
Arg [1] : cap_ (uint256): 1570000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000878678326eac9000000
Arg [1] : 000000000000000000000000000000000000000000014c75dedbb77f51400000


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.