Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0xeE5553f566951F3D421b9414424c080eeDbAF2E7
Balance 0 ETH
Nonce 1
Code Size 5900 bytes
Indexed Transactions 0 (1 on-chain, 1.5% indexed)
External Etherscan · Sourcify

Contract Bytecode

5900 bytes
Copy Bytecode
0x6080604052600436106101e35760003560e01c80635aa6e67511610102578063983b2d5611610095578063bde8e9fa11610064578063bde8e9fa146106e6578063c568719f146106fb578063dd62ed3e14610725578063e312848f146105ab576101e3565b8063983b2d5614610632578063a9059cbb14610665578063aa6d9d921461069e578063ab033ea9146106b3576101e3565b806378c8cda7116100d157806378c8cda7146105c057806379138df1146105f35780638afefd881461060857806395d89b411461061d576101e3565b80635aa6e675146105305780636ebcf6071461054557806370a0823114610578578063775e1377146105ab576101e3565b806328d2bc911161017a57806332ff3b181161014957806332ff3b181461046757806334fcf4371461049a5780633575597d146104c457806340c10f19146104f7576101e3565b806328d2bc91146103c35780632d201af0146103f45780633092afd514610409578063313ce5671461043c576101e3565b806318160ddd116101b657806318160ddd1461033f5780631ae6ddec1461035457806322f4596f1461036b57806323b872dd14610380576101e3565b8063024c2ddd146101e85780630552f9ab1461023557806306fdde031461027c578063095ea7b314610306575b600080fd5b3480156101f457600080fd5b506102236004803603604081101561020b57600080fd5b506001600160a01b0381358116916020013516610760565b60408051918252519081900360200190f35b34801561024157600080fd5b506102686004803603602081101561025857600080fd5b50356001600160a01b031661077d565b604080519115158252519081900360200190f35b34801561028857600080fd5b50610291610792565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102cb5781810151838201526020016102b3565b50505050905090810190601f1680156102f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561031257600080fd5b506102686004803603604081101561032957600080fd5b506001600160a01b038135169060200135610827565b34801561034b57600080fd5b50610223610912565b34801561036057600080fd5b50610369610918565b005b34801561037757600080fd5b50610223610977565b34801561038c57600080fd5b50610268600480360360608110156103a357600080fd5b506001600160a01b0381358116916020810135909116906040013561097d565b3480156103cf57600080fd5b506103d86109e9565b604080516001600160a01b039092168252519081900360200190f35b34801561040057600080fd5b506102236109f8565b34801561041557600080fd5b506103696004803603602081101561042c57600080fd5b50356001600160a01b03166109fe565b34801561044857600080fd5b50610451610a6f565b6040805160ff9092168252519081900360200190f35b34801561047357600080fd5b506103696004803603602081101561048a57600080fd5b50356001600160a01b0316610a78565b3480156104a657600080fd5b50610369600480360360208110156104bd57600080fd5b5035610aec565b3480156104d057600080fd5b50610268600480360360208110156104e757600080fd5b50356001600160a01b0316610bcc565b34801561050357600080fd5b506103696004803603604081101561051a57600080fd5b506001600160a01b038135169060200135610be1565b34801561053c57600080fd5b506103d8610ddb565b34801561055157600080fd5b506102236004803603602081101561056857600080fd5b50356001600160a01b0316610dea565b34801561058457600080fd5b506102236004803603602081101561059b57600080fd5b50356001600160a01b0316610dfc565b3480156105b757600080fd5b50610223610e17565b3480156105cc57600080fd5b50610369600480360360208110156105e357600080fd5b50356001600160a01b0316610e1d565b3480156105ff57600080fd5b50610223610e8e565b34801561061457600080fd5b50610223610e94565b34801561062957600080fd5b50610291610e99565b34801561063e57600080fd5b506103696004803603602081101561065557600080fd5b50356001600160a01b0316610ef7565b34801561067157600080fd5b506102686004803603604081101561068857600080fd5b506001600160a01b038135169060200135610f6b565b3480156106aa57600080fd5b50610223610f7f565b3480156106bf57600080fd5b50610369600480360360208110156106d657600080fd5b50356001600160a01b0316610f85565b3480156106f257600080fd5b5061026861108b565b34801561070757600080fd5b506103696004803603602081101561071e57600080fd5b5035611094565b34801561073157600080fd5b506102236004803603604081101561074857600080fd5b506001600160a01b03813581169160200135166110e9565b600760209081526000928352604080842090915290825290205481565b600e6020526000908152604090205460ff1681565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561081d5780601f106107f25761010080835404028352916020019161081d565b820191906000526020600020905b81548152906001019060200180831161080057829003601f168201915b5050505050905090565b6000336108655760405162461bcd60e51b81526004018080602001828103825260248152602001806116b46024913960400191505060405180910390fd5b6001600160a01b0383166108aa5760405162461bcd60e51b815260040180806020018281038252602281526020018061164c6022913960400191505060405180910390fd5b3360008181526007602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60055490565b6000546001600160a01b03163314610968576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6009805460ff19166001179055565b60085481565b6001600160a01b03831660009081526007602090815260408083203384529091528120546109b1818463ffffffff61111416565b6001600160a01b03861660009081526007602090815260408083203384529091529020556109e0858585611156565b95945050505050565b600c546001600160a01b031681565b600b5481565b6000546001600160a01b03163314610a4e576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19169055565b60035460ff1690565b6000546001600160a01b03163314610ac8576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b6000546001600160a01b03163314610b3c576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b8061271010158015610b4c575060015b610b91576040805162461bcd60e51b8152602060048201526011602482015270696e76616c6964206275726e207261746560781b604482015290519081900360640190fd5b600a8190556040805182815290517fcd352108d086e3d25400516922efd013b12c0c7eec6988c750d661ee929af9559181900360200190a150565b60046020526000908152604090205460ff1681565b6001600160a01b038216610c3c576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b3360009081526004602052604090205460ff16610c8a576040805162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b604482015290519081900360640190fd5b6000610ca3600b5460055461143c90919063ffffffff16565b90506000610cb7828463ffffffff61143c16565b9050600854811115610d01576040805162461bcd60e51b815260206004820152600e60248201526d737570706c79206973206d61782160901b604482015290519081900360640190fd5b600554610d14908463ffffffff61143c16565b6005556001600160a01b038416600090815260066020526040902054610d40908463ffffffff61143c16565b6001600160a01b03851660008181526006602090815260408083209490945583518781529351929391927fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89281900390910190a36040805184815290516001600160a01b038616916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350505050565b6000546001600160a01b031681565b60066020526000908152604090205481565b6001600160a01b031660009081526006602052604090205490565b61271081565b6000546001600160a01b03163314610e6d576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b03166000908152600e60205260409020805460ff19169055565b600a5481565b600081565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060939092909183018282801561081d5780601f106107f25761010080835404028352916020019161081d565b6000546001600160a01b03163314610f47576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000610f78338484611156565b9392505050565b600d5481565b6000546001600160a01b03163314610fd5576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611030576040805162461bcd60e51b815260206004820152601f60248201527f6e657720676f7665726e616e636520746865207a65726f206164647265737300604482015290519081900360640190fd5b600080546040516001600160a01b03808516939216917f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce8091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60095460ff1681565b6000546001600160a01b031633146110e4576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600d55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b6000610f7883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611496565b60095460009060ff168061117757506000546001600160a01b038581169116145b6111ba576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8818db1bdcd959608a1b604482015290519081900360640190fd5b6001600160a01b0384166111ff5760405162461bcd60e51b815260040180806020018281038252602581526020018061168f6025913960400191505060405180910390fd5b6001600160a01b0383166112445760405162461bcd60e51b81526004018080602001828103825260238152602001806116296023913960400191505060405180910390fd5b60008290506000611272612710611266600a548761152d90919063ffffffff16565b9063ffffffff61158616565b9050600d54841180156112855750600081115b80156112aa57506001600160a01b0386166000908152600e602052604090205460ff16155b1561137b57600c546001600160a01b03166000908152600660205260409020546112da908263ffffffff61143c16565b600c546001600160a01b0316600090815260066020526040902055600554611308908263ffffffff61111416565b60055561131b828263ffffffff61111416565b600b54909250611331908263ffffffff61143c16565b600b55600c546040805183815290516001600160a01b03928316928916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35b6001600160a01b0386166000908152600660205260409020546113a4908563ffffffff61111416565b6001600160a01b0380881660009081526006602052604080822093909355908716815220546113d9908363ffffffff61143c16565b6001600160a01b0380871660008181526006602090815260409182902094909455805186815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b600082820183811015610f78576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081848411156115255760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114ea5781810151838201526020016114d2565b50505050905090810190601f1680156115175780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008261153c5750600061090c565b8282028284828161154957fe5b0414610f785760405162461bcd60e51b815260040180806020018281038252602181526020018061166e6021913960400191505060405180910390fd5b6000610f7883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836116125760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156114ea5781810151838201526020016114d2565b50600083858161161e57fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a265627a7a723158201f6e1da84a8ee57a32d9e03b60361acb23336ba7df763db5fda8f352044a5d7564736f6c63430005110032

Verified Source Code Partial Match

Compiler: v0.5.17+commit.d19bba13 EVM: istanbul Optimization: Yes (200 runs)
MyToken.sol 582 lines
pragma solidity ^0.5.0;

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;


/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

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

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

// File: contracts/library/Governance.sol

pragma solidity ^0.5.5;

contract Governance {

    address public governance;

    constructor() public {
        governance = tx.origin;
    }

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

    modifier onlyGovernance {
        require(msg.sender == governance, "not governance");
        _;
    }

    function setGovernance(address _governance)  public  onlyGovernance
    {
        require(_governance != address(0), "new governance the zero address");
        emit GovernanceTransferred(governance, _governance);
        governance = _governance;
    }



}

// File: contracts/token/MyToken.sol

pragma solidity ^0.5.5;




/// @title MyToken Contract

contract MyToken is Governance, ERC20Detailed{

    using SafeMath for uint256;

    //events
    event eveSetRate(uint256 burn_rate);
    event eveRewardPool(address rewardPool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Mint(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    // for minters
    mapping (address => bool) public _minters;

    //token base data
    uint256 internal _totalSupply;
    mapping(address => uint256) public _balances;
    mapping (address => mapping (address => uint256)) public _allowances;

    /// Constant token specific fields
    uint256 public  _maxSupply = 0;

    ///
    bool public _openTransfer = true;
    

    // hardcode limit rate
    uint256 public constant _maxGovernValueRate = 10000;//2000/10000
    uint256 public constant _minGovernValueRate = 0;  //10/10000
    uint256 public constant _rateBase = 10000; 

    // additional variables for use if transaction fees ever became necessary
    uint256 public  _burnRate = 9000;       

    uint256 public _totalBurnToken = 0;

    //todo burn pool!
    address public _burnPool = 0x6666666666666666666666666666666666666666;
    
    uint256 public  _burnStartValue = 10 * (10**18);
    
    mapping (address => bool) public _burnWhitelist;
    

    /**
    * @dev set the token transfer switch
    */
    function enableOpenTransfer() public onlyGovernance  
    {
        _openTransfer = true;
    }


    /**
     * CONSTRUCTOR
     *
     * @dev Initialize the Token
     */

    constructor () public ERC20Detailed("xDAI", "xDAI", 18) {
         _maxSupply = 100000000 * (10**18); //3000000000000000000000000
         
         _minters[msg.sender] = true;
         _burnWhitelist[msg.sender] = true;

    }


    
    /**
    * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
    * @param spender The address which will spend the funds.
    * @param amount The amount of tokens to be spent.
    */
    function approve(address spender, uint256 amount) external 
    returns (bool) 
    {
        require(msg.sender != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        

        return true;
    }

    /**
    * @dev Function to check the amount of tokens than an owner _allowed to a spender.
    * @param owner address The address which owns the funds.
    * @param spender address The address which will spend the funds.
    * @return A uint256 specifying the amount of tokens still available for the spender.
    */
    function allowance(address owner, address spender) external view 
    returns (uint256) 
    {
        return _allowances[owner][spender];
    }

    /**
    * @dev Gets the balance of the specified address.
    * @param owner The address to query the the balance of.
    * @return An uint256 representing the amount owned by the passed address.
    */
    function balanceOf(address owner) external  view 
    returns (uint256) 
    {
        return _balances[owner];
    }

    /**
    * @dev return the token total supply
    */
    function totalSupply() external view 
    returns (uint256) 
    {
        return _totalSupply;
    }

    /**
    * @dev for mint function
    */
    function mint(address account, uint256 amount) external 
    {
        require(account != address(0), "ERC20: mint to the zero address");
        require(_minters[msg.sender], "!minter");

        uint256 curMintSupply = _totalSupply.add(_totalBurnToken);
        uint256 newMintSupply = curMintSupply.add(amount);
        require( newMintSupply <= _maxSupply,"supply is max!");
      
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);

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

    function addMinter(address _minter) public onlyGovernance 
    {
        _minters[_minter] = true;
    }
    
    function removeMinter(address _minter) public onlyGovernance 
    {
        _minters[_minter] = false;
    }
    
    
    function addBurnWhitelist(address _a) public onlyGovernance 
    {
        _burnWhitelist[_a] = true;
    }
    
    function removeWhitelist(address _a) public onlyGovernance 
    {
        _burnWhitelist[_a] = false;
    }
    

    function() external payable {
        revert();
    }

    /**
    * @dev for govern value
    */
    function setRate(uint256 burn_rate) public 
        onlyGovernance 
    {
        
        require(_maxGovernValueRate >= burn_rate && burn_rate >= _minGovernValueRate,"invalid burn rate");

        _burnRate = burn_rate;

        emit eveSetRate(burn_rate);
    }
    
    
    function setBurnStartValue(uint256 v) public 
        onlyGovernance 
    {
        _burnStartValue = v;
    }


    /**
    * @dev transfer token for a specified address
    * @param to The address to transfer to.
    * @param value The amount to be transferred.
    */
   function transfer(address to, uint256 value) external 
   returns (bool)  
   {
        return _transfer(msg.sender,to,value);
    }

    /**
    * @dev Transfer tokens from one address to another
    * @param from address The address which you want to send tokens from
    * @param to address The address which you want to transfer to
    * @param value uint256 the amount of tokens to be transferred
    */
    function transferFrom(address from, address to, uint256 value) external 
    returns (bool) 
    {
        uint256 allow = _allowances[from][msg.sender];
        _allowances[from][msg.sender] = allow.sub(value);
        
        return _transfer(from,to,value);
    }

 

    /**
    * @dev Transfer tokens with fee
    * @param from address The address which you want to send tokens from
    * @param to address The address which you want to transfer to
    * @param value uint256s the amount of tokens to be transferred
    */
    function _transfer(address from, address to, uint256 value) internal 
    returns (bool) 
    {
        // :)
        require(_openTransfer || from == governance, "transfer closed");

        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        uint256 sendAmount = value;
        uint256 burnFee = (value.mul(_burnRate)).div(_rateBase);
        
        if ( value > _burnStartValue && burnFee > 0 && !_burnWhitelist[from]) {
            //to burn
            _balances[_burnPool] = _balances[_burnPool].add(burnFee);
            _totalSupply = _totalSupply.sub(burnFee);
            sendAmount = sendAmount.sub(burnFee);

            _totalBurnToken = _totalBurnToken.add(burnFee);

            emit Transfer(from, _burnPool, burnFee);
        }

        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(sendAmount);

        emit Transfer(from, to, sendAmount);

        return true;
    }
}

Read Contract

_allowances 0x024c2ddd → uint256
_balances 0x6ebcf607 → uint256
_burnPool 0x28d2bc91 → address
_burnRate 0x79138df1 → uint256
_burnStartValue 0xaa6d9d92 → uint256
_burnWhitelist 0x0552f9ab → bool
_maxGovernValueRate 0xe312848f → uint256
_maxSupply 0x22f4596f → uint256
_minGovernValueRate 0x8afefd88 → uint256
_minters 0x3575597d → bool
_openTransfer 0xbde8e9fa → bool
_rateBase 0x775e1377 → uint256
_totalBurnToken 0x2d201af0 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
governance 0x5aa6e675 → address
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 12 functions

These functions modify contract state and require a wallet transaction to execute.

addBurnWhitelist 0x32ff3b18
address _a
addMinter 0x983b2d56
address _minter
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
enableOpenTransfer 0x1ae6ddec
No parameters
mint 0x40c10f19
address account
uint256 amount
removeMinter 0x3092afd5
address _minter
removeWhitelist 0x78c8cda7
address _a
setBurnStartValue 0xc568719f
uint256 v
setGovernance 0xab033ea9
address _governance
setRate 0x34fcf437
uint256 burn_rate
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool

Recent Transactions

This address has 1 on-chain transactions, but only 1.5% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →