Token FIO Protocol

 

Overview [ERC-20]

Price
$0.04 @ 0.000024 Eth (+5.05%)
Fully Diluted Market Cap
Max Total Supply:
5,909,025.99999 wFIO

Holders:
18 (0.00%)

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

Wrapped FIO is an Ethereum version of the FIO Token, native utility token of the FIO Protocol. It's being wrapped by decentralized set of oracles appointed by the FIO Chain Block Producers. FIO Protocol is a blockchain protocol that aims to enable a better way of sending/receiving coins and tokens.

Market

Volume (24H):$2,110,672.00
Market Capitalization:$28,953,888.00
Circulating Supply:723,791,561.00 wFIO
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WFIO

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : wfio.sol
// SPDX-License-Identifier: MIT
// FIO Protocol ERC20 and Oracle Contract
// Adam Androulidakis 2/2021
// Prototype: Do not use in production

pragma solidity 0.8.7;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract WFIO is ERC20Burnable, ERC20Pausable, AccessControl {

    uint256 constant MINTABLE = 1e18;

    bytes32 public constant ORACLE_ROLE = keccak256("ORACLE_ROLE");
    bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE");
    bytes32 public constant CUSTODIAN_ROLE = keccak256("CUSTODIAN_ROLE");

    enum ApprovalType {
        Wrap,
        AddOracle,
        RemoveOracle,
        AddCustodian,
        RemoveCustodian
    }

    struct pending {
      mapping (address => bool) approved;
      uint32 approvals;
      address account;
      uint256 amount;
      bool complete;
    }

    uint32 custodian_count;
    uint32 oracle_count;

    event unwrapped(string fioaddress, uint256 amount);
    event wrapped(address account, uint256 amount, string obtid);
    event custodian_unregistered(address account, bytes32 indexhash);
    event custodian_registered(address account, bytes32 indexhash);
    event oracle_unregistered(address account, bytes32 indexhash);
    event oracle_registered(address account, bytes32 indexhash);
    event consensus_activity(string signer, address account, string obtid, bytes32 indexhash);

    address[] oraclelist;
    address[] custodianlist;

    mapping ( bytes32 => pending) approvals; // bytes32 hash can be any obtid

    constructor(uint256 _initialSupply, address[] memory newcustodians ) ERC20("FIO Protocol", "wFIO") {
      require(newcustodians.length == 10, "wFIO cannot deploy without 10 custodians");
      _mint(msg.sender, _initialSupply);
      _grantRole(OWNER_ROLE, msg.sender);

      for (uint8 i = 0; i < 10; i++ ) {
        require(!hasRole(CUSTODIAN_ROLE, newcustodians[i]), "Custodian already registered");
        require(!hasRole(OWNER_ROLE, newcustodians[i]), "Owner role cannot be custodian");
        _grantRole(CUSTODIAN_ROLE, newcustodians[i]);
        custodianlist.push(newcustodians[i]);
      }
      custodian_count = 10;
      oracle_count = 0;
    }

    function pause() external onlyRole(CUSTODIAN_ROLE) whenNotPaused{
        _pause();
    }

    function unpause() external onlyRole(CUSTODIAN_ROLE)whenPaused{
        _unpause();
    }

    //Precondition: Roles must be checked in parent functions. This should only be called by authorized oracle or custodian
    function getConsensus(bytes32 hash, uint8 Type, address account, uint256 amount) internal returns (bool){
      require(!approvals[hash].complete, "Approval already complete");

      uint32 APPROVALS_NEEDED = oracle_count;
      if (Type == 1) {
        APPROVALS_NEEDED = custodian_count * 2 / 3 + 1;
      }
      if (approvals[hash].approvals == 0) {
        approvals[hash].amount = amount;
        approvals[hash].account = account;
      }
      if (approvals[hash].approvals < APPROVALS_NEEDED) {
        require(!approvals[hash].approved[msg.sender], "oracle has already approved this hash");
        approvals[hash].approved[msg.sender] = true;
        approvals[hash].approvals++;
         //moving this if block after the parent if block will allow the execution to take place immediately instead of requiring a subsequent call
        if (approvals[hash].approvals >= APPROVALS_NEEDED) {
          require(approvals[hash].approved[msg.sender], "An approving oracle must execute");
          approvals[hash].complete = true;
          return approvals[hash].complete;
        }
      }
      return approvals[hash].complete;
    }


    function wrap(address account, uint256 amount, string memory obtid) external onlyRole(ORACLE_ROLE) whenNotPaused{
      require(amount < MINTABLE);
      require(bytes(obtid).length > 0, "Invalid obtid");
      require(account != address(0), "Invalid account");
      require(oracle_count >= 3, "Oracles must be 3 or greater");
      bytes32 indexhash = keccak256(bytes(abi.encode(ApprovalType.Wrap, obtid, amount, account)));

      if (getConsensus(indexhash, 0, account, amount)) {
         _mint(account, amount);
         emit wrapped(account, amount, obtid);
      }

      emit consensus_activity("oracle", msg.sender, obtid, indexhash);

    }

    function unwrap(string memory fioaddress, uint256 amount) external whenNotPaused{
      require(bytes(fioaddress).length > 3 && bytes(fioaddress).length <= 64, "Invalid FIO Address");
      _burn(msg.sender, amount);
      emit unwrapped(fioaddress, amount);
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Pausable) {
        require(to != address(this), "Contract cannot receive tokens");
        super._beforeTokenTransfer(from, to, amount);
    }


    function getCustodian(address account) external view returns (bool, uint32) {
      require(account != address(0), "Invalid address");
      return (hasRole(CUSTODIAN_ROLE, account), custodian_count);
    }

    function getOracle(address account) external view returns (bool, uint32) {
      require(account != address(0), "Invalid address");
      return (hasRole(ORACLE_ROLE, account), uint32(oraclelist.length));
    }

    function getOracles() external view returns(address[] memory) {
      return oraclelist;
    }


    function getApproval(bytes memory indexhash) external view returns (uint32, address, uint256, address[] memory) {
      require(indexhash.length > 0, "Invalid obtid");
      address[] memory approvedOracles = new address[](approvals[bytes32(indexhash)].approvals);
      uint32 c = 0;
      for(uint32 i = 0; i < oraclelist.length; i++) {
        if (approvals[bytes32(indexhash)].approved[oraclelist[i]]) {
          approvedOracles[c] = oraclelist[i];
          c++;
        }
      }
      return (approvals[bytes32(indexhash)].approvals, approvals[bytes32(indexhash)].account, approvals[bytes32(indexhash)].amount, approvedOracles);
    }

    function regoracle(address account) external onlyRole(CUSTODIAN_ROLE)  {
      require(account != address(0), "Invalid address");
      require(account != msg.sender, "Cannot register self");
      require(!hasRole(ORACLE_ROLE, account), "Oracle already registered");
      bytes32 indexhash = keccak256(bytes(abi.encode(ApprovalType.AddOracle,account )));
      if (getConsensus(indexhash, 1, account, 0)){
        _grantRole(ORACLE_ROLE, account);
        oracle_count++;
        oraclelist.push(account);
        emit oracle_registered(account, indexhash);
      }
      emit consensus_activity("custodian", msg.sender, "", indexhash);
    }

    function unregoracle(address account) external onlyRole(CUSTODIAN_ROLE) {
      require(account != address(0), "Invalid address");
      require(oracle_count > 3, "Minimum 3 oracles required");
      bytes32 indexhash = keccak256(bytes(abi.encode(ApprovalType.RemoveOracle,account)));
      require(hasRole(ORACLE_ROLE, account), "Oracle not registered");
      if ( getConsensus(indexhash, 1, account, 0)) {
          _revokeRole(ORACLE_ROLE, account);
          oracle_count--;
          for(uint16 i = 0; i < oraclelist.length; i++) {
            if(oraclelist[i] == account) {
              oraclelist[i] = oraclelist[oraclelist.length - 1];
              oraclelist.pop();
              break;
            }
          }
          emit oracle_unregistered(account, indexhash);
      }
      emit consensus_activity("custodian", msg.sender, "", indexhash);

    } // unregoracle

    function regcust(address account) external onlyRole(CUSTODIAN_ROLE) {
      require(account != address(0), "Invalid address");
      require(account != msg.sender, "Cannot register self");
      bytes32 indexhash = keccak256(bytes(abi.encode(ApprovalType.AddCustodian,account)));
      require(!hasRole(CUSTODIAN_ROLE, account), "Already registered");
      if (getConsensus(indexhash, 1, account, 0)) {
        _grantRole(CUSTODIAN_ROLE, account);
        custodian_count++;
        custodianlist.push(account);
        emit custodian_registered(account, indexhash);
      }
      emit consensus_activity("custodian", msg.sender, "", indexhash);
    }

    function unregcust(address account) external onlyRole(CUSTODIAN_ROLE) {
      require(account != address(0), "Invalid address");
      require(hasRole(CUSTODIAN_ROLE, account), "Custodian not registered");
      require(custodian_count > 7, "Must contain 7 custodians");
      bytes32 indexhash = keccak256(bytes(abi.encode(ApprovalType.RemoveCustodian,account)));
      require(hasRole(CUSTODIAN_ROLE, account), "Already unregistered");
      if (getConsensus(indexhash, 1, account, 0)) {
          _revokeRole(CUSTODIAN_ROLE, account);
          custodian_count--;
          for(uint16 i = 0; i < custodianlist.length; i++) {
            if(custodianlist[i] == account) {
              custodianlist[i] = custodianlist[custodianlist.length - 1];
              custodianlist.pop();
              break;
            }
          }
          emit custodian_unregistered(account, indexhash);
      }
      emit consensus_activity("custodian", msg.sender, "", indexhash);
    } //unregcustodian

    // ------------------------------------------------------------------------
    // Don't accept ETH
    // ------------------------------------------------------------------------
    receive () external payable {
        revert();
    }

    function changeOwner(address account) external onlyRole(OWNER_ROLE) {
      _revokeRole(OWNER_ROLE, msg.sender);
      _grantRole(OWNER_ROLE, account);
    }

    function decimals() public view virtual override returns (uint8) {
      return 9;
    }
}

File 2 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 3 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 4 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

File 8 of 13 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @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 {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 10 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

File 11 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 12 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 13 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"address[]","name":"newcustodians","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"signer","type":"string"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"string","name":"obtid","type":"string"},{"indexed":false,"internalType":"bytes32","name":"indexhash","type":"bytes32"}],"name":"consensus_activity","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"indexhash","type":"bytes32"}],"name":"custodian_registered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"indexhash","type":"bytes32"}],"name":"custodian_unregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"indexhash","type":"bytes32"}],"name":"oracle_registered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"indexhash","type":"bytes32"}],"name":"oracle_unregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"fioaddress","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"obtid","type":"string"}],"name":"wrapped","type":"event"},{"inputs":[],"name":"CUSTODIAN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORACLE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"address","name":"account","type":"address"}],"name":"changeOwner","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":[{"internalType":"bytes","name":"indexhash","type":"bytes"}],"name":"getApproval","outputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCustodian","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getOracle","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOracles","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"regcust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"regoracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unregcust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unregoracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"fioaddress","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"obtid","type":"string"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200391b3803806200391b833981016040819052620000349162000694565b604080518082018252600c81526b119253c8141c9bdd1bd8dbdb60a21b6020808301918252835180850190945260048452637746494f60e01b9084015281519192916200008491600391620005d1565b5080516200009a906004906020840190620005d1565b50506005805460ff19169055508051600a146200010f5760405162461bcd60e51b815260206004820152602860248201527f7746494f2063616e6e6f74206465706c6f7920776974686f757420313020637560448201526773746f6469616e7360c01b60648201526084015b60405180910390fd5b6200011b338362000316565b62000136600080516020620038fb833981519152336200040a565b60005b600a8160ff161015620002fa5762000186600080516020620038db833981519152838360ff16815181106200017257620001726200080c565b6020026020010151620004ae60201b60201c565b15620001d55760405162461bcd60e51b815260206004820152601c60248201527f437573746f6469616e20616c7265616479207265676973746572656400000000604482015260640162000106565b62000201600080516020620038fb833981519152838360ff16815181106200017257620001726200080c565b15620002505760405162461bcd60e51b815260206004820152601e60248201527f4f776e657220726f6c652063616e6e6f7420626520637573746f6469616e0000604482015260640162000106565b62000290600080516020620038db833981519152838360ff16815181106200027c576200027c6200080c565b60200260200101516200040a60201b60201c565b6009828260ff1681518110620002aa57620002aa6200080c565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905580620002f181620007d3565b91505062000139565b5050600780546001600160401b031916600a1790555062000838565b6001600160a01b0382166200036e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000106565b6200037c60008383620004d9565b80600260008282546200039091906200077b565b90915550506001600160a01b03821660009081526020819052604081208054839290620003bf9084906200077b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620004065760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200046a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6001600160a01b038216301415620005345760405162461bcd60e51b815260206004820152601e60248201527f436f6e74726163742063616e6e6f74207265636569766520746f6b656e730000604482015260640162000106565b6200054c8383836200055160201b62001b1f1760201c565b505050565b620005698383836200054c60201b6200088c1760201c565b60055460ff16156200054c5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b606482015260840162000106565b828054620005df9062000796565b90600052602060002090601f0160209004810192826200060357600085556200064e565b82601f106200061e57805160ff19168380011785556200064e565b828001600101855582156200064e579182015b828111156200064e57825182559160200191906001019062000631565b506200065c92915062000660565b5090565b5b808211156200065c576000815560010162000661565b80516001600160a01b03811681146200068f57600080fd5b919050565b60008060408385031215620006a857600080fd5b8251602080850151919350906001600160401b0380821115620006ca57600080fd5b818601915086601f830112620006df57600080fd5b815181811115620006f457620006f462000822565b8060051b604051601f19603f830116810181811085821117156200071c576200071c62000822565b604052828152858101935084860182860187018b10156200073c57600080fd5b600095505b838610156200076a57620007558162000677565b85526001959095019493860193860162000741565b508096505050505050509250929050565b60008219821115620007915762000791620007f6565b500190565b600181811c90821680620007ab57607f821691505b60208210811415620007cd57634e487b7160e01b600052602260045260246000fd5b50919050565b600060ff821660ff811415620007ed57620007ed620007f6565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61309380620008486000396000f3fe60806040526004361061021e5760003560e01c806379cc679011610123578063a9059cbb116100ab578063da4baecb1161006f578063da4baecb14610669578063dd62ed3e14610689578063e5690a99146106a9578063e58378bb146106c9578063ff3e34a5146106eb57600080fd5b8063a9059cbb146105c7578063c0bcfe9c146105e7578063c79445d014610607578063cb5aa7e914610629578063d547741f1461064957600080fd5b806395d89b41116100f257806395d89b411461052d578063a217fddf14610542578063a457c2d714610557578063a6f9dae114610577578063a7bf70b91461059757600080fd5b806379cc6790146104b85780638456cb59146104d85780638c70c3bd146104ed57806391d148541461050d57600080fd5b8063313ce567116101a657806340884c521161017557806340884c521461040857806342966c681461042a5780634fdcaca61461044a5780635c975abb1461046a57806370a082311461048257600080fd5b8063313ce5671461039757806336568abe146103b357806339509351146103d35780633f4ba83a146103f357600080fd5b806310d3d22e116101ed57806310d3d22e146102d457806318160ddd1461031057806323b872dd14610325578063248a9ca3146103455780632f2ff15d1461037557600080fd5b806301ffc9a71461022d57806306fdde031461026257806307e2cea514610284578063095ea7b3146102b457600080fd5b3661022857600080fd5b600080fd5b34801561023957600080fd5b5061024d610248366004612a89565b61070b565b60405190151581526020015b60405180910390f35b34801561026e57600080fd5b50610277610742565b6040516102599190612cf2565b34801561029057600080fd5b506102a660008051602061303e83398151915281565b604051908152602001610259565b3480156102c057600080fd5b5061024d6102cf3660046129cc565b6107d4565b3480156102e057600080fd5b506102f46102ef366004612942565b6107ec565b60408051921515835263ffffffff909116602083015201610259565b34801561031c57600080fd5b506002546102a6565b34801561033157600080fd5b5061024d610340366004612990565b610843565b34801561035157600080fd5b506102a6610360366004612a4d565b60009081526006602052604090206001015490565b34801561038157600080fd5b50610395610390366004612a66565b610867565b005b3480156103a357600080fd5b5060405160098152602001610259565b3480156103bf57600080fd5b506103956103ce366004612a66565b610891565b3480156103df57600080fd5b5061024d6103ee3660046129cc565b61090f565b3480156103ff57600080fd5b50610395610931565b34801561041457600080fd5b5061041d61095c565b6040516102599190612c78565b34801561043657600080fd5b50610395610445366004612a4d565b6109bd565b34801561045657600080fd5b50610395610465366004612942565b6109c7565b34801561047657600080fd5b5060055460ff1661024d565b34801561048e57600080fd5b506102a661049d366004612942565b6001600160a01b031660009081526020819052604090205490565b3480156104c457600080fd5b506103956104d33660046129cc565b610d1f565b3480156104e457600080fd5b50610395610d34565b3480156104f957600080fd5b50610395610508366004612afc565b610d5c565b34801561051957600080fd5b5061024d610528366004612a66565b610e00565b34801561053957600080fd5b50610277610e2b565b34801561054e57600080fd5b506102a6600081565b34801561056357600080fd5b5061024d6105723660046129cc565b610e3a565b34801561058357600080fd5b50610395610592366004612942565b610eb5565b3480156105a357600080fd5b506105b76105b2366004612ab3565b610efd565b6040516102599493929190612d9e565b3480156105d357600080fd5b5061024d6105e23660046129cc565b611140565b3480156105f357600080fd5b50610395610602366004612942565b61114e565b34801561061357600080fd5b506102a6600080516020612ffe83398151915281565b34801561063557600080fd5b506102f4610644366004612942565b61134a565b34801561065557600080fd5b50610395610664366004612a66565b61139f565b34801561067557600080fd5b506103956106843660046129f6565b6113c4565b34801561069557600080fd5b506102a66106a436600461295d565b6115ae565b3480156106b557600080fd5b506103956106c4366004612942565b6115d9565b3480156106d557600080fd5b506102a660008051602061301e83398151915281565b3480156106f757600080fd5b50610395610706366004612942565b6117e8565b60006001600160e01b03198216637965db0b60e01b148061073c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461075190612f38565b80601f016020809104026020016040519081016040528092919081815260200182805461077d90612f38565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b6000336107e2818585611b85565b5060019392505050565b6000806001600160a01b03831661081e5760405162461bcd60e51b815260040161081590612d27565b60405180910390fd5b61083660008051602061303e83398151915284610e00565b6008549094909350915050565b600033610851858285611ca9565b61085c858585611d23565b506001949350505050565b60008281526006602052604090206001015461088281611efc565b61088c8383611f06565b505050565b6001600160a01b03811633146109015760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610815565b61090b8282611f8c565b5050565b6000336107e281858561092283836115ae565b61092c9190612ddb565b611b85565b600080516020612ffe83398151915261094981611efc565b610951611ff3565b61095961203e565b50565b606060088054806020026020016040519081016040528092919081815260200182805480156107ca57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610996575050505050905090565b6109593382612090565b600080516020612ffe8339815191526109df81611efc565b6001600160a01b038216610a055760405162461bcd60e51b815260040161081590612d27565b600754600364010000000090910463ffffffff1611610a665760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d2033206f7261636c65732072657175697265640000000000006044820152606401610815565b6000600283604051602001610a7c929190612c8b565b604051602081830303815290604052805190602001209050610aac60008051602061303e83398151915284610e00565b610af05760405162461bcd60e51b815260206004820152601560248201527413dc9858db19481b9bdd081c9959da5cdd195c9959605a1b6044820152606401610815565b610afe8160018560006121ea565b15610cb257610b1b60008051602061303e83398151915284611f8c565b60078054640100000000900463ffffffff16906004610b3983612f18565b91906101000a81548163ffffffff021916908363ffffffff1602179055505060005b60085461ffff82161015610c6d57836001600160a01b031660088261ffff1681548110610b8a57610b8a612fd1565b6000918252602090912001546001600160a01b03161415610c5b5760088054610bb590600190612e97565b81548110610bc557610bc5612fd1565b600091825260209091200154600880546001600160a01b039092169161ffff8416908110610bf557610bf5612fd1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506008805480610c3457610c34612fbb565b600082815260209020810160001990810180546001600160a01b0319169055019055610c6d565b80610c6581612f6d565b915050610b5b565b50604080516001600160a01b0385168152602081018390527fe4d21301551b3d87dc269fc8b9d5a5c1432831c3c321ef19570b8a93a10cb52291015b60405180910390a15b6040805160808082526009908201526831bab9ba37b234b0b760b91b60a082015233602082015260c08183018190526000908201526060810183905290517f3be8840aec3e3998ee1e020dd20a8ea88430534d4e16feeeb1762ea4428464cd9181900360e00190a1505050565b610d2a823383611ca9565b61090b8282612090565b600080516020612ffe833981519152610d4c81611efc565b610d546124b7565b6109596124fd565b610d646124b7565b60038251118015610d7757506040825111155b610db95760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642046494f204164647265737360681b6044820152606401610815565b610dc33382612090565b7fcbc81eff77955b99685533d29441743baaced5a53ed539d634490e5380a8dcf08282604051610df4929190612d05565b60405180910390a15050565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461075190612f38565b60003381610e4882866115ae565b905083811015610ea85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610815565b61085c8286868403611b85565b60008051602061301e833981519152610ecd81611efc565b610ee560008051602061301e83398151915233611f8c565b61090b60008051602061301e83398151915283611f06565b600080600060606000855111610f455760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081bd89d1a59609a1b6044820152606401610815565b6000600a81610f5388612eae565b815260208101919091526040016000206001015463ffffffff1667ffffffffffffffff811115610f8557610f85612fe7565b604051908082528060200260200182016040528015610fae578160200160208202803683370190505b5090506000805b60085463ffffffff821610156110b257600a6000610fd28a612eae565b8152602001908152602001600020600001600060088363ffffffff1681548110610ffe57610ffe612fd1565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff16156110a05760088163ffffffff168154811061104457611044612fd1565b9060005260206000200160009054906101000a90046001600160a01b0316838363ffffffff168151811061107a5761107a612fd1565b6001600160a01b03909216602092830291909101909101528161109c81612f8f565b9250505b806110aa81612f8f565b915050610fb5565b50600a60006110c089612eae565b8152602081019190915260400160009081206001015463ffffffff1690600a906110e98a612eae565b815260200190815260200160002060010160049054906101000a90046001600160a01b0316600a60008a61111c90612eae565b81526020019081526020016000206002015484955095509550955050509193509193565b6000336107e2818585611d23565b600080516020612ffe83398151915261116681611efc565b6001600160a01b03821661118c5760405162461bcd60e51b815260040161081590612d27565b6001600160a01b0382163314156111dc5760405162461bcd60e51b815260206004820152601460248201527321b0b73737ba103932b3b4b9ba32b91039b2b63360611b6044820152606401610815565b60006003836040516020016111f2929190612c8b565b604051602081830303815290604052805190602001209050611222600080516020612ffe83398151915284610e00565b156112645760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481c9959da5cdd195c995960721b6044820152606401610815565b6112728160018560006121ea565b15610cb25761128f600080516020612ffe83398151915284611f06565b6007805463ffffffff169060006112a583612f8f565b82546101009290920a63ffffffff81810219909316919092169190910217905550600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03851690811790915560408051918252602082018390527f4f4b5dcea44dd9a0d4582de1f0b930ffdd296bd645df66b73ff1795f43e7dc119101610ca9565b6000806001600160a01b0383166113735760405162461bcd60e51b815260040161081590612d27565b61138b600080516020612ffe83398151915284610e00565b600754909463ffffffff9091169350915050565b6000828152600660205260409020600101546113ba81611efc565b61088c8383611f8c565b60008051602061303e8339815191526113dc81611efc565b6113e46124b7565b670de0b6b3a764000083106113f857600080fd5b60008251116114395760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081bd89d1a59609a1b6044820152606401610815565b6001600160a01b0384166114815760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081858d8dbdd5b9d608a1b6044820152606401610815565b600754600364010000000090910463ffffffff1610156114e35760405162461bcd60e51b815260206004820152601c60248201527f4f7261636c6573206d7573742062652033206f722067726561746572000000006044820152606401610815565b6000808385876040516020016114fc9493929190612cb1565b60405160208183030381529060405280519060200120905061152181600087876121ea565b1561156c57611530858561253a565b7fbfb8a2f9b4d8e8ed83a83aedac91756186665fbf1f57e39619d757180619bf9885858560405161156393929190612c48565b60405180910390a15b7f3be8840aec3e3998ee1e020dd20a8ea88430534d4e16feeeb1762ea4428464cd33848360405161159f93929190612d50565b60405180910390a15050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600080516020612ffe8339815191526115f181611efc565b6001600160a01b0382166116175760405162461bcd60e51b815260040161081590612d27565b6001600160a01b0382163314156116675760405162461bcd60e51b815260206004820152601460248201527321b0b73737ba103932b3b4b9ba32b91039b2b63360611b6044820152606401610815565b61167f60008051602061303e83398151915283610e00565b156116cc5760405162461bcd60e51b815260206004820152601960248201527f4f7261636c6520616c72656164792072656769737465726564000000000000006044820152606401610815565b60006001836040516020016116e2929190612c8b565b6040516020818303038152906040528051906020012090506117088160018560006121ea565b15610cb25761172560008051602061303e83398151915284611f06565b60078054640100000000900463ffffffff1690600461174383612f8f565b82546101009290920a63ffffffff81810219909316919092169190910217905550600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b03851690811790915560408051918252602082018390527ffde1904d2f36e8247a68b76a38b2dc6908f769438b6bb8f173ee39a2c01f2b589101610ca9565b600080516020612ffe83398151915261180081611efc565b6001600160a01b0382166118265760405162461bcd60e51b815260040161081590612d27565b61183e600080516020612ffe83398151915283610e00565b61188a5760405162461bcd60e51b815260206004820152601860248201527f437573746f6469616e206e6f74207265676973746572656400000000000000006044820152606401610815565b6007805463ffffffff16116118e15760405162461bcd60e51b815260206004820152601960248201527f4d75737420636f6e7461696e203720637573746f6469616e73000000000000006044820152606401610815565b60006004836040516020016118f7929190612c8b565b604051602081830303815290604052805190602001209050611927600080516020612ffe83398151915284610e00565b61196a5760405162461bcd60e51b8152602060048201526014602482015273105b1c9958591e481d5b9c9959da5cdd195c995960621b6044820152606401610815565b6119788160018560006121ea565b15610cb257611995600080516020612ffe83398151915284611f8c565b6007805463ffffffff169060006119ab83612f18565b91906101000a81548163ffffffff021916908363ffffffff1602179055505060005b60095461ffff82161015611adf57836001600160a01b031660098261ffff16815481106119fc576119fc612fd1565b6000918252602090912001546001600160a01b03161415611acd5760098054611a2790600190612e97565b81548110611a3757611a37612fd1565b600091825260209091200154600980546001600160a01b039092169161ffff8416908110611a6757611a67612fd1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506009805480611aa657611aa6612fbb565b600082815260209020810160001990810180546001600160a01b0319169055019055611adf565b80611ad781612f6d565b9150506119cd565b50604080516001600160a01b0385168152602081018390527f0cf142c25ce5b399a7953be52d40c8596def04c010697715ab9c72f4962d1a2d9101610ca9565b60055460ff161561088c5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610815565b6001600160a01b038316611be75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610815565b6001600160a01b038216611c485760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610815565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611cb584846115ae565b90506000198114611d1d5781811015611d105760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610815565b611d1d8484848403611b85565b50505050565b6001600160a01b038316611d875760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610815565b6001600160a01b038216611de95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610815565b611df4838383612625565b6001600160a01b03831660009081526020819052604090205481811015611e6c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610815565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611ea3908490612ddb565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611eef91815260200190565b60405180910390a3611d1d565b6109598133612689565b611f108282610e00565b61090b5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f483390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f968282610e00565b1561090b5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60055460ff1661203c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610815565b565b612046611ff3565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166120f05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610815565b6120fc82600083612625565b6001600160a01b038216600090815260208190526040902054818110156121705760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610815565b6001600160a01b038316600090815260208190526040812083830390556002805484929061219f908490612e97565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000848152600a602052604081206003015460ff161561224c5760405162461bcd60e51b815260206004820152601960248201527f417070726f76616c20616c726561647920636f6d706c657465000000000000006044820152606401610815565b600754640100000000900463ffffffff1660ff851660011415612298576007546003906122809063ffffffff166002612e6b565b61228a9190612e1b565b612295906001612df3565b90505b6000868152600a602052604090206001015463ffffffff166122f1576000868152600a60205260409020600281018490556001018054640100000000600160c01b0319166401000000006001600160a01b038716021790555b6000868152600a602052604090206001015463ffffffff80831691161015612497576000868152600a6020908152604080832033845290915290205460ff161561238b5760405162461bcd60e51b815260206004820152602560248201527f6f7261636c652068617320616c726561647920617070726f7665642074686973604482015264040d0c2e6d60db1b6064820152608401610815565b6000868152600a60208181526040808420338552808352908420805460ff191660019081179091558a85529290915201805463ffffffff16916123cd83612f8f565b82546101009290920a63ffffffff8181021990931691831602179091556000888152600a60205260409020600101548382169116109050612497576000868152600a6020908152604080832033845290915290205460ff166124715760405162461bcd60e51b815260206004820181905260248201527f416e20617070726f76696e67206f7261636c65206d75737420657865637574656044820152606401610815565b50506000848152600a60205260409020600301805460ff191660019081179091556124af565b50506000848152600a602052604090206003015460ff165b949350505050565b60055460ff161561203c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610815565b6125056124b7565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120733390565b6001600160a01b0382166125905760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610815565b61259c60008383612625565b80600260008282546125ae9190612ddb565b90915550506001600160a01b038216600090815260208190526040812080548392906125db908490612ddb565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821630141561267e5760405162461bcd60e51b815260206004820152601e60248201527f436f6e74726163742063616e6e6f74207265636569766520746f6b656e7300006044820152606401610815565b61088c838383611b1f565b6126938282610e00565b61090b576126ab816001600160a01b031660146126ed565b6126b68360206126ed565b6040516020016126c7929190612bd3565b60408051601f198184030181529082905262461bcd60e51b825261081591600401612cf2565b606060006126fc836002612e4c565b612707906002612ddb565b67ffffffffffffffff81111561271f5761271f612fe7565b6040519080825280601f01601f191660200182016040528015612749576020820181803683370190505b509050600360fc1b8160008151811061276457612764612fd1565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061279357612793612fd1565b60200101906001600160f81b031916908160001a90535060006127b7846002612e4c565b6127c2906001612ddb565b90505b600181111561283a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106127f6576127f6612fd1565b1a60f81b82828151811061280c5761280c612fd1565b60200101906001600160f81b031916908160001a90535060049490941c9361283381612f01565b90506127c5565b5083156128895760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610815565b9392505050565b600067ffffffffffffffff808411156128ab576128ab612fe7565b604051601f8501601f19908116603f011681019082821181831017156128d3576128d3612fe7565b816040528093508581528686860111156128ec57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461291d57600080fd5b919050565b600082601f83011261293357600080fd5b61288983833560208501612890565b60006020828403121561295457600080fd5b61288982612906565b6000806040838503121561297057600080fd5b61297983612906565b915061298760208401612906565b90509250929050565b6000806000606084860312156129a557600080fd5b6129ae84612906565b92506129bc60208501612906565b9150604084013590509250925092565b600080604083850312156129df57600080fd5b6129e883612906565b946020939093013593505050565b600080600060608486031215612a0b57600080fd5b612a1484612906565b925060208401359150604084013567ffffffffffffffff811115612a3757600080fd5b612a4386828701612922565b9150509250925092565b600060208284031215612a5f57600080fd5b5035919050565b60008060408385031215612a7957600080fd5b8235915061298760208401612906565b600060208284031215612a9b57600080fd5b81356001600160e01b03198116811461288957600080fd5b600060208284031215612ac557600080fd5b813567ffffffffffffffff811115612adc57600080fd5b8201601f81018413612aed57600080fd5b6124af84823560208401612890565b60008060408385031215612b0f57600080fd5b823567ffffffffffffffff811115612b2657600080fd5b612b3285828601612922565b95602094909401359450505050565b600081518084526020808501945080840160005b83811015612b7a5781516001600160a01b031687529582019590820190600101612b55565b509495945050505050565b60058110612ba357634e487b7160e01b600052602160045260246000fd5b9052565b60008151808452612bbf816020860160208601612ed5565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c0b816017850160208801612ed5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612c3c816028840160208801612ed5565b01602801949350505050565b60018060a01b0384168152826020820152606060408201526000612c6f6060830184612ba7565b95945050505050565b6020815260006128896020830184612b41565b60408101612c998285612b85565b6001600160a01b039290921660209190910152919050565b612cbb8186612b85565b608060208201526000612cd16080830186612ba7565b6040830194909452506001600160a01b039190911660609091015292915050565b6020815260006128896020830184612ba7565b604081526000612d186040830185612ba7565b90508260208301529392505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b6080815260066080820152656f7261636c6560d01b60a082015260018060a01b038416602082015260c060408201526000612d8e60c0830185612ba7565b9050826060830152949350505050565b63ffffffff8516815260018060a01b0384166020820152826040820152608060608201526000612dd16080830184612b41565b9695505050505050565b60008219821115612dee57612dee612fa5565b500190565b600063ffffffff808316818516808303821115612e1257612e12612fa5565b01949350505050565b600063ffffffff80841680612e4057634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6000816000190483118215151615612e6657612e66612fa5565b500290565b600063ffffffff80831681851681830481118215151615612e8e57612e8e612fa5565b02949350505050565b600082821015612ea957612ea9612fa5565b500390565b80516020808301519190811015612ecf576000198160200360031b1b821691505b50919050565b60005b83811015612ef0578181015183820152602001612ed8565b83811115611d1d5750506000910152565b600081612f1057612f10612fa5565b506000190190565b600063ffffffff821680612f2e57612f2e612fa5565b6000190192915050565b600181811c90821680612f4c57607f821691505b60208210811415612ecf57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415612f8557612f85612fa5565b6001019392505050565b600063ffffffff80831681811415612f8557612f855b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfee28434228950b641dbbc0178de89daa359a87c6ee0d8399aeace52a98fe902b9b19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef1a26469706673582212201f6d080c2de935b179ad15da7d3a8b72527766245b677f9acf123e748d5e997264736f6c63430008070033e28434228950b641dbbc0178de89daa359a87c6ee0d8399aeace52a98fe902b9b19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000820b8c76189098fd4dec59176e98b2f178db252c000000000000000000000000497409d4d23fa303832d6c4ba92b38e120e1ae70000000000000000000000000361694a5886ef45868380f650e0c9b5a87b9fbf50000000000000000000000003dc9c2b2f35480a1189f6fcd3fc1a1cf18bed3730000000000000000000000004e426d16f38bea9ddc9eb6d670bd5d1fd95124c5000000000000000000000000dee0200502e4a31826e9ada6e6866faf6693379e000000000000000000000000fe0f1512248dcbd6fdb394af62955e8529a58390000000000000000000000000d253c2ce2f1d1b562d43fb8eb7399bf95103fdc7000000000000000000000000923acdcd0405d3adc77e620785a498e80104a268000000000000000000000000d5a587c1ed07163f3c678905e9cc5b4dc6d6a47a

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

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000820b8c76189098fd4dec59176e98b2f178db252c000000000000000000000000497409d4d23fa303832d6c4ba92b38e120e1ae70000000000000000000000000361694a5886ef45868380f650e0c9b5a87b9fbf50000000000000000000000003dc9c2b2f35480a1189f6fcd3fc1a1cf18bed3730000000000000000000000004e426d16f38bea9ddc9eb6d670bd5d1fd95124c5000000000000000000000000dee0200502e4a31826e9ada6e6866faf6693379e000000000000000000000000fe0f1512248dcbd6fdb394af62955e8529a58390000000000000000000000000d253c2ce2f1d1b562d43fb8eb7399bf95103fdc7000000000000000000000000923acdcd0405d3adc77e620785a498e80104a268000000000000000000000000d5a587c1ed07163f3c678905e9cc5b4dc6d6a47a

-----Decoded View---------------
Arg [0] : _initialSupply (uint256): 0
Arg [1] : newcustodians (address[]): 0x820b8c76189098fD4Dec59176E98b2f178dB252c,0x497409d4d23Fa303832D6c4BA92B38e120E1AE70,0x361694a5886ef45868380F650e0C9B5a87b9fBF5,0x3Dc9C2B2f35480a1189F6FCd3FC1a1Cf18BeD373,0x4e426d16f38Bea9ddC9eB6D670bd5D1fD95124c5,0xdEE0200502e4a31826e9aDa6e6866faF6693379E,0xFE0F1512248dcBd6fdb394af62955e8529a58390,0xD253c2CE2F1d1b562d43fb8Eb7399BF95103fDc7,0x923acdcd0405D3aDC77E620785A498E80104A268,0xD5a587c1ed07163f3C678905e9cC5b4DC6d6A47A

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 000000000000000000000000820b8c76189098fd4dec59176e98b2f178db252c
Arg [4] : 000000000000000000000000497409d4d23fa303832d6c4ba92b38e120e1ae70
Arg [5] : 000000000000000000000000361694a5886ef45868380f650e0c9b5a87b9fbf5
Arg [6] : 0000000000000000000000003dc9c2b2f35480a1189f6fcd3fc1a1cf18bed373
Arg [7] : 0000000000000000000000004e426d16f38bea9ddc9eb6d670bd5d1fd95124c5
Arg [8] : 000000000000000000000000dee0200502e4a31826e9ada6e6866faf6693379e
Arg [9] : 000000000000000000000000fe0f1512248dcbd6fdb394af62955e8529a58390
Arg [10] : 000000000000000000000000d253c2ce2f1d1b562d43fb8eb7399bf95103fdc7
Arg [11] : 000000000000000000000000923acdcd0405d3adc77e620785a498e80104a268
Arg [12] : 000000000000000000000000d5a587c1ed07163f3c678905e9cc5b4dc6d6a47a


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.