Contract 0x4d4e595d643dc61ea7fcbf12e4b1aaa39f9975b8 5

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xbd8539050f5ac1d8920bb71235ee08614ac9ba281d1caf45f3ac90a74d4ea48dApprove111306182021-09-22 7:45:335 mins ago0x1d72ab68d3303c6613bcd3b9dbbe4240cb5a0557 IN  Battle Pets: PET Token0 BNB0.00022191
0xa1b629221a3d1d9180fffb03663c87dcf35083be85941f314e221eb8212439eaTransfer111297812021-09-22 7:03:2647 mins ago0x36539fb775a56ee353085d49438c2816a3d57528 IN  Battle Pets: PET Token0 BNB0.0004416
0x1db23ef4e00edf437c44030883e312a061d5c43acdfa182162fa22d39ecab177Transfer111297722021-09-22 7:02:5948 mins ago0xde74e5d90a6536980e8b94297a018289a24d2ca3 IN  Battle Pets: PET Token0 BNB0.00025956
0x9d4b3d7781653984b9966caf9ab838c40d7198303e1758fb119da527c0d88eb7Transfer111292902021-09-22 6:38:211 hr 13 mins ago0x0d0707963952f2fba59dd06f2b425ace40b492fe IN  Battle Pets: PET Token0 BNB0.000333612
0xcae3c5f6fd41860301283747da0ae16995e3d3f9b9cedcd7ccd749a01754907cTransfer111292852021-09-22 6:38:061 hr 13 mins ago0x4982085c9e2f89f2ecb8131eca71afad896e89cb IN  Battle Pets: PET Token0 BNB0.0007416
0xd3ae265316bf7bd2cae200062adfbdf5160ac211e895ee74bc6a97ae34e7e907Transfer111231862021-09-22 1:31:226 hrs 20 mins ago0x0d0707963952f2fba59dd06f2b425ace40b492fe IN  Battle Pets: PET Token0 BNB0.000333612
0xc864d05c54b9b33e9c9bf758f83238ce3bcbbaa04b8ac8e36fb2d28b8f445894Approve111208392021-09-21 23:32:018 hrs 19 mins ago0x8d644bf39841f70ef5aa117070f15c7ff8b9e1b9 IN  Battle Pets: PET Token0 BNB0.00022191
0x47e4ff66a101c78a23836d0e4a51712bad201a3d5b0fed2846c8b4ce87a772dcApprove111202262021-09-21 23:00:528 hrs 50 mins ago0x07719d82b79a3005511b4de7bbe240dd44649b8b IN  Battle Pets: PET Token0 BNB0.00022191
0x37cf36b7f3844e41adeec8ac6658ed4d192c76d954c103b7f4c2208efb3a7561Transfer111184102021-09-21 21:27:4010 hrs 23 mins ago0x36539fb775a56ee353085d49438c2816a3d57528 IN  Battle Pets: PET Token0 BNB0.0004416
0x1a01be9f1973b11b0c9ac0f74fd962b104d97f384f97a50f9e591378d78360efTransfer111182782021-09-21 21:20:2210 hrs 31 mins ago0xde74e5d90a6536980e8b94297a018289a24d2ca3 IN  Battle Pets: PET Token0 BNB0.00025956
0xba6fff92e6e35c8a72f8968ed73957de4664d1024e5e4c9f5236fc986391bca3Transfer111161792021-09-21 19:35:1812 hrs 16 mins agoHotbit 2 IN  Battle Pets: PET Token0 BNB0.000364476
0xbf34aac6c0fa626cad52214d580b9acb4fc00eb86aa9abe1d17ca0a48ae3de0cTransfer111161532021-09-21 19:34:0012 hrs 17 mins ago0x10e46a585e50bc29d55eac1ffd95be361df87593 IN  Battle Pets: PET Token0 BNB0.0004416
0xb0cf4177fa3ca8bdb38e1000f1275879d4ca1459510638f6ecb2f10049459f4fTransfer111160212021-09-21 19:27:1812 hrs 24 mins ago0x0d0707963952f2fba59dd06f2b425ace40b492fe IN  Battle Pets: PET Token0 BNB0.00046872
0x6168e36b457ac9112a5d7b8eeb953cd8d5d0b223ecd8a023548a6c2f16b77d53Transfer111146572021-09-21 18:17:0713 hrs 34 mins ago0x4982085c9e2f89f2ecb8131eca71afad896e89cb IN  Battle Pets: PET Token0 BNB0.00104136
0xb8b553e436619cf6f676ec8f7ed6a433a4d8764efa4e17e36f3647d9f44223fcTransfer111131502021-09-21 17:01:0614 hrs 50 mins ago0x4982085c9e2f89f2ecb8131eca71afad896e89cb IN  Battle Pets: PET Token0 BNB0.00104136
0xf01f987140141ff859eb7423248ba49397a9ecc53a4d257b2be1ef03003ead10Transfer111129352021-09-21 16:50:2015 hrs 1 min ago0x39b6212326ddce241ef0b2c927dc382d826c68af IN  Battle Pets: PET Token0 BNB0.000132408
0xc65211cf9b77669d5e3aa094b25cb54876c2c86744ee61cc5d161a87e2516c6aApprove111126372021-09-21 16:35:2615 hrs 15 mins ago0x8818575b8d35fa0b82d3765a0aff53c8ecd4f3c2 IN  Battle Pets: PET Token0 BNB0.00022191
0x76d931cb9ee8a5dc29a37e6495329d79d9e4cf35c6bb5404ae72f1ec9e35a4e5Transfer111119382021-09-21 16:00:2515 hrs 50 mins ago0x13c468ae85554f9afe5887c50b6524eebfcb50a5 IN  Battle Pets: PET Token0 BNB0.00027585
0x5ec3d566e1206da9e2f88fc01193b53f18bbe028528890b6887f0d5f143313f6Transfer111119112021-09-21 15:59:0415 hrs 52 mins ago0x4982085c9e2f89f2ecb8131eca71afad896e89cb IN  Battle Pets: PET Token0 BNB0.00104136
0x35cd71289077ae6d17fc401214149d69f727e8a12f0cfead60974f332aa9b202Transfer111117712021-09-21 15:52:0415 hrs 59 mins ago0xccddac8085dfbc2ec1c69e3bf9a7f3cf269a79e7 IN  Battle Pets: PET Token0 BNB0.00044112
0xa5c35efd103ea087b92e92f03dde33354ce02dd8ef0bbe2d49da0f0c362b8560Transfer111117422021-09-21 15:50:3716 hrs ago0x19abbb770f6f0f0a198aecb90bbefc25436b7346 IN  Battle Pets: PET Token0 BNB0.00018528
0x8501cdfde1a721b19eb457d99771a61ca7d7efdbc5fa16d545fd79518d27650bTransfer111114072021-09-21 15:33:5216 hrs 17 mins ago0x36539fb775a56ee353085d49438c2816a3d57528 IN  Battle Pets: PET Token0 BNB0.0004416
0xef825eff9f294bac27fe273ccdf25b5a0711ca129fb15f113db4f753a012347eTransfer111113472021-09-21 15:30:5216 hrs 20 mins ago0xde74e5d90a6536980e8b94297a018289a24d2ca3 IN  Battle Pets: PET Token0 BNB0.00025956
0x395a09f77bf54ca72442618d62c522d6c084e2af28c34c87b43e5a9c14b9a875Transfer111111652021-09-21 15:21:4616 hrs 29 mins ago0xfe1b79a7fe2ebf203858500058309b5716e8d7ac IN  Battle Pets: PET Token0 BNB0.00044112
0x388dd568d5603b30c9a8b8feea835541f9a6c75a1eba0656fb38b1713ec74f7dTransfer111111642021-09-21 15:21:4316 hrs 29 mins ago0x36539fb775a56ee353085d49438c2816a3d57528 IN  Battle Pets: PET Token0 BNB0.00044184
[ Download CSV Export 

OVERVIEW

"Battle Pets" is a blockchain game about adorable pets running on Binance Smart Chain. Each pet is an NFT(Non-fungible Token) that can be collected, nourished, and armed with weapons to battle with other pets.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x25544e582861a09d62d34e63619c9f46faa88ba557a695f246f3052d3069459254709282021-03-07 11:39:21198 days 20 hrs ago 0x90e88d4c8e8f19af15dfeabd516d80666f06a2f5 Battle Pets: PET Token0 BNB
0x25544e582861a09d62d34e63619c9f46faa88ba557a695f246f3052d3069459254709282021-03-07 11:39:21198 days 20 hrs ago 0xe1b09ea8890b9b0a9220a0734c1ae60d882e2e50 Battle Pets: PET Token0 BNB
0x25544e582861a09d62d34e63619c9f46faa88ba557a695f246f3052d3069459254709282021-03-07 11:39:21198 days 20 hrs ago 0xe1b09ea8890b9b0a9220a0734c1ae60d882e2e50 Battle Pets: PET Token0 BNB
0x742ca0b9e99a0ddcd7998dd047f41359d09a39d30848b5fc3c20a7f3d3220fcd54708232021-03-07 11:34:06198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
0x742ca0b9e99a0ddcd7998dd047f41359d09a39d30848b5fc3c20a7f3d3220fcd54708232021-03-07 11:34:06198 days 20 hrs ago 0x0c5362f7c80ff3124843df2510b9e7368e237ea6 Battle Pets: PET Token0 BNB
0x742ca0b9e99a0ddcd7998dd047f41359d09a39d30848b5fc3c20a7f3d3220fcd54708232021-03-07 11:34:06198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x742ca0b9e99a0ddcd7998dd047f41359d09a39d30848b5fc3c20a7f3d3220fcd54708232021-03-07 11:34:06198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x45743eaf8cb79ce05c3f1ff7688c85b83922efbe06e4564cbf43698d600e81e654708182021-03-07 11:33:51198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
0x45743eaf8cb79ce05c3f1ff7688c85b83922efbe06e4564cbf43698d600e81e654708182021-03-07 11:33:51198 days 20 hrs ago 0xcde540d7eafe93ac5fe6233bee57e1270d3e330f Battle Pets: PET Token0 BNB
0xaabfb14d3e8e6fc8a0e7c37d2f11dac9b0444c639bfd0dd1f0620e7c1c5b64a454708082021-03-07 11:33:21198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0xaabfb14d3e8e6fc8a0e7c37d2f11dac9b0444c639bfd0dd1f0620e7c1c5b64a454708082021-03-07 11:33:21198 days 20 hrs ago 0xcde540d7eafe93ac5fe6233bee57e1270d3e330f Battle Pets: PET Token0 BNB
0x3394c933554196285c85fe3222c3be3772b80430f61aa9bdcac6dbfa92b3dd4e54708062021-03-07 11:33:15198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
0x3394c933554196285c85fe3222c3be3772b80430f61aa9bdcac6dbfa92b3dd4e54708062021-03-07 11:33:15198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
0x3394c933554196285c85fe3222c3be3772b80430f61aa9bdcac6dbfa92b3dd4e54708062021-03-07 11:33:15198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
0x8807aed90299db40e561169e240bfba5dc62f804b4dce98a6417fdd6a5aeeecd54707172021-03-07 11:28:48198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x8807aed90299db40e561169e240bfba5dc62f804b4dce98a6417fdd6a5aeeecd54707172021-03-07 11:28:48198 days 20 hrs ago 0xcde540d7eafe93ac5fe6233bee57e1270d3e330f Battle Pets: PET Token0 BNB
0x46a86a9c6bb9039dbe9399521e50841f2d4c06ebb5e60ce78550ff46ce4290d754705712021-03-07 11:21:30198 days 20 hrs ago 0xcde540d7eafe93ac5fe6233bee57e1270d3e330f Battle Pets: PET Token0 BNB
0x46a86a9c6bb9039dbe9399521e50841f2d4c06ebb5e60ce78550ff46ce4290d754705712021-03-07 11:21:30198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x46a86a9c6bb9039dbe9399521e50841f2d4c06ebb5e60ce78550ff46ce4290d754705712021-03-07 11:21:30198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x46a86a9c6bb9039dbe9399521e50841f2d4c06ebb5e60ce78550ff46ce4290d754705712021-03-07 11:21:30198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x5fe4666a7c7964f5ded9687dd07e0fd419587fef9fe2de099f29906b1129bd4554705392021-03-07 11:19:54198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
0x5fe4666a7c7964f5ded9687dd07e0fd419587fef9fe2de099f29906b1129bd4554705392021-03-07 11:19:54198 days 20 hrs ago 0xcde540d7eafe93ac5fe6233bee57e1270d3e330f Battle Pets: PET Token0 BNB
0x8f48558d79a8a63f890ffa540ffb083cda6b060782b1c55997f1b3d08f504f5854705362021-03-07 11:19:45198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x8f48558d79a8a63f890ffa540ffb083cda6b060782b1c55997f1b3d08f504f5854705362021-03-07 11:19:45198 days 20 hrs ago 0x229e9f691ed34cf4cb706fae7bf65aeb9020e329 Battle Pets: PET Token0 BNB
0x9ad785789573efe7393736d92bbf25e8f8a70e361c0122e12cf8247caf5b7e1854705302021-03-07 11:19:27198 days 20 hrs ago 0x6f72943c807bdfac19bae25e84b8e99fee0305fc Battle Pets: PET Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x829963c82F7040795f0E07c1F98544a82288bcE4

Contract Name:
PetToken

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 999999 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2020-10-17
*/

// File: @openzeppelin/contracts/utils/EnumerableSet.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(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: @openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: @openzeppelin/contracts/GSN/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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: @openzeppelin/contracts/access/AccessControl.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

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

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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;
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;





/**
 * @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;
    using Address for address;

    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: @openzeppelin/contracts/utils/Pausable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


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

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

    bool private _paused;

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20Pausable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;



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

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

// File: contracts/PetToken.sol

pragma solidity =0.6.6;




contract PetToken is ERC20Pausable, AccessControl {
    bytes32 public constant PAUSED_ROLE = keccak256('PAUSED_ROLE');

    constructor() public ERC20('Pet Token', 'PET') {
        _setupRole(PAUSED_ROLE, _msgSender());
        _mint(_msgSender(), 2 * 10**26);
    }

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

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

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

    function pause() public whenNotPaused {
        require(hasRole(PAUSED_ROLE, _msgSender()), 'Must have pause role');
        _pause();
    }

    function unpause() public whenPaused {
        require(hasRole(PAUSED_ROLE, _msgSender()), 'Must have pause role');
        _unpause();
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051806040016040528060098152602001682832ba102a37b5b2b760b91b8152506040518060400160405280600381526020016214115560ea1b8152508160039080519060200190620000689291906200043e565b5080516200007e9060049060208401906200043e565b50506005805461ff001960ff1990911660121716905550604080516a5041555345445f524f4c4560a81b8152905190819003600b019020620000dc90620000cd6001600160e01b036200011416565b6001600160e01b036200011916565b6200010e620000f36001600160e01b036200011416565b6aa56fa5b99019a5c80000006001600160e01b036200013216565b620004e0565b335b90565b6200012e82826001600160e01b036200024a16565b5050565b6001600160a01b0382166200018e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620001a5600083836001600160e01b03620002ce16565b620001c1816002546200033c60201b620013431790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620001f4918390620013436200033c821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000828152600660209081526040909120620002719183906200176c620003a0821b17901c565b156200012e576200028a6001600160e01b036200011416565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b620002e68383836200033760201b62000adf1760201c565b620002f96001600160e01b03620003c016565b15620003375760405162461bcd60e51b815260040180806020018281038252602a81526020018062002122602a913960400191505060405180910390fd5b505050565b60008282018381101562000397576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600062000397836001600160a01b0384166001600160e01b03620003ce16565b600554610100900460ff1690565b6000620003e583836001600160e01b036200042616565b6200041d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200039a565b5060006200039a565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200048157805160ff1916838001178555620004b1565b82800160010185558215620004b1579182015b82811115620004b157825182559160200191906001019062000494565b50620004bf929150620004c3565b5090565b6200011691905b80821115620004bf5760008155600101620004ca565b611c3280620004f06000396000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c806370a08231116100ee578063a217fddf11610097578063ae57937b11610071578063ae57937b1461055f578063ca15c87314610567578063d547741f14610584578063dd62ed3e146105bd576101a3565b8063a217fddf146104e5578063a457c2d7146104ed578063a9059cbb14610526576101a3565b80639010d07c116100c85780639010d07c1461045857806391d14854146104a457806395d89b41146104dd576101a3565b806370a08231146103e457806379cc6790146104175780638456cb5914610450576101a3565b8063313ce567116101505780633f4ba83a1161012a5780633f4ba83a146103b757806342966c68146103bf5780635c975abb146103dc576101a3565b8063313ce5671461032757806336568abe14610345578063395093511461037e576101a3565b806323b872dd1161018157806323b872dd1461028c578063248a9ca3146102cf5780632f2ff15d146102ec576101a3565b806306fdde03146101a8578063095ea7b31461022557806318160ddd14610272575b600080fd5b6101b06105f8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ea5781810151838201526020016101d2565b50505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61025e6004803603604081101561023b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356106ac565b604080519115158252519081900360200190f35b61027a6106ca565b60408051918252519081900360200190f35b61025e600480360360608110156102a257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356106d0565b61027a600480360360208110156102e557600080fd5b5035610777565b6103256004803603604081101561030257600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661078c565b005b61032f610812565b6040805160ff9092168252519081900360200190f35b6103256004803603604081101561035b57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661081b565b61025e6004803603604081101561039457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356108b0565b610325610911565b610325600480360360208110156103d557600080fd5b5035610a3a565b61025e610a4e565b61027a600480360360208110156103fa57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a5c565b6103256004803603604081101561042d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a84565b610325610ae4565b61047b6004803603604081101561046e57600080fd5b5080359060200135610c0c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61025e600480360360408110156104ba57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610c31565b6101b0610c4f565b61027a610cce565b61025e6004803603604081101561050357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610cd3565b61025e6004803603604081101561053c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610d4e565b61027a610d62565b61027a6004803603602081101561057d57600080fd5b5035610d97565b6103256004803603604081101561059a57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610dae565b61027a600480360360408110156105d357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610e21565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a25780601f10610677576101008083540402835291602001916106a2565b820191906000526020600020905b81548152906001019060200180831161068557829003601f168201915b5050505050905090565b60006106c06106b9610e59565b8484610e5d565b5060015b92915050565b60025490565b60006106dd848484610fa4565b61076d846106e9610e59565b61076885604051806060016040528060288152602001611ac96028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260016020526040812090610734610e59565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002054919063ffffffff61118016565b610e5d565b5060019392505050565b60009081526006602052604090206002015490565b6000828152600660205260409020600201546107af906107aa610e59565b610c31565b610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611a00602f913960400191505060405180910390fd5b61080e8282611231565b5050565b60055460ff1690565b610823610e59565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611ba4602f913960400191505060405180910390fd5b61080e82826112ba565b60006106c06108bd610e59565b8461076885600160006108ce610e59565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61134316565b600554610100900460ff1661098757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b604080517f5041555345445f524f4c450000000000000000000000000000000000000000008152905190819003600b0190206109c5906107aa610e59565b610a3057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d757374206861766520706175736520726f6c65000000000000000000000000604482015290519081900360640190fd5b610a386113b7565b565b610a4b610a45610e59565b826114a8565b50565b600554610100900460ff1690565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6000610ac182604051806060016040528060248152602001611af160249139610ab486610aaf610e59565b610e21565b919063ffffffff61118016565b9050610ad583610acf610e59565b83610e5d565b610adf83836114a8565b505050565b600554610100900460ff1615610b5b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b604080517f5041555345445f524f4c450000000000000000000000000000000000000000008152905190819003600b019020610b99906107aa610e59565b610c0457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d757374206861766520706175736520726f6c65000000000000000000000000604482015290519081900360640190fd5b610a386115fe565b6000828152600660205260408120610c2a908363ffffffff6116ca16565b9392505050565b6000828152600660205260408120610c2a908363ffffffff6116d616565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a25780601f10610677576101008083540402835291602001916106a2565b600081565b60006106c0610ce0610e59565b8461076885604051806060016040528060258152602001611b7f6025913960016000610d0a610e59565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61118016565b60006106c0610d5b610e59565b8484610fa4565b604080517f5041555345445f524f4c450000000000000000000000000000000000000000008152905190819003600b01902081565b60008181526006602052604081206106c4906116f8565b600082815260066020526040902060020154610dcc906107aa610e59565b6108a6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180611a996030913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316610ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180611b5b6024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611a516022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316611010576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180611b366025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821661107c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806119dd6023913960400191505060405180910390fd5b611087838383611703565b6110d781604051806060016040528060268152602001611a736026913973ffffffffffffffffffffffffffffffffffffffff8616600090815260208190526040902054919063ffffffff61118016565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082209390935590841681522054611119908263ffffffff61134316565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611229576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111ee5781810151838201526020016111d6565b50505050905090810190601f16801561121b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082815260066020526040902061124f908263ffffffff61176c16565b1561080e5761125c610e59565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602052604090206112d8908263ffffffff61178e16565b1561080e576112e5610e59565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610c2a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600554610100900460ff1661142d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61147e610e59565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190a1565b73ffffffffffffffffffffffffffffffffffffffff8216611514576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611b156021913960400191505060405180910390fd5b61152082600083611703565b61157081604051806060016040528060228152602001611a2f6022913973ffffffffffffffffffffffffffffffffffffffff8516600090815260208190526040902054919063ffffffff61118016565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020556002546115a9908263ffffffff6117b016565b60025560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600554610100900460ff161561167557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861147e610e59565b6000610c2a83836117f2565b6000610c2a8373ffffffffffffffffffffffffffffffffffffffff8416611870565b60006106c482611888565b61170e838383610adf565b611716610a4e565b15610adf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611bd3602a913960400191505060405180910390fd5b6000610c2a8373ffffffffffffffffffffffffffffffffffffffff841661188c565b6000610c2a8373ffffffffffffffffffffffffffffffffffffffff84166118d6565b6000610c2a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611180565b8154600090821061184e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806119bb6022913960400191505060405180910390fd5b82600001828154811061185d57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60006118988383611870565b6118ce575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106c4565b5060006106c4565b600081815260018301602052604081205480156119b05783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808301919081019060009087908390811061192757fe5b906000526020600020015490508087600001848154811061194457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061197457fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506106c4565b60009150506106c456fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a264697066735822122065bdc56624a6de970f4b7662a29526bf3aa83722a7ec5c92c8a9561248507b3964736f6c6343000606003345524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564

Deployed ByteCode Sourcemap

45252:1421:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;45252:1421:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;33232:83:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;33232:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35338:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35338:169:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;34307:100;;;:::i;:::-;;;;;;;;;;;;;;;;35981:321;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35981:321:0;;;;;;;;;;;;;;;;;;:::i;19538:114::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19538:114:0;;:::i;19914:227::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19914:227:0;;;;;;;;;:::i;:::-;;34159:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21123:209;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;21123:209:0;;;;;;;;;:::i;36711:218::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36711:218:0;;;;;;;;;:::i;46526:144::-;;;:::i;45641:83::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;45641:83:0;;:::i;43150:78::-;;;:::i;34470:119::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34470:119:0;;;;:::i;46043:324::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;46043:324:0;;;;;;;;;:::i;46375:143::-;;;:::i;19211:138::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19211:138:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18172:139;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18172:139:0;;;;;;;;;:::i;33434:87::-;;;:::i;16917:49::-;;;:::i;37432:269::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;37432:269:0;;;;;;;;;:::i;34802:175::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34802:175:0;;;;;;;;;:::i;45309:62::-;;;:::i;18485:127::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18485:127:0;;:::i;20386:230::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;20386:230:0;;;;;;;;;:::i;35040:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35040:151:0;;;;;;;;;;;:::i;33232:83::-;33302:5;33295:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33269:13;;33295:12;;33302:5;;33295:12;;33302:5;33295:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33232:83;:::o;35338:169::-;35421:4;35438:39;35447:12;:10;:12::i;:::-;35461:7;35470:6;35438:8;:39::i;:::-;-1:-1:-1;35495:4:0;35338:169;;;;;:::o;34307:100::-;34387:12;;34307:100;:::o;35981:321::-;36087:4;36104:36;36114:6;36122:9;36133:6;36104:9;:36::i;:::-;36151:121;36160:6;36168:12;:10;:12::i;:::-;36182:89;36220:6;36182:89;;;;;;;;;;;;;;;;;:19;;;;;;;:11;:19;;;;;;36202:12;:10;:12::i;:::-;36182:33;;;;;;;;;;;;;-1:-1:-1;36182:33:0;;;:89;;:37;:89;:::i;:::-;36151:8;:121::i;:::-;-1:-1:-1;36290:4:0;35981:321;;;;;:::o;19538:114::-;19595:7;19622:12;;;:6;:12;;;;;:22;;;;19538:114::o;19914:227::-;20006:12;;;;:6;:12;;;;;:22;;;19998:45;;20030:12;:10;:12::i;:::-;19998:7;:45::i;:::-;19990:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20108:25;20119:4;20125:7;20108:10;:25::i;:::-;19914:227;;:::o;34159:83::-;34225:9;;;;34159:83;:::o;21123:209::-;21221:12;:10;:12::i;:::-;21210:23;;:7;:23;;;21202:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21298:26;21310:4;21316:7;21298:11;:26::i;36711:218::-;36799:4;36816:83;36825:12;:10;:12::i;:::-;36839:7;36848:50;36887:10;36848:11;:25;36860:12;:10;:12::i;:::-;36848:25;;;;;;;;;;;;;;;;;;-1:-1:-1;36848:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;46526:144::-;43744:7;;;;;;;43736:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45347:24:::1;::::0;;::::1;::::0;;;;;;;;::::1;::::0;;;46582:34:::1;::::0;46603:12:::1;:10;:12::i;46582:34::-;46574:67;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;46652:10;:8;:10::i;:::-;46526:144::o:0;45641:83::-;45689:27;45695:12;:10;:12::i;:::-;45709:6;45689:5;:27::i;:::-;45641:83;:::o;43150:78::-;43213:7;;;;;;;;43150:78::o;34470:119::-;34563:18;;34536:7;34563:18;;;;;;;;;;;;34470:119::o;46043:324::-;46112:26;46141:121;46192:6;46141:121;;;;;;;;;;;;;;;;;:32;46151:7;46160:12;:10;:12::i;:::-;46141:9;:32::i;:::-;:36;:121;;:36;:121;:::i;:::-;46112:150;;46275:51;46284:7;46293:12;:10;:12::i;:::-;46307:18;46275:8;:51::i;:::-;46337:22;46343:7;46352:6;46337:5;:22::i;:::-;46043:324;;;:::o;46375:143::-;43468:7;;;;;;;43467:8;43459:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45347:24:::1;::::0;;::::1;::::0;;;;;;;;::::1;::::0;;;46432:34:::1;::::0;46453:12:::1;:10;:12::i;46432:34::-;46424:67;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;46502:8;:6;:8::i;19211:138::-:0;19284:7;19311:12;;;:6;:12;;;;;:30;;19335:5;19311:30;:23;:30;:::i;:::-;19304:37;19211:138;-1:-1:-1;;;19211:138:0:o;18172:139::-;18241:4;18265:12;;;:6;:12;;;;;:38;;18295:7;18265:38;:29;:38;:::i;33434:87::-;33506:7;33499:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33473:13;;33499:14;;33506:7;;33499:14;;33506:7;33499:14;;;;;;;;;;;;;;;;;;;;;;;;16917:49;16962:4;16917:49;:::o;37432:269::-;37525:4;37542:129;37551:12;:10;:12::i;:::-;37565:7;37574:96;37613:15;37574:96;;;;;;;;;;;;;;;;;:11;:25;37586:12;:10;:12::i;:::-;37574:25;;;;;;;;;;;;;;;;;;-1:-1:-1;37574:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;34802:175::-;34888:4;34905:42;34915:12;:10;:12::i;:::-;34929:9;34940:6;34905:9;:42::i;45309:62::-;45347:24;;;;;;;;;;;;;;;;45309:62;:::o;18485:127::-;18548:7;18575:12;;;:6;:12;;;;;:29;;:27;:29::i;20386:230::-;20479:12;;;;:6;:12;;;;;:22;;;20471:45;;20503:12;:10;:12::i;20471:45::-;20463:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35040:151;35156:18;;;;35129:7;35156:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;35040:151::o;14827:106::-;14915:10;14827:106;:::o;40577:346::-;40679:19;;;40671:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40758:21;;;40750:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40831:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;40883:32;;;;;;;;;;;;;;;;;40577:346;;;:::o;38191:539::-;38297:20;;;38289:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38378:23;;;38370:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38454:47;38475:6;38483:9;38494:6;38454:20;:47::i;:::-;38534:71;38556:6;38534:71;;;;;;;;;;;;;;;;;:17;;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;38514:17;;;;:9;:17;;;;;;;;;;;:91;;;;38639:20;;;;;;;:32;;38664:6;38639:32;:24;:32;:::i;:::-;38616:20;;;;:9;:20;;;;;;;;;;;;:55;;;;38687:35;;;;;;;38616:20;;38687:35;;;;;;;;;;;;;38191:539;;;:::o;27454:192::-;27540:7;27576:12;27568:6;;;;27560:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;27560:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27612:5:0;;;27454:192::o;22366:188::-;22440:12;;;;:6;:12;;;;;:33;;22465:7;22440:33;:24;:33;:::i;:::-;22436:111;;;22522:12;:10;:12::i;:::-;22495:40;;22513:7;22495:40;;22507:4;22495:40;;;;;;;;;;22366:188;;:::o;22562:192::-;22637:12;;;;:6;:12;;;;;:36;;22665:7;22637:36;:27;:36;:::i;:::-;22633:114;;;22722:12;:10;:12::i;:::-;22695:40;;22713:7;22695:40;;22707:4;22695:40;;;;;;;;;;22562:192;;:::o;26551:181::-;26609:7;26641:5;;;26665:6;;;;26657:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44199:120;43744:7;;;;;;;43736:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44258:7:::1;:15:::0;;;::::1;::::0;;44289:22:::1;44298:12;:10;:12::i;:::-;44289:22;::::0;;::::1;::::0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;44199:120::o:0;39721:418::-;39805:21;;;39797:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39877:49;39898:7;39915:1;39919:6;39877:20;:49::i;:::-;39960:68;39983:6;39960:68;;;;;;;;;;;;;;;;;:18;;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;39939:18;;;:9;:18;;;;;;;;;;:89;40054:12;;:24;;40071:6;40054:24;:16;:24;:::i;:::-;40039:12;:39;40094:37;;;;;;;;40120:1;;40094:37;;;;;;;;;;;;;39721:418;;:::o;43940:118::-;43468:7;;;;;;;43467:8;43459:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44000:7:::1;:14:::0;;;::::1;;;::::0;;44030:20:::1;44037:12;:10;:12::i;6329:149::-:0;6403:7;6446:22;6450:3;6462:5;6446:3;:22::i;5624:158::-;5704:4;5728:46;5738:3;5758:14;;;5728:9;:46::i;5868:117::-;5931:7;5958:19;5966:3;5958:7;:19::i;44939:238::-;45048:44;45075:4;45081:2;45085:6;45048:26;:44::i;:::-;45114:8;:6;:8::i;:::-;45113:9;45105:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5070:143;5140:4;5164:41;5169:3;5189:14;;;5164:4;:41::i;5389:149::-;5462:4;5486:44;5494:3;5514:14;;;5486:7;:44::i;27015:136::-;27073:7;27100:43;27104:1;27107;27100:43;;;;;;;;;;;;;;;;;:3;:43::i;4612:204::-;4707:18;;4679:7;;4707:26;-1:-1:-1;4699:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4790:3;:11;;4802:5;4790:18;;;;;;;;;;;;;;;;4783:25;;4612:204;;;;:::o;3944:129::-;4017:4;4041:19;;;:12;;;;;:19;;;;;;:24;;;3944:129::o;4159:109::-;4242:18;;4159:109::o;1724:414::-;1787:4;1809:21;1819:3;1824:5;1809:9;:21::i;:::-;1804:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;1847:11:0;:23;;;;;;;;;;;;;2030:18;;2008:19;;;:12;;;:19;;;;;;:40;;;;2063:11;;1804:327;-1:-1:-1;2114:5:0;2107:12;;2314:1544;2380:4;2519:19;;;:12;;;:19;;;;;;2555:15;;2551:1300;;2990:18;;2941:14;;;;;2990:22;;;;2917:21;;2990:3;;:22;;3277;;;;;;;;;;;;;;3257:42;;3423:9;3394:3;:11;;3406:13;3394:26;;;;;;;;;;;;;;;;;;;:38;;;;3500:23;;;3542:1;3500:12;;;:23;;;;;;3526:17;;;3500:43;;3652:17;;3500:3;;3652:17;;;;;;;;;;;;;;;;;;;;;;3747:3;:12;;:19;3760:5;3747:19;;;;;;;;;;;3740:26;;;3790:4;3783:11;;;;;;;;2551:1300;3834:5;3827:12;;;;

Swarm Source

ipfs://65bdc56624a6de970f4b7662a29526bf3aa83722a7ec5c92c8a9561248507b39
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.