Contract 0x87a2d9a9a6b2d61b2a57798f1b4b2ddd19458fb6 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x07b855c975d908edbcd70d0f9cf8cac63fb7f9339c932f8024b8bd9327e7e3e0Approve132522602021-12-06 19:53:452 mins ago0x181f04318a48e0173a87ad8775c0bbd676f76482 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xd4a25fc71569f39e76e51755f69d317a5550468799137969a57bdfcbfd2e11d2Approve132521122021-12-06 19:46:219 mins ago0x757bd6bd741654244420f4516776eb54758be3c6 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xeb996f962ab548d2622b15221fc79f1737a50165144708c3acf6fe57360f4b58Approve132520952021-12-06 19:45:3010 mins ago0xfbe21b2c323219a79b5fee7dd4d6f5ca8a92bae8 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x8f218e2e1903628153a7a1fdb6bf4440655aa0dca66002441eed7cd4bde64df0Approve132520622021-12-06 19:43:5112 mins ago0x63e44efad8d8c3b12a02abe2542d8cceba106f70 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xcd16027e7fefb2ec4669f924e8ea22001f5f0a9d511a74c20db4c9f0f2a19d0dApprove132520152021-12-06 19:41:3014 mins ago0xe8787528e584c0873d8d0f31d250a2de353915ba IN  Kingdom Game 4.0: KDG Token0 BNB0.000311521
0x5e38b661b221f7815f1210a16e5695e88c4f36afe83fd591d1cd130869f14e0bTransfer132519432021-12-06 19:37:5418 mins ago0x8f1ce5b525cc0c121bc4e14e49c64ef672860b44 IN  Kingdom Game 4.0: KDG Token0 BNB0.0001822
0xa3586050c6cf069902b3bee4fb4b30b58fa23fdfaf036a5f663d06f3e9cf542dApprove132518722021-12-06 19:34:2121 mins ago0xdb28d150129413fb5cf3b3589364a24a522f3a82 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x688be236e6d114c02e6f53d6a1c671d135e459183cf9915449e868bf8b3febebApprove132517852021-12-06 19:30:0026 mins ago0x7ac849d74bf9dd2ae1cd119efd28416789c527e9 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x6be17ebd23d21aa557c224ebede20ac2f608332047b0154bc04ce1ed66c2110dApprove132517122021-12-06 19:26:2129 mins ago0xd923edf989f3a80b3913c6978913350b598e24a5 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x9ce77a78dabfc004a5b64226dad0e4a4d3e2dd886208078085630355b13198b3Approve132516152021-12-06 19:21:3034 mins ago0x566885f250bd6ad10eeb6fc78c9b6ced655c8a2c IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x39f041d3e854e42e02b1521567579e2704e6f3d6a9d4cc66cf2d875f97c41a89Approve132515522021-12-06 19:18:2137 mins ago0x004e078ba5dd8c6ba7e5684832194ead04e06c30 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x4e4c30445ebf8811b2f4906326bb056fd7b2a2b561e955483af2064570256053Approve132515392021-12-06 19:17:4238 mins ago0x9882f7e7e00410000397a9c08326f220558ff0aa IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x00cd5952b7422d65a8f3ec6c698526410c8096c73e5f62e55ac60dbf0d57e3bfApprove132514082021-12-06 19:11:0944 mins ago0x619990472b6e01fd380c5cd4f54fc6f4db399b13 IN  Kingdom Game 4.0: KDG Token0 BNB0.000221075
0xf5b312582a4272702e38d5955b57f970078a3f7dae277c561b1a6dbcf157e012Approve132512912021-12-06 19:05:1850 mins ago0x1406a40e3f61e85875d84b93ba556eb5f7594af4 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xc0be54a7deeae704f8851a8ba2526317064bd334fda40d5c5e8e904bac4d3ddfApprove132511682021-12-06 18:59:0956 mins ago0x4342b5acff160ea6eca8571a0909032376c8bf5a IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xde0303c52b36ca3f182039ee07a00e23571c7c46878063febf7cd48363eca888Transfer132509352021-12-06 18:47:301 hr 8 mins ago0x2968e88d256a82807c41c2d44437136a5f6961e7 IN  Kingdom Game 4.0: KDG Token0 BNB0.00042928
0xde19b176f779737c7d98609ad8dfe3af9732392827e7a3c72fe6e3ab47914dcdTransfer132506962021-12-06 18:35:301 hr 20 mins ago0x54c95d8b6f9cfa233231fd7be1752cc0e9acaa41 IN  Kingdom Game 4.0: KDG Token0 BNB0.00010732
0x7ea08746a20967502fe878d554535ffb8cb9796e7632f4c9dba9a72d8b1fe53aApprove132506932021-12-06 18:35:211 hr 20 mins ago0xeacc9f682bcfeb78f77f666365bfbfd2a22440ae IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x52c2e598545d0a1b5328f42df8944a6edcd9d2087fc9e120cec5c11f6d7ff1bfTransfer132506772021-12-06 18:34:331 hr 21 mins ago0x54c95d8b6f9cfa233231fd7be1752cc0e9acaa41 IN  Kingdom Game 4.0: KDG Token0 BNB0.00025714
0xc99d8548bb8d81de1a4af139720dfcd3e9dd9f5c52d74fbabc906f003f8b730cApprove132505652021-12-06 18:28:521 hr 27 mins ago0x9c4882d6d67e1cefa5248a706b73071ccce68c39 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x535bae8fe399530c1b078ae2aeaae276829bcb9d5b5006a4fc4a2a3f185b88f8Transfer132503522021-12-06 18:18:131 hr 37 mins ago0x4982085c9e2f89f2ecb8131eca71afad896e89cb IN  Kingdom Game 4.0: KDG Token0 BNB0.0010288
0xcc02ffd4ebdb07fab50c7a35420296ef5baba1ee1f1bcab5bab8b15c4e3b9ea4Approve132501662021-12-06 18:08:551 hr 47 mins ago0x475568621bc5276d2cb008faa56281da48a2b1c3 IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xf2347b06558aea3178e80c3dd895fd5b9a5624ff998506472292044a59614605Approve132501522021-12-06 18:08:131 hr 47 mins ago0x10b95c2a62b2f005803291c6ba8177abb937afbf IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0x7dd1fc2ba6ac213e168bc8c15d8699ff07b49cc78dcf968091bfd12ff23cd311Approve132501522021-12-06 18:08:131 hr 47 mins ago0xda6343d5db9f354077fb639e4de53afae578d16c IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
0xf7458dbcc4ddb50922e1d78ca8586e0856beb9679c80e51e740adba552fa04b6Approve132500982021-12-06 18:05:311 hr 50 mins ago0x90c3165d90966dab72edae3c7c31cf600ae6e09f IN  Kingdom Game 4.0: KDG Token0 BNB0.000222515
[ Download CSV Export 

OVERVIEW

Kingdom Game 4.0 is a blockchain-based gaming platform that aims to provide a sustainable sharing economy model. Kingdom Game 4.0 owns KDG tokens, which can be used for payment, value assurance, and development of Kingdom Game’s product ecosystem.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KDGToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-06-03
*/

pragma solidity 0.6.12;

/*
 * @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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// 
/**
 * @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.
 */
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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

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

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

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

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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);
}

// 
/**
 * @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;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// 
/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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);
            }
        }
    }
}

// 
/**
 * @dev Implementation of the {IBEP20} 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 {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-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 BEP20 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 {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    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 bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

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

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

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: 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 {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public 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 {BEP20-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 returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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 {
        require(sender != address(0), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

        _beforeTokenTransfer(sender, recipient, amount);
  
        _balances[sender] = _balances[sender].sub(amount, 'BEP20: 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 {
        require(account != address(0), 'BEP20: 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 {
        require(account != address(0), 'BEP20: burn from the zero address');
        
        _beforeTokenTransfer(account, address(0), amount);

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

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

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

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

contract KDGToken is BEP20('KDG Token', 'KDG') {
    uint256 private _cap =  988125000e18;
    
    function cap() public view returns (uint256) {
        return _cap;
    }

    /**
     * @dev See {BEP20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - minted tokens must not cause the total supply to go over the cap.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) { // When minting tokens
            require(totalSupply() + amount <= _cap, "BEP20Capped: cap exceeded");
        }
    }
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }

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

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
    
    function burn(uint256 amount) external {
        _cap=_cap.sub(amount);
        _burn(msg.sender, amount);
    }
}

Contract Security Audit

Contract ABI

[{"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":"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":"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":[],"name":"cap","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":[],"name":"getOwner","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":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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"}]

60806040526b03315b9b9598beb7102000006007553480156200002157600080fd5b506040518060400160405280600981526020017f4b444720546f6b656e00000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4b444700000000000000000000000000000000000000000000000000000000008152506000620000a06200019460201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508160049080519060200190620001569291906200019c565b5080600590805190602001906200016f9291906200019c565b506012600660006101000a81548160ff021916908360ff160217905550505062000242565b600033905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001df57805160ff191683800117855562000210565b8280016001018555821562000210579182015b828111156200020f578251825591602001919060010190620001f2565b5b5090506200021f919062000223565b5090565b5b808211156200023e57600081600090555060010162000224565b5090565b611dbf80620002526000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a0712d6811610071578063a0712d681461051b578063a457c2d71461055f578063a9059cbb146105c3578063dd62ed3e14610627578063f2fde38b1461069f57610121565b806370a08231146103ce578063715018a614610426578063893d20e8146104305780638da5cb5b1461046457806395d89b411461049857610121565b8063313ce567116100f4578063313ce567146102af578063355274ea146102d057806339509351146102ee57806340c10f191461035257806342966c68146103a057610121565b806306fdde0314610126578063095ea7b3146101a957806318160ddd1461020d57806323b872dd1461022b575b600080fd5b61012e6106e3565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561016e578082015181840152602081019050610153565b50505050905090810190601f16801561019b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f5600480360360408110156101bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610785565b60405180821515815260200191505060405180910390f35b6102156107a3565b6040518082815260200191505060405180910390f35b6102976004803603606081101561024157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506107ad565b60405180821515815260200191505060405180910390f35b6102b7610886565b604051808260ff16815260200191505060405180910390f35b6102d861089d565b6040518082815260200191505060405180910390f35b61033a6004803603604081101561030457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108a7565b60405180821515815260200191505060405180910390f35b61039e6004803603604081101561036857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061095a565b005b6103cc600480360360208110156103b657600080fd5b8101908080359060200190929190505050610a30565b005b610410600480360360208110156103e457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a58565b6040518082815260200191505060405180910390f35b61042e610aa1565b005b610438610c27565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61046c610c36565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104a0610c5f565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104e05780820151818401526020810190506104c5565b50505050905090810190601f16801561050d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105476004803603602081101561053157600080fd5b8101908080359060200190929190505050610d01565b60405180821515815260200191505060405180910390f35b6105ab6004803603604081101561057557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610de5565b60405180821515815260200191505060405180910390f35b61060f600480360360408110156105d957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610eb2565b60405180821515815260200191505060405180910390f35b6106896004803603604081101561063d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed0565b6040518082815260200191505060405180910390f35b6106e1600480360360208110156106b557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f57565b005b606060048054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561077b5780601f106107505761010080835404028352916020019161077b565b820191906000526020600020905b81548152906001019060200180831161075e57829003601f168201915b5050505050905090565b600061079961079261102b565b8484611033565b6001905092915050565b6000600354905090565b60006107ba84848461122a565b61087b846107c661102b565b61087685604051806060016040528060288152602001611c8f60289139600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061082c61102b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ef9092919063ffffffff16565b611033565b600190509392505050565b6000600660009054906101000a900460ff16905090565b6000600754905090565b60006109506108b461102b565b8461094b85600260006108c561102b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115af90919063ffffffff16565b611033565b6001905092915050565b61096261102b565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a22576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610a2c8282611637565b5050565b610a458160075461180090919063ffffffff16565b600781905550610a55338261184a565b50565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610aa961102b565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b69576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000610c31610c36565b905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610cf75780601f10610ccc57610100808354040283529160200191610cf7565b820191906000526020600020905b815481529060010190602001808311610cda57829003601f168201915b5050505050905090565b6000610d0b61102b565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dcb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610ddc610dd661102b565b83611637565b60019050919050565b6000610ea8610df261102b565b84610ea385604051806060016040528060258152602001611d006025913960026000610e1c61102b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ef9092919063ffffffff16565b611033565b6001905092915050565b6000610ec6610ebf61102b565b848461122a565b6001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610f5f61102b565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461101f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61102881611a10565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110b9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180611c456024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561113f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611d686022913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112b0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180611c206025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611336576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611cdd6023913960400191505060405180910390fd5b611341838383611b53565b6113ad81604051806060016040528060268152602001611cb760269139600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ef9092919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061144281600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115af90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600083831115829061159c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611561578082015181840152602081019050611546565b50505050905090810190601f16801561158e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008082840190508381101561162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f42455032303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b6116e660008383611b53565b6116fb816003546115af90919063ffffffff16565b60038190555061175381600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115af90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600061184283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114ef565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118d0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611d256021913960400191505060405180910390fd5b6118dc82600083611b53565b61194881604051806060016040528060228152602001611d4660229139600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ef9092919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506119a08160035461180090919063ffffffff16565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611c696026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611b5e838383611c1a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611c155760075481611b9f6107a3565b011115611c14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f42455032304361707065643a206361702065786365656465640000000000000081525060200191505060405180910390fd5b5b505050565b50505056fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42455032303a206275726e2066726f6d20746865207a65726f206164647265737342455032303a206275726e20616d6f756e7420657863656564732062616c616e636542455032303a20617070726f766520746f20746865207a65726f2061646472657373a26469706673582212202e5a348355cd83564c28f5ee791c0758aa947817a05cf751bb0314ca2c3fac0964736f6c634300060c0033

Deployed ByteCode Sourcemap

28861:1339:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21188:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22675:161;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;21664:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23307:397;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;21347:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28964:75;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24112:210;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29641:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;30082:115;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21826:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2742:140;;;:::i;:::-;;21031:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2100:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;21504:96;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25353:130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;24824:311;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;22157:167;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;22386:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3037:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21188:92;21234:13;21267:5;21260:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21188:92;:::o;22675:161::-;22750:4;22767:39;22776:12;:10;:12::i;:::-;22790:7;22799:6;22767:8;:39::i;:::-;22824:4;22817:11;;22675:161;;;;:::o;21664:100::-;21717:7;21744:12;;21737:19;;21664:100;:::o;23307:397::-;23439:4;23456:36;23466:6;23474:9;23485:6;23456:9;:36::i;:::-;23503:171;23526:6;23547:12;:10;:12::i;:::-;23574:89;23612:6;23574:89;;;;;;;;;;;;;;;;;:11;:19;23586:6;23574:19;;;;;;;;;;;;;;;:33;23594:12;:10;:12::i;:::-;23574:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;23503:8;:171::i;:::-;23692:4;23685:11;;23307:397;;;;;:::o;21347:92::-;21397:5;21422:9;;;;;;;;;;;21415:16;;21347:92;:::o;28964:75::-;29000:7;29027:4;;29020:11;;28964:75;:::o;24112:210::-;24192:4;24209:83;24218:12;:10;:12::i;:::-;24232:7;24241:50;24280:10;24241:11;:25;24253:12;:10;:12::i;:::-;24241:25;;;;;;;;;;;;;;;:34;24267:7;24241:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;24209:8;:83::i;:::-;24310:4;24303:11;;24112:210;;;;:::o;29641:99::-;2322:12;:10;:12::i;:::-;2312:22;;:6;;;;;;;;;;:22;;;2304:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29713:19:::1;29719:3;29724:7;29713:5;:19::i;:::-;29641:99:::0;;:::o;30082:115::-;30137:16;30146:6;30137:4;;:8;;:16;;;;:::i;:::-;30132:4;:21;;;;30164:25;30170:10;30182:6;30164:5;:25::i;:::-;30082:115;:::o;21826:119::-;21892:7;21919:9;:18;21929:7;21919:18;;;;;;;;;;;;;;;;21912:25;;21826:119;;;:::o;2742:140::-;2322:12;:10;:12::i;:::-;2312:22;;:6;;;;;;;;;;:22;;;2304:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2841:1:::1;2804:40;;2825:6;::::0;::::1;;;;;;;;2804:40;;;;;;;;;;;;2872:1;2855:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;2742:140::o:0;21031:94::-;21083:7;21110;:5;:7::i;:::-;21103:14;;21031:94;:::o;2100:79::-;2138:7;2165:6;;;;;;;;;;;2158:13;;2100:79;:::o;21504:96::-;21552:13;21585:7;21578:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21504:96;:::o;25353:130::-;25409:4;2322:12;:10;:12::i;:::-;2312:22;;:6;;;;;;;;;;:22;;;2304:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25426:27:::1;25432:12;:10;:12::i;:::-;25446:6;25426:5;:27::i;:::-;25471:4;25464:11;;25353:130:::0;;;:::o;24824:311::-;24909:4;24926:179;24949:12;:10;:12::i;:::-;24976:7;24998:96;25037:15;24998:96;;;;;;;;;;;;;;;;;:11;:25;25010:12;:10;:12::i;:::-;24998:25;;;;;;;;;;;;;;;:34;25024:7;24998:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;24926:8;:179::i;:::-;25123:4;25116:11;;24824:311;;;;:::o;22157:167::-;22235:4;22252:42;22262:12;:10;:12::i;:::-;22276:9;22287:6;22252:9;:42::i;:::-;22312:4;22305:11;;22157:167;;;;:::o;22386:143::-;22467:7;22494:11;:18;22506:5;22494:18;;;;;;;;;;;;;;;:27;22513:7;22494:27;;;;;;;;;;;;;;;;22487:34;;22386:143;;;;:::o;3037:109::-;2322:12;:10;:12::i;:::-;2312:22;;:6;;;;;;;;;;:22;;;2304:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3110:28:::1;3129:8;3110:18;:28::i;:::-;3037:109:::0;:::o;750:98::-;795:15;830:10;823:17;;750:98;:::o;28382:372::-;28527:1;28510:19;;:5;:19;;;;28502:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28608:1;28589:21;;:7;:21;;;;28581:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28692:6;28662:11;:18;28674:5;28662:18;;;;;;;;;;;;;;;:27;28681:7;28662:27;;;;;;;;;;;;;;;:36;;;;28730:7;28714:32;;28723:5;28714:32;;;28739:6;28714:32;;;;;;;;;;;;;;;;;;28382:372;;;:::o;25973:567::-;26123:1;26105:20;;:6;:20;;;;26097:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26207:1;26186:23;;:9;:23;;;;26178:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26262:47;26283:6;26291:9;26302:6;26262:20;:47::i;:::-;26344:71;26366:6;26344:71;;;;;;;;;;;;;;;;;:9;:17;26354:6;26344:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;26324:9;:17;26334:6;26324:17;;;;;;;;;;;;;;;:91;;;;26449:32;26474:6;26449:9;:20;26459:9;26449:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;26426:9;:20;26436:9;26426:20;;;;;;;;;;;;;;;:55;;;;26514:9;26497:35;;26506:6;26497:35;;;26525:6;26497:35;;;;;;;;;;;;;;;;;;25973:567;;;:::o;8390:226::-;8510:7;8543:1;8538;:6;;8546:12;8530:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8570:9;8586:1;8582;:5;8570:17;;8607:1;8600:8;;;8390:226;;;;;:::o;7487:181::-;7545:7;7565:9;7581:1;7577;:5;7565:17;;7606:1;7601;:6;;7593:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7659:1;7652:8;;;7487:181;;;;:::o;26821:371::-;26916:1;26897:21;;:7;:21;;;;26889:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26967:49;26996:1;27000:7;27009:6;26967:20;:49::i;:::-;27045:24;27062:6;27045:12;;:16;;:24;;;;:::i;:::-;27030:12;:39;;;;27101:30;27124:6;27101:9;:18;27111:7;27101:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;27080:9;:18;27090:7;27080:18;;;;;;;;;;;;;;;:51;;;;27168:7;27147:37;;27164:1;27147:37;;;27177:6;27147:37;;;;;;;;;;;;;;;;;;26821:371;;:::o;7951:136::-;8009:7;8036:43;8040:1;8043;8036:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;8029:50;;7951:136;;;;:::o;27524:418::-;27619:1;27600:21;;:7;:21;;;;27592:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27680:49;27701:7;27718:1;27722:6;27680:20;:49::i;:::-;27763:68;27786:6;27763:68;;;;;;;;;;;;;;;;;:9;:18;27773:7;27763:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;27742:9;:18;27752:7;27742:18;;;;;;;;;;;;;;;:89;;;;27857:24;27874:6;27857:12;;:16;;:24;;;;:::i;:::-;27842:12;:39;;;;27923:1;27897:37;;27906:7;27897:37;;;27927:6;27897:37;;;;;;;;;;;;;;;;;;27524:418;;:::o;3252:229::-;3346:1;3326:22;;:8;:22;;;;3318:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3436:8;3407:38;;3428:6;;;;;;;;;;3407:38;;;;;;;;;;;;3465:8;3456:6;;:17;;;;;;;;;;;;;;;;;;3252:229;:::o;29226:325::-;29345:44;29372:4;29378:2;29382:6;29345:26;:44::i;:::-;29422:1;29406:18;;:4;:18;;;29402:142;;;29498:4;;29488:6;29472:13;:11;:13::i;:::-;:22;:30;;29464:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29402:142;29226:325;;;:::o;28762:92::-;;;;:::o

Swarm Source

ipfs://2e5a348355cd83564c28f5ee791c0758aa947817a05cf751bb0314ca2c3fac09
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.