Mumbai Testnet

Token

Sikka Stablecoin (SIKKA)
ERC-20

Overview

Max Total Supply

0 SIKKA

Holders

65,255

Market

Price

$0.00 @ 0.000000 MATIC

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 SIKKA
0x71f950d4ccaa4685e05ce53f7d1d58b4c7c8a8f7
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x58D5E3fe...8E2FB2b4c
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Sikka

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : sikka.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

/// sikka.sol -- sikka Stablecoin ERC-20 Token

// Copyright (C) 2017, 2018, 2019 dbrock, rain, mrchico

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.

pragma solidity ^0.8.10;

import "./interfaces/SikkaLike.sol";

// FIXME: This contract was altered compared to the production version.
// It doesn't use LibNote anymore.
// New deployments of this contract will need to include custom events (TO DO).

contract Sikka is SikkaLike {
    // --- Auth ---
    mapping (address => uint) public wards;
    function rely(address guy) external auth { wards[guy] = 1; }
    function deny(address guy) external auth { wards[guy] = 0; }
    modifier auth {
        require(wards[msg.sender] == 1, "Sikka/not-authorized");
        _;
    }

    // --- ERC20 Data ---
    string  public constant name     = "Sikka Stablecoin";
    string  public symbol;
    string  public constant version  = "1";
    uint8   public constant decimals = 18;
    uint256 public totalSupply;

    mapping (address => uint)                      public balanceOf;
    mapping (address => mapping (address => uint)) public allowance;
    mapping (address => uint)                      public nonces;

    // --- Math ---
    function add(uint x, uint y) internal pure returns (uint z) {
        unchecked {
            require((z = x + y) >= x, "Sikka/add-overflow");
        }
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        unchecked {
            require((z = x - y) <= x, "Sikka/sub-overflow");
        }
    }

    // --- EIP712 niceties ---
    bytes32 public DOMAIN_SEPARATOR;
    // bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowed)");
    bytes32 public constant PERMIT_TYPEHASH = 0xea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb;

    constructor(uint256 chainId_, string memory symbol_) {
        wards[msg.sender] = 1;
        DOMAIN_SEPARATOR = keccak256(abi.encode(
            keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
            keccak256(bytes(name)),
            keccak256(bytes(version)),
            chainId_,
            address(this)
        ));
        symbol = symbol_;
    }

    // --- Token ---
    function transfer(address dst, uint wad) external returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }
    function transferFrom(address src, address dst, uint wad)
        public returns (bool)
    {
        require(balanceOf[src] >= wad, "Sikka/insufficient-balance");
        if (src != msg.sender && allowance[src][msg.sender] != type(uint256).max) {
            require(allowance[src][msg.sender] >= wad, "Sikka/insufficient-allowance");
            allowance[src][msg.sender] = sub(allowance[src][msg.sender], wad);
        }
        balanceOf[src] = sub(balanceOf[src], wad);
        balanceOf[dst] = add(balanceOf[dst], wad);
        emit Transfer(src, dst, wad);
        return true;
    }
    function mint(address usr, uint wad) external auth {
        balanceOf[usr] = add(balanceOf[usr], wad);
        totalSupply    = add(totalSupply, wad);
        emit Transfer(address(0), usr, wad);
    }
    function burn(address usr, uint wad) external {
        require(balanceOf[usr] >= wad, "Sikka/insufficient-balance");
        if (usr != msg.sender && allowance[usr][msg.sender] != type(uint256).max) {
            require(allowance[usr][msg.sender] >= wad, "Sikka/insufficient-allowance");
            allowance[usr][msg.sender] = sub(allowance[usr][msg.sender], wad);
        }
        balanceOf[usr] = sub(balanceOf[usr], wad);
        totalSupply    = sub(totalSupply, wad);
        emit Transfer(usr, address(0), wad);
    }
    function approve(address usr, uint wad) external returns (bool) {
        allowance[msg.sender][usr] = wad;
        emit Approval(msg.sender, usr, wad);
        return true;
    }

    // --- Alias ---
    function push(address usr, uint wad) external {
        transferFrom(msg.sender, usr, wad);
    }
    function pull(address usr, uint wad) external {
        transferFrom(usr, msg.sender, wad);
    }
    function move(address src, address dst, uint wad) external {
        transferFrom(src, dst, wad);
    }

    // --- Approve by signature ---
    function permit(address holder, address spender, uint256 nonce, uint256 expiry,
                    bool allowed, uint8 v, bytes32 r, bytes32 s) external
    {
        bytes32 digest =
            keccak256(abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH,
                                     holder,
                                     spender,
                                     nonce,
                                     expiry,
                                     allowed))
        ));

        require(holder != address(0), "Sikka/invalid-address-0");
        require(holder == ecrecover(digest, v, r, s), "Sikka/invalid-permit");
        require(expiry == 0 || block.timestamp <= expiry, "Sikka/permit-expired");
        require(nonce == nonces[holder]++, "Sikka/invalid-nonce");
        uint wad = allowed ? type(uint256).max : 0;
        allowance[holder][spender] = wad;
        emit Approval(holder, spender, wad);
    }
}

File 2 of 5 : SikkaLike.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";

interface SikkaLike is IERC20Upgradeable {
}

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

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20Upgradeable {
    using AddressUpgradeable for address;

    function safeTransfer(
        IERC20Upgradeable token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20Upgradeable token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 5 : IERC20Upgradeable.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 IERC20Upgradeable {
    /**
     * @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 5 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"chainId_","type":"uint256"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"move","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":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bool","name":"allowed","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"pull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"push","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"rely","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":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162001310380380620013108339810160408190526200003491620001fd565b336000908152602081815260409182902060019081905582518084018452601081526f29b4b5b5b09029ba30b13632b1b7b4b760811b9083015282518084018452908152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527fd38254b2e9490ae50467f7c058d952d3c4a9172f6aeac8275fa9432a77593cee918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c00160408051601f198184030181529190528051602091820120600655815162000138916001919084019062000141565b50505062000324565b8280546200014f90620002e7565b90600052602060002090601f016020900481019282620001735760008555620001be565b82601f106200018e57805160ff1916838001178555620001be565b82800160010185558215620001be579182015b82811115620001be578251825591602001919060010190620001a1565b50620001cc929150620001d0565b5090565b5b80821115620001cc5760008155600101620001d1565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200021157600080fd5b8251602080850151919350906001600160401b03808211156200023357600080fd5b818601915086601f8301126200024857600080fd5b8151818111156200025d576200025d620001e7565b604051601f8201601f19908116603f01168101908382118183101715620002885762000288620001e7565b816040528281528986848701011115620002a157600080fd5b600093505b82841015620002c55784840186015181850187015292850192620002a6565b82841115620002d75760008684830101525b8096505050505050509250929050565b600181811c90821680620002fc57607f821691505b602082108114156200031e57634e487b7160e01b600052602260045260246000fd5b50919050565b610fdc80620003346000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80637ecebe00116100b8578063a9059cbb1161007c578063a9059cbb146102ec578063b753a98c146102ff578063bb35783b14610312578063bf353dbb14610325578063dd62ed3e14610345578063f2d5d56b1461037057600080fd5b80637ecebe001461028b5780638fcbaf0c146102ab57806395d89b41146102be5780639c52a7f1146102c65780639dc29fac146102d957600080fd5b8063313ce5671161010a578063313ce567146102005780633644e5151461021a57806340c10f191461022357806354fd4d501461023857806365fae35e1461025857806370a082311461026b57600080fd5b806306fdde0314610147578063095ea7b31461018c57806318160ddd146101af57806323b872dd146101c657806330adf81f146101d9575b600080fd5b6101766040518060400160405280601081526020016f29b4b5b5b09029ba30b13632b1b7b4b760811b81525081565b6040516101839190610cd7565b60405180910390f35b61019f61019a366004610d48565b610383565b6040519015158152602001610183565b6101b860025481565b604051908152602001610183565b61019f6101d4366004610d72565b6103f0565b6101b87fea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb81565b610208601281565b60405160ff9091168152602001610183565b6101b860065481565b610236610231366004610d48565b6105b0565b005b610176604051806040016040528060018152602001603160f81b81525081565b610236610266366004610dae565b61065f565b6101b8610279366004610dae565b60036020526000908152604090205481565b6101b8610299366004610dae565b60056020526000908152604090205481565b6102366102b9366004610dc9565b6106ab565b6101766109a7565b6102366102d4366004610dae565b610a35565b6102366102e7366004610d48565b610a7e565b61019f6102fa366004610d48565b610c07565b61023661030d366004610d48565b610c1b565b610236610320366004610d72565b610c2b565b6101b8610333366004610dae565b60006020819052908152604090205481565b6101b8610353366004610e53565b600460209081526000928352604080842090915290825290205481565b61023661037e366004610d48565b610c3c565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103de9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152600360205260408120548211156104315760405162461bcd60e51b815260040161042890610e86565b60405180910390fd5b6001600160a01b038416331480159061046f57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b1561050a576001600160a01b03841660009081526004602090815260408083203384529091529020548211156104b75760405162461bcd60e51b815260040161042890610ebd565b6001600160a01b03841660009081526004602090815260408083203384529091529020546104e59083610c47565b6001600160a01b03851660009081526004602090815260408083203384529091529020555b6001600160a01b03841660009081526003602052604090205461052d9083610c47565b6001600160a01b03808616600090815260036020526040808220939093559085168152205461055c9083610c8f565b6001600160a01b038085166000818152600360205260409081902093909355915190861690600080516020610f878339815191529061059e9086815260200190565b60405180910390a35060019392505050565b336000908152602081905260409020546001146105df5760405162461bcd60e51b815260040161042890610ef4565b6001600160a01b0382166000908152600360205260409020546106029082610c8f565b6001600160a01b0383166000908152600360205260409020556002546106289082610c8f565b6002556040518181526001600160a01b03831690600090600080516020610f87833981519152906020015b60405180910390a35050565b3360009081526020819052604090205460011461068e5760405162461bcd60e51b815260040161042890610ef4565b6001600160a01b0316600090815260208190526040902060019055565b600654604080517fea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb60208201526001600160a01b03808c169282019290925290891660608201526080810188905260a0810187905285151560c08201526000919060e0016040516020818303038152906040528051906020012060405160200161074c92919061190160f01b81526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506001600160a01b0389166107b65760405162461bcd60e51b8152602060048201526017602482015276053696b6b612f696e76616c69642d616464726573732d3604c1b6044820152606401610428565b60408051600081526020810180835283905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610809573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b03161461086a5760405162461bcd60e51b815260206004820152601460248201527314da5adad84bda5b9d985b1a590b5c195c9b5a5d60621b6044820152606401610428565b8515806108775750854211155b6108ba5760405162461bcd60e51b815260206004820152601460248201527314da5adad84bdc195c9b5a5d0b595e1c1a5c995960621b6044820152606401610428565b6001600160a01b03891660009081526005602052604081208054916108de83610f22565b9190505587146109265760405162461bcd60e51b815260206004820152601360248201527253696b6b612f696e76616c69642d6e6f6e636560681b6044820152606401610428565b600085610934576000610938565b6000195b6001600160a01b038b81166000818152600460209081526040808320948f16808452948252918290208590559051848152939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050505050565b600180546109b490610f4b565b80601f01602080910402602001604051908101604052809291908181526020018280546109e090610f4b565b8015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b820191906000526020600020905b815481529060010190602001808311610a1057829003601f168201915b505050505081565b33600090815260208190526040902054600114610a645760405162461bcd60e51b815260040161042890610ef4565b6001600160a01b0316600090815260208190526040812055565b6001600160a01b038216600090815260036020526040902054811115610ab65760405162461bcd60e51b815260040161042890610e86565b6001600160a01b0382163314801590610af457506001600160a01b038216600090815260046020908152604080832033845290915290205460001914155b15610b8f576001600160a01b0382166000908152600460209081526040808320338452909152902054811115610b3c5760405162461bcd60e51b815260040161042890610ebd565b6001600160a01b0382166000908152600460209081526040808320338452909152902054610b6a9082610c47565b6001600160a01b03831660009081526004602090815260408083203384529091529020555b6001600160a01b038216600090815260036020526040902054610bb29082610c47565b6001600160a01b038316600090815260036020526040902055600254610bd89082610c47565b6002556040518181526000906001600160a01b03841690600080516020610f8783398151915290602001610653565b6000610c143384846103f0565b9392505050565b610c263383836103f0565b505050565b610c368383836103f0565b50505050565b610c268233836103f0565b808203828111156103ea5760405162461bcd60e51b815260206004820152601260248201527153696b6b612f7375622d6f766572666c6f7760701b6044820152606401610428565b808201828110156103ea5760405162461bcd60e51b815260206004820152601260248201527153696b6b612f6164642d6f766572666c6f7760701b6044820152606401610428565b600060208083528351808285015260005b81811015610d0457858101830151858201604001528201610ce8565b81811115610d16576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610d4357600080fd5b919050565b60008060408385031215610d5b57600080fd5b610d6483610d2c565b946020939093013593505050565b600080600060608486031215610d8757600080fd5b610d9084610d2c565b9250610d9e60208501610d2c565b9150604084013590509250925092565b600060208284031215610dc057600080fd5b610c1482610d2c565b600080600080600080600080610100898b031215610de657600080fd5b610def89610d2c565b9750610dfd60208a01610d2c565b9650604089013595506060890135945060808901358015158114610e2057600080fd5b935060a089013560ff81168114610e3657600080fd5b979a969950949793969295929450505060c08201359160e0013590565b60008060408385031215610e6657600080fd5b610e6f83610d2c565b9150610e7d60208401610d2c565b90509250929050565b6020808252601a908201527f53696b6b612f696e73756666696369656e742d62616c616e6365000000000000604082015260600190565b6020808252601c908201527f53696b6b612f696e73756666696369656e742d616c6c6f77616e636500000000604082015260600190565b60208082526014908201527314da5adad84bdb9bdd0b585d5d1a1bdc9a5e995960621b604082015260600190565b6000600019821415610f4457634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680610f5f57607f821691505b60208210811415610f8057634e487b7160e01b600052602260045260246000fd5b5091905056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220481b8be1f71e6ea7d2a0f1b7ec404cf09a9ac716187f4f79330265a6f5880e1164736f6c634300080a003300000000000000000000000000000000000000000000000000000000000138810000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000553494b4b41000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80637ecebe00116100b8578063a9059cbb1161007c578063a9059cbb146102ec578063b753a98c146102ff578063bb35783b14610312578063bf353dbb14610325578063dd62ed3e14610345578063f2d5d56b1461037057600080fd5b80637ecebe001461028b5780638fcbaf0c146102ab57806395d89b41146102be5780639c52a7f1146102c65780639dc29fac146102d957600080fd5b8063313ce5671161010a578063313ce567146102005780633644e5151461021a57806340c10f191461022357806354fd4d501461023857806365fae35e1461025857806370a082311461026b57600080fd5b806306fdde0314610147578063095ea7b31461018c57806318160ddd146101af57806323b872dd146101c657806330adf81f146101d9575b600080fd5b6101766040518060400160405280601081526020016f29b4b5b5b09029ba30b13632b1b7b4b760811b81525081565b6040516101839190610cd7565b60405180910390f35b61019f61019a366004610d48565b610383565b6040519015158152602001610183565b6101b860025481565b604051908152602001610183565b61019f6101d4366004610d72565b6103f0565b6101b87fea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb81565b610208601281565b60405160ff9091168152602001610183565b6101b860065481565b610236610231366004610d48565b6105b0565b005b610176604051806040016040528060018152602001603160f81b81525081565b610236610266366004610dae565b61065f565b6101b8610279366004610dae565b60036020526000908152604090205481565b6101b8610299366004610dae565b60056020526000908152604090205481565b6102366102b9366004610dc9565b6106ab565b6101766109a7565b6102366102d4366004610dae565b610a35565b6102366102e7366004610d48565b610a7e565b61019f6102fa366004610d48565b610c07565b61023661030d366004610d48565b610c1b565b610236610320366004610d72565b610c2b565b6101b8610333366004610dae565b60006020819052908152604090205481565b6101b8610353366004610e53565b600460209081526000928352604080842090915290825290205481565b61023661037e366004610d48565b610c3c565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103de9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152600360205260408120548211156104315760405162461bcd60e51b815260040161042890610e86565b60405180910390fd5b6001600160a01b038416331480159061046f57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b1561050a576001600160a01b03841660009081526004602090815260408083203384529091529020548211156104b75760405162461bcd60e51b815260040161042890610ebd565b6001600160a01b03841660009081526004602090815260408083203384529091529020546104e59083610c47565b6001600160a01b03851660009081526004602090815260408083203384529091529020555b6001600160a01b03841660009081526003602052604090205461052d9083610c47565b6001600160a01b03808616600090815260036020526040808220939093559085168152205461055c9083610c8f565b6001600160a01b038085166000818152600360205260409081902093909355915190861690600080516020610f878339815191529061059e9086815260200190565b60405180910390a35060019392505050565b336000908152602081905260409020546001146105df5760405162461bcd60e51b815260040161042890610ef4565b6001600160a01b0382166000908152600360205260409020546106029082610c8f565b6001600160a01b0383166000908152600360205260409020556002546106289082610c8f565b6002556040518181526001600160a01b03831690600090600080516020610f87833981519152906020015b60405180910390a35050565b3360009081526020819052604090205460011461068e5760405162461bcd60e51b815260040161042890610ef4565b6001600160a01b0316600090815260208190526040902060019055565b600654604080517fea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb60208201526001600160a01b03808c169282019290925290891660608201526080810188905260a0810187905285151560c08201526000919060e0016040516020818303038152906040528051906020012060405160200161074c92919061190160f01b81526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506001600160a01b0389166107b65760405162461bcd60e51b8152602060048201526017602482015276053696b6b612f696e76616c69642d616464726573732d3604c1b6044820152606401610428565b60408051600081526020810180835283905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610809573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b03161461086a5760405162461bcd60e51b815260206004820152601460248201527314da5adad84bda5b9d985b1a590b5c195c9b5a5d60621b6044820152606401610428565b8515806108775750854211155b6108ba5760405162461bcd60e51b815260206004820152601460248201527314da5adad84bdc195c9b5a5d0b595e1c1a5c995960621b6044820152606401610428565b6001600160a01b03891660009081526005602052604081208054916108de83610f22565b9190505587146109265760405162461bcd60e51b815260206004820152601360248201527253696b6b612f696e76616c69642d6e6f6e636560681b6044820152606401610428565b600085610934576000610938565b6000195b6001600160a01b038b81166000818152600460209081526040808320948f16808452948252918290208590559051848152939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050505050565b600180546109b490610f4b565b80601f01602080910402602001604051908101604052809291908181526020018280546109e090610f4b565b8015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b820191906000526020600020905b815481529060010190602001808311610a1057829003601f168201915b505050505081565b33600090815260208190526040902054600114610a645760405162461bcd60e51b815260040161042890610ef4565b6001600160a01b0316600090815260208190526040812055565b6001600160a01b038216600090815260036020526040902054811115610ab65760405162461bcd60e51b815260040161042890610e86565b6001600160a01b0382163314801590610af457506001600160a01b038216600090815260046020908152604080832033845290915290205460001914155b15610b8f576001600160a01b0382166000908152600460209081526040808320338452909152902054811115610b3c5760405162461bcd60e51b815260040161042890610ebd565b6001600160a01b0382166000908152600460209081526040808320338452909152902054610b6a9082610c47565b6001600160a01b03831660009081526004602090815260408083203384529091529020555b6001600160a01b038216600090815260036020526040902054610bb29082610c47565b6001600160a01b038316600090815260036020526040902055600254610bd89082610c47565b6002556040518181526000906001600160a01b03841690600080516020610f8783398151915290602001610653565b6000610c143384846103f0565b9392505050565b610c263383836103f0565b505050565b610c368383836103f0565b50505050565b610c268233836103f0565b808203828111156103ea5760405162461bcd60e51b815260206004820152601260248201527153696b6b612f7375622d6f766572666c6f7760701b6044820152606401610428565b808201828110156103ea5760405162461bcd60e51b815260206004820152601260248201527153696b6b612f6164642d6f766572666c6f7760701b6044820152606401610428565b600060208083528351808285015260005b81811015610d0457858101830151858201604001528201610ce8565b81811115610d16576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610d4357600080fd5b919050565b60008060408385031215610d5b57600080fd5b610d6483610d2c565b946020939093013593505050565b600080600060608486031215610d8757600080fd5b610d9084610d2c565b9250610d9e60208501610d2c565b9150604084013590509250925092565b600060208284031215610dc057600080fd5b610c1482610d2c565b600080600080600080600080610100898b031215610de657600080fd5b610def89610d2c565b9750610dfd60208a01610d2c565b9650604089013595506060890135945060808901358015158114610e2057600080fd5b935060a089013560ff81168114610e3657600080fd5b979a969950949793969295929450505060c08201359160e0013590565b60008060408385031215610e6657600080fd5b610e6f83610d2c565b9150610e7d60208401610d2c565b90509250929050565b6020808252601a908201527f53696b6b612f696e73756666696369656e742d62616c616e6365000000000000604082015260600190565b6020808252601c908201527f53696b6b612f696e73756666696369656e742d616c6c6f77616e636500000000604082015260600190565b60208082526014908201527314da5adad84bdb9bdd0b585d5d1a1bdc9a5e995960621b604082015260600190565b6000600019821415610f4457634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680610f5f57607f821691505b60208210811415610f8057634e487b7160e01b600052602260045260246000fd5b5091905056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220481b8be1f71e6ea7d2a0f1b7ec404cf09a9ac716187f4f79330265a6f5880e1164736f6c634300080a0033

[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.