Contract 0x6fff948c46b92e4ba0a6a4142ec4d895785afe19

 

TxHash Block Age From To Value [TxFee]
0x11b3269c082e90709cccd4a70774a391f03f1c2412cdae6df477dd198b490db4712061824 days 7 hrs ago0x79ac38299da7ac8a076d3cbb22653067656a025e  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000228245
0xd196732619d763f23ef584db06c3b95009623a7f047972fb76367dda16ca97bf712060724 days 7 hrs ago0xe148544e25b52365497ac4f3f55b5682e915f935  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.00021894
0x63450bb5a97172ccff44a0c16c8bbe5a433ba226554b8c3336e4362a05975f8d712058624 days 7 hrs ago0x79ac38299da7ac8a076d3cbb22653067656a025e  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000200695
0x67da3193d1ae53c28edf45583c03b3daee55db79343e9c2d05d4ae4fbd2ba066712001424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.00010298
0x239e41d91bb716bdf06fa12b38ebcab9f68830dafde8987eaab276815059fc55712001424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.0000719964
0x2ec0a75333686a1cce19f4681ebf6daef9c3610fa0fa0631ce6dd7e96a3eabf4712000624 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x2c94325bce67898a5664ea083925936a6b2236e61c85f9e270d062e2b209b6a9712000624 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x96043b116e0fa36ca797f774b39f9ea566b00632149bea829bf77395b58f7b66711998324 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0xb804b419243d78c5a1f146402cb2602ff833f3dee67c47f3de63df77e3f6a494711998324 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0xb14784f19d9a625f366fe2e78ecaf53be41e4c1eebefa79686fa9275caea4296711997724 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.00010298
0x46bb26c795c038d0f11a664c2fa344049efc86d0775ec1dc5d828f979c865ebc711997724 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0xd83a2d525885150bac5d8d8da4295f7bd4f53cf2370b5508e1cde4cbe272983a711997424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x4ce84b66a1b948d1cb774c4e131216f32850b06391e7fb2429de5916b7e29dff711997424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x9f51adf8c21c6f93f56fde01386f79f0e9b79fbb235ec95253765f840da16c8d711997424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x5e44ed8f01fb7fdb0c925899e0558e090b2f77bc8ce250488bba948f9eb0a919711997224 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x75c35c1983fcd1f5c99bac5ac1718fb480ffb0e59d412b4b97f4f5879a92927e711997224 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x5fef1c2dfd2dd3666e8a72de055e11e3e1dc5c50a8db367977bab0005f5eb6ef711996824 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x57c2becf8587d9d04824d944a6014a482885f71b517b3fea259922ecf01ef993711996824 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0xfaae1a0c521ba03a04cc36296194d796ac2cdfa5a92522e35ab3a7fc0f4776b6711996524 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x063bf44191c467e30b5fa7fa4fb315fbab8fad6ae1815fd954a9c6db6a5ec9fb711996424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x195dba87822b69d3a0de5cff55ed7d7ddec22d3dcd6ffe1bd4461362e8236e2f711996424 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.0000719964
0xf87b1ee8c77f61c2bb344fe7cf8ee7f75e2ba719aef98a5c6172ce6c47c73679711995924 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x41ed4d029c515665d7f91c75b547699b6661e2c3ed8246e180877f8549ae11e9711995924 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x94ee45e812811c52eef1388fe7a8a540f53bc586c50d770b27d9e11e30132272711995924 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
0x81b99c20883682165e21d22b9d7554d6fe716fa9b92ec0a28c890c1c3135b989711994724 days 10 hrs ago0x11c848b7ee546313505a15f286e858d653c4a8ca  IN   0x6fff948c46b92e4ba0a6a4142ec4d895785afe190 Ether0.000072086
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: YOI
Compiler Version: v0.5.1+commit.c8a2cb62
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity >=0.4.22 <0.6.0;

contract YOI {
    // Track how many tokens are owned by each address.
    mapping (address => uint256) public balanceOf;

    string public name = "Yoi Crypto";
    string public symbol = "YOI";
    uint8 public decimals = 18;

    uint256 public totalSupply = 1000000000 * (uint256(10) ** decimals);

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

    constructor() public {
        // Initially assign all tokens to the contract's creator.
        balanceOf[msg.sender] = totalSupply;
        emit Transfer(address(0), msg.sender, totalSupply);
    }

    function transfer(address to, uint256 value) public returns (bool success) {
        require(balanceOf[msg.sender] >= value);

        balanceOf[msg.sender] -= value;  // deduct from sender's balance
        balanceOf[to] += value;          // add to recipient's balance
        emit Transfer(msg.sender, to, value);
        return true;
    }

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

    mapping(address => mapping(address => uint256)) public allowance;

    function approve(address spender, uint256 value)
        public
        returns (bool success)
    {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function transferFrom(address from, address to, uint256 value)
        public
        returns (bool success)
    {
        require(value <= balanceOf[from]);
        require(value <= allowance[from][msg.sender]);

        balanceOf[from] -= value;
        balanceOf[to] += value;
        allowance[from][msg.sender] -= value;
        emit Transfer(from, to, value);
        return true;
    }
}
contract owned {
    address public owner;

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}

interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; }

contract TokenERC20 {
    // Public variables of the token
    string public name;
    string public symbol;
    uint8 public decimals = 18;
    // 18 decimals is the strongly suggested default, avoid changing it
    uint256 public totalSupply;

    // This creates an array with all balances
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    // This generates a public event on the blockchain that will notify clients
    event Transfer(address indexed from, address indexed to, uint256 value);
    
    // This generates a public event on the blockchain that will notify clients
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    // This notifies clients about the amount burnt
    event Burn(address indexed from, uint256 value);

    /**
     * Constrctor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    constructor(
        uint256 initialSupply,
        string memory tokenName,
        string memory tokenSymbol
    ) public {
        totalSupply = initialSupply * 10 ** uint256(decimals);  // Update total supply with the decimal amount
        balanceOf[msg.sender] = totalSupply;                    // Give the creator all initial tokens
        name = tokenName;                                       // Set the name for display purposes
        symbol = tokenSymbol;                                   // Set the symbol for display purposes
    }

    /**
     * Internal transfer, only can be called by this contract
     */
    function _transfer(address _from, address _to, uint _value) internal {
        // Prevent transfer to 0x0 address. Use burn() instead
        require(_to != address(0x0));
        // Check if the sender has enough
        require(balanceOf[_from] >= _value);
        // Check for overflows
        require(balanceOf[_to] + _value > balanceOf[_to]);
        // Save this for an assertion in the future
        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        // Subtract from the sender
        balanceOf[_from] -= _value;
        // Add the same to the recipient
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);
        // Asserts are used to use static analysis to find bugs in your code. They should never fail
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
    }

    /**
     * Transfer tokens
     *
     * Send `_value` tokens to `_to` from your account
     *
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transfer(address _to, uint256 _value) public returns (bool success) {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    /**
     * Transfer tokens from other address
     *
     * Send `_value` tokens to `_to` in behalf of `_from`
     *
     * @param _from The address of the sender
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);     // Check allowance
        allowance[_from][msg.sender] -= _value;
        _transfer(_from, _to, _value);
        return true;
    }

    /**
     * Set allowance for other address
     *
     * Allows `_spender` to spend no more than `_value` tokens in your behalf
     *
     * @param _spender The address authorized to spend
     * @param _value the max amount they can spend
     */
    function approve(address _spender, uint256 _value) public
        returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    /**
     * Set allowance for other address and notify
     *
     * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it
     *
     * @param _spender The address authorized to spend
     * @param _value the max amount they can spend
     * @param _extraData some extra information to send to the approved contract
     */
    function approveAndCall(address _spender, uint256 _value, bytes memory _extraData)
        public
        returns (bool success) {
        tokenRecipient spender = tokenRecipient(_spender);
        if (approve(_spender, _value)) {
            spender.receiveApproval(msg.sender, _value, address(this), _extraData);
            return true;
        }
    }

    /**
     * Destroy tokens
     *
     * Remove `_value` tokens from the system irreversibly
     *
     * @param _value the amount of money to burn
     */
    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);   // Check if the sender has enough
        balanceOf[msg.sender] -= _value;            // Subtract from the sender
        totalSupply -= _value;                      // Updates totalSupply
        emit Burn(msg.sender, _value);
        return true;
    }

    /**
     * Destroy tokens from other account
     *
     * Remove `_value` tokens from the system irreversibly on behalf of `_from`.
     *
     * @param _from the address of the sender
     * @param _value the amount of money to burn
     */
    function burnFrom(address _from, uint256 _value) public returns (bool success) {
        require(balanceOf[_from] >= _value);                // Check if the targeted balance is enough
        require(_value <= allowance[_from][msg.sender]);    // Check allowance
        balanceOf[_from] -= _value;                         // Subtract from the targeted balance
        allowance[_from][msg.sender] -= _value;             // Subtract from the sender's allowance
        totalSupply -= _value;                              // Update totalSupply
        emit Burn(_from, _value);
        return true;
    }
}

/******************************************/
/*       ADVANCED TOKEN STARTS HERE       */
/******************************************/

contract MyAdvancedToken is owned, TokenERC20 {

    uint256 public sellPrice;
    uint256 public buyPrice;

    mapping (address => bool) public frozenAccount;

    /* This generates a public event on the blockchain that will notify clients */
    event FrozenFunds(address target, bool frozen);

    /* Initializes contract with initial supply tokens to the creator of the contract */
    constructor(
        uint256 initialSupply,
        string memory tokenName,
        string memory tokenSymbol
    ) TokenERC20(initialSupply, tokenName, tokenSymbol) public {}

    /* Internal transfer, only can be called by this contract */
    function _transfer(address _from, address _to, uint _value) internal {
        require (_to != address(0x0));                          // Prevent transfer to 0x0 address. Use burn() instead
        require (balanceOf[_from] >= _value);                   // Check if the sender has enough
        require (balanceOf[_to] + _value >= balanceOf[_to]);    // Check for overflows
        require(!frozenAccount[_from]);                         // Check if sender is frozen
        require(!frozenAccount[_to]);                           // Check if recipient is frozen
        balanceOf[_from] -= _value;                             // Subtract from the sender
        balanceOf[_to] += _value;                               // Add the same to the recipient
        emit Transfer(_from, _to, _value);
    }

    /// @notice Create `mintedAmount` tokens and send it to `target`
    /// @param target Address to receive the tokens
    /// @param mintedAmount the amount of tokens it will receive
    function mintToken(address target, uint256 mintedAmount) onlyOwner public {
        balanceOf[target] += mintedAmount;
        totalSupply += mintedAmount;
        emit Transfer(address(0), address(this), mintedAmount);
        emit Transfer(address(this), target, mintedAmount);
    }

    /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
    /// @param target Address to be frozen
    /// @param freeze either to freeze it or not
    function freezeAccount(address target, bool freeze) onlyOwner public {
        frozenAccount[target] = freeze;
        emit FrozenFunds(target, freeze);
    }

    /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth
    /// @param newSellPrice Price the users can sell to the contract
    /// @param newBuyPrice Price users can buy from the contract
    function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public {
        sellPrice = newSellPrice;
        buyPrice = newBuyPrice;
    }

    /// @notice Buy tokens from contract by sending ether
    function buy() payable public {
        uint amount = msg.value / buyPrice;                 // calculates the amount
        _transfer(address(this), msg.sender, amount);       // makes the transfers
    }

    /// @notice Sell `amount` tokens to contract
    /// @param amount amount of tokens to be sold
    function sell(uint256 amount) public {
        address myAddress = address(this);
        require(myAddress.balance >= amount * sellPrice);   // checks if the contract has enough ether to buy
        _transfer(msg.sender, address(this), amount);       // makes the transfers
        msg.sender.transfer(amount * sellPrice);            // sends ether to the seller. It's important to do this last to avoid recursion attacks
    }
}

Contract ABI
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

Contract Creation Code
60c0604052600a60808190527f596f692043727970746f0000000000000000000000000000000000000000000060a090815261003e9160019190610100565b506040805180820190915260038082527f594f490000000000000000000000000000000000000000000000000000000000602090920191825261008391600291610100565b5060038054601260ff19909116179081905560ff16600a0a633b9aca00026004553480156100b057600080fd5b5060045433600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a361019b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014157805160ff191683800117855561016e565b8280016001018555821561016e579182015b8281111561016e578251825591602001919060010190610153565b5061017a92915061017e565b5090565b61019891905b8082111561017a5760008155600101610184565b90565b6105d9806101aa6000396000f3fe608060405260043610610092577c0100000000000000000000000000000000000000000000000000000000600035046306fdde038114610097578063095ea7b31461012157806318160ddd1461016e57806323b872dd14610195578063313ce567146101d857806370a082311461020357806395d89b4114610236578063a9059cbb1461024b578063dd62ed3e14610284575b600080fd5b3480156100a357600080fd5b506100ac6102bf565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e65781810151838201526020016100ce565b50505050905090810190601f1680156101135780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561012d57600080fd5b5061015a6004803603604081101561014457600080fd5b50600160a060020a03813516906020013561034c565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506101836103b2565b60408051918252519081900360200190f35b3480156101a157600080fd5b5061015a600480360360608110156101b857600080fd5b50600160a060020a038135811691602081013590911690604001356103b8565b3480156101e457600080fd5b506101ed610495565b6040805160ff9092168252519081900360200190f35b34801561020f57600080fd5b506101836004803603602081101561022657600080fd5b5035600160a060020a031661049e565b34801561024257600080fd5b506100ac6104b0565b34801561025757600080fd5b5061015a6004803603604081101561026e57600080fd5b50600160a060020a038135169060200135610508565b34801561029057600080fd5b50610183600480360360408110156102a757600080fd5b50600160a060020a0381358116916020013516610590565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103445780601f1061031957610100808354040283529160200191610344565b820191906000526020600020905b81548152906001019060200180831161032757829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b600160a060020a0383166000908152602081905260408120548211156103dd57600080fd5b600160a060020a038416600090815260056020908152604080832033845290915290205482111561040d57600080fd5b600160a060020a038085166000818152602081815260408083208054889003905593871680835284832080548801905583835260058252848320338452825291849020805487900390558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60035460ff1681565b60006020819052908152604090205481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156103445780601f1061031957610100808354040283529160200191610344565b3360009081526020819052604081205482111561052457600080fd5b3360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60056020908152600092835260408084209091529082529020548156fea165627a7a72305820feaae802bda739ad9ebbedba3e0a1e3944d77264f74a1a913e4623b8789ad9ff0029


   Swarm Source:
bzzr://feaae802bda739ad9ebbedba3e0a1e3944d77264f74a1a913e4623b8789ad9ff
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.