MATIC Price: $0.686496 (-3.91%)
Gas: 35 GWei
 

Overview

Max Total Supply

1,974,836.827886366389955599 iUSDS

Holders

23 (0.00%)

Total Transfers

-

Market

Price

$0.31 @ 0.448657 MATIC

Onchain Market Cap

$608,251.72

Circulating Supply Market Cap

$220,185.00

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The core thesis of the Spice Trade protocol is to fill the need for a decentralized, on-chain, open-source, value-stable, scalable, modular, cross-chain, and capital-efficient system for global trade. iUSDS is the protocol's stable coin that automatically adjusts and protects against inflation.

Market

Volume (24H):$6.44
Market Capitalization:$220,185.00
Circulating Supply:714,884.00 iUSDS
Market Data Source: Coinmarketcap

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

Contract Name:
Dollar

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

// File @openzeppelin/contracts/utils/[email protected]

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;

/**
 * @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() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/utils/math/[email protected]

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File contracts/ERC20/ERC20Custom.sol

pragma solidity 0.8.4;

// Due to compiling issues, _name, _symbol, and _decimals were removed

/**
 * @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 {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Custom is Context, IERC20 {
    using SafeMath for uint256;

    mapping(address => uint256) internal _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

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

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for `accounts`'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance =
            allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal virtual {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")
        );
    }

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

// File contracts/interfaces/ITreasury.sol

pragma solidity 0.8.4;

interface ITreasury {
    function hasPool(address _address) external view returns (bool);

    function collateralReserve() external view returns (address);

    function globalCollateralBalance() external view returns (uint256);

    function globalCollateralValue() external view returns (uint256);

    function requestTransfer(
        address token,
        address receiver,
        uint256 amount
    ) external;

    function info()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        );
}

// File contracts/interfaces/IDollar.sol

pragma solidity 0.8.4;

interface IDollar {
    function poolBurnFrom(address _address, uint256 _amount) external;

    function poolMint(address _address, uint256 m_amount) external;
}

// File contracts/Dollar.sol

pragma solidity 0.8.4;

contract Dollar is ERC20Custom, IDollar, Ownable, Initializable {
    // ERC20
    string public symbol;
    string public name;
    uint8 public constant decimals = 18;
    uint256 public constant genesis_supply = 5000 ether; // 5000 will be mited at genesis for liq pool seeding

    // CONTRACTS
    address[] public treasuries_array;
    mapping(address => bool) public treasuries;

    address public controller;

    /* ========== MODIFIERS ========== */

    modifier onlyPools() {
        bool isFound = false;
        for (uint256 i = 0; i < treasuries_array.length; i++) {
            if (treasuries_array[i] != address(0) && ITreasury(treasuries_array[i]).hasPool(msg.sender)) {
                isFound = true;
                break;
            }
        }
        require(isFound, "!pools");
        _;
    }

    modifier onlyController() {
        require(address(msg.sender) == controller, "!controller");
        _;
    }

    function initialize(
        string memory _name,
        string memory _symbol
    ) external initializer onlyOwner {
        name = _name;
        symbol = _symbol;
        _mint(msg.sender, genesis_supply);
    }

    function poolBurnFrom(address _address, uint256 _amount) external override onlyPools {
        super._burnFrom(_address, _amount);
        emit DollarBurned(_address, msg.sender, _amount);
    }

    function poolMint(address _address, uint256 _amount) external override onlyPools {
        super._mint(_address, _amount);
        emit DollarMinted(msg.sender, _address, _amount);
    }

    function controllerBurnFrom(address _address, uint256 _amount) external onlyController {
        super._burnFrom(_address, _amount);
        emit DollarBurned(_address, msg.sender, _amount);
    }

    function controllerMint(address _address, uint256 _amount) external onlyController {
        super._mint(_address, _amount);
        emit DollarMinted(msg.sender, _address, _amount);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function addTreasury(address treasury_address) public onlyOwner {
        require(treasuries[treasury_address] == false, "treasuryExisted");
        treasuries[treasury_address] = true;
        treasuries_array.push(treasury_address);
        emit TreasuryAdded(treasury_address);
    }

    function removeTreasury(address treasury_address) public onlyOwner {
        require(treasuries[treasury_address] == true, "!treasury");
        // Delete from the mapping
        delete treasuries[treasury_address];
        // 'Delete' from the array by setting the address to 0x0
        for (uint256 i = 0; i < treasuries_array.length; i++) {
            if (treasuries_array[i] == treasury_address) {
                treasuries_array[i] = address(0); // This will leave a null in the array and keep the indices the same
                break;
            }
        }
        emit TreasuryRemoved(treasury_address);
    }

    function setController(address _controller) public onlyOwner {
        require(_controller != address(0), "Invalid address");
        controller = _controller;
    }

    /* ========== EVENTS ========== */

    event TreasuryAdded(address indexed treasury);
    event TreasuryRemoved(address indexed treasury);
    event DollarBurned(address indexed from, address indexed to, uint256 amount);
    event DollarMinted(address indexed from, address indexed to, uint256 amount);
    
}

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

Contract Security Audit

Contract ABI

[{"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":"amount","type":"uint256"}],"name":"DollarBurned","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":"amount","type":"uint256"}],"name":"DollarMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasuryAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasuryRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"treasury_address","type":"address"}],"name":"addTreasury","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"controllerBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"controllerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesis_supply","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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"poolBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"poolMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury_address","type":"address"}],"name":"removeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"treasuries","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"treasuries_array","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50600380546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350611a72806100636000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103d4578063e7f388621461040d578063f2fde38b14610420578063f77c47911461043357600080fd5b8063a9059cbb1461039b578063b35ee931146103ae578063c8cb3834146103c157600080fd5b80638da5cb5b116100d35780638da5cb5b1461034857806392eefe9b1461036d57806395d89b4114610380578063a457c2d71461038857600080fd5b8063715018a61461031a57806379cc679014610322578063816cadab1461033557600080fd5b8063313ce567116101665780634cd88b76116101405780634cd88b76146102ba57806351e238e3146102cd5780635d7b0758146102de57806370a08231146102f157600080fd5b8063313ce5671461027a578063395093511461029457806342966c68146102a757600080fd5b80630a0c165a116101a25780630a0c165a1461022d5780630c407d561461024257806318160ddd1461025557806323b872dd1461026757600080fd5b806306fdde03146101c95780630849b234146101e7578063095ea7b31461021a575b600080fd5b6101d1610446565b6040516101de919061184a565b60405180910390f35b61020a6101f5366004611701565b60076020526000908152604090205460ff1681565b60405190151581526020016101de565b61020a610228366004611788565b6104d4565b61024061023b366004611788565b6104ea565b005b610240610250366004611788565b610693565b6002545b6040519081526020016101de565b61020a61027536600461174d565b61082e565b610282601281565b60405160ff90911681526020016101de565b61020a6102a2366004611788565b6108a8565b6102406102b5366004611832565b6108de565b6102406102c83660046117d1565b6108eb565b61025969010f0cf064dd5920000081565b6102406102ec366004611788565b610a19565b6102596102ff366004611701565b6001600160a01b031660009081526020819052604090205490565b610240610ab0565b610240610330366004611788565b610b24565b610240610343366004611788565b610b6b565b6003546001600160a01b03165b6040516001600160a01b0390911681526020016101de565b61024061037b366004611701565b610bfa565b6101d1610c8e565b61020a610396366004611788565b610c9b565b61020a6103a9366004611788565b610cea565b6102406103bc366004611701565b610cf7565b6102406103cf366004611701565b610e8b565b6102596103e236600461171b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61035561041b366004611832565b610f9c565b61024061042e366004611701565b610fc6565b600854610355906001600160a01b031681565b6005805461045390611901565b80601f016020809104026020016040519081016040528092919081815260200182805461047f90611901565b80156104cc5780601f106104a1576101008083540402835291602001916104cc565b820191906000526020600020905b8154815290600101906020018083116104af57829003601f168201915b505050505081565b60006104e13384846110b1565b50600192915050565b6000805b6006548110156106075760006001600160a01b03166006828154811061052457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316148015906105e757506006818154811061056357634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156105af57600080fd5b505afa1580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e791906117b1565b156105f55760019150610607565b806105ff8161193c565b9150506104ee565b50806106435760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b61064d83836111cd565b60405182815233906001600160a01b038516907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad0906020015b60405180910390a3505050565b6000805b6006548110156107b05760006001600160a01b0316600682815481106106cd57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161480159061079057506006818154811061070c57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561075857600080fd5b505afa15801561076c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079091906117b1565b1561079e57600191506107b0565b806107a88161193c565b915050610697565b50806107e75760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b604482015260640161063a565b6107f1838361121c565b6040518281526001600160a01b0384169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf990602001610686565b600061083b8484846112f3565b61089e8433610899856040518060600160405280602881526020016119cc602891396001600160a01b038a16600090815260016020526040812090335b6001600160a01b031681526020810191909152604001600020549190611476565b6110b1565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104e191859061089990866114a2565b6108e833826114b5565b50565b600354600160a81b900460ff168061090d5750600354600160a01b900460ff16155b6109705760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161063a565b600354600160a81b900460ff1615801561099a576003805461ffff60a01b191661010160a01b1790555b6003546001600160a01b031633146109c45760405162461bcd60e51b815260040161063a9061189d565b82516109d79060059060208601906115c5565b5081516109eb9060049060208501906115c5565b50610a003369010f0cf064dd5920000061121c565b8015610a14576003805460ff60a81b191690555b505050565b6008546001600160a01b03163314610a615760405162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015260640161063a565b610a6b828261121c565b6040518181526001600160a01b0383169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf9906020015b60405180910390a35050565b6003546001600160a01b03163314610ada5760405162461bcd60e51b815260040161063a9061189d565b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b6000610b54826040518060600160405280602481526020016119f460249139610b4d86336103e2565b9190611476565b9050610b618333836110b1565b610a1483836114b5565b6008546001600160a01b03163314610bb35760405162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015260640161063a565b610bbd82826111cd565b60405181815233906001600160a01b038416907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad090602001610aa4565b6003546001600160a01b03163314610c245760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b038116610c6c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161063a565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6004805461045390611901565b60006104e1338461089985604051806060016040528060258152602001611a18602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611476565b60006104e13384846112f3565b6003546001600160a01b03163314610d215760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b03811660009081526007602052604090205460ff161515600114610d7a5760405162461bcd60e51b815260206004820152600960248201526821747265617375727960b81b604482015260640161063a565b6001600160a01b0381166000908152600760205260408120805460ff191690555b600654811015610e5357816001600160a01b031660068281548110610dd057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610e4157600060068281548110610e0e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610e53565b80610e4b8161193c565b915050610d9b565b506040516001600160a01b038216907f0820ed7a122a6fc9da8baebd1b26fd87a75060c4d45f69af14c3bfc5f697a4ae90600090a250565b6003546001600160a01b03163314610eb55760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b03811660009081526007602052604090205460ff1615610f105760405162461bcd60e51b815260206004820152600f60248201526e1d1c99585cdd5c9e515e1a5cdd1959608a1b604482015260640161063a565b6001600160a01b038116600081815260076020526040808220805460ff1916600190811790915560068054918201815583527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b03191684179055517fedfa2f73691730ba0803543209339afdd054637240c6ff0a7ae0dad3c191648c9190a250565b60068181548110610fac57600080fd5b6000918252602090912001546001600160a01b0316905081565b6003546001600160a01b03163314610ff05760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b0381166110555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161063a565b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166111135760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161063a565b6001600160a01b0382166111745760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161063a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610686565b6111d782826114b5565b6112188233610899846040518060600160405280602481526020016119f4602491396001600160a01b03881660009081526001602052604081209033610878565b5050565b6001600160a01b0382166112725760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161063a565b60025461127f90826114a2565b6002556001600160a01b0382166000908152602081905260409020546112a590826114a2565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610aa4565b6001600160a01b0383166113575760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161063a565b6001600160a01b0382166113b95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161063a565b6113f6816040518060600160405280602681526020016119a6602691396001600160a01b0386166000908152602081905260409020549190611476565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461142590826114a2565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610686565b6000818484111561149a5760405162461bcd60e51b815260040161063a919061184a565b505050900390565b60006114ae82846118d2565b9392505050565b6001600160a01b0382166115155760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161063a565b61155281604051806060016040528060228152602001611984602291396001600160a01b0385166000908152602081905260409020549190611476565b6001600160a01b03831660009081526020819052604090205560025461157890826115b9565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610aa4565b60006114ae82846118ea565b8280546115d190611901565b90600052602060002090601f0160209004810192826115f35760008555611639565b82601f1061160c57805160ff1916838001178555611639565b82800160010185558215611639579182015b8281111561163957825182559160200191906001019061161e565b50611645929150611649565b5090565b5b80821115611645576000815560010161164a565b80356001600160a01b038116811461167557600080fd5b919050565b600082601f83011261168a578081fd5b813567ffffffffffffffff808211156116a5576116a561196d565b604051601f8301601f19908116603f011681019082821181831017156116cd576116cd61196d565b816040528381528660208588010111156116e5578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611712578081fd5b6114ae8261165e565b6000806040838503121561172d578081fd5b6117368361165e565b91506117446020840161165e565b90509250929050565b600080600060608486031215611761578081fd5b61176a8461165e565b92506117786020850161165e565b9150604084013590509250925092565b6000806040838503121561179a578182fd5b6117a38361165e565b946020939093013593505050565b6000602082840312156117c2578081fd5b815180151581146114ae578182fd5b600080604083850312156117e3578182fd5b823567ffffffffffffffff808211156117fa578384fd5b6118068683870161167a565b9350602085013591508082111561181b578283fd5b506118288582860161167a565b9150509250929050565b600060208284031215611843578081fd5b5035919050565b6000602080835283518082850152825b818110156118765785810183015185820160400152820161185a565b818111156118875783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156118e5576118e5611957565b500190565b6000828210156118fc576118fc611957565b500390565b600181811c9082168061191557607f821691505b6020821081141561193657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561195057611950611957565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b3a39a7cda4ff98bba9e981d1e1b1a9176170c388a8d16d13ab821eb8705dad364736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103d4578063e7f388621461040d578063f2fde38b14610420578063f77c47911461043357600080fd5b8063a9059cbb1461039b578063b35ee931146103ae578063c8cb3834146103c157600080fd5b80638da5cb5b116100d35780638da5cb5b1461034857806392eefe9b1461036d57806395d89b4114610380578063a457c2d71461038857600080fd5b8063715018a61461031a57806379cc679014610322578063816cadab1461033557600080fd5b8063313ce567116101665780634cd88b76116101405780634cd88b76146102ba57806351e238e3146102cd5780635d7b0758146102de57806370a08231146102f157600080fd5b8063313ce5671461027a578063395093511461029457806342966c68146102a757600080fd5b80630a0c165a116101a25780630a0c165a1461022d5780630c407d561461024257806318160ddd1461025557806323b872dd1461026757600080fd5b806306fdde03146101c95780630849b234146101e7578063095ea7b31461021a575b600080fd5b6101d1610446565b6040516101de919061184a565b60405180910390f35b61020a6101f5366004611701565b60076020526000908152604090205460ff1681565b60405190151581526020016101de565b61020a610228366004611788565b6104d4565b61024061023b366004611788565b6104ea565b005b610240610250366004611788565b610693565b6002545b6040519081526020016101de565b61020a61027536600461174d565b61082e565b610282601281565b60405160ff90911681526020016101de565b61020a6102a2366004611788565b6108a8565b6102406102b5366004611832565b6108de565b6102406102c83660046117d1565b6108eb565b61025969010f0cf064dd5920000081565b6102406102ec366004611788565b610a19565b6102596102ff366004611701565b6001600160a01b031660009081526020819052604090205490565b610240610ab0565b610240610330366004611788565b610b24565b610240610343366004611788565b610b6b565b6003546001600160a01b03165b6040516001600160a01b0390911681526020016101de565b61024061037b366004611701565b610bfa565b6101d1610c8e565b61020a610396366004611788565b610c9b565b61020a6103a9366004611788565b610cea565b6102406103bc366004611701565b610cf7565b6102406103cf366004611701565b610e8b565b6102596103e236600461171b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61035561041b366004611832565b610f9c565b61024061042e366004611701565b610fc6565b600854610355906001600160a01b031681565b6005805461045390611901565b80601f016020809104026020016040519081016040528092919081815260200182805461047f90611901565b80156104cc5780601f106104a1576101008083540402835291602001916104cc565b820191906000526020600020905b8154815290600101906020018083116104af57829003601f168201915b505050505081565b60006104e13384846110b1565b50600192915050565b6000805b6006548110156106075760006001600160a01b03166006828154811061052457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316148015906105e757506006818154811061056357634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156105af57600080fd5b505afa1580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e791906117b1565b156105f55760019150610607565b806105ff8161193c565b9150506104ee565b50806106435760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b61064d83836111cd565b60405182815233906001600160a01b038516907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad0906020015b60405180910390a3505050565b6000805b6006548110156107b05760006001600160a01b0316600682815481106106cd57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161480159061079057506006818154811061070c57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561075857600080fd5b505afa15801561076c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079091906117b1565b1561079e57600191506107b0565b806107a88161193c565b915050610697565b50806107e75760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b604482015260640161063a565b6107f1838361121c565b6040518281526001600160a01b0384169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf990602001610686565b600061083b8484846112f3565b61089e8433610899856040518060600160405280602881526020016119cc602891396001600160a01b038a16600090815260016020526040812090335b6001600160a01b031681526020810191909152604001600020549190611476565b6110b1565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104e191859061089990866114a2565b6108e833826114b5565b50565b600354600160a81b900460ff168061090d5750600354600160a01b900460ff16155b6109705760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161063a565b600354600160a81b900460ff1615801561099a576003805461ffff60a01b191661010160a01b1790555b6003546001600160a01b031633146109c45760405162461bcd60e51b815260040161063a9061189d565b82516109d79060059060208601906115c5565b5081516109eb9060049060208501906115c5565b50610a003369010f0cf064dd5920000061121c565b8015610a14576003805460ff60a81b191690555b505050565b6008546001600160a01b03163314610a615760405162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015260640161063a565b610a6b828261121c565b6040518181526001600160a01b0383169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf9906020015b60405180910390a35050565b6003546001600160a01b03163314610ada5760405162461bcd60e51b815260040161063a9061189d565b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b6000610b54826040518060600160405280602481526020016119f460249139610b4d86336103e2565b9190611476565b9050610b618333836110b1565b610a1483836114b5565b6008546001600160a01b03163314610bb35760405162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015260640161063a565b610bbd82826111cd565b60405181815233906001600160a01b038416907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad090602001610aa4565b6003546001600160a01b03163314610c245760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b038116610c6c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161063a565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6004805461045390611901565b60006104e1338461089985604051806060016040528060258152602001611a18602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611476565b60006104e13384846112f3565b6003546001600160a01b03163314610d215760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b03811660009081526007602052604090205460ff161515600114610d7a5760405162461bcd60e51b815260206004820152600960248201526821747265617375727960b81b604482015260640161063a565b6001600160a01b0381166000908152600760205260408120805460ff191690555b600654811015610e5357816001600160a01b031660068281548110610dd057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610e4157600060068281548110610e0e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610e53565b80610e4b8161193c565b915050610d9b565b506040516001600160a01b038216907f0820ed7a122a6fc9da8baebd1b26fd87a75060c4d45f69af14c3bfc5f697a4ae90600090a250565b6003546001600160a01b03163314610eb55760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b03811660009081526007602052604090205460ff1615610f105760405162461bcd60e51b815260206004820152600f60248201526e1d1c99585cdd5c9e515e1a5cdd1959608a1b604482015260640161063a565b6001600160a01b038116600081815260076020526040808220805460ff1916600190811790915560068054918201815583527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b03191684179055517fedfa2f73691730ba0803543209339afdd054637240c6ff0a7ae0dad3c191648c9190a250565b60068181548110610fac57600080fd5b6000918252602090912001546001600160a01b0316905081565b6003546001600160a01b03163314610ff05760405162461bcd60e51b815260040161063a9061189d565b6001600160a01b0381166110555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161063a565b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166111135760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161063a565b6001600160a01b0382166111745760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161063a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610686565b6111d782826114b5565b6112188233610899846040518060600160405280602481526020016119f4602491396001600160a01b03881660009081526001602052604081209033610878565b5050565b6001600160a01b0382166112725760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161063a565b60025461127f90826114a2565b6002556001600160a01b0382166000908152602081905260409020546112a590826114a2565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610aa4565b6001600160a01b0383166113575760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161063a565b6001600160a01b0382166113b95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161063a565b6113f6816040518060600160405280602681526020016119a6602691396001600160a01b0386166000908152602081905260409020549190611476565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461142590826114a2565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610686565b6000818484111561149a5760405162461bcd60e51b815260040161063a919061184a565b505050900390565b60006114ae82846118d2565b9392505050565b6001600160a01b0382166115155760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161063a565b61155281604051806060016040528060228152602001611984602291396001600160a01b0385166000908152602081905260409020549190611476565b6001600160a01b03831660009081526020819052604090205560025461157890826115b9565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610aa4565b60006114ae82846118ea565b8280546115d190611901565b90600052602060002090601f0160209004810192826115f35760008555611639565b82601f1061160c57805160ff1916838001178555611639565b82800160010185558215611639579182015b8281111561163957825182559160200191906001019061161e565b50611645929150611649565b5090565b5b80821115611645576000815560010161164a565b80356001600160a01b038116811461167557600080fd5b919050565b600082601f83011261168a578081fd5b813567ffffffffffffffff808211156116a5576116a561196d565b604051601f8301601f19908116603f011681019082821181831017156116cd576116cd61196d565b816040528381528660208588010111156116e5578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611712578081fd5b6114ae8261165e565b6000806040838503121561172d578081fd5b6117368361165e565b91506117446020840161165e565b90509250929050565b600080600060608486031215611761578081fd5b61176a8461165e565b92506117786020850161165e565b9150604084013590509250925092565b6000806040838503121561179a578182fd5b6117a38361165e565b946020939093013593505050565b6000602082840312156117c2578081fd5b815180151581146114ae578182fd5b600080604083850312156117e3578182fd5b823567ffffffffffffffff808211156117fa578384fd5b6118068683870161167a565b9350602085013591508082111561181b578283fd5b506118288582860161167a565b9150509250929050565b600060208284031215611843578081fd5b5035919050565b6000602080835283518082850152825b818110156118765785810183015185820160400152820161185a565b818111156118875783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156118e5576118e5611957565b500190565b6000828210156118fc576118fc611957565b500390565b600181811c9082168061191557607f821691505b6020821081141561193657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561195057611950611957565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b3a39a7cda4ff98bba9e981d1e1b1a9176170c388a8d16d13ab821eb8705dad364736f6c63430008040033

Loading...
Loading
[ 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.