ETH Price: $2,703.82 (+1.87%)

Contract

0x8406C6C1DB4D224C8B0cF7859c0881Ddd68D4761
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer167145412023-02-26 19:39:35715 days ago1677440375IN
0x8406C6C1...dd68D4761
0 ETH0.0006124822.85211189
Transfer165208202023-01-30 16:25:11742 days ago1675095911IN
0x8406C6C1...dd68D4761
0 ETH0.0004863918.14754474
Approve127115042021-06-26 19:28:021325 days ago1624735682IN
0x8406C6C1...dd68D4761
0 ETH0.0001887913
Approve119627812021-03-03 3:09:031441 days ago1614740943IN
0x8406C6C1...dd68D4761
0 ETH0.0039542789
Approve119576932021-03-02 8:16:591442 days ago1614673019IN
0x8406C6C1...dd68D4761
0 ETH0.0039542789
Approve119233832021-02-25 1:27:211447 days ago1614216441IN
0x8406C6C1...dd68D4761
0 ETH0.00470958106.00000145
Approve119014132021-02-21 16:37:071450 days ago1613925427IN
0x8406C6C1...dd68D4761
0 ETH0.00675336152
Approve118983082021-02-21 5:03:261451 days ago1613883806IN
0x8406C6C1...dd68D4761
0 ETH0.00466515105
Approve118960552021-02-20 20:44:461451 days ago1613853886IN
0x8406C6C1...dd68D4761
0 ETH0.0079974180
Approve118916862021-02-20 4:24:331452 days ago1613795073IN
0x8406C6C1...dd68D4761
0 ETH0.00741981167
Approve118800232021-02-18 9:35:571454 days ago1613640957IN
0x8406C6C1...dd68D4761
0 ETH0.0066956150.7
Approve118797352021-02-18 8:31:371454 days ago1613637097IN
0x8406C6C1...dd68D4761
0 ETH0.0079974180
Approve118792102021-02-18 6:30:531454 days ago1613629853IN
0x8406C6C1...dd68D4761
0 ETH0.0079974180
Approve118754102021-02-17 16:22:381454 days ago1613578958IN
0x8406C6C1...dd68D4761
0 ETH0.00527384118.70000023
Approve118742952021-02-17 12:11:151454 days ago1613563875IN
0x8406C6C1...dd68D4761
0 ETH0.00475401107
Approve118728372021-02-17 7:02:401455 days ago1613545360IN
0x8406C6C1...dd68D4761
0 ETH0.0042208595
Approve118725732021-02-17 6:07:031455 days ago1613542023IN
0x8406C6C1...dd68D4761
0 ETH0.0039098488
Approve118723782021-02-17 5:21:461455 days ago1613539306IN
0x8406C6C1...dd68D4761
0 ETH0.00519831117
Approve118718812021-02-17 3:34:461455 days ago1613532886IN
0x8406C6C1...dd68D4761
0 ETH0.0053316120
Approve118717812021-02-17 3:15:111455 days ago1613531711IN
0x8406C6C1...dd68D4761
0 ETH0.00542668122.14
Approve118712082021-02-17 1:03:521455 days ago1613523832IN
0x8406C6C1...dd68D4761
0 ETH0.00701994158
Approve118701082021-02-16 20:51:191455 days ago1613508679IN
0x8406C6C1...dd68D4761
0 ETH0.00568704128
Approve118698992021-02-16 20:03:461455 days ago1613505826IN
0x8406C6C1...dd68D4761
0 ETH0.00510945115
Approve118697532021-02-16 19:32:021455 days ago1613503922IN
0x8406C6C1...dd68D4761
0 ETH0.0053316120
Approve118696792021-02-16 19:15:591455 days ago1613502959IN
0x8406C6C1...dd68D4761
0 ETH0.00639792144
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:
PremiaUncutErc20

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : PremiaUncutErc20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import '@openzeppelin/contracts/utils/EnumerableSet.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "./interface/IPriceProvider.sol";
import "./ERC20Permit.sol";

/// @author Premia
/// @title A non tradable token rewarded on protocol fees payment (~ 1 uPremia for each USD paid in protocol fee)
///        used exclusively for mining of premia allocated for "Interaction mining"
/// @notice Only addresses whitelisted will be allowed to send/receive uPremia
///         Anyone can send to a whitelisted address
///         A whitelisted address can send to anyone
contract PremiaUncutErc20 is ERC20Permit, Ownable {
    using SafeMath for uint256;
    using EnumerableSet for EnumerableSet.AddressSet;

    // Addresses with minting rights
    EnumerableSet.AddressSet private _minters;

    // Whitelisted addresses which can receive/send uPremia
    EnumerableSet.AddressSet private _whitelisted;

    // PriceProvider contract
    IPriceProvider public priceProvider;

    ////////////
    // Events //
    ////////////

    event Rewarded(address indexed account, address indexed token, uint256 feePaid, uint256 rewardAmount);

    //////////////////////////////////////////////////
    //////////////////////////////////////////////////
    //////////////////////////////////////////////////

    /// @param _priceProvider PriceProvider contract
    constructor(IPriceProvider _priceProvider) ERC20("PremiaUncut", "uPremia") {
        priceProvider = _priceProvider;
    }

    //////////////////////////////////////////////////
    //////////////////////////////////////////////////
    //////////////////////////////////////////////////

    ///////////////
    // Modifiers //
    ///////////////

    modifier onlyMinter() {
        require(_minters.contains(msg.sender), "No minting rights");
        _;
    }

    //////////////////////////////////////////////////

    ///////////
    // Admin //
    ///////////

    /// @notice Set a new PriceProvider contract
    /// @param _priceProvider The new contract
    function setPriceProvider(IPriceProvider _priceProvider) external onlyOwner {
        priceProvider = _priceProvider;
    }

    /// @notice Give minting rights to a list of addresses
    /// @param _addr The list of addresses to which give minting rights
    function addMinter(address[] memory _addr) external onlyOwner {
        for (uint256 i=0; i < _addr.length; i++) {
            _minters.add(_addr[i]);
        }
    }

    /// @notice Remove minting rights to a list of addresses
    /// @param _addr The list of addresses from which to remove minting rights
    function removeMinter(address[] memory _addr) external onlyOwner {
        for (uint256 i=0; i < _addr.length; i++) {
            _minters.remove(_addr[i]);
        }
    }

    /// @notice Add a list of addresses which can send/receive uPremia
    /// @param _addr The list of addresses
    function addWhitelisted(address[] memory _addr) external onlyOwner {
        for (uint256 i=0; i < _addr.length; i++) {
            _whitelisted.add(_addr[i]);
        }
    }

    /// @notice Remove a list of addresses from the whitelist allowing receiving/sending uPremia
    /// @param _addr The list of addresses
    function removeWhitelisted(address[] memory _addr) external onlyOwner {
        for (uint256 i=0; i < _addr.length; i++) {
            _whitelisted.remove(_addr[i]);
        }
    }

    //////////////////////////////////////////////////

    /////////////
    // Minters //
    /////////////

    /// @notice Mint uPremia
    /// @param _account The address for which to mint
    /// @param _amount The amount to mint
    function mint(address _account, uint256 _amount) external onlyMinter {
        _mint(_account, _amount);
    }

    /// @notice Mint corresponding uPremia reward based on protocol fee paid
    /// @param _account The address for which to mint
    /// @param _token The token in which the protocol fee has been paid
    /// @param _feePaid The fee paid (in _token)
    /// @param _decimals The token decimals
    function mintReward(address _account, address _token, uint256 _feePaid, uint8 _decimals) external onlyMinter {
        require(_decimals <= 18, "Too many decimals");
        uint256 tokenPrice = priceProvider.getTokenPrice(_token);
        if (tokenPrice == 0 || _feePaid == 0) return;

        uint256 rewardAmount = _feePaid.mul(tokenPrice).div(10**_decimals);
        _mint(_account, rewardAmount);

        emit Rewarded(_account, _token, _feePaid, rewardAmount);
    }

    //////////////////////////////////////////////////

    //////////
    // View //
    //////////

    /// @notice Get the usd price of a token
    /// @param _token The token from which to give usd price
    /// @return The usd price
    function getTokenPrice(address _token) external view returns(uint256) {
        return priceProvider.getTokenPrice(_token);
    }

    // @notice Get the list of addresses with minting rights
    // @return The list of addresses with minting rights
    function getMinters() external view returns(address[] memory) {
        uint256 length = _minters.length();
        address[] memory result = new address[](length);

        for (uint256 i=0; i < length; i++) {
            result[i] = _minters.at(i);
        }

        return result;
    }

    // @notice Get the list of addresses allowed to send/receive uPremia
    // @return The list of addresses allowed to send/receive uPremia
    function getWhitelisted() external view returns(address[] memory) {
        uint256 length = _whitelisted.length();
        address[] memory result = new address[](length);

        for (uint256 i=0; i < length; i++) {
            result[i] = _whitelisted.at(i);
        }

        return result;
    }

    //////////////////////////////////////////////////

    //////////////
    // Internal //
    //////////////

    // @notice Override of ERC20 beforeTokenTransfer, to only allow send/receive uPremia by whitelisted addresses
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override {
        require(from == address(0) || _whitelisted.contains(to) || _whitelisted.contains(from), "Transfer not allowed");
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

File 3 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

File 4 of 11 : IPriceProvider.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

interface IPriceProvider {
    function getTokenPrice(address _token) external view returns(uint256);
}

File 5 of 11 : ERC20Permit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

import "./interface/IERC2612Permit.sol";


// ERC20-Permit implementation from soliditylabs ( https://github.com/soliditylabs/ERC20-Permit )

/**
 * @dev Extension of {ERC20} that allows token holders to use their tokens
 * without sending any transactions by setting {IERC20-allowance} with a
 * signature using the {permit} method, and then spend them via
 * {IERC20-transferFrom}.
 *
 * The {permit} signature mechanism conforms to the {IERC2612Permit} interface.
 */
abstract contract ERC20Permit is ERC20, IERC2612Permit {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // Mapping of ChainID to domain separators. This is a very gas efficient way
    // to not recalculate the domain separator on every call, while still
    // automatically detecting ChainID changes.
    mapping(uint256 => bytes32) public domainSeparators;

    constructor() {
        _updateDomainSeparator();
    }

    /**
     * @dev See {IERC2612Permit-permit}.
     *
     * If https://eips.ethereum.org/EIPS/eip-1344[ChainID] ever changes, the
     * EIP712 Domain Separator is automatically recalculated.
     */
    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        // Assembly for more efficiently computing:
        // bytes32 hashStruct = keccak256(
        //     abi.encode(
        //         _PERMIT_TYPEHASH,
        //         owner,
        //         spender,
        //         amount,
        //         _nonces[owner].current(),
        //         deadline
        //     )
        // );

        bytes32 hashStruct;
        uint256 nonce = _nonces[owner].current();

        assembly {
        // Load free memory pointer
            let memPtr := mload(64)

        // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")
            mstore(memPtr, 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9)
            mstore(add(memPtr, 32), owner)
            mstore(add(memPtr, 64), spender)
            mstore(add(memPtr, 96), amount)
            mstore(add(memPtr, 128), nonce)
            mstore(add(memPtr, 160), deadline)

            hashStruct := keccak256(memPtr, 192)
        }

        bytes32 eip712DomainHash = _domainSeparator();

        // Assembly for more efficient computing:
        // bytes32 hash = keccak256(
        //     abi.encodePacked(uint16(0x1901), eip712DomainHash, hashStruct)
        // );

        bytes32 hash;

        assembly {
        // Load free memory pointer
            let memPtr := mload(64)

            mstore(memPtr, 0x1901000000000000000000000000000000000000000000000000000000000000)  // EIP191 header
            mstore(add(memPtr, 2), eip712DomainHash)                                            // EIP712 domain hash
            mstore(add(memPtr, 34), hashStruct)                                                 // Hash of struct

            hash := keccak256(memPtr, 66)
        }

        address signer = _recover(hash, v, r, s);

        require(signer == owner, "ERC20Permit: invalid signature");

        _nonces[owner].increment();
        _approve(owner, spender, amount);
    }

    /**
     * @dev See {IERC2612Permit-nonces}.
     */
    function nonces(address owner) public override view returns (uint256) {
        return _nonces[owner].current();
    }

    function _updateDomainSeparator() private returns (bytes32) {
        uint256 chainID = _chainID();

        // no need for assembly, running very rarely
        bytes32 newDomainSeparator = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                keccak256(bytes(name())), // ERC-20 Name
                keccak256(bytes("1")),    // Version
                chainID,
                address(this)
            )
        );

        domainSeparators[chainID] = newDomainSeparator;

        return newDomainSeparator;
    }

    // Returns the domain separator, updating it if chainID changes
    function _domainSeparator() private returns (bytes32) {
        bytes32 domainSeparator = domainSeparators[_chainID()];

        if (domainSeparator != 0x00) {
            return domainSeparator;
        }

        return _updateDomainSeparator();
    }

    function _chainID() private pure returns (uint256) {
        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        return chainID;
    }

    function _recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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
        ) {
            revert("ECDSA: invalid signature 's' value");
        }

        if (v != 27 && v != 28) {
            revert("ECDSA: invalid signature 'v' value");
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }
}

File 6 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

File 7 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../GSN/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.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 guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This 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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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

File 8 of 11 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../math/SafeMath.sol";

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

File 9 of 11 : IERC2612Permit.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC2612 standard as defined in the EIP.
 *
 * Adds the {permit} method, which can be used to change one's
 * {IERC20-allowance} without having to send a transaction, by signing a
 * message. This allows users to spend tokens without having to hold Ether.
 *
 * See https://eips.ethereum.org/EIPS/eip-2612.
 */
interface IERC2612Permit {
    /**
     * @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens,
     * given `owner`'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current ERC2612 nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);
}

File 10 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 11 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IPriceProvider","name":"_priceProvider","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"feePaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"Rewarded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uint256","name":"","type":"uint256"}],"name":"domainSeparators","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelisted","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_feePaid","type":"uint256"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"name":"mintReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceProvider","outputs":[{"internalType":"contract IPriceProvider","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPriceProvider","name":"_priceProvider","type":"address"}],"name":"setPriceProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620024d8380380620024d8833981810160405260208110156200003757600080fd5b5051604080518082018252600b81526a141c995b5a58555b98dd5d60aa1b602082810191825283518085019094526007845266755072656d696160c81b9084015281519192916200008b91600391620002ae565b508051620000a1906004906020840190620002ae565b50506005805460ff1916601217905550620000bb6200013c565b506000620000c86200020c565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600d80546001600160a01b0319166001600160a01b03929092169190911790556200035a565b6000806200014962000210565b905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200017862000214565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060840152608083018590523060a0808501919091528151808503909101815260c0909301815282519282019290922060009485526007909152922082905550905090565b3390565b4690565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620002a45780601f106200027857610100808354040283529160200191620002a4565b820191906000526020600020905b8154815290600101906020018083116200028657829003601f168201915b5050505050905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620002e6576000855562000331565b82601f106200030157805160ff191683800117855562000331565b8280016001018555821562000331579182015b828111156200033157825182559160200191906001019062000314565b506200033f92915062000343565b5090565b5b808211156200033f576000815560010162000344565b61216e806200036a6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806387322816116100f9578063a9059cbb11610097578063d505accf11610071578063d505accf1461071a578063dd62ed3e1461076b578063f18e33e114610799578063f2fde38b1461083a576101c4565b8063a9059cbb146106c0578063b888879e146106ec578063d02641a0146106f4576101c4565b806399740a18116100d357806399740a18146105ce5780639b372b2b146105eb578063a457c2d7146105f3578063a81b42e81461061f576101c4565b806387322816146105015780638da5cb5b146105a257806395d89b41146105c6576101c4565b806339509351116101665780636b32810b116101405780636b32810b1461045557806370a08231146104ad578063715018a6146104d35780637ecebe00146104db576101c4565b806339509351146103bd57806340c10f19146103e95780634e235e7c14610415576101c4565b8063227275ef116101a2578063227275ef146102a057806323b872dd14610343578063313ce56714610379578063372aa22414610397576101c4565b806306fdde03146101c9578063095ea7b31461024657806318160ddd14610286575b600080fd5b6101d1610860565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020b5781810151838201526020016101f3565b50505050905090810190601f1680156102385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102726004803603604081101561025c57600080fd5b506001600160a01b0381351690602001356108f7565b604080519115158252519081900360200190f35b61028e610915565b60408051918252519081900360200190f35b610341600480360360208110156102b657600080fd5b810190602081018135600160201b8111156102d057600080fd5b8201836020820111156102e257600080fd5b803590602001918460208302840111600160201b8311171561030357600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061091b945050505050565b005b6102726004803603606081101561035957600080fd5b506001600160a01b038135811691602081013590911690604001356109b3565b610381610a3a565b6040805160ff9092168252519081900360200190f35b610341600480360360208110156103ad57600080fd5b50356001600160a01b0316610a43565b610272600480360360408110156103d357600080fd5b506001600160a01b038135169060200135610abd565b610341600480360360408110156103ff57600080fd5b506001600160a01b038135169060200135610b0b565b6103416004803603608081101561042b57600080fd5b5080356001600160a01b03908116916020810135909116906040810135906060013560ff16610b65565b61045d610d1b565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610499578181015183820152602001610481565b505050509050019250505060405180910390f35b61028e600480360360208110156104c357600080fd5b50356001600160a01b0316610dba565b610341610dd5565b61028e600480360360208110156104f157600080fd5b50356001600160a01b0316610e77565b6103416004803603602081101561051757600080fd5b810190602081018135600160201b81111561053157600080fd5b82018360208201111561054357600080fd5b803590602001918460208302840111600160201b8311171561056457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610e98945050505050565b6105aa610f2c565b604080516001600160a01b039092168252519081900360200190f35b6101d1610f3b565b61028e600480360360208110156105e457600080fd5b5035610f9c565b61045d610fae565b6102726004803603604081101561060957600080fd5b506001600160a01b038135169060200135611046565b6103416004803603602081101561063557600080fd5b810190602081018135600160201b81111561064f57600080fd5b82018360208201111561066157600080fd5b803590602001918460208302840111600160201b8311171561068257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110ae945050505050565b610272600480360360408110156106d657600080fd5b506001600160a01b038135169060200135611142565b6105aa611156565b61028e6004803603602081101561070a57600080fd5b50356001600160a01b0316611165565b610341600480360360e081101561073057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356111e8565b61028e6004803603604081101561078157600080fd5b506001600160a01b0381358116916020013516611387565b610341600480360360208110156107af57600080fd5b810190602081018135600160201b8111156107c957600080fd5b8201836020820111156107db57600080fd5b803590602001918460208302840111600160201b831117156107fc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506113b2945050505050565b6103416004803603602081101561085057600080fd5b50356001600160a01b0316611446565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108ec5780601f106108c1576101008083540402835291602001916108ec565b820191906000526020600020905b8154815290600101906020018083116108cf57829003601f168201915b505050505090505b90565b600061090b61090461153f565b8484611543565b5060015b92915050565b60025490565b61092361153f565b6008546001600160a01b03908116911614610973576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af576109a682828151811061098e57fe5b6020026020010151600b61162f90919063ffffffff16565b50600101610976565b5050565b60006109c084848461164b565b610a30846109cc61153f565b610a2b85604051806060016040528060288152602001612083602891396001600160a01b038a16600090815260016020526040812090610a0a61153f565b6001600160a01b0316815260208101919091526040016000205491906117a6565b611543565b5060019392505050565b60055460ff1690565b610a4b61153f565b6008546001600160a01b03908116911614610a9b576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600061090b610aca61153f565b84610a2b8560016000610adb61153f565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061183d565b610b16600933611897565b610b5b576040805162461bcd60e51b81526020600482015260116024820152704e6f206d696e74696e672072696768747360781b604482015290519081900360640190fd5b6109af82826118ac565b610b70600933611897565b610bb5576040805162461bcd60e51b81526020600482015260116024820152704e6f206d696e74696e672072696768747360781b604482015290519081900360640190fd5b60128160ff161115610c02576040805162461bcd60e51b8152602060048201526011602482015270546f6f206d616e7920646563696d616c7360781b604482015290519081900360640190fd5b600d5460408051630681320d60e51b81526001600160a01b0386811660048301529151600093929092169163d02641a091602480820192602092909190829003018186803b158015610c5357600080fd5b505afa158015610c67573d6000803e3d6000fd5b505050506040513d6020811015610c7d57600080fd5b50519050801580610c8c575082155b15610c975750610d15565b6000610cb360ff8416600a0a610cad868561199c565b906119f5565b9050610cbf86826118ac565b846001600160a01b0316866001600160a01b03167f7ec47df14856932d91466b116a2204d68f6e9137bd9fa8a0252cdb78e42aa8918684604051808381526020018281526020019250505060405180910390a350505b50505050565b60606000610d296009611a37565b905060008167ffffffffffffffff81118015610d4457600080fd5b50604051908082528060200260200182016040528015610d6e578160200160208202803683370190505b50905060005b82811015610db357610d87600982611a42565b828281518110610d9357fe5b6001600160a01b0390921660209283029190910190910152600101610d74565b5091505090565b6001600160a01b031660009081526020819052604090205490565b610ddd61153f565b6008546001600160a01b03908116911614610e2d576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6001600160a01b038116600090815260066020526040812061090f90611a4e565b610ea061153f565b6008546001600160a01b03908116911614610ef0576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af57610f23828281518110610f0b57fe5b6020026020010151600b611a5290919063ffffffff16565b50600101610ef3565b6008546001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108ec5780601f106108c1576101008083540402835291602001916108ec565b60076020526000908152604090205481565b60606000610fbc600b611a37565b905060008167ffffffffffffffff81118015610fd757600080fd5b50604051908082528060200260200182016040528015611001578160200160208202803683370190505b50905060005b82811015610db35761101a600b82611a42565b82828151811061102657fe5b6001600160a01b0390921660209283029190910190910152600101611007565b600061090b61105361153f565b84610a2b85604051806060016040528060258152602001612114602591396001600061107d61153f565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906117a6565b6110b661153f565b6008546001600160a01b03908116911614611106576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af5761113982828151811061112157fe5b60200260200101516009611a5290919063ffffffff16565b50600101611109565b600061090b61114f61153f565b848461164b565b600d546001600160a01b031681565b600d5460408051630681320d60e51b81526001600160a01b0384811660048301529151600093929092169163d02641a091602480820192602092909190829003018186803b1580156111b657600080fd5b505afa1580156111ca573d6000803e3d6000fd5b505050506040513d60208110156111e057600080fd5b505192915050565b8342111561123d576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b6001600160a01b0387166000908152600660205260408120819061126090611a4e565b90506040517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981528960208201528860408201528760608201528160808201528660a082015260c0812092505060006112b7611a67565b60405161190160f01b815260028101829052602281018590526042902090915060006112e582898989611aa4565b90508b6001600160a01b0316816001600160a01b03161461134d576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b038c16600090815260066020526040902061136e90611c26565b6113798c8c8c611543565b505050505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6113ba61153f565b6008546001600160a01b0390811691161461140a576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af5761143d82828151811061142557fe5b6020026020010151600961162f90919063ffffffff16565b5060010161140d565b61144e61153f565b6008546001600160a01b0390811691161461149e576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b6001600160a01b0381166114e35760405162461bcd60e51b8152600401808060200182810382526026815260200180611fb06026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166115885760405162461bcd60e51b81526004018080602001828103825260248152602001806120f06024913960400191505060405180910390fd5b6001600160a01b0382166115cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180611fd66022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000611644836001600160a01b038416611c2f565b9392505050565b6001600160a01b0383166116905760405162461bcd60e51b81526004018080602001828103825260258152602001806120cb6025913960400191505060405180910390fd5b6001600160a01b0382166116d55760405162461bcd60e51b8152600401808060200182810382526023815260200180611f8d6023913960400191505060405180910390fd5b6116e0838383611c79565b61171d81604051806060016040528060268152602001611ff8602691396001600160a01b03861660009081526020819052604090205491906117a6565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461174c908261183d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156118355760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117fa5781810151838201526020016117e2565b50505050905090810190601f1680156118275780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611644576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000611644836001600160a01b038416611cf3565b6001600160a01b038216611907576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61191360008383611c79565b600254611920908261183d565b6002556001600160a01b038216600090815260208190526040902054611946908261183d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826119ab5750600061090f565b828202828482816119b857fe5b04146116445760405162461bcd60e51b81526004018080602001828103825260218152602001806120626021913960400191505060405180910390fd5b600061164483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d0b565b600061090f82611a4e565b60006116448383611d70565b5490565b6000611644836001600160a01b038416611dd4565b60008060076000611a76611e9a565b815260208101919091526040016000205490508015611a965790506108f4565b611a9e611e9e565b91505090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b055760405162461bcd60e51b815260040180806020018281038252602281526020018061201e6022913960400191505060405180910390fd5b8360ff16601b14158015611b1d57508360ff16601c14155b15611b595760405162461bcd60e51b81526004018080602001828103825260228152602001806120406022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611bb5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c1d576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b80546001019055565b6000611c3b8383611cf3565b611c715750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561090f565b50600061090f565b6001600160a01b0383161580611c955750611c95600b83611897565b80611ca65750611ca6600b84611897565b611cee576040805162461bcd60e51b8152602060048201526014602482015273151c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b505050565b60009081526001919091016020526040902054151590565b60008183611d5a5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117fa5781810151838201526020016117e2565b506000838581611d6657fe5b0495945050505050565b81546000908210611db25760405162461bcd60e51b8152600401808060200182810382526022815260200180611f6b6022913960400191505060405180910390fd5b826000018281548110611dc157fe5b9060005260206000200154905092915050565b60008181526001830160205260408120548015611e905783546000198083019190810190600090879083908110611e0757fe5b9060005260206000200154905080876000018481548110611e2457fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611e5457fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061090f565b600091505061090f565b4690565b600080611ea9611e9a565b905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f611ed6610860565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060840152608083018590523060a0808501919091528151808503909101815260c090930181528251928201929092206000948552600790915292208290555090509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202ffae2b29ce2e3802aa96137384390c63e3ae4628c145744ac86704b39b3089e64736f6c6343000706003300000000000000000000000064fe6d2279c09646bd6d265483a414d79b3d00b0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806387322816116100f9578063a9059cbb11610097578063d505accf11610071578063d505accf1461071a578063dd62ed3e1461076b578063f18e33e114610799578063f2fde38b1461083a576101c4565b8063a9059cbb146106c0578063b888879e146106ec578063d02641a0146106f4576101c4565b806399740a18116100d357806399740a18146105ce5780639b372b2b146105eb578063a457c2d7146105f3578063a81b42e81461061f576101c4565b806387322816146105015780638da5cb5b146105a257806395d89b41146105c6576101c4565b806339509351116101665780636b32810b116101405780636b32810b1461045557806370a08231146104ad578063715018a6146104d35780637ecebe00146104db576101c4565b806339509351146103bd57806340c10f19146103e95780634e235e7c14610415576101c4565b8063227275ef116101a2578063227275ef146102a057806323b872dd14610343578063313ce56714610379578063372aa22414610397576101c4565b806306fdde03146101c9578063095ea7b31461024657806318160ddd14610286575b600080fd5b6101d1610860565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020b5781810151838201526020016101f3565b50505050905090810190601f1680156102385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102726004803603604081101561025c57600080fd5b506001600160a01b0381351690602001356108f7565b604080519115158252519081900360200190f35b61028e610915565b60408051918252519081900360200190f35b610341600480360360208110156102b657600080fd5b810190602081018135600160201b8111156102d057600080fd5b8201836020820111156102e257600080fd5b803590602001918460208302840111600160201b8311171561030357600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061091b945050505050565b005b6102726004803603606081101561035957600080fd5b506001600160a01b038135811691602081013590911690604001356109b3565b610381610a3a565b6040805160ff9092168252519081900360200190f35b610341600480360360208110156103ad57600080fd5b50356001600160a01b0316610a43565b610272600480360360408110156103d357600080fd5b506001600160a01b038135169060200135610abd565b610341600480360360408110156103ff57600080fd5b506001600160a01b038135169060200135610b0b565b6103416004803603608081101561042b57600080fd5b5080356001600160a01b03908116916020810135909116906040810135906060013560ff16610b65565b61045d610d1b565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610499578181015183820152602001610481565b505050509050019250505060405180910390f35b61028e600480360360208110156104c357600080fd5b50356001600160a01b0316610dba565b610341610dd5565b61028e600480360360208110156104f157600080fd5b50356001600160a01b0316610e77565b6103416004803603602081101561051757600080fd5b810190602081018135600160201b81111561053157600080fd5b82018360208201111561054357600080fd5b803590602001918460208302840111600160201b8311171561056457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610e98945050505050565b6105aa610f2c565b604080516001600160a01b039092168252519081900360200190f35b6101d1610f3b565b61028e600480360360208110156105e457600080fd5b5035610f9c565b61045d610fae565b6102726004803603604081101561060957600080fd5b506001600160a01b038135169060200135611046565b6103416004803603602081101561063557600080fd5b810190602081018135600160201b81111561064f57600080fd5b82018360208201111561066157600080fd5b803590602001918460208302840111600160201b8311171561068257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110ae945050505050565b610272600480360360408110156106d657600080fd5b506001600160a01b038135169060200135611142565b6105aa611156565b61028e6004803603602081101561070a57600080fd5b50356001600160a01b0316611165565b610341600480360360e081101561073057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356111e8565b61028e6004803603604081101561078157600080fd5b506001600160a01b0381358116916020013516611387565b610341600480360360208110156107af57600080fd5b810190602081018135600160201b8111156107c957600080fd5b8201836020820111156107db57600080fd5b803590602001918460208302840111600160201b831117156107fc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506113b2945050505050565b6103416004803603602081101561085057600080fd5b50356001600160a01b0316611446565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108ec5780601f106108c1576101008083540402835291602001916108ec565b820191906000526020600020905b8154815290600101906020018083116108cf57829003601f168201915b505050505090505b90565b600061090b61090461153f565b8484611543565b5060015b92915050565b60025490565b61092361153f565b6008546001600160a01b03908116911614610973576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af576109a682828151811061098e57fe5b6020026020010151600b61162f90919063ffffffff16565b50600101610976565b5050565b60006109c084848461164b565b610a30846109cc61153f565b610a2b85604051806060016040528060288152602001612083602891396001600160a01b038a16600090815260016020526040812090610a0a61153f565b6001600160a01b0316815260208101919091526040016000205491906117a6565b611543565b5060019392505050565b60055460ff1690565b610a4b61153f565b6008546001600160a01b03908116911614610a9b576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600061090b610aca61153f565b84610a2b8560016000610adb61153f565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061183d565b610b16600933611897565b610b5b576040805162461bcd60e51b81526020600482015260116024820152704e6f206d696e74696e672072696768747360781b604482015290519081900360640190fd5b6109af82826118ac565b610b70600933611897565b610bb5576040805162461bcd60e51b81526020600482015260116024820152704e6f206d696e74696e672072696768747360781b604482015290519081900360640190fd5b60128160ff161115610c02576040805162461bcd60e51b8152602060048201526011602482015270546f6f206d616e7920646563696d616c7360781b604482015290519081900360640190fd5b600d5460408051630681320d60e51b81526001600160a01b0386811660048301529151600093929092169163d02641a091602480820192602092909190829003018186803b158015610c5357600080fd5b505afa158015610c67573d6000803e3d6000fd5b505050506040513d6020811015610c7d57600080fd5b50519050801580610c8c575082155b15610c975750610d15565b6000610cb360ff8416600a0a610cad868561199c565b906119f5565b9050610cbf86826118ac565b846001600160a01b0316866001600160a01b03167f7ec47df14856932d91466b116a2204d68f6e9137bd9fa8a0252cdb78e42aa8918684604051808381526020018281526020019250505060405180910390a350505b50505050565b60606000610d296009611a37565b905060008167ffffffffffffffff81118015610d4457600080fd5b50604051908082528060200260200182016040528015610d6e578160200160208202803683370190505b50905060005b82811015610db357610d87600982611a42565b828281518110610d9357fe5b6001600160a01b0390921660209283029190910190910152600101610d74565b5091505090565b6001600160a01b031660009081526020819052604090205490565b610ddd61153f565b6008546001600160a01b03908116911614610e2d576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6001600160a01b038116600090815260066020526040812061090f90611a4e565b610ea061153f565b6008546001600160a01b03908116911614610ef0576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af57610f23828281518110610f0b57fe5b6020026020010151600b611a5290919063ffffffff16565b50600101610ef3565b6008546001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108ec5780601f106108c1576101008083540402835291602001916108ec565b60076020526000908152604090205481565b60606000610fbc600b611a37565b905060008167ffffffffffffffff81118015610fd757600080fd5b50604051908082528060200260200182016040528015611001578160200160208202803683370190505b50905060005b82811015610db35761101a600b82611a42565b82828151811061102657fe5b6001600160a01b0390921660209283029190910190910152600101611007565b600061090b61105361153f565b84610a2b85604051806060016040528060258152602001612114602591396001600061107d61153f565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906117a6565b6110b661153f565b6008546001600160a01b03908116911614611106576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af5761113982828151811061112157fe5b60200260200101516009611a5290919063ffffffff16565b50600101611109565b600061090b61114f61153f565b848461164b565b600d546001600160a01b031681565b600d5460408051630681320d60e51b81526001600160a01b0384811660048301529151600093929092169163d02641a091602480820192602092909190829003018186803b1580156111b657600080fd5b505afa1580156111ca573d6000803e3d6000fd5b505050506040513d60208110156111e057600080fd5b505192915050565b8342111561123d576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b6001600160a01b0387166000908152600660205260408120819061126090611a4e565b90506040517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981528960208201528860408201528760608201528160808201528660a082015260c0812092505060006112b7611a67565b60405161190160f01b815260028101829052602281018590526042902090915060006112e582898989611aa4565b90508b6001600160a01b0316816001600160a01b03161461134d576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b038c16600090815260066020526040902061136e90611c26565b6113798c8c8c611543565b505050505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6113ba61153f565b6008546001600160a01b0390811691161461140a576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b60005b81518110156109af5761143d82828151811061142557fe5b6020026020010151600961162f90919063ffffffff16565b5060010161140d565b61144e61153f565b6008546001600160a01b0390811691161461149e576040805162461bcd60e51b815260206004820181905260248201526000805160206120ab833981519152604482015290519081900360640190fd5b6001600160a01b0381166114e35760405162461bcd60e51b8152600401808060200182810382526026815260200180611fb06026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166115885760405162461bcd60e51b81526004018080602001828103825260248152602001806120f06024913960400191505060405180910390fd5b6001600160a01b0382166115cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180611fd66022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000611644836001600160a01b038416611c2f565b9392505050565b6001600160a01b0383166116905760405162461bcd60e51b81526004018080602001828103825260258152602001806120cb6025913960400191505060405180910390fd5b6001600160a01b0382166116d55760405162461bcd60e51b8152600401808060200182810382526023815260200180611f8d6023913960400191505060405180910390fd5b6116e0838383611c79565b61171d81604051806060016040528060268152602001611ff8602691396001600160a01b03861660009081526020819052604090205491906117a6565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461174c908261183d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156118355760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117fa5781810151838201526020016117e2565b50505050905090810190601f1680156118275780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611644576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000611644836001600160a01b038416611cf3565b6001600160a01b038216611907576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61191360008383611c79565b600254611920908261183d565b6002556001600160a01b038216600090815260208190526040902054611946908261183d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826119ab5750600061090f565b828202828482816119b857fe5b04146116445760405162461bcd60e51b81526004018080602001828103825260218152602001806120626021913960400191505060405180910390fd5b600061164483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d0b565b600061090f82611a4e565b60006116448383611d70565b5490565b6000611644836001600160a01b038416611dd4565b60008060076000611a76611e9a565b815260208101919091526040016000205490508015611a965790506108f4565b611a9e611e9e565b91505090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b055760405162461bcd60e51b815260040180806020018281038252602281526020018061201e6022913960400191505060405180910390fd5b8360ff16601b14158015611b1d57508360ff16601c14155b15611b595760405162461bcd60e51b81526004018080602001828103825260228152602001806120406022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611bb5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c1d576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b80546001019055565b6000611c3b8383611cf3565b611c715750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561090f565b50600061090f565b6001600160a01b0383161580611c955750611c95600b83611897565b80611ca65750611ca6600b84611897565b611cee576040805162461bcd60e51b8152602060048201526014602482015273151c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b505050565b60009081526001919091016020526040902054151590565b60008183611d5a5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117fa5781810151838201526020016117e2565b506000838581611d6657fe5b0495945050505050565b81546000908210611db25760405162461bcd60e51b8152600401808060200182810382526022815260200180611f6b6022913960400191505060405180910390fd5b826000018281548110611dc157fe5b9060005260206000200154905092915050565b60008181526001830160205260408120548015611e905783546000198083019190810190600090879083908110611e0757fe5b9060005260206000200154905080876000018481548110611e2457fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611e5457fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061090f565b600091505061090f565b4690565b600080611ea9611e9a565b905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f611ed6610860565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060840152608083018590523060a0808501919091528151808503909101815260c090930181528251928201929092206000948552600790915292208290555090509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202ffae2b29ce2e3802aa96137384390c63e3ae4628c145744ac86704b39b3089e64736f6c63430007060033

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

00000000000000000000000064fe6d2279c09646bd6d265483a414d79b3d00b0

-----Decoded View---------------
Arg [0] : _priceProvider (address): 0x64fE6D2279c09646Bd6d265483A414d79B3D00B0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000064fe6d2279c09646bd6d265483a414d79b3d00b0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

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.