Contract 0x557461d81574030b5dfebf238762f00ec8228cd7 1

 

Contract Overview

Kingfund: KING Token
Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x54121fabf9ca0ea304f9bc736b773b0677666075f187a4632cd4aaf1ebc1b3f1Approve278625012022-05-03 5:21:4819 days 4 hrs ago0xc945a5a960fef1a9c3fef8593fc2446d1d7c6146 IN  Kingfund: KING Token0 MATIC0.002052273743 44.173868221
0x842f20be05d4a1e06445b6f751934d33094e3a3de10a2cea9b75f989892ed6b3Approve264979952022-03-29 11:18:2853 days 22 hrs ago0xc945a5a960fef1a9c3fef8593fc2446d1d7c6146 IN  Kingfund: KING Token0 MATIC0.000909959503 37.603186208
0xe4355553ef8662f7b3278a476d0e9dbbbffcb571a52ab05bf0b9a32c8c2f02c7Transfer263575772022-03-25 20:31:0257 days 13 hrs ago0x1daa9c49711b6bb41f1714f9697d2e4ad092d1a3 IN  Kingfund: KING Token0 MATIC0.0014076930
0xb3fb805857f85db87b00a8d17acb78338fa60980f4be01f3c8578d832029c9d2Transfer263270832022-03-25 1:31:4558 days 8 hrs ago0x2ceaf3a7da6b2bef8e44440b01ec3dd91491e8c0 IN  Kingfund: KING Token0 MATIC0.000911234153 30.530175667
0xc9599fbfee8415f617ef34899da2b441e0a6760ae0268c88d6d9f3c7ea0129c8Transfer261697202022-03-21 1:18:1362 days 8 hrs ago0x486ba5823cafb1157378cb73fb00f31be6bc6643 IN  Kingfund: KING Token0 MATIC0.00174535049437.20557
0x1865ffb6011da7f4034d4b089068a7461df877d56d545e0023249b6b6a055395Approve261697032022-03-21 1:17:3962 days 8 hrs ago0x486ba5823cafb1157378cb73fb00f31be6bc6643 IN  Kingfund: KING Token0 MATIC0.001601291728 34.448975498
0xd70183a125b707cf1f9fe0860fdd64b959a818a80dc10171e5d721ab019ee34aApprove261102552022-03-19 11:55:1963 days 22 hrs ago0xc945a5a960fef1a9c3fef8593fc2446d1d7c6146 IN  Kingfund: KING Token0 MATIC0.001436831004 30.910892258
0x4043f6c70360dc794c60e7068191704c1ba80800cd42e0dcb12f9909a7dabbe1Transfer260537742022-03-17 22:39:1865 days 11 hrs ago0x2ceaf3a7da6b2bef8e44440b01ec3dd91491e8c0 IN  Kingfund: KING Token0 MATIC0.001660403483 32.116742753
0x404bb29988f26777dafe4def59b9b62936baad758bead819b5740f74670623eaTransfer260497142022-03-17 19:38:3565 days 14 hrs ago0x2ceaf3a7da6b2bef8e44440b01ec3dd91491e8c0 IN  Kingfund: KING Token0 MATIC0.001578745913 30.530175667
0xf043714f7d64c7b6a3468eb03ae1ea055cf08dbfe93ce18a2f5761d269584836Approve260340062022-03-17 8:59:4266 days 58 mins ago0x2ceaf3a7da6b2bef8e44440b01ec3dd91491e8c0 IN  Kingfund: KING Token0 MATIC0.001492882552 32.116742742
0x6391d829b6d4264b3ff92f8f16e30b91601a1e6e181d16b5cbfdd2495b6b5978Transfer260337792022-03-17 8:51:5266 days 1 hr ago0x2ceaf3a7da6b2bef8e44440b01ec3dd91491e8c0 IN  Kingfund: KING Token0 MATIC0.001507784721 32.116742739
0x04341f0d023a3a119ceea3037ff84a04b37baa479dde62f0d36b7abca22a78bdApprove251203682022-02-19 16:08:0891 days 17 hrs ago0x61c41492c69dd33a44e9e4861399736e53dbd4df IN  Kingfund: KING Token0 MATIC0.001549888237 33.3431198
0xbf810d04103f15dc536811bf04056fb312c4ac70ef1e637856da65d19f6c0366Approve248916552022-02-13 11:57:3197 days 22 hrs ago0x58c4f03a954e4cbb1b8e204a881a8e9a99d015dd IN  Kingfund: KING Token0 MATIC0.00075016931
0x8f32d8913d2bfdce5173bd8846f4b3d98301324474a2a3cf29322ad1ae910507Approve248916552022-02-13 11:57:3197 days 22 hrs ago0x58c4f03a954e4cbb1b8e204a881a8e9a99d015dd IN  Kingfund: KING Token0 MATIC0.00075016931
0x800f0068ec168dc8613c958cc71d5fb56418e2190bbc81e97e3d2b2a87146444Transfer From248154192022-02-11 14:09:3999 days 19 hrs ago0x9674f709f20699a92aedce7c3ac3ce6a19568aec IN  Kingfund: KING Token0 MATIC0.001650331783 30.06999951
0xfd11bce574dfc174b12737469c7e0f545722ec332dbaf22084c3bd23b7877a68Approve245674572022-02-05 5:11:42106 days 4 hrs ago0x61d4eb6d62b8856d6824c97172a4746f5a469a92 IN  Kingfund: KING Token0 MATIC0.001537515188 33.0769354
0xef6cb45c8657cca239ff9cfdef0fd215e00e0821954c9e6d03d632fd841bd794Approve239470782022-01-20 13:04:33121 days 20 hrs ago0x920bbb9c4a0b888505a03eaadc701a614bbe6c1c IN  Kingfund: KING Token0 MATIC0.005686765 235
0x4e9b4e94d5f696b6500fa53faa940b21bc934725fd076659bd2ec615aa280716Approve239469772022-01-20 13:01:03121 days 20 hrs ago0x920bbb9c4a0b888505a03eaadc701a614bbe6c1c IN  Kingfund: KING Token0 MATIC0.00508179 210
0x5aec9fc45602eedcf8b14a54d9be5576b31c46c81e26d47414951739194c8e4dApprove239468932022-01-20 12:58:11121 days 20 hrs ago0x920bbb9c4a0b888505a03eaadc701a614bbe6c1c IN  Kingfund: KING Token0 MATIC0.005057591 209
0x7f11a68be2d2449a4fd062aca308a22ccf300d86693450fc4b1104966a28a89eApprove239273882022-01-20 1:15:42122 days 8 hrs ago0x5269e52efd13e5e62c821db8806096e2c4acd359 IN  Kingfund: KING Token0 MATIC0.00750169310
0x7ef5514d7d20b0188ee5520c1935ac9cfaf3020fad1ae6669c965c080ceb2581Approve239273852022-01-20 1:15:36122 days 8 hrs ago0x5269e52efd13e5e62c821db8806096e2c4acd359 IN  Kingfund: KING Token0 MATIC0.007816277323
0x444b65875eb4a1519a3903e9213222fef49d4718614883b152179fe5c119cf58Approve239273802022-01-20 1:15:26122 days 8 hrs ago0x5269e52efd13e5e62c821db8806096e2c4acd359 IN  Kingfund: KING Token0 MATIC0.007816277323
0x1c6f746cad91aa86677731478806d5889fa8005ad1eff6a8118bc89d45e8cf71Approve238989002022-01-19 7:57:05123 days 2 hrs ago0xc0a1cb644782fc424e7186b3d1668113c2535d22 IN  Kingfund: KING Token0 MATIC0.013162983473283.178441
0xdf6cd7588f7d56600cbf7582b5964fb22452b9ac52f09e208131991df2172108Approve238587952022-01-18 8:06:04124 days 1 hr ago0xd03fa807537466f20ab295788d25574e748d35d6 IN  Kingfund: KING Token0 MATIC0.001581568557 34.024666164
0x2248c738f68a81d6b8f6e676736c476221706253f7a2df4e479a3d57d1f14c15Transfer238506312022-01-18 3:11:52124 days 6 hrs ago0x304c2934949cce47b65b6b53417f11869b0d1d2c IN  Kingfund: KING Token0 MATIC0.00092451331
[ Download CSV Export 

OVERVIEW

Kingfund is a tokenized asset management and derivatives trading protocol. The concept of Kingfund was first incepted in late 2021 and was developed quickly into its current state. Inspired by tranche funds’ ability to satisfy users’ varying risk appetites.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KingToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-11-30
*/

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}



pragma solidity >=0.6.0 <0.8.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;

    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 virtual returns (string memory) {
        return _name;
    }

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

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

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

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

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

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

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _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 virtual {
        _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 { }
}


pragma solidity >=0.6.10 <0.8.0;


contract KingToken is ERC20 {
    constructor(uint256 initialSupply) public ERC20("KingFund", "KING") {
        _mint(msg.sender, initialSupply);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"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"}]

608060405234801561001057600080fd5b5060405162000cb638038062000cb68339818101604052602081101561003557600080fd5b5051604080518082018252600881526712da5b99d19d5b9960c21b6020828101918252835180850190945260048452634b494e4760e01b90840152815191929161008191600391610221565b508051610095906004906020840190610221565b50506005805460ff19166012179055506100af33826100b5565b506102b4565b6001600160a01b038216610110576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61011c600083836101bb565b610135816002546101c060201b6105731790919060201c565b6002556001600160a01b038216600090815260208181526040909120546101659183906105736101c0821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101561021a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061026257805160ff191683800117855561028f565b8280016001018555821561028f579182015b8281111561028f578251825591602001919060010190610274565b5061029b92915061029f565b5090565b5b8082111561029b57600081556001016102a0565b6109f280620002c46000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c6105d4565b84846105d8565b50600192915050565b60025490565b600061037f8484846106c4565b6103ef8461038b6105d4565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c96105d4565b6001600160a01b03168152602081019190915260400160002054919061081f565b6105d8565b5060019392505050565b60055460ff1690565b600061036361040f6105d4565b846103ea85600160006104206105d4565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610573565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d96105d4565b846103ea8560405180606001604052806025815260200161099860259139600160006105036105d4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061081f565b60006103636105416105d4565b84846106c4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156105cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661061d5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106625760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107095760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b03821661074e5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6107598383836108b6565b61079681604051806060016040528060268152602001610901602691396001600160a01b038616600090815260208190526040902054919061081f565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107c59082610573565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108ae5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561087357818101518382015260200161085b565b50505050905090810190601f1680156108a05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122061069ea4e446a556eb8d49ec03655ba32fb7819f2312f5e64511abccd19b18e364736f6c634300060c003300000000000000000000000000000000000000000052b7d2dcc80cd2e4000000

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

00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 100000000000000000000000000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000


Deployed ByteCode Sourcemap

22152:157:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13239:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15385:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15385:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14338:108;;;:::i;:::-;;;;;;;;;;;;;;;;16036:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16036:321:0;;;;;;;;;;;;;;;;;:::i;14182:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16766:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16766:218:0;;;;;;;;:::i;14509:127::-;;;;;;;;;;;;;;;;-1:-1:-1;14509:127:0;-1:-1:-1;;;;;14509:127:0;;:::i;13449:95::-;;;:::i;17487:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17487:269:0;;;;;;;;:::i;14849:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14849:175:0;;;;;;;;:::i;15087:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15087:151:0;;;;;;;;;;:::i;13239:91::-;13317:5;13310:12;;;;;;;;-1:-1:-1;;13310:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13284:13;;13310:12;;13317:5;;13310:12;;13317:5;13310:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13239:91;:::o;15385:169::-;15468:4;15485:39;15494:12;:10;:12::i;:::-;15508:7;15517:6;15485:8;:39::i;:::-;-1:-1:-1;15542:4:0;15385:169;;;;:::o;14338:108::-;14426:12;;14338:108;:::o;16036:321::-;16142:4;16159:36;16169:6;16177:9;16188:6;16159:9;:36::i;:::-;16206:121;16215:6;16223:12;:10;:12::i;:::-;16237:89;16275:6;16237:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16237:19:0;;;;;;:11;:19;;;;;;16257:12;:10;:12::i;:::-;-1:-1:-1;;;;;16237:33:0;;;;;;;;;;;;-1:-1:-1;16237:33:0;;;:89;:37;:89::i;:::-;16206:8;:121::i;:::-;-1:-1:-1;16345:4:0;16036:321;;;;;:::o;14182:91::-;14256:9;;;;14182:91;:::o;16766:218::-;16854:4;16871:83;16880:12;:10;:12::i;:::-;16894:7;16903:50;16942:10;16903:11;:25;16915:12;:10;:12::i;:::-;-1:-1:-1;;;;;16903:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;16903:25:0;;;:34;;;;;;;;;;;:38;:50::i;14509:127::-;-1:-1:-1;;;;;14610:18:0;14583:7;14610:18;;;;;;;;;;;;14509:127::o;13449:95::-;13529:7;13522:14;;;;;;;;-1:-1:-1;;13522:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13496:13;;13522:14;;13529:7;;13522:14;;13529:7;13522:14;;;;;;;;;;;;;;;;;;;;;;;;17487:269;17580:4;17597:129;17606:12;:10;:12::i;:::-;17620:7;17629:96;17668:15;17629:96;;;;;;;;;;;;;;;;;:11;:25;17641:12;:10;:12::i;:::-;-1:-1:-1;;;;;17629:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17629:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;14849:175::-;14935:4;14952:42;14962:12;:10;:12::i;:::-;14976:9;14987:6;14952:9;:42::i;15087:151::-;-1:-1:-1;;;;;15203:18:0;;;15176:7;15203:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15087:151::o;6462:179::-;6520:7;6552:5;;;6576:6;;;;6568:46;;;;;-1:-1:-1;;;6568:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6632:1;6462:179;-1:-1:-1;;;6462:179:0:o;613:106::-;701:10;613:106;:::o;20634:346::-;-1:-1:-1;;;;;20736:19:0;;20728:68;;;;-1:-1:-1;;;20728:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20815:21:0;;20807:68;;;;-1:-1:-1;;;20807:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20888:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;20940:32;;;;;;;;;;;;;;;;;20634:346;;;:::o;18246:539::-;-1:-1:-1;;;;;18352:20:0;;18344:70;;;;-1:-1:-1;;;18344:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18433:23:0;;18425:71;;;;-1:-1:-1;;;18425:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18509:47;18530:6;18538:9;18549:6;18509:20;:47::i;:::-;18589:71;18611:6;18589:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18589:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18569:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18694:20;;;;;;;:32;;18719:6;18694:24;:32::i;:::-;-1:-1:-1;;;;;18671:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;18742:35;;;;;;;18671:20;;18742:35;;;;;;;;;;;;;18246:539;;;:::o;9289:166::-;9375:7;9411:12;9403:6;;;;9395:29;;;;-1:-1:-1;;;9395:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9442:5:0;;;9289:166::o;22013:92::-;;;;:::o

Swarm Source

ipfs://61069ea4e446a556eb8d49ec03655ba32fb7819f2312f5e64511abccd19b18e3
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.