Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x2e4D380052C2DB43cbEd951E511Db84AaA1b3C6e
Balance 0 ETH
Nonce 1
Code Size 6685 bytes
Last Active
Indexed Transactions 1901 (10,808,90910,810,830)
Gas Used (indexed) 361,452
External Etherscan · Sourcify

Contract Bytecode

6685 bytes
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d714610472578063a9059cbb146104d8578063ac85e9481461053e578063dd62ed3e14610582576100f5565b806370a082311461032f57806378e97925146103875780638da5cb5b146103a557806395d89b41146103ef576100f5565b806318160ddd116100d357806318160ddd1461020157806323b872dd1461021f578063313ce567146102a557806339509351146102c9576100f5565b806306fdde03146100fa578063095ea7b31461017d57806317fc45e2146101e3575b600080fd5b6101026105fa565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610142578082015181840152602081019050610127565b50505050905090810190601f16801561016f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c96004803603604081101561019357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061069c565b604051808215151515815260200191505060405180910390f35b6101eb6107c7565b6040518082815260200191505060405180910390f35b6102096107cd565b6040518082815260200191505060405180910390f35b61028b6004803603606081101561023557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506107d7565b604051808215151515815260200191505060405180910390f35b6102ad6109df565b604051808260ff1660ff16815260200191505060405180910390f35b610315600480360360408110156102df57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506109f6565b604051808215151515815260200191505060405180910390f35b6103716004803603602081101561034557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c2b565b6040518082815260200191505060405180910390f35b61038f610c73565b6040518082815260200191505060405180910390f35b6103ad610c79565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103f7610c9f565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561043757808201518184015260208101905061041c565b50505050905090810190601f1680156104645780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104be6004803603604081101561048857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d41565b604051808215151515815260200191505060405180910390f35b610524600480360360408110156104ee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f76565b604051808215151515815260200191505060405180910390f35b6105806004803603602081101561055457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f8d565b005b6105e46004803603604081101561059857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611758565b6040518082815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106925780601f1061066757610100808354040283529160200191610692565b820191906000526020600020905b81548152906001019060200180831161067557829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106d757600080fd5b81600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60065481565b6000600254905090565b600061086882600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117df90919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108f38484846117ff565b3373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600190509392505050565b6000600560009054906101000a900460ff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a3157600080fd5b610ac082600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119c990919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60095481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d375780601f10610d0c57610100808354040283529160200191610d37565b820191906000526020600020905b815481529060010190602001808311610d1a57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d7c57600080fd5b610e0b82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117df90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000610f833384846117ff565b6001905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611050576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f4e6f7420636f6e7472616374206f776e6572000000000000000000000000000081525060200191505060405180910390fd5b6006546b014299b65d0c320346000000116110d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f52656c656173652073746f70000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600654141561122a576110f3816a18d0bf423c03d8de000000610f76565b506a18d0bf423c03d8de0000006006819055506a18d0bf423c03d8de00000060076000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540360076000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506a18d0bf423c03d8de000000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600954421115611755576009544203600c81905550600080905060006064905060008090506000600190505b6032811161141757600c811161126f57606e92506112d4565b600c81118015611280575060188111155b1561128e57606a92506112d3565b60188111801561129f575060248111155b156112ad57606792506112d2565b6024811180156112be575060308111155b156112cc57606792506112d1565b606792505b5b5b5b600c5462015180601e83020211156113e3576000809050600062015180601e600185030202600c540390506000600190505b601e81116113305762015180810282101561132357809250611330565b8080600101915050611306565b5060018314156113aa576a18d0bf423c03d8de00000093506000600c5411801561135b575060008214155b1561138757601e828560648888028161137057fe5b0403028161137a57fe5b0495508584019550611396565b6a18d0bf423c03d8de00000095505b6064858502816113a257fe5b0493506113dc565b601e82856064888802816113ba57fe5b040302816113c457fe5b04955085840195506064858502816113d857fe5b0493505b5050611417565b60008214156113fb576a18d0bf423c03d8de00000091505b60648383028161140757fe5b0491508080600101915050611256565b50826b014299b65d0c320346000000106115c4576000600654840390508360068190555060008111156115be5761144e8582610f76565b506114c38160076000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117df90919063ffffffff16565b60076000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061157a81600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119c990919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b50611751565b60006006546b014299b65d0c320346000000039050600081111561174f576b014299b65d0c3203460000006006819055506115ff8582610f76565b508060076000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540360076000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505b5050505b50565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000828211156117ee57600080fd5b600082840390508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561183957600080fd5b61188a816000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117df90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061191d816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119c990919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000808284019050838110156119de57600080fd5b809150509291505056fea265627a7a723158208741bdb3a19c9c2ad17f6357119b6c020c69dc952a24cbf7ec0bb159b7afb05964736f6c63430005100032

Verified Source Code Partial Match

Compiler: v0.5.16+commit.9c3226ce EVM: istanbul Optimization: No
DplatformToken.sol 439 lines
pragma solidity ^0.5.0;

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(address from, address to, uint256 value) external returns (bool);

    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @title SafeMath
 * @dev Unsigned math operations with safety checks that revert on error
 */
library SafeMath {
    /**
    * @dev Multiplies two unsigned integers, reverts on 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-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
    * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
    * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
    * @dev Adds two unsigned integers, reverts on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
    * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
    * reverts when dividing by zero.
    */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}


/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
 * Originally based on code by FirstBlood:
 * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 *
 * This implementation emits additional Approval events, allowing applications to reconstruct the allowance status for
 * all accounts just by listening to said events. Note that this isn't required by the specification, and other
 * compliant implementations may not do it.
 */
contract ERC20 is IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    /**
    * @dev Total number of tokens in existence
    */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

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

    /**
     * @dev Function to check the amount of tokens that 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) public view returns (uint256) {
        return _allowed[owner][spender];
    }

    /**
    * @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) public returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     * 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
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     */
    function approve(address spender, uint256 value) public returns (bool) {
        require(spender != address(0));

        _allowed[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    /**
     * @dev Transfer tokens from one address to another.
     * Note that while this function emits an Approval event, this is not required as per the specification,
     * and other compliant implementations may not emit the event.
     * @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) public returns (bool) {
        _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
        _transfer(from, to, value);
        emit Approval(from, msg.sender, _allowed[from][msg.sender]);
        return true;
    }

    /**
     * @dev Increase the amount of tokens that an owner allowed to a spender.
     * approve should be called when allowed_[_spender] == 0. To increment
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * Emits an Approval event.
     * @param spender The address which will spend the funds.
     * @param addedValue The amount of tokens to increase the allowance by.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        require(spender != address(0));

        _allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue);
        emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
        return true;
    }

    /**
     * @dev Decrease the amount of tokens that an owner allowed to a spender.
     * approve should be called when allowed_[_spender] == 0. To decrement
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * Emits an Approval event.
     * @param spender The address which will spend the funds.
     * @param subtractedValue The amount of tokens to decrease the allowance by.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        require(spender != address(0));

        _allowed[msg.sender][spender] = _allowed[msg.sender][spender].sub(subtractedValue);
        emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
        return true;
    }

    /**
    * @dev Transfer token for a specified addresses
    * @param from The address to transfer from.
    * @param to The address to transfer to.
    * @param value The amount to be transferred.
    */
    function _transfer(address from, address to, uint256 value) internal {
        require(to != address(0));

        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(value);
        emit Transfer(from, to, value);
    }

    /**
     * @dev Internal function that mints an amount of the token and assigns it to
     * an account. This encapsulates the modification of balances such that the
     * proper events are emitted.
     * @param account The account that will receive the created tokens.
     * @param value The amount that will be created.
     */
    function _mint(address account, uint256 value) internal {
        require(account != address(0));

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

    /**
     * @dev Internal function that burns an amount of the token of a given
     * account.
     * @param account The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function _burn(address account, uint256 value) internal {
        require(account != address(0));

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

    /**
     * @dev Internal function that burns an amount of the token of a given
     * account, deducting from the sender's allowance for said account. Uses the
     * internal burn function.
     * Emits an Approval event (reflecting the reduced allowance).
     * @param account The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function _burnFrom(address account, uint256 value) internal {
        _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(value);
        _burn(account, value);
        emit Approval(account, msg.sender, _allowed[account][msg.sender]);
    }
}


/**
 * @title ERC20Detailed token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

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

    /**
     * @return the number of decimals of the token.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

contract DplatformToken is ERC20, ERC20Detailed {
    using SafeMath for uint256;
    uint256 private constant totalDPOM= 390000000 * (10 ** 18); // Total amount of DPOM tokens
    uint256 private constant INITIAL_SUPPLY = 30000000 * (10 ** 18); // Initial circulation quantity
    uint private constant FIRST_YEAR_PERCENTAGE = 110; // Monthly Increase Percentage in the First Year
    uint private constant SECOND_YEAR_PERCENTAGE = 106; // Monthly Increase Percentage in the Second Year
    uint private constant THIRD_YEAR_PERCENTAGE = 103;  // Monthly Increase Percentage in the Third Year
    uint private constant FOURTH_YEAR_PERCENTAGE = 103; // Monthly Increase Percentage in the Fourth Year
    uint private constant FIFTH_YEAR_PERCENTAGE = 103;  // Monthly Increase Percentage in the Fifth Year
    uint256 public quantity = 0; // Current circulation
    
    mapping(address => uint256) balances;
    // Owner of this contract
    address public owner;

    uint public startTime;

    mapping(uint=>uint) monthsTimestamp;

    uint[] fibseries;

    uint operatingTime;

    constructor () public ERC20Detailed("Dplatform", "DPOM", 18) {
        _mint(msg.sender, totalDPOM);
        owner = msg.sender;
        balances[owner] = totalDPOM;
        quantity = 0;
        startTime = 1556647200;  // 2019.5.1 02:00:00 
    }



    function runQuantityDPOM(address _to) public {
        require(msg.sender == owner, "Not contract owner");
        require(totalDPOM > quantity, "Release stop");

        if(quantity == 0){
            transfer(_to, INITIAL_SUPPLY);
            quantity = INITIAL_SUPPLY;
            balances[owner] = balances[owner] - INITIAL_SUPPLY;
            balances[_to] = INITIAL_SUPPLY;
        }
        if(block.timestamp > startTime) {
            operatingTime = block.timestamp - startTime;
            uint256 CURRENCY_DPOM = 0;
            uint256 currentPrecentage = 100;
            uint256 lastMonthCoin = 0;
            for (uint i = 1; i <= 50; i++){ // Circular month
                    if(i<=12) { 
                        currentPrecentage = FIRST_YEAR_PERCENTAGE; 
                    }
                    else if(i>12 && i<=24){
                        currentPrecentage = SECOND_YEAR_PERCENTAGE;
                    }
                    else if(i>24 && i<=36){
                        currentPrecentage = THIRD_YEAR_PERCENTAGE;
                    }
                    else if(i>36 && i<=48){
                        currentPrecentage = FOURTH_YEAR_PERCENTAGE;
                    }
                    else{
                        currentPrecentage = FIFTH_YEAR_PERCENTAGE;
                    }
                
                
                    if(i * 30 * (60*60*24) > operatingTime){
                        uint256 diffDays = 0;
                        uint256 diffTime = operatingTime - ((i-1) * 30 * (60*60*24));
                        for (uint256 j = 1; j <= 30; j++){
                            if(diffTime < j * (60*60*24)){
                                diffDays = j;
                                break;
                            }
                        }
                        if(i == 1){
                            lastMonthCoin = INITIAL_SUPPLY;
                            if(operatingTime>0 && diffDays != 0){
                                CURRENCY_DPOM = (lastMonthCoin * currentPrecentage / 100 - lastMonthCoin) * diffDays / 30;
                                CURRENCY_DPOM = lastMonthCoin + CURRENCY_DPOM;
                            }
                            else {
                                CURRENCY_DPOM = INITIAL_SUPPLY;
                            }
                            lastMonthCoin = lastMonthCoin * currentPrecentage / 100;
                        }
                        else{
                            CURRENCY_DPOM = (lastMonthCoin * currentPrecentage / 100 - lastMonthCoin) * diffDays / 30;
                            CURRENCY_DPOM = lastMonthCoin + CURRENCY_DPOM;
                            lastMonthCoin = lastMonthCoin * currentPrecentage / 100;
                        }
                        // Cycle to less than the release date to the present day to get circulation
                        break;
                    }
                    else {
                        if(lastMonthCoin == 0){
                            lastMonthCoin = INITIAL_SUPPLY;
                        }
                        lastMonthCoin = lastMonthCoin * currentPrecentage / 100;
                    }
                // }
            }
            if(totalDPOM >= CURRENCY_DPOM){
                uint256 dpcm = CURRENCY_DPOM - quantity;
                quantity = CURRENCY_DPOM;
                if(dpcm > 0){
                    transfer(_to, dpcm);
                    balances[owner] = balances[owner].sub(dpcm);
                    balances[_to] = balances[_to].add(dpcm);
                }
            }
            else {
                uint256 dpcm = totalDPOM - quantity;
                if(dpcm > 0)
                {
                    quantity = totalDPOM;
                    transfer(_to, dpcm);
                    balances[owner] = balances[owner] - dpcm;
                    balances[_to] =   balances[_to] + dpcm;
                }
                
            }
        }
        
    }

}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
quantity 0x17fc45e2 → uint256
startTime 0x78e97925 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 6 functions

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

approve 0x095ea7b3
address spender
uint256 value
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
runQuantityDPOM 0xac85e948
address _to
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool

Top Interactions

AddressTxnsSentReceived
0xB507ddCf...3CB7 5 5
0xaE925b1d...8160 5 5

Recent Transactions

CSV View All 1901 Transactions →
|
Hash Method Block Age From/To Value Txn Fee Type
0x56050e73...e06205 transfer 10,810,830 IN 0xaE925b1d...8160 0 ETH 0.00542160 ETH Legacy
0x0433d6ca...7e9df8 transfer 10,810,810 IN 0xB507ddCf...3CB7 0 ETH 0.00542160 ETH Legacy
0x85906c55...1fea9f transfer 10,810,635 IN 0xaE925b1d...8160 0 ETH 0.00542160 ETH Legacy
0x330284d0...72b304 transfer 10,810,572 IN 0xB507ddCf...3CB7 0 ETH 0.00541980 ETH Legacy
0xd09fd9f5...e2059e transfer 10,810,446 IN 0xB507ddCf...3CB7 0 ETH 0.00542160 ETH Legacy
0x6965b93e...70e5fe transfer 10,810,440 IN 0xaE925b1d...8160 0 ETH 0.00542340 ETH Legacy
0x4b147d6c...eac108 transfer 10,809,927 IN 0xaE925b1d...8160 0 ETH 0.00542160 ETH Legacy
0xb60dcd14...2f0a7d transfer 10,808,934 IN 0xB507ddCf...3CB7 0 ETH 0.00542160 ETH Legacy
0x69a05736...c3593b transfer 10,808,923 IN 0xaE925b1d...8160 0 ETH 0.00542340 ETH Legacy
0xbba151ae...e693f0 transfer 10,808,909 IN 0xB507ddCf...3CB7 0 ETH 0.00542160 ETH Legacy