ETH Price: $3,414.62 (+3.09%)

Contract

0xAB846Fb6C81370327e784Ae7CbB6d6a6af6Ff4BF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Paladin Token (PAL) (@$0.0501)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve212483902024-11-23 5:37:1110 hrs ago1732340231IN
Paladin: PAL Token
0 ETH0.0005122610.99932858
Approve212411362024-11-22 5:18:4735 hrs ago1732252727IN
Paladin: PAL Token
0 ETH0.000430099.29020838
Approve212351002024-11-21 9:06:112 days ago1732179971IN
Paladin: PAL Token
0 ETH0.000427139.17139216
Transfer212210642024-11-19 10:05:114 days ago1732010711IN
Paladin: PAL Token
0 ETH0.000446328.36170852
Approve212141282024-11-18 10:53:115 days ago1731927191IN
Paladin: PAL Token
0 ETH0.0005827512.58432986
Approve212068612024-11-17 10:34:476 days ago1731839687IN
Paladin: PAL Token
0 ETH0.000390498.43247555
Approve211893342024-11-14 23:52:358 days ago1731628355IN
Paladin: PAL Token
0 ETH0.001013421.89531922
Approve211637852024-11-11 10:16:2312 days ago1731320183IN
Paladin: PAL Token
0 ETH0.000637713.77086489
Approve211637172024-11-11 10:02:4712 days ago1731319367IN
Paladin: PAL Token
0 ETH0.0008598518.48678519
Approve211491622024-11-09 9:20:3514 days ago1731144035IN
Paladin: PAL Token
0 ETH0.0004802710.37126904
Approve211339312024-11-07 6:17:3516 days ago1730960255IN
Paladin: PAL Token
0 ETH0.000367457.89002124
Transfer211242732024-11-05 21:56:4717 days ago1730843807IN
Paladin: PAL Token
0 ETH0.000221216.1
Transfer211216952024-11-05 13:18:1118 days ago1730812691IN
Paladin: PAL Token
0 ETH0.000333016.24025447
Approve211066392024-11-03 10:52:3520 days ago1730631155IN
Paladin: PAL Token
0 ETH0.000129955.3506408
Approve211064522024-11-03 10:15:1120 days ago1730628911IN
Paladin: PAL Token
0 ETH0.000122832.63750772
Transfer211064292024-11-03 10:10:3520 days ago1730628635IN
Paladin: PAL Token
0 ETH0.000121543.35373456
Approve211064232024-11-03 10:09:2320 days ago1730628563IN
Paladin: PAL Token
0 ETH0.000145383.12169391
Approve211045402024-11-03 3:51:4720 days ago1730605907IN
Paladin: PAL Token
0 ETH0.000188784.0535178
Approve211029412024-11-02 22:29:1120 days ago1730586551IN
Paladin: PAL Token
0 ETH0.000246165.29257863
Transfer211024372024-11-02 20:47:3520 days ago1730580455IN
Paladin: PAL Token
0 ETH0.000320116
Approve211001892024-11-02 13:14:5921 days ago1730553299IN
Paladin: PAL Token
0 ETH0.00023575.06104306
Approve210860652024-10-31 13:57:5923 days ago1730383079IN
Paladin: PAL Token
0 ETH0.0004209717.33265147
Approve210856932024-10-31 12:43:2323 days ago1730378603IN
Paladin: PAL Token
0 ETH0.0002676511.01987961
Approve210760622024-10-30 4:25:3524 days ago1730262335IN
Paladin: PAL Token
0 ETH0.0009471620.33774787
Approve210666762024-10-28 21:00:1125 days ago1730149211IN
Paladin: PAL Token
0 ETH0.000419149
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PaladinToken

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999999 runs

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

import "./open-zeppelin/ERC20.sol";
import "./open-zeppelin/AccessControl.sol";
import "./open-zeppelin/utils/Math.sol";
import "./open-zeppelin/utils/ECDSA.sol";

/** @title Paladin Token contract  */
/// @author Paladin
contract PaladinToken is ERC20, AccessControl {
    /** @notice The identifier for admin role */
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN");
    /** @notice The identifier for transfer-allwoed role */
    bytes32 public constant TRANSFER_ROLE = keccak256("TRANSFER");

    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    bytes32 private constant DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    struct Checkpoint {
        uint32 fromBlock;
        uint224 votes;
    }

    struct DelegateCheckpoint {
        uint32 fromBlock;
        address delegate;
    }

    // Storage :

    /** @notice boolean allowing transfer for all users */
    bool public transfersAllowed = false;

    mapping(address => address) public delegates;

    mapping(address => Checkpoint[]) public checkpoints;

    mapping(address => DelegateCheckpoint[]) public delegateCheckpoints;

    mapping(address => uint256) public nonces;

    // Events :

    /** @notice Emitted when transfer toggle is switched */
    event TransfersAllowed(bool transfersAllowed);

    event DelegateChanged(
        address indexed delegator,
        address indexed fromDelegate,
        address indexed toDelegate
    );

    event DelegateVotesChanged(
        address indexed delegate,
        uint256 previousBalance,
        uint256 newBalance
    );

    // Modifiers :

    /** @dev Allows only ADMIN role to call the function */
    modifier onlyAdmin() {
        require(
            hasRole(ADMIN_ROLE, msg.sender),
            "PaladinToken: caller not admin"
        );
        _;
    }

    /** @dev Allows only caller with the TRANSFER role to execute transfer */
    modifier onlyTransferer(address from) {
        require(
            transfersAllowed || hasRole(TRANSFER_ROLE, msg.sender),
            "PaladinToken: caller cannot transfer"
        );
        _;
    }

    constructor(
        uint256 initialSupply,
        address admin,
        address recipient
    ) ERC20("Paladin Token", "PAL") {
        _setupRole(TRANSFER_ROLE, admin);
        _setupRole(TRANSFER_ROLE, msg.sender);
        _setupRole(ADMIN_ROLE, admin);
        _setRoleAdmin(TRANSFER_ROLE, ADMIN_ROLE);

        _mint(recipient, initialSupply);
    }

    /** @dev Hook called before any transfer */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override onlyTransferer(from) {}

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        _moveDelegates(delegates[from], delegates[to], amount);
    }

    function delegate(address delegatee) external virtual {
        return _delegate(_msgSender(), delegatee);
    }

    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual {
        require(block.timestamp <= expiry, "PaladinToken: signature expired");

        bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this)));
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signer = ecrecover(digest, v, r, s);
        
        require(signer != address(0), "PaladinToken: invalid signature");
        require(nonce == nonces[signer], "PaladinToken: invalid nonce");
        nonces[signer]++;
        return _delegate(signer, delegatee);
    }

    function numCheckpoints(address account)
        external
        view
        virtual
        returns (uint256)
    {
        return checkpoints[account].length;
    }

    function getCurrentVotes(address account) external view returns (uint256) {
        uint256 nbCheckpoints = checkpoints[account].length;
        return
            nbCheckpoints == 0
                ? 0
                : checkpoints[account][nbCheckpoints - 1].votes;
    }

    function getPastVotes(address account, uint256 blockNumber)
        external
        view
        returns (uint256)
    {
        require(
            blockNumber < block.number,
            "PaladinToken: invalid blockNumber"
        );

        // no checkpoints written
        uint256 nbCheckpoints = checkpoints[account].length;
        if (nbCheckpoints == 0) return 0;

        // last checkpoint check
        if (checkpoints[account][nbCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nbCheckpoints - 1].votes;
        }

        // no checkpoint old enough
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint256 high = nbCheckpoints - 1; // last checkpoint already checked
        uint256 low = 0;
        uint256 mid;
        while (low < high) {
            mid = Math.average(low, high);
            if (checkpoints[account][mid].fromBlock == blockNumber) {
                return checkpoints[account][mid].votes;
            }
            if (checkpoints[account][mid].fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }
        return high == 0 ? 0 : checkpoints[account][high - 1].votes;
    }

    function getPastDelegate(address account, uint256 blockNumber)
        external
        view
        returns (address)
    {
        require(
            blockNumber < block.number,
            "PaladinToken: invalid blockNumber"
        );

        // no checkpoints written
        uint256 nbCheckpoints = delegateCheckpoints[account].length;
        if (nbCheckpoints == 0) return address(0);

        // last checkpoint check
        if (delegateCheckpoints[account][nbCheckpoints - 1].fromBlock <= blockNumber) {
            return delegateCheckpoints[account][nbCheckpoints - 1].delegate;
        }

        // no checkpoint old enough
        if (delegateCheckpoints[account][0].fromBlock > blockNumber) {
            return address(0);
        }

        uint256 high = nbCheckpoints - 1; // last checkpoint already checked
        uint256 low = 0;
        uint256 mid;
        while (low < high) {
            mid = Math.average(low, high);
            if (delegateCheckpoints[account][mid].fromBlock == blockNumber) {
                return delegateCheckpoints[account][mid].delegate;
            }
            if (delegateCheckpoints[account][mid].fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }
        return high == 0 ? address(0) : delegateCheckpoints[account][high - 1].delegate;
    }

    function _delegate(address delegator, address delegatee) internal {
        address oldDelegatee = delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator);
        delegates[delegator] = delegatee;

        delegateCheckpoints[delegator].push(DelegateCheckpoint(safe32(block.number), delegatee));

        emit DelegateChanged(delegator, oldDelegatee, delegatee);

        _moveDelegates(oldDelegatee, delegatee, delegatorBalance);
    }

    function _moveDelegates(
        address from,
        address to,
        uint256 amount
    ) internal {
        if (from != to && amount > 0) {
            if (from != address(0)) {
                uint256 nbCheckpoints = checkpoints[from].length;
                uint256 oldVotes = nbCheckpoints == 0 ? 0 : checkpoints[from][nbCheckpoints - 1].votes;
                uint256 newVotes = oldVotes - amount;
                _writeCheckpoint(from, newVotes);
                emit DelegateVotesChanged(from, oldVotes, newVotes);
            }

            if (to != address(0)) {
                uint256 nbCheckpoints = checkpoints[to].length;
                uint256 oldVotes = nbCheckpoints == 0 ? 0 : checkpoints[to][nbCheckpoints - 1].votes;
                uint256 newVotes = oldVotes + amount;
                _writeCheckpoint(to, newVotes);
                emit DelegateVotesChanged(to, oldVotes, newVotes);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint256 newVotes
    ) internal {
        uint pos = checkpoints[delegatee].length;

        if (pos > 0 && checkpoints[delegatee][pos - 1].fromBlock == block.number) {
            checkpoints[delegatee][pos - 1].votes = safe224(newVotes);
        } else {
            uint32 blockNumber = safe32(block.number);
            checkpoints[delegatee].push(Checkpoint(blockNumber, safe224(newVotes)));
        }
    }

    function safe32(uint n) internal pure returns (uint32) {
        require(n <= type(uint32).max, "PaladinToken : block number exceed 32 bits");
        return uint32(n);
    }

    function safe224(uint n) internal pure returns (uint224) {
        require(n <= type(uint224).max, "PaladinToken : amount exceed 224 bits");
        return uint224(n);
    }

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



    // Admin methods :

    /**
     * @notice Allow/Block transfer for all users
     * @dev Change transfersAllowed flag
     * @param _transfersAllowed bool : true to allow Transfer, false to block
     */
    function setTransfersAllowed(bool _transfersAllowed) external onlyAdmin {
        transfersAllowed = _transfersAllowed;
        emit TransfersAllowed(transfersAllowed);
    }
}

File 2 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `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.
     */
    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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 12 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [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 {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

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

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

File 4 of 12 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 5 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";

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

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

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

File 8 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../interfaces/IERC165.sol";

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

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"recipient","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":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"transfersAllowed","type":"bool"}],"name":"TransfersAllowed","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"delegateCheckpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"address","name":"delegate","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastDelegate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bool","name":"_transfersAllowed","type":"bool"}],"name":"setTransfersAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526006805460ff191690553480156200001b57600080fd5b5060405162003d2938038062003d298339810160408190526200003e916200096c565b6040518060400160405280600d81526020016c2830b630b234b7102a37b5b2b760991b8152506040518060400160405280600381526020016214105360ea1b815250816003908051906020019062000098929190620008b3565b508051620000ae906004906020840190620008b3565b505050620000d260008051602062003d09833981519152836200014760201b60201c565b620000ed60008051602062003d098339815191523362000147565b6200010860008051602062003cc98339815191528362000147565b6200013260008051602062003d0983398151915260008051602062003cc983398151915262000157565b6200013e8184620001a2565b50505062000a34565b620001538282620002a3565b5050565b600082815260056020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6001600160a01b038216620001fe5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b6200020c6000838362000347565b8060026000828254620002209190620009ac565b90915550506001600160a01b038216600090815260208190526040812080548392906200024f908490620009ac565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36200015360008383620003e9565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620001535760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003033390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600654839060ff16806200038957503360009081527f824b0c5de8e528cdbdf9242963e0406dc5c516147208d87363b9c881a4d071ad602052604090205460ff165b620003e35760405162461bcd60e51b8152602060048201526024808201527f50616c6164696e546f6b656e3a2063616c6c65722063616e6e6f74207472616e60448201526339b332b960e11b6064820152608401620001f5565b50505050565b6001600160a01b038084166000908152600760205260408082205485841683529120546200041d9291821691168362000422565b505050565b816001600160a01b0316836001600160a01b031614158015620004455750600081115b156200041d576001600160a01b0383161562000544576001600160a01b038316600090815260086020526040812054908115620004e3576001600160a01b0385166000908152600860205260409020620004a1600184620009c7565b81548110620004c057634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b0316620004e6565b60005b6001600160e01b031690506000620004ff8483620009c7565b90506200050d868262000641565b60408051838152602081018390526001600160a01b0388169160008051602062003ce9833981519152910160405180910390a25050505b6001600160a01b038216156200041d576001600160a01b038216600090815260086020526040812054908115620005dc576001600160a01b03841660009081526008602052604090206200059a600184620009c7565b81548110620005b957634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b0316620005df565b60005b6001600160e01b031690506000620005f88483620009ac565b905062000606858262000641565b60408051838152602081018390526001600160a01b0387169160008051602062003ce9833981519152910160405180910390a2505050505050565b6001600160a01b0382166000908152600860205260409020548015801590620006bf57506001600160a01b038316600090815260086020526040902043906200068c600184620009c7565b81548110620006ab57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015463ffffffff16145b156200074a57620006d082620007db565b6001600160a01b0384166000908152600860205260409020620006f5600184620009c7565b815481106200071457634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550505050565b6000620007574362000848565b6001600160a01b038516600090815260086020908152604091829020825180840190935263ffffffff8416835292935081016200079486620007db565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff9093169290921791015550505050565b60006001600160e01b03821115620008445760405162461bcd60e51b815260206004820152602560248201527f50616c6164696e546f6b656e203a20616d6f756e742065786365656420323234604482015264206269747360d81b6064820152608401620001f5565b5090565b600063ffffffff821115620008445760405162461bcd60e51b815260206004820152602a60248201527f50616c6164696e546f6b656e203a20626c6f636b206e756d62657220657863656044820152696564203332206269747360b01b6064820152608401620001f5565b828054620008c190620009e1565b90600052602060002090601f016020900481019282620008e5576000855562000930565b82601f106200090057805160ff191683800117855562000930565b8280016001018555821562000930579182015b828111156200093057825182559160200191906001019062000913565b50620008449291505b8082111562000844576000815560010162000939565b80516001600160a01b03811681146200096757600080fd5b919050565b60008060006060848603121562000981578283fd5b8351925062000993602085016200094f565b9150620009a3604085016200094f565b90509250925092565b60008219821115620009c257620009c262000a1e565b500190565b600082821015620009dc57620009dc62000a1e565b500390565b600181811c90821680620009f657607f821691505b6020821081141562000a1857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6132858062000a446000396000f3fe608060405234801561001057600080fd5b506004361061020b5760003560e01c80636fcfff451161012a578063a9059cbb116100bd578063c3cda5201161008c578063d547741f11610071578063d547741f146105c6578063dd62ed3e146105d9578063f3cd1c281461061f57600080fd5b8063c3cda5201461056f578063cb2bf8661461058257600080fd5b8063a9059cbb14610529578063b0660c3d1461053c578063b369460c14610549578063b4b5ea571461055c57600080fd5b806391d14854116100f957806391d14854146104c057806395d89b4114610506578063a217fddf1461050e578063a457c2d71461051657600080fd5b80636fcfff451461040d57806370a082311461044357806375b238fc146104795780637ecebe00146104a057600080fd5b8063248a9ca3116101a2578063395093511161017157806339509351146103795780633a46b1a81461038c578063587cde1e1461039f5780635c19a95c146103fa57600080fd5b8063248a9ca31461031f5780632f2ff15d14610342578063313ce5671461035757806336568abe1461036657600080fd5b806318160ddd116101de57806318160ddd146102ac57806320606b70146102be578063206b60f9146102e557806323b872dd1461030c57600080fd5b806301ffc9a71461021057806306fdde0314610238578063095ea7b31461024d5780630cdfebfa14610260575b600080fd5b61022361021e366004612f7b565b610632565b60405190151581526020015b60405180910390f35b6102406106cb565b60405161022f919061303c565b61022361025b366004612e9a565b61075d565b61027361026e366004612e9a565b610773565b6040805163ffffffff90931683527bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911660208301520161022f565b6002545b60405190815260200161022f565b6102b07f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102b07f9143236d81225394f3bd65b44e6e29fdf4d7ba0773d9bb3f5cc15eb80ba3777781565b61022361031a366004612e5f565b6107cf565b6102b061032d366004612f41565b60009081526005602052604090206001015490565b610355610350366004612f59565b6108ba565b005b6040516012815260200161022f565b610355610374366004612f59565b6108e5565b610223610387366004612e9a565b610998565b6102b061039a366004612e9a565b6109e1565b6103d56103ad366004612e13565b60076020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161022f565b610355610408366004612e13565b610ee7565b6102b061041b366004612e13565b73ffffffffffffffffffffffffffffffffffffffff1660009081526008602052604090205490565b6102b0610451366004612e13565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102b07fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6102b06104ae366004612e13565b600a6020526000908152604090205481565b6102236104ce366004612f59565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b610240610ef4565b6102b0600081565b610223610524366004612e9a565b610f03565b610223610537366004612e9a565b610fdb565b6006546102239060ff1681565b6103d5610557366004612e9a565b610fe8565b6102b061056a366004612e13565b6114b8565b61035561057d366004612ec3565b6115aa565b610595610590366004612e9a565b611941565b6040805163ffffffff909316835273ffffffffffffffffffffffffffffffffffffffff90911660208301520161022f565b6103556105d4366004612f59565b611995565b6102b06105e7366004612e2d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61035561062d366004612f21565b6119bb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600380546106da90613193565b80601f016020809104026020016040519081016040528092919081815260200182805461070690613193565b80156107535780601f1061072857610100808354040283529160200191610753565b820191906000526020600020905b81548152906001019060200180831161073657829003601f168201915b5050505050905090565b600061076a338484611abe565b50600192915050565b6008602052816000526040600020818154811061078f57600080fd5b60009182526020909120015463ffffffff8116925064010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16905082565b60006107dc848484611c71565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160209081526040808320338452909152902054828110156108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6108af8533858403611abe565b506001949350505050565b6000828152600560205260409020600101546108d68133611f3b565b6108e0838361200d565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461098a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610899565b6109948282612101565b5050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161076a9185906109dc90869061308d565b611abe565b6000438210610a72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f50616c6164696e546f6b656e3a20696e76616c696420626c6f636b4e756d626560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090205480610aa75760009150506106c5565b73ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604090208390610ad960018461311b565b81548110610b10577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff1611610bc95773ffffffffffffffffffffffffffffffffffffffff84166000908152600860205260409020610b5760018361311b565b81548110610b8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1691506106c59050565b73ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604081208054859290610c26577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff161115610c485760009150506106c5565b6000610c5560018361311b565b90506000805b82821015610e1757610c6d82846121bc565b73ffffffffffffffffffffffffffffffffffffffff881660009081526008602052604090208054919250879183908110610cd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff161415610d845773ffffffffffffffffffffffffffffffffffffffff87166000908152600860205260409020805482908110610d46577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1694506106c59350505050565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600860205260409020805487919083908110610de5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff161115610e0557809250610c5b565b610e1081600161308d565b9150610c5b565b8215610ebb5773ffffffffffffffffffffffffffffffffffffffff87166000908152600860205260409020610e4d60018561311b565b81548110610e84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16610ebe565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16979650505050505050565b610ef133826121de565b50565b6060600480546106da90613193565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015610fc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610899565b610fd13385858403611abe565b5060019392505050565b600061076a338484611c71565b6000438210611079576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f50616c6164696e546f6b656e3a20696e76616c696420626c6f636b4e756d626560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902054806110ae5760009150506106c5565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260096020526040902083906110e060018461311b565b81548110611117577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff16116111c85773ffffffffffffffffffffffffffffffffffffffff8416600090815260096020526040902061115e60018361311b565b81548110611195577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154640100000000900473ffffffffffffffffffffffffffffffffffffffff1691506106c59050565b73ffffffffffffffffffffffffffffffffffffffff841660009081526009602052604081208054859290611225577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff1611156112475760009150506106c5565b600061125460018361311b565b90506000805b8282101561140e5761126c82846121bc565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260096020526040902080549192508791839081106112cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff16141561137b5773ffffffffffffffffffffffffffffffffffffffff87166000908152600960205260409020805482908110611345577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154640100000000900473ffffffffffffffffffffffffffffffffffffffff1694506106c59350505050565b73ffffffffffffffffffffffffffffffffffffffff871660009081526009602052604090208054879190839081106113dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff1611156113fc5780925061125a565b61140781600161308d565b915061125a565b82156114aa5773ffffffffffffffffffffffffffffffffffffffff8716600090815260096020526040902061144460018561311b565b8154811061147b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154640100000000900473ffffffffffffffffffffffffffffffffffffffff166114ad565b60005b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526008602052604081205480156115825773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902061151460018361311b565b8154811061154b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611585565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169392505050565b83421115611614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50616c6164696e546f6b656e3a207369676e61747572652065787069726564006044820152606401610899565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86661163f6106cb565b8051906020012061164d4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c084015273ffffffffffffffffffffffffffffffffffffffff8b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401909252815191909301207f1901000000000000000000000000000000000000000000000000000000000000610160830152610162820183905261018282018190529192506000906101a201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa1580156117bf573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50616c6164696e546f6b656e3a20696e76616c6964207369676e6174757265006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604090205489146118f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f50616c6164696e546f6b656e3a20696e76616c6964206e6f6e636500000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260408120805491611926836131e7565b9190505550611935818b6121de565b50505050505050505050565b6009602052816000526040600020818154811061195d57600080fd5b60009182526020909120015463ffffffff81169250640100000000900473ffffffffffffffffffffffffffffffffffffffff16905082565b6000828152600560205260409020600101546119b18133611f3b565b6108e08383612101565b3360009081527f09f04f5809d5be59813a33617d16f069caae874a6b34f03139f63d934daddae6602052604090205460ff16611a53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f50616c6164696e546f6b656e3a2063616c6c6572206e6f742061646d696e00006044820152606401610899565b600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151590811790915560405160ff909116151581527f5854ddf9a9b69cf8f2802ec78fb8d6bbf299e949955d9361212e652f4fec0e829060200160405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff8316611b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8216611c03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8216611db7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610899565b611dc2838383612314565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015611e78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290611ebc90849061308d565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611f2291815260200190565b60405180910390a3611f358484846123e0565b50505050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661099457611f938173ffffffffffffffffffffffffffffffffffffffff16601461241f565b611f9e83602061241f565b604051602001611faf929190612fbb565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526108999160040161303c565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661099457600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556120a33390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561099457600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006121cb60028484186130a5565b6121d79084841661308d565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526007602090815260408083208054848452828520548787167fffffffffffffffffffffffff0000000000000000000000000000000000000000831617909255600990935292819020815180830190925291909316928061225a43612725565b63ffffffff908116825273ffffffffffffffffffffffffffffffffffffffff80881660209384018190528554600181018755600096875284872086519101805496909501518316640100000000027fffffffffffffffff000000000000000000000000000000000000000000000000909616931692909217939093179091556040519092858316928816917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611f358284836127bf565b600654839060ff168061235557503360009081527f824b0c5de8e528cdbdf9242963e0406dc5c516147208d87363b9c881a4d071ad602052604090205460ff165b611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f50616c6164696e546f6b656e3a2063616c6c65722063616e6e6f74207472616e60448201527f73666572000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600760205260408082205485841683529120546108e0929182169116836127bf565b6060600061242e8360026130de565b61243990600261308d565b67ffffffffffffffff811115612478577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124a2576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612500577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061258a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006125c68460026130de565b6125d190600161308d565b90505b60018111156126bc577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612639577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612676577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936126b58161315e565b90506125d4565b5083156121d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610899565b600063ffffffff8211156127bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f50616c6164696e546f6b656e203a20626c6f636b206e756d626572206578636560448201527f65642033322062697473000000000000000000000000000000000000000000006064820152608401610899565b5090565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156127fb5750600081115b156108e05773ffffffffffffffffffffffffffffffffffffffff8316156129775773ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260408120549081156128e75773ffffffffffffffffffffffffffffffffffffffff8516600090815260086020526040902061287960018461311b565b815481106128b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166128ea565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690506000612916848361311b565b90506129228682612af2565b604080518381526020810183905273ffffffffffffffffffffffffffffffffffffffff8816917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505b73ffffffffffffffffffffffffffffffffffffffff8216156108e05773ffffffffffffffffffffffffffffffffffffffff8216600090815260086020526040812054908115612a5e5773ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604090206129f060018461311b565b81548110612a27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612a61565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690506000612a8d848361308d565b9050612a998582612af2565b604080518381526020810183905273ffffffffffffffffffffffffffffffffffffffff8716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a2505050505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260409020548015801590612b9f575073ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090204390612b5460018461311b565b81548110612b8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff16145b15612c7457612bad82612d3c565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600860205260409020612bdd60018461311b565b81548110612c14577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000612c7f43612725565b9050600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052808363ffffffff168152602001612ce086612d3c565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff9093169290921791015550505050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156127bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f50616c6164696e546f6b656e203a20616d6f756e74206578636565642032323460448201527f20626974730000000000000000000000000000000000000000000000000000006064820152608401610899565b803573ffffffffffffffffffffffffffffffffffffffff81168114612e0e57600080fd5b919050565b600060208284031215612e24578081fd5b6121d782612dea565b60008060408385031215612e3f578081fd5b612e4883612dea565b9150612e5660208401612dea565b90509250929050565b600080600060608486031215612e73578081fd5b612e7c84612dea565b9250612e8a60208501612dea565b9150604084013590509250925092565b60008060408385031215612eac578182fd5b612eb583612dea565b946020939093013593505050565b60008060008060008060c08789031215612edb578182fd5b612ee487612dea565b95506020870135945060408701359350606087013560ff81168114612f07578283fd5b9598949750929560808101359460a0909101359350915050565b600060208284031215612f32578081fd5b813580151581146121d7578182fd5b600060208284031215612f52578081fd5b5035919050565b60008060408385031215612f6b578182fd5b82359150612e5660208401612dea565b600060208284031215612f8c578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146121d7578182fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612ff3816017850160208801613132565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613030816028840160208801613132565b01602801949350505050565b602081526000825180602084015261305b816040850160208701613132565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600082198211156130a0576130a0613220565b500190565b6000826130d9577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561311657613116613220565b500290565b60008282101561312d5761312d613220565b500390565b60005b8381101561314d578181015183820152602001613135565b83811115611f355750506000910152565b60008161316d5761316d613220565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806131a757607f821691505b602082108114156131e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561321957613219613220565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220e0a5d52245d9a2351ccdc6a38188f9abc2ace15b506e8fec813d261267db6edc64736f6c63430008040033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42dec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7249143236d81225394f3bd65b44e6e29fdf4d7ba0773d9bb3f5cc15eb80ba37777000000000000000000000000000000000000000000295be96e640669720000000000000000000000000000000792dcb7080466e4bbc678bdb873fe7d969832b80000000000000000000000000792dcb7080466e4bbc678bdb873fe7d969832b8

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061020b5760003560e01c80636fcfff451161012a578063a9059cbb116100bd578063c3cda5201161008c578063d547741f11610071578063d547741f146105c6578063dd62ed3e146105d9578063f3cd1c281461061f57600080fd5b8063c3cda5201461056f578063cb2bf8661461058257600080fd5b8063a9059cbb14610529578063b0660c3d1461053c578063b369460c14610549578063b4b5ea571461055c57600080fd5b806391d14854116100f957806391d14854146104c057806395d89b4114610506578063a217fddf1461050e578063a457c2d71461051657600080fd5b80636fcfff451461040d57806370a082311461044357806375b238fc146104795780637ecebe00146104a057600080fd5b8063248a9ca3116101a2578063395093511161017157806339509351146103795780633a46b1a81461038c578063587cde1e1461039f5780635c19a95c146103fa57600080fd5b8063248a9ca31461031f5780632f2ff15d14610342578063313ce5671461035757806336568abe1461036657600080fd5b806318160ddd116101de57806318160ddd146102ac57806320606b70146102be578063206b60f9146102e557806323b872dd1461030c57600080fd5b806301ffc9a71461021057806306fdde0314610238578063095ea7b31461024d5780630cdfebfa14610260575b600080fd5b61022361021e366004612f7b565b610632565b60405190151581526020015b60405180910390f35b6102406106cb565b60405161022f919061303c565b61022361025b366004612e9a565b61075d565b61027361026e366004612e9a565b610773565b6040805163ffffffff90931683527bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911660208301520161022f565b6002545b60405190815260200161022f565b6102b07f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102b07f9143236d81225394f3bd65b44e6e29fdf4d7ba0773d9bb3f5cc15eb80ba3777781565b61022361031a366004612e5f565b6107cf565b6102b061032d366004612f41565b60009081526005602052604090206001015490565b610355610350366004612f59565b6108ba565b005b6040516012815260200161022f565b610355610374366004612f59565b6108e5565b610223610387366004612e9a565b610998565b6102b061039a366004612e9a565b6109e1565b6103d56103ad366004612e13565b60076020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161022f565b610355610408366004612e13565b610ee7565b6102b061041b366004612e13565b73ffffffffffffffffffffffffffffffffffffffff1660009081526008602052604090205490565b6102b0610451366004612e13565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102b07fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6102b06104ae366004612e13565b600a6020526000908152604090205481565b6102236104ce366004612f59565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b610240610ef4565b6102b0600081565b610223610524366004612e9a565b610f03565b610223610537366004612e9a565b610fdb565b6006546102239060ff1681565b6103d5610557366004612e9a565b610fe8565b6102b061056a366004612e13565b6114b8565b61035561057d366004612ec3565b6115aa565b610595610590366004612e9a565b611941565b6040805163ffffffff909316835273ffffffffffffffffffffffffffffffffffffffff90911660208301520161022f565b6103556105d4366004612f59565b611995565b6102b06105e7366004612e2d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61035561062d366004612f21565b6119bb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600380546106da90613193565b80601f016020809104026020016040519081016040528092919081815260200182805461070690613193565b80156107535780601f1061072857610100808354040283529160200191610753565b820191906000526020600020905b81548152906001019060200180831161073657829003601f168201915b5050505050905090565b600061076a338484611abe565b50600192915050565b6008602052816000526040600020818154811061078f57600080fd5b60009182526020909120015463ffffffff8116925064010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16905082565b60006107dc848484611c71565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160209081526040808320338452909152902054828110156108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6108af8533858403611abe565b506001949350505050565b6000828152600560205260409020600101546108d68133611f3b565b6108e0838361200d565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461098a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610899565b6109948282612101565b5050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161076a9185906109dc90869061308d565b611abe565b6000438210610a72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f50616c6164696e546f6b656e3a20696e76616c696420626c6f636b4e756d626560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090205480610aa75760009150506106c5565b73ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604090208390610ad960018461311b565b81548110610b10577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff1611610bc95773ffffffffffffffffffffffffffffffffffffffff84166000908152600860205260409020610b5760018361311b565b81548110610b8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1691506106c59050565b73ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604081208054859290610c26577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff161115610c485760009150506106c5565b6000610c5560018361311b565b90506000805b82821015610e1757610c6d82846121bc565b73ffffffffffffffffffffffffffffffffffffffff881660009081526008602052604090208054919250879183908110610cd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff161415610d845773ffffffffffffffffffffffffffffffffffffffff87166000908152600860205260409020805482908110610d46577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1694506106c59350505050565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600860205260409020805487919083908110610de5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff161115610e0557809250610c5b565b610e1081600161308d565b9150610c5b565b8215610ebb5773ffffffffffffffffffffffffffffffffffffffff87166000908152600860205260409020610e4d60018561311b565b81548110610e84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16610ebe565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16979650505050505050565b610ef133826121de565b50565b6060600480546106da90613193565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015610fc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610899565b610fd13385858403611abe565b5060019392505050565b600061076a338484611c71565b6000438210611079576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f50616c6164696e546f6b656e3a20696e76616c696420626c6f636b4e756d626560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902054806110ae5760009150506106c5565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260096020526040902083906110e060018461311b565b81548110611117577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff16116111c85773ffffffffffffffffffffffffffffffffffffffff8416600090815260096020526040902061115e60018361311b565b81548110611195577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154640100000000900473ffffffffffffffffffffffffffffffffffffffff1691506106c59050565b73ffffffffffffffffffffffffffffffffffffffff841660009081526009602052604081208054859290611225577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff1611156112475760009150506106c5565b600061125460018361311b565b90506000805b8282101561140e5761126c82846121bc565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260096020526040902080549192508791839081106112cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff16141561137b5773ffffffffffffffffffffffffffffffffffffffff87166000908152600960205260409020805482908110611345577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154640100000000900473ffffffffffffffffffffffffffffffffffffffff1694506106c59350505050565b73ffffffffffffffffffffffffffffffffffffffff871660009081526009602052604090208054879190839081106113dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff1611156113fc5780925061125a565b61140781600161308d565b915061125a565b82156114aa5773ffffffffffffffffffffffffffffffffffffffff8716600090815260096020526040902061144460018561311b565b8154811061147b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154640100000000900473ffffffffffffffffffffffffffffffffffffffff166114ad565b60005b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526008602052604081205480156115825773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902061151460018361311b565b8154811061154b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611585565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169392505050565b83421115611614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50616c6164696e546f6b656e3a207369676e61747572652065787069726564006044820152606401610899565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86661163f6106cb565b8051906020012061164d4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c084015273ffffffffffffffffffffffffffffffffffffffff8b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401909252815191909301207f1901000000000000000000000000000000000000000000000000000000000000610160830152610162820183905261018282018190529192506000906101a201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa1580156117bf573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50616c6164696e546f6b656e3a20696e76616c6964207369676e6174757265006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604090205489146118f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f50616c6164696e546f6b656e3a20696e76616c6964206e6f6e636500000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260408120805491611926836131e7565b9190505550611935818b6121de565b50505050505050505050565b6009602052816000526040600020818154811061195d57600080fd5b60009182526020909120015463ffffffff81169250640100000000900473ffffffffffffffffffffffffffffffffffffffff16905082565b6000828152600560205260409020600101546119b18133611f3b565b6108e08383612101565b3360009081527f09f04f5809d5be59813a33617d16f069caae874a6b34f03139f63d934daddae6602052604090205460ff16611a53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f50616c6164696e546f6b656e3a2063616c6c6572206e6f742061646d696e00006044820152606401610899565b600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151590811790915560405160ff909116151581527f5854ddf9a9b69cf8f2802ec78fb8d6bbf299e949955d9361212e652f4fec0e829060200160405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff8316611b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8216611c03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8216611db7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610899565b611dc2838383612314565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015611e78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290611ebc90849061308d565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611f2291815260200190565b60405180910390a3611f358484846123e0565b50505050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661099457611f938173ffffffffffffffffffffffffffffffffffffffff16601461241f565b611f9e83602061241f565b604051602001611faf929190612fbb565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526108999160040161303c565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661099457600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556120a33390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561099457600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006121cb60028484186130a5565b6121d79084841661308d565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526007602090815260408083208054848452828520548787167fffffffffffffffffffffffff0000000000000000000000000000000000000000831617909255600990935292819020815180830190925291909316928061225a43612725565b63ffffffff908116825273ffffffffffffffffffffffffffffffffffffffff80881660209384018190528554600181018755600096875284872086519101805496909501518316640100000000027fffffffffffffffff000000000000000000000000000000000000000000000000909616931692909217939093179091556040519092858316928816917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611f358284836127bf565b600654839060ff168061235557503360009081527f824b0c5de8e528cdbdf9242963e0406dc5c516147208d87363b9c881a4d071ad602052604090205460ff165b611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f50616c6164696e546f6b656e3a2063616c6c65722063616e6e6f74207472616e60448201527f73666572000000000000000000000000000000000000000000000000000000006064820152608401610899565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600760205260408082205485841683529120546108e0929182169116836127bf565b6060600061242e8360026130de565b61243990600261308d565b67ffffffffffffffff811115612478577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124a2576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612500577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061258a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006125c68460026130de565b6125d190600161308d565b90505b60018111156126bc577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612639577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612676577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936126b58161315e565b90506125d4565b5083156121d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610899565b600063ffffffff8211156127bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f50616c6164696e546f6b656e203a20626c6f636b206e756d626572206578636560448201527f65642033322062697473000000000000000000000000000000000000000000006064820152608401610899565b5090565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156127fb5750600081115b156108e05773ffffffffffffffffffffffffffffffffffffffff8316156129775773ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260408120549081156128e75773ffffffffffffffffffffffffffffffffffffffff8516600090815260086020526040902061287960018461311b565b815481106128b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166128ea565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690506000612916848361311b565b90506129228682612af2565b604080518381526020810183905273ffffffffffffffffffffffffffffffffffffffff8816917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505b73ffffffffffffffffffffffffffffffffffffffff8216156108e05773ffffffffffffffffffffffffffffffffffffffff8216600090815260086020526040812054908115612a5e5773ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604090206129f060018461311b565b81548110612a27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612a61565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690506000612a8d848361308d565b9050612a998582612af2565b604080518381526020810183905273ffffffffffffffffffffffffffffffffffffffff8716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a2505050505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260409020548015801590612b9f575073ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090204390612b5460018461311b565b81548110612b8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015463ffffffff16145b15612c7457612bad82612d3c565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600860205260409020612bdd60018461311b565b81548110612c14577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000612c7f43612725565b9050600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052808363ffffffff168152602001612ce086612d3c565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff9093169290921791015550505050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156127bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f50616c6164696e546f6b656e203a20616d6f756e74206578636565642032323460448201527f20626974730000000000000000000000000000000000000000000000000000006064820152608401610899565b803573ffffffffffffffffffffffffffffffffffffffff81168114612e0e57600080fd5b919050565b600060208284031215612e24578081fd5b6121d782612dea565b60008060408385031215612e3f578081fd5b612e4883612dea565b9150612e5660208401612dea565b90509250929050565b600080600060608486031215612e73578081fd5b612e7c84612dea565b9250612e8a60208501612dea565b9150604084013590509250925092565b60008060408385031215612eac578182fd5b612eb583612dea565b946020939093013593505050565b60008060008060008060c08789031215612edb578182fd5b612ee487612dea565b95506020870135945060408701359350606087013560ff81168114612f07578283fd5b9598949750929560808101359460a0909101359350915050565b600060208284031215612f32578081fd5b813580151581146121d7578182fd5b600060208284031215612f52578081fd5b5035919050565b60008060408385031215612f6b578182fd5b82359150612e5660208401612dea565b600060208284031215612f8c578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146121d7578182fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612ff3816017850160208801613132565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613030816028840160208801613132565b01602801949350505050565b602081526000825180602084015261305b816040850160208701613132565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600082198211156130a0576130a0613220565b500190565b6000826130d9577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561311657613116613220565b500290565b60008282101561312d5761312d613220565b500390565b60005b8381101561314d578181015183820152602001613135565b83811115611f355750506000910152565b60008161316d5761316d613220565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806131a757607f821691505b602082108114156131e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561321957613219613220565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220e0a5d52245d9a2351ccdc6a38188f9abc2ace15b506e8fec813d261267db6edc64736f6c63430008040033

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

000000000000000000000000000000000000000000295be96e640669720000000000000000000000000000000792dcb7080466e4bbc678bdb873fe7d969832b80000000000000000000000000792dcb7080466e4bbc678bdb873fe7d969832b8

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 50000000000000000000000000
Arg [1] : admin (address): 0x0792dCb7080466e4Bbc678Bdb873FE7D969832B8
Arg [2] : recipient (address): 0x0792dCb7080466e4Bbc678Bdb873FE7D969832B8

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000295be96e64066972000000
Arg [1] : 0000000000000000000000000792dcb7080466e4bbc678bdb873fe7d969832b8
Arg [2] : 0000000000000000000000000792dcb7080466e4bbc678bdb873fe7d969832b8


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Paladin is a governance lending protocol transforming your voting power into a new money lego.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.