ETH Price: $3,435.37 (+3.17%)

Token

unshETHing_Token (USH)
 

Overview

Max Total Supply

143,500,000 USH

Holders

1,660 ( -0.060%)

Market

Price

$0.00 @ 0.000001 ETH (+2.84%)

Onchain Market Cap

$267,291.71

Circulating Supply Market Cap

$89,196.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
48.792829985119625522 USH

Value
$0.09 ( ~2.61965729211687E-05 Eth) [0.0000%]
0x6a139edb84ff1605bb5fadf0b2a2f1a29702a904
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

unshETH is an on-chain movement to improve and enforce decentralization of Ethereum validators, using incentive engineering in the form of validator decentralization mining (vdMining), and validator decentralization options (VDOs).

Market

Volume (24H):$1,289.46
Market Capitalization:$89,196.00
Circulating Supply:47,875,310.00 USH
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume
1
Camelot
0X51A80238B5738725128D3A3E06AB41C1D4C05C74-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1$0.0019
0.0000005 Eth
$1,257.48
678,234.357 0X51A80238B5738725128D3A3E06AB41C1D4C05C74
49.9187%
2
Sushiswap
0XE60779CC1B2C1D0580611C526A8DF0E3F870EC48-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.0017
0.0000005 Eth
$1,020.40
587,093.133 0XE60779CC1B2C1D0580611C526A8DF0E3F870EC48
43.2106%
3
PancakeSwap (v2)
0X91D6D6AF7635B7B23A8CED9508117965180E2362-0XBB4CDB9CBD36B01BD1CBAEBF2DE08D9173BC095C$0.0019
0.0000006 Eth
$142.96
76,879.777 0X91D6D6AF7635B7B23A8CED9508117965180E2362
5.6584%
4
Camelot V3
0X51A80238B5738725128D3A3E06AB41C1D4C05C74-0X912CE59144191C1204E64559FE8253A0E49E6548$0.0019
0.0000005 Eth
$31.62
16,469.696 0X51A80238B5738725128D3A3E06AB41C1D4C05C74
1.2122%

Contract Source Code Verified (Exact Match)

Contract Name:
USH

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : USH.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;

// ====================================================================
// |     ______                   _______                             |
// |    / _____________ __  __   / ____(_____  ____ _____  ________   |
// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
// | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
// |                                                                  |
// ====================================================================
// ========================= FRAXShares (FXS) =========================
// ====================================================================
// Frax Finance: https://github.com/FraxFinance

// Primary Author(s)
// Travis Moore: https://github.com/FortisFortuna
// Jason Huan: https://github.com/jasonhuan
// Sam Kazemian: https://github.com/samkazemian

// Reviewer(s) / Contributor(s)
// Sam Sun: https://github.com/samczsun

import "../lib/Common/Context.sol";
import "../lib/ERC20/ERC20Custom.sol";
import "../lib/ERC20/IERC20.sol";
// import "../Frax/Frax.sol";
import "../lib/Staking/Owned.sol";
import "../lib/Math/SafeMath.sol";
import "../lib/Governance/AccessControl.sol";

contract USH is ERC20Custom, AccessControl, Owned {
    using SafeMath for uint256;

    /* ========== STATE VARIABLES ========== */

    string public symbol;
    string public name;
    uint8 public constant decimals = 18;
    //address public FRAXStablecoinAdd;
    
    uint256 public constant genesis_supply = 143500000e18; // 143.5M is printed upon genesis

    address public timelock_address; // Governance timelock address
    //FRAXStablecoin private FRAX;

    bool public trackingVotes = true; // Tracking votes (only change if need to disable votes)

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

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

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

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

    // modifier onlyPools() {
    //    require(FRAX.frax_pools(msg.sender) == true, "Only frax pools can mint new FRAX");
    //     _;
    // } 
    
    modifier onlyByOwnGov() {
        require(msg.sender == owner || msg.sender == timelock_address, "You are not an owner or the governance timelock");
        _;
    }

    /* ========== CONSTRUCTOR ========== */

    constructor (
        string memory _name,
        string memory _symbol, 
        address _creator_address,
        address _timelock_address
    ) public Owned(_creator_address){
        require((_timelock_address != address(0)), "Zero address detected"); 
        name = _name;
        symbol = _symbol;
        timelock_address = _timelock_address;
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _mint(_creator_address, genesis_supply);

        // Do a checkpoint for the owner
        _writeCheckpoint(_creator_address, 0, 0, uint96(genesis_supply));
    }

    /* ========== RESTRICTED FUNCTIONS ========== */
    function setTimelock(address new_timelock) external onlyByOwnGov {
        require(new_timelock != address(0), "Timelock address cannot be 0");
        timelock_address = new_timelock;
    }
    
    // function setFRAXAddress(address frax_contract_address) external onlyByOwnGov {
    //     require(frax_contract_address != address(0), "Zero address detected");

    //     FRAX = FRAXStablecoin(frax_contract_address);

    //     emit FRAXAddressSet(frax_contract_address);
    // }
    
    function mint(address to, uint256 amount) public onlyByOwnGov {
        _mint(to, amount);
    }
    
    // This function is what other frax pools will call to mint new FXS (similar to the FRAX mint) 
    // function pool_mint(address m_address, uint256 m_amount) external onlyPools {        
    //     if(trackingVotes){
    //         uint32 srcRepNum = numCheckpoints[address(this)];
    //         uint96 srcRepOld = srcRepNum > 0 ? checkpoints[address(this)][srcRepNum - 1].votes : 0;
    //         uint96 srcRepNew = add96(srcRepOld, uint96(m_amount), "pool_mint new votes overflows");
    //         _writeCheckpoint(address(this), srcRepNum, srcRepOld, srcRepNew); // mint new votes
    //         trackVotes(address(this), m_address, uint96(m_amount));
    //     }

    //     super._mint(m_address, m_amount);
    //     emit FXSMinted(address(this), m_address, m_amount);
    // }

    // // This function is what other frax pools will call to burn FXS 
    // function pool_burn_from(address b_address, uint256 b_amount) external onlyPools {
    //     if(trackingVotes){
    //         trackVotes(b_address, address(this), uint96(b_amount));
    //         uint32 srcRepNum = numCheckpoints[address(this)];
    //         uint96 srcRepOld = srcRepNum > 0 ? checkpoints[address(this)][srcRepNum - 1].votes : 0;
    //         uint96 srcRepNew = sub96(srcRepOld, uint96(b_amount), "pool_burn_from new votes underflows");
    //         _writeCheckpoint(address(this), srcRepNum, srcRepOld, srcRepNew); // burn votes
    //     }

    //     super._burnFrom(b_address, b_amount);
    //     emit FXSBurned(b_address, address(this), b_amount);
    // }

    function toggleVotes() external onlyByOwnGov {
        trackingVotes = !trackingVotes;
    }

    /* ========== OVERRIDDEN PUBLIC FUNCTIONS ========== */

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        if(trackingVotes){
            // Transfer votes
            trackVotes(_msgSender(), recipient, uint96(amount));
        }

        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        if(trackingVotes){
            // Transfer votes
            trackVotes(sender, recipient, uint96(amount));
        }

        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));

        return true;
    }

    /* ========== PUBLIC FUNCTIONS ========== */

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

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

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

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

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

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

    /* ========== INTERNAL FUNCTIONS ========== */

    // From compound's _moveDelegates
    // Keep track of votes. "Delegates" is a misnomer here
    function trackVotes(address srcRep, address dstRep, uint96 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, "USH::_moveVotes: vote amount underflows");
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, "USH::_moveVotes: vote amount overflows");
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

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

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

      emit VoterVotesChanged(voter, oldVotes, newVotes);
    }

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

    function safe96(uint n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /* ========== EVENTS ========== */
    
    /// @notice An event thats emitted when a voters account's vote balance changes
    event VoterVotesChanged(address indexed voter, uint previousBalance, uint newBalance);

    // // Track FXS burned
    // event FXSBurned(address indexed from, address indexed to, uint256 amount);

    // // Track FXS minted
    // event FXSMinted(address indexed from, address indexed to, uint256 amount);

    // event FRAXAddressSet(address addr);
}

File 2 of 9 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

/*
 * @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 GSN 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 payable) {
        return payable(msg.sender);
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 3 of 9 : ERC20Custom.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

import "../Common/Context.sol";
import "./IERC20.sol";
import "../Math/SafeMath.sol";
import "../Utils/Address.sol";

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


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

    mapping (address => uint256) internal _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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


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

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

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

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

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal virtual {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }

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

File 4 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

import "../Common/Context.sol";
import "../Math/SafeMath.sol";

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 5 of 9 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.11;

import "../Utils/EnumerableSet.sol";
import "../Utils/Address.sol";
import "../Common/Context.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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 {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; //bytes32(uint256(0x4B437D01b575618140442A4975db38850e3f8f5f) << 96);

    /**
     * @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 {_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) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @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 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.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _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.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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 granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        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.
     *
     * [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}.
     * ====
     */
    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 {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 6 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 7 of 9 : Owned.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;

// https://docs.synthetix.io/contracts/Owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor (address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 8 of 9 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11 <0.9.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 9 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.11;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(bytes20(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(bytes20(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(bytes20(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(bytes20(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

Settings
{
  "remappings": [
    "Common/=lib/Common/",
    "ERC20/=lib/ERC20/",
    "Governance/=lib/Governance/",
    "Math/=lib/Math/",
    "Staking/=lib/Staking/",
    "Utils/=lib/Utils/",
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_creator_address","type":"address"},{"internalType":"address","name":"_timelock_address","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":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","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":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"VoterVotesChanged","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesis_supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"address","name":"new_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock_address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleVotes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trackingVotes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040526008805460ff60a01b1916600160a01b1790553480156200002457600080fd5b5060405162002b8138038062002b81833981016040819052620000479162000740565b816001600160a01b038116620000a45760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600480546001600160a01b0319166001600160a01b038316908117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1506001600160a01b038116620001565760405162461bcd60e51b815260206004820152601560248201527f5a65726f2061646472657373206465746563746564000000000000000000000060448201526064016200009b565b60076200016485826200085d565b5060066200017384826200085d565b50600880546001600160a01b0319166001600160a01b038316179055620001a360006200019d3390565b620001de565b620001ba826a76b34e966bdf33bf800000620001ee565b620001d4826000806a76b34e966bdf33bf800000620002ea565b50505050620009d1565b620001ea8282620004e1565b5050565b6001600160a01b038216620002465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200009b565b62000262816002546200054f60201b62000fd21790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200029591839062000fd26200054f821b17901c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000620003114360405180606001604052806033815260200162002b4e60339139620005bb565b905060008463ffffffff161180156200036e57506001600160a01b038516600090815260096020526040812063ffffffff831691620003526001886200093f565b63ffffffff908116825260208201929092526040016000205416145b15620003e1576001600160a01b038516600090815260096020526040812083916200039b6001886200093f565b63ffffffff168152602081019190915260400160002080546001600160601b039290921664010000000002600160201b600160801b03199092169190911790556200048c565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600982528681208b8616825290915294909420925183549451909116640100000000026001600160801b03199094169116179190911790556200045b84600162000966565b6001600160a01b0386166000908152600a60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917f3eaa1c4be29b4a4c60e00300b5a17a8ec6c982b5b0ad5870cc84ebdc3b24d68e910160405180910390a25050505050565b60008281526003602090815260409091206200050891839062001031620005ee821b17901c565b15620001ea5760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b505050565b6000806200055e838562000986565b905083811015620005b25760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016200009b565b90505b92915050565b6000816401000000008410620005e65760405162461bcd60e51b81526004016200009b91906200099c565b509192915050565b6000620005b2836001600160601b0319606085901b1660008181526001830160205260408120546200064d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620005b5565b506000620005b5565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620006895781810151838201526020016200066f565b50506000910152565b600082601f830112620006a457600080fd5b81516001600160401b0380821115620006c157620006c162000656565b604051601f8301601f19908116603f01168101908282118183101715620006ec57620006ec62000656565b816040528381528660208588010111156200070657600080fd5b620007198460208301602089016200066c565b9695505050505050565b80516001600160a01b03811681146200073b57600080fd5b919050565b600080600080608085870312156200075757600080fd5b84516001600160401b03808211156200076f57600080fd5b6200077d8883890162000692565b955060208701519150808211156200079457600080fd5b50620007a38782880162000692565b935050620007b46040860162000723565b9150620007c46060860162000723565b905092959194509250565b600181811c90821680620007e457607f821691505b6020821081036200080557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054a57600081815260208120601f850160051c81016020861015620008345750805b601f850160051c820191505b81811015620008555782815560010162000840565b505050505050565b81516001600160401b0381111562000879576200087962000656565b62000891816200088a8454620007cf565b846200080b565b602080601f831160018114620008c95760008415620008b05750858301515b600019600386901b1c1916600185901b17855562000855565b600085815260208120601f198616915b82811015620008fa57888601518255948401946001909101908401620008d9565b5085821015620009195787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b63ffffffff8281168282160390808211156200095f576200095f62000929565b5092915050565b63ffffffff8181168382160190808211156200095f576200095f62000929565b80820180821115620005b557620005b562000929565b6020815260008251806020840152620009bd8160408501602087016200066c565b601f01601f19169190910160400192915050565b61216d80620009e16000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c806370a0823111610125578063a457c2d7116100ad578063ca15c8731161007c578063ca15c873146104c5578063d547741f146104d8578063dc6663c7146104eb578063dd62ed3e146104fe578063f1127ed81461053757600080fd5b8063a457c2d714610479578063a9059cbb1461048c578063b4b5ea571461049f578063bdacb303146104b257600080fd5b80638da5cb5b116100f45780638da5cb5b146104305780639010d07c1461044357806391d148541461045657806395d89b4114610469578063a217fddf1461047157600080fd5b806370a08231146103c1578063782d6fe1146103ea57806379ba50971461041557806379cc67901461041d57600080fd5b8063313ce567116101a857806342966c681161017757806342966c681461032e57806345791d191461034157806351e238e31461034957806353a47bb71461035b5780636fcfff451461038657600080fd5b8063313ce567146102db57806336568abe146102f5578063395093511461030857806340c10f191461031b57600080fd5b806323b872dd116101e457806323b872dd1461027e578063248a9ca31461029157806328a4aeaa146102b45780632f2ff15d146102c857600080fd5b806306fdde0314610216578063095ea7b3146102345780631627540c1461025757806318160ddd1461026c575b600080fd5b61021e61059e565b60405161022b9190611ca6565b60405180910390f35b610247610242366004611d10565b61062c565b604051901515815260200161022b565b61026a610265366004611d3a565b610643565b005b6002545b60405190815260200161022b565b61024761028c366004611d55565b61070e565b61027061029f366004611d91565b60009081526003602052604090206002015490565b60085461024790600160a01b900460ff1681565b61026a6102d6366004611daa565b610795565b6102e3601281565b60405160ff909116815260200161022b565b61026a610303366004611daa565b610823565b610247610316366004611d10565b61089d565b61026a610329366004611d10565b6108d3565b61026a61033c366004611d91565b61091c565b61026a610929565b6102706a76b34e966bdf33bf80000081565b60055461036e906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b6103ac610394366004611d3a565b600a6020526000908152604090205463ffffffff1681565b60405163ffffffff909116815260200161022b565b6102706103cf366004611d3a565b6001600160a01b031660009081526020819052604090205490565b6103fd6103f8366004611d10565b610989565b6040516001600160601b03909116815260200161022b565b61026a610c12565b61026a61042b366004611d10565b610cfc565b60045461036e906001600160a01b031681565b61036e610451366004611dd6565b610d48565b610247610464366004611daa565b610d67565b61021e610d7f565b610270600081565b610247610487366004611d10565b610d8c565b61024761049a366004611d10565b610ddb565b6103fd6104ad366004611d3a565b610e06565b61026a6104c0366004611d3a565b610e83565b6102706104d3366004611d91565b610f3a565b61026a6104e6366004611daa565b610f51565b60085461036e906001600160a01b031681565b61027061050c366004611df8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61057a610545366004611e22565b600960209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b0390911660208301520161022b565b600780546105ab90611e62565b80601f01602080910402602001604051908101604052809291908181526020018280546105d790611e62565b80156106245780601f106105f957610100808354040283529160200191610624565b820191906000526020600020905b81548152906001019060200180831161060757829003601f168201915b505050505081565b600061063933848461104b565b5060015b92915050565b6004546001600160a01b031633146106ba5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084015b60405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b600854600090600160a01b900460ff161561072e5761072e848484611170565b610739848484611324565b61078b84336107868560405180606001604052806028815260200161206d602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906114a7565b61104b565b5060019392505050565b6000828152600360205260409020600201546107b19033610d67565b6108155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b60648201526084016106b1565b61081f82826114e1565b5050565b6001600160a01b03811633146108935760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106b1565b61081f828261153a565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106399185906107869086610fd2565b6004546001600160a01b03163314806108f657506008546001600160a01b031633145b6109125760405162461bcd60e51b81526004016106b190611e9c565b61081f8282611593565b6109263382611672565b50565b6004546001600160a01b031633148061094c57506008546001600160a01b031633145b6109685760405162461bcd60e51b81526004016106b190611e9c565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60004382106109e95760405162461bcd60e51b815260206004820152602660248201527f5553483a3a6765745072696f72566f7465733a206e6f742079657420646574656044820152651c9b5a5b995960d21b60648201526084016106b1565b6001600160a01b0383166000908152600a602052604081205463ffffffff1690819003610a1a57600091505061063d565b6001600160a01b03841660009081526009602052604081208491610a3f600185611f01565b63ffffffff90811682526020820192909252604001600020541611610ab2576001600160a01b038416600090815260096020526040812090610a82600184611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b0316915061063d9050565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff16831015610aed57600091505061063d565b600080610afb600184611f01565b90505b8163ffffffff168163ffffffff161115610bcd5760006002610b208484611f01565b610b2a9190611f1e565b610b349083611f01565b6001600160a01b038816600090815260096020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250879003610ba15760200151945061063d9350505050565b805163ffffffff16871115610bb857819350610bc6565b610bc3600183611f01565b92505b5050610afe565b506001600160a01b038516600090815260096020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b6005546001600160a01b03163314610c8a5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016106b1565b600454600554604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160058054600480546001600160a01b03199081166001600160a01b03841617909155169055565b6000610d2c8260405180606001604052806024815260200161209560249139610d25863361050c565b91906114a7565b9050610d3983338361104b565b610d438383611672565b505050565b6000828152600360205260408120610d609083611776565b9392505050565b6000828152600360205260408120610d60908361178c565b600680546105ab90611e62565b6000610639338461078685604051806060016040528060258152602001612113602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906114a7565b600854600090600160a01b900460ff1615610dfb57610dfb338484611170565b610639338484611324565b6001600160a01b0381166000908152600a602052604081205463ffffffff1680610e31576000610d60565b6001600160a01b038316600090815260096020526040812090610e55600184611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03169392505050565b6004546001600160a01b0316331480610ea657506008546001600160a01b031633145b610ec25760405162461bcd60e51b81526004016106b190611e9c565b6001600160a01b038116610f185760405162461bcd60e51b815260206004820152601c60248201527f54696d656c6f636b20616464726573732063616e6e6f7420626520300000000060448201526064016106b1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260036020526040812061063d906117b3565b600082815260036020526040902060020154610f6d9033610d67565b6108935760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b60648201526084016106b1565b600080610fdf8385611f4f565b905083811015610d605760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016106b1565b6000610d60836001600160601b0319606085901b166117bd565b6001600160a01b0383166110ad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106b1565b6001600160a01b03821661110e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106b1565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b816001600160a01b0316836001600160a01b03161415801561119b57506000816001600160601b0316115b15610d43576001600160a01b03831615611260576001600160a01b0383166000908152600a602052604081205463ffffffff1690816111db576000611227565b6001600160a01b0385166000908152600960205260408120906111ff600185611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9050600061124e82856040518060600160405280602781526020016120ec6027913961180c565b905061125c86848484611856565b5050505b6001600160a01b03821615610d43576001600160a01b0382166000908152600a602052604081205463ffffffff16908161129b5760006112e7565b6001600160a01b0384166000908152600960205260408120906112bf600185611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9050600061130e828560405180606001604052806026815260200161202160269139611a4e565b905061131c85848484611856565b505050505050565b6001600160a01b0383166113885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106b1565b6001600160a01b0382166113ea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106b1565b61142781604051806060016040528060268152602001612047602691396001600160a01b03861660009081526020819052604090205491906114a7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546114569082610fd2565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611163565b600081848411156114cb5760405162461bcd60e51b81526004016106b19190611ca6565b5060006114d88486611f62565b95945050505050565b60008281526003602052604090206114f99082611031565b1561081f5760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b60008281526003602052604090206115529082611a9b565b1561081f5760405133906001600160a01b0383169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b6001600160a01b0382166115e95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b1565b6002546115f69082610fd2565b6002556001600160a01b03821660009081526020819052604090205461161c9082610fd2565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b0382166116d25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106b1565b61170f81604051806060016040528060228152602001611fff602291396001600160a01b03851660009081526020819052604090205491906114a7565b6001600160a01b0383166000908152602081905260409020556002546117359082611ab5565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611666565b60006117828383611af7565b60601c9392505050565b606081901b6001600160601b03191660009081526001830160205260408120541515610d60565b600061063d825490565b60008181526001830160205260408120546118045750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561063d565b50600061063d565b6000836001600160601b0316836001600160601b0316111582906118435760405162461bcd60e51b81526004016106b19190611ca6565b5061184e8385611f75565b949350505050565b600061187a436040518060600160405280603381526020016120b960339139611b7d565b905060008463ffffffff161180156118d457506001600160a01b038516600090815260096020526040812063ffffffff8316916118b8600188611f01565b63ffffffff908116825260208201929092526040016000205416145b15611948576001600160a01b038516600090815260096020526040812083916118fe600188611f01565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff00000000199092169190911790556119f9565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600982528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff199094169116179190911790556119c8846001611f95565b6001600160a01b0386166000908152600a60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917f3eaa1c4be29b4a4c60e00300b5a17a8ec6c982b5b0ad5870cc84ebdc3b24d68e910160405180910390a25050505050565b600080611a5b8486611fb2565b9050846001600160601b0316816001600160601b031610158390611a925760405162461bcd60e51b81526004016106b19190611ca6565b50949350505050565b6000610d60836001600160601b0319606085901b16611bac565b6000610d6083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114a7565b81546000908210611b555760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016106b1565b826000018281548110611b6a57611b6a611fd2565b9060005260206000200154905092915050565b600081600160201b8410611ba45760405162461bcd60e51b81526004016106b19190611ca6565b509192915050565b60008181526001830160205260408120548015611c95576000611bd0600183611f62565b8554909150600090611be490600190611f62565b90506000866000018281548110611bfd57611bfd611fd2565b9060005260206000200154905080876000018481548110611c2057611c20611fd2565b600091825260209091200155611c37836001611f4f565b60008281526001890160205260409020558654879080611c5957611c59611fe8565b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061063d565b600091505061063d565b5092915050565b600060208083528351808285015260005b81811015611cd357858101830151858201604001528201611cb7565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611d0b57600080fd5b919050565b60008060408385031215611d2357600080fd5b611d2c83611cf4565b946020939093013593505050565b600060208284031215611d4c57600080fd5b610d6082611cf4565b600080600060608486031215611d6a57600080fd5b611d7384611cf4565b9250611d8160208501611cf4565b9150604084013590509250925092565b600060208284031215611da357600080fd5b5035919050565b60008060408385031215611dbd57600080fd5b82359150611dcd60208401611cf4565b90509250929050565b60008060408385031215611de957600080fd5b50508035926020909101359150565b60008060408385031215611e0b57600080fd5b611e1483611cf4565b9150611dcd60208401611cf4565b60008060408385031215611e3557600080fd5b611e3e83611cf4565b9150602083013563ffffffff81168114611e5757600080fd5b809150509250929050565b600181811c90821680611e7657607f821691505b602082108103611e9657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602f908201527f596f7520617265206e6f7420616e206f776e6572206f722074686520676f766560408201526e726e616e63652074696d656c6f636b60881b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff828116828216039080821115611c9f57611c9f611eeb565b600063ffffffff80841680611f4357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b8082018082111561063d5761063d611eeb565b8181038181111561063d5761063d611eeb565b6001600160601b03828116828216039080821115611c9f57611c9f611eeb565b63ffffffff818116838216019080821115611c9f57611c9f611eeb565b6001600160601b03818116838216019080821115611c9f57611c9f611eeb565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63655553483a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f777345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e63655553483a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974735553483a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f777345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220dcc90ddc4cfe80c43398b30f6fc6e7f5edb5c043c71a4e0a8e21fdf811dbce9764736f6c634300081100335553483a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d88e7d30f7548b7a7c6bfe513629724916449e6d000000000000000000000000d88e7d30f7548b7a7c6bfe513629724916449e6d0000000000000000000000000000000000000000000000000000000000000010756e7368455448696e675f546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035553480000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102115760003560e01c806370a0823111610125578063a457c2d7116100ad578063ca15c8731161007c578063ca15c873146104c5578063d547741f146104d8578063dc6663c7146104eb578063dd62ed3e146104fe578063f1127ed81461053757600080fd5b8063a457c2d714610479578063a9059cbb1461048c578063b4b5ea571461049f578063bdacb303146104b257600080fd5b80638da5cb5b116100f45780638da5cb5b146104305780639010d07c1461044357806391d148541461045657806395d89b4114610469578063a217fddf1461047157600080fd5b806370a08231146103c1578063782d6fe1146103ea57806379ba50971461041557806379cc67901461041d57600080fd5b8063313ce567116101a857806342966c681161017757806342966c681461032e57806345791d191461034157806351e238e31461034957806353a47bb71461035b5780636fcfff451461038657600080fd5b8063313ce567146102db57806336568abe146102f5578063395093511461030857806340c10f191461031b57600080fd5b806323b872dd116101e457806323b872dd1461027e578063248a9ca31461029157806328a4aeaa146102b45780632f2ff15d146102c857600080fd5b806306fdde0314610216578063095ea7b3146102345780631627540c1461025757806318160ddd1461026c575b600080fd5b61021e61059e565b60405161022b9190611ca6565b60405180910390f35b610247610242366004611d10565b61062c565b604051901515815260200161022b565b61026a610265366004611d3a565b610643565b005b6002545b60405190815260200161022b565b61024761028c366004611d55565b61070e565b61027061029f366004611d91565b60009081526003602052604090206002015490565b60085461024790600160a01b900460ff1681565b61026a6102d6366004611daa565b610795565b6102e3601281565b60405160ff909116815260200161022b565b61026a610303366004611daa565b610823565b610247610316366004611d10565b61089d565b61026a610329366004611d10565b6108d3565b61026a61033c366004611d91565b61091c565b61026a610929565b6102706a76b34e966bdf33bf80000081565b60055461036e906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b6103ac610394366004611d3a565b600a6020526000908152604090205463ffffffff1681565b60405163ffffffff909116815260200161022b565b6102706103cf366004611d3a565b6001600160a01b031660009081526020819052604090205490565b6103fd6103f8366004611d10565b610989565b6040516001600160601b03909116815260200161022b565b61026a610c12565b61026a61042b366004611d10565b610cfc565b60045461036e906001600160a01b031681565b61036e610451366004611dd6565b610d48565b610247610464366004611daa565b610d67565b61021e610d7f565b610270600081565b610247610487366004611d10565b610d8c565b61024761049a366004611d10565b610ddb565b6103fd6104ad366004611d3a565b610e06565b61026a6104c0366004611d3a565b610e83565b6102706104d3366004611d91565b610f3a565b61026a6104e6366004611daa565b610f51565b60085461036e906001600160a01b031681565b61027061050c366004611df8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61057a610545366004611e22565b600960209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b0390911660208301520161022b565b600780546105ab90611e62565b80601f01602080910402602001604051908101604052809291908181526020018280546105d790611e62565b80156106245780601f106105f957610100808354040283529160200191610624565b820191906000526020600020905b81548152906001019060200180831161060757829003601f168201915b505050505081565b600061063933848461104b565b5060015b92915050565b6004546001600160a01b031633146106ba5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084015b60405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b600854600090600160a01b900460ff161561072e5761072e848484611170565b610739848484611324565b61078b84336107868560405180606001604052806028815260200161206d602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906114a7565b61104b565b5060019392505050565b6000828152600360205260409020600201546107b19033610d67565b6108155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b60648201526084016106b1565b61081f82826114e1565b5050565b6001600160a01b03811633146108935760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106b1565b61081f828261153a565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106399185906107869086610fd2565b6004546001600160a01b03163314806108f657506008546001600160a01b031633145b6109125760405162461bcd60e51b81526004016106b190611e9c565b61081f8282611593565b6109263382611672565b50565b6004546001600160a01b031633148061094c57506008546001600160a01b031633145b6109685760405162461bcd60e51b81526004016106b190611e9c565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60004382106109e95760405162461bcd60e51b815260206004820152602660248201527f5553483a3a6765745072696f72566f7465733a206e6f742079657420646574656044820152651c9b5a5b995960d21b60648201526084016106b1565b6001600160a01b0383166000908152600a602052604081205463ffffffff1690819003610a1a57600091505061063d565b6001600160a01b03841660009081526009602052604081208491610a3f600185611f01565b63ffffffff90811682526020820192909252604001600020541611610ab2576001600160a01b038416600090815260096020526040812090610a82600184611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b0316915061063d9050565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff16831015610aed57600091505061063d565b600080610afb600184611f01565b90505b8163ffffffff168163ffffffff161115610bcd5760006002610b208484611f01565b610b2a9190611f1e565b610b349083611f01565b6001600160a01b038816600090815260096020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250879003610ba15760200151945061063d9350505050565b805163ffffffff16871115610bb857819350610bc6565b610bc3600183611f01565b92505b5050610afe565b506001600160a01b038516600090815260096020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b6005546001600160a01b03163314610c8a5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016106b1565b600454600554604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160058054600480546001600160a01b03199081166001600160a01b03841617909155169055565b6000610d2c8260405180606001604052806024815260200161209560249139610d25863361050c565b91906114a7565b9050610d3983338361104b565b610d438383611672565b505050565b6000828152600360205260408120610d609083611776565b9392505050565b6000828152600360205260408120610d60908361178c565b600680546105ab90611e62565b6000610639338461078685604051806060016040528060258152602001612113602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906114a7565b600854600090600160a01b900460ff1615610dfb57610dfb338484611170565b610639338484611324565b6001600160a01b0381166000908152600a602052604081205463ffffffff1680610e31576000610d60565b6001600160a01b038316600090815260096020526040812090610e55600184611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03169392505050565b6004546001600160a01b0316331480610ea657506008546001600160a01b031633145b610ec25760405162461bcd60e51b81526004016106b190611e9c565b6001600160a01b038116610f185760405162461bcd60e51b815260206004820152601c60248201527f54696d656c6f636b20616464726573732063616e6e6f7420626520300000000060448201526064016106b1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260036020526040812061063d906117b3565b600082815260036020526040902060020154610f6d9033610d67565b6108935760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b60648201526084016106b1565b600080610fdf8385611f4f565b905083811015610d605760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016106b1565b6000610d60836001600160601b0319606085901b166117bd565b6001600160a01b0383166110ad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106b1565b6001600160a01b03821661110e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106b1565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b816001600160a01b0316836001600160a01b03161415801561119b57506000816001600160601b0316115b15610d43576001600160a01b03831615611260576001600160a01b0383166000908152600a602052604081205463ffffffff1690816111db576000611227565b6001600160a01b0385166000908152600960205260408120906111ff600185611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9050600061124e82856040518060600160405280602781526020016120ec6027913961180c565b905061125c86848484611856565b5050505b6001600160a01b03821615610d43576001600160a01b0382166000908152600a602052604081205463ffffffff16908161129b5760006112e7565b6001600160a01b0384166000908152600960205260408120906112bf600185611f01565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9050600061130e828560405180606001604052806026815260200161202160269139611a4e565b905061131c85848484611856565b505050505050565b6001600160a01b0383166113885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106b1565b6001600160a01b0382166113ea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106b1565b61142781604051806060016040528060268152602001612047602691396001600160a01b03861660009081526020819052604090205491906114a7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546114569082610fd2565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611163565b600081848411156114cb5760405162461bcd60e51b81526004016106b19190611ca6565b5060006114d88486611f62565b95945050505050565b60008281526003602052604090206114f99082611031565b1561081f5760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b60008281526003602052604090206115529082611a9b565b1561081f5760405133906001600160a01b0383169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b6001600160a01b0382166115e95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b1565b6002546115f69082610fd2565b6002556001600160a01b03821660009081526020819052604090205461161c9082610fd2565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b0382166116d25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106b1565b61170f81604051806060016040528060228152602001611fff602291396001600160a01b03851660009081526020819052604090205491906114a7565b6001600160a01b0383166000908152602081905260409020556002546117359082611ab5565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611666565b60006117828383611af7565b60601c9392505050565b606081901b6001600160601b03191660009081526001830160205260408120541515610d60565b600061063d825490565b60008181526001830160205260408120546118045750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561063d565b50600061063d565b6000836001600160601b0316836001600160601b0316111582906118435760405162461bcd60e51b81526004016106b19190611ca6565b5061184e8385611f75565b949350505050565b600061187a436040518060600160405280603381526020016120b960339139611b7d565b905060008463ffffffff161180156118d457506001600160a01b038516600090815260096020526040812063ffffffff8316916118b8600188611f01565b63ffffffff908116825260208201929092526040016000205416145b15611948576001600160a01b038516600090815260096020526040812083916118fe600188611f01565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff00000000199092169190911790556119f9565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600982528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff199094169116179190911790556119c8846001611f95565b6001600160a01b0386166000908152600a60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917f3eaa1c4be29b4a4c60e00300b5a17a8ec6c982b5b0ad5870cc84ebdc3b24d68e910160405180910390a25050505050565b600080611a5b8486611fb2565b9050846001600160601b0316816001600160601b031610158390611a925760405162461bcd60e51b81526004016106b19190611ca6565b50949350505050565b6000610d60836001600160601b0319606085901b16611bac565b6000610d6083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114a7565b81546000908210611b555760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016106b1565b826000018281548110611b6a57611b6a611fd2565b9060005260206000200154905092915050565b600081600160201b8410611ba45760405162461bcd60e51b81526004016106b19190611ca6565b509192915050565b60008181526001830160205260408120548015611c95576000611bd0600183611f62565b8554909150600090611be490600190611f62565b90506000866000018281548110611bfd57611bfd611fd2565b9060005260206000200154905080876000018481548110611c2057611c20611fd2565b600091825260209091200155611c37836001611f4f565b60008281526001890160205260409020558654879080611c5957611c59611fe8565b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061063d565b600091505061063d565b5092915050565b600060208083528351808285015260005b81811015611cd357858101830151858201604001528201611cb7565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611d0b57600080fd5b919050565b60008060408385031215611d2357600080fd5b611d2c83611cf4565b946020939093013593505050565b600060208284031215611d4c57600080fd5b610d6082611cf4565b600080600060608486031215611d6a57600080fd5b611d7384611cf4565b9250611d8160208501611cf4565b9150604084013590509250925092565b600060208284031215611da357600080fd5b5035919050565b60008060408385031215611dbd57600080fd5b82359150611dcd60208401611cf4565b90509250929050565b60008060408385031215611de957600080fd5b50508035926020909101359150565b60008060408385031215611e0b57600080fd5b611e1483611cf4565b9150611dcd60208401611cf4565b60008060408385031215611e3557600080fd5b611e3e83611cf4565b9150602083013563ffffffff81168114611e5757600080fd5b809150509250929050565b600181811c90821680611e7657607f821691505b602082108103611e9657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602f908201527f596f7520617265206e6f7420616e206f776e6572206f722074686520676f766560408201526e726e616e63652074696d656c6f636b60881b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff828116828216039080821115611c9f57611c9f611eeb565b600063ffffffff80841680611f4357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b8082018082111561063d5761063d611eeb565b8181038181111561063d5761063d611eeb565b6001600160601b03828116828216039080821115611c9f57611c9f611eeb565b63ffffffff818116838216019080821115611c9f57611c9f611eeb565b6001600160601b03818116838216019080821115611c9f57611c9f611eeb565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63655553483a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f777345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e63655553483a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974735553483a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f777345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220dcc90ddc4cfe80c43398b30f6fc6e7f5edb5c043c71a4e0a8e21fdf811dbce9764736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d88e7d30f7548b7a7c6bfe513629724916449e6d000000000000000000000000d88e7d30f7548b7a7c6bfe513629724916449e6d0000000000000000000000000000000000000000000000000000000000000010756e7368455448696e675f546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035553480000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): unshETHing_Token
Arg [1] : _symbol (string): USH
Arg [2] : _creator_address (address): 0xD88e7D30f7548B7a7C6BFE513629724916449e6D
Arg [3] : _timelock_address (address): 0xD88e7D30f7548B7a7C6BFE513629724916449e6D

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000d88e7d30f7548b7a7c6bfe513629724916449e6d
Arg [3] : 000000000000000000000000d88e7d30f7548b7a7c6bfe513629724916449e6d
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [5] : 756e7368455448696e675f546f6b656e00000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5553480000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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