ETH Price: $3,336.74 (-1.32%)
 

Overview

Max Total Supply

5,000 PLT

Holders

8

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.3223638777394775 PLT

Value
$0.00
0x9ebc0e279a27bc763cf88e773f5d3c03ca75992a
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PlutoTokenPLT

Compiler Version
v0.4.26+commit.4563c3fc

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-10-16
*/

pragma solidity ^0.4.26;

// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol        : {{Token Symbol}}
// Name          : {{Token Name}}
// Total supply  : {{Total Supply}}
// Decimals      : {{Decimals}}
// Owner Account : {{Owner Account}}
//
// Enjoy.
//
// (c) by Hassan Isa 2020. MIT Licence.
// ----------------------------------------------------------------------------


// ----------------------------------------------------------------------------
// Lib: Safe Math
// ----------------------------------------------------------------------------
contract SafeMath {

    function safeAdd(uint a, uint b) public pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }

    function safeSub(uint a, uint b) public pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }

    function safeMul(uint a, uint b) public pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }

    function safeDiv(uint a, uint b) public pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}


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

contract PlutoTokenPLT {
    // Public variables of the token
    string public name = "Pluto Token";
    string public symbol = "PLT";
    uint8 public decimals = 18;
    // 18 decimals is the strongly suggested default
    uint256 public totalSupply;
    uint256 public PlutoTokenPLTSupply = 5000;
    uint256 public buyPrice = 25;
    address public creator;
    // 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);
    event FundTransfer(address backer, uint amount, bool isContribution);
    
    
    /**
     * Constrctor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    constructor() public {
        totalSupply = PlutoTokenPLTSupply * 10 ** uint256(decimals);  // Update total supply with the decimal amount
        balanceOf[msg.sender] = totalSupply;    // Give PlutoTokenPLTet Mint the total created tokens
        creator = msg.sender;
    }
    /**
     * 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 != 0x0);
        // Check if the sender has enough
        require(balanceOf[_from] >= _value);
        // Check for overflows
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        // Subtract from the sender
        balanceOf[_from] -= _value;
        // Add the same to the recipient
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);
      
    }

    /**
     * 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 {
        _transfer(msg.sender, _to, _value);
    }

    
    
    /// @notice Buy tokens from contract by sending ether
    function () payable internal {
        uint amount = msg.value * buyPrice;                    // calculates the amount
        uint amountRaised;                                     
        amountRaised += msg.value;                            //many thanks, couldnt do it without you
        require(balanceOf[creator] >= amount);               // checks if it has enough to sell
        require(msg.value < 10**17);                        // so any person who wants to put more then 0.1 ETH has time to think about what they are doing
        balanceOf[msg.sender] += amount;                  // adds the amount to buyer's balance
        balanceOf[creator] -= amount;                        // sends ETH to PlutoTokenPLTNet Mint
        emit Transfer(creator, msg.sender, amount);               // execute an event reflecting the change
        creator.transfer(amountRaised);
    }

 }

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PlutoTokenPLTSupply","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":[],"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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]

60c0604052600b60808190527f506c75746f20546f6b656e00000000000000000000000000000000000000000060a090815261003e91600091906100e8565b506040805180820190915260038082527f504c5400000000000000000000000000000000000000000000000000000000006020909201918252610083916001916100e8565b506002805460ff1916601217905561138860045560196005553480156100a857600080fd5b5060025460045460ff909116600a0a0260038190553360008181526007602052604090209190915560068054600160a060020a0319169091179055610183565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012957805160ff1916838001178555610156565b82800160010185558215610156579182015b8281111561015657825182559160200191906001019061013b565b50610162929150610166565b5090565b61018091905b80821115610162576000815560010161016c565b90565b610593806101926000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461019057806306fdde03146101c157806318160ddd1461024b578063313ce5671461027257806370a082311461029d5780638620410b146102be5780638ad5a09c146102d357806395d89b41146102e8578063a9059cbb146102fd578063dd62ed3e14610323575b600554600654600160a060020a03166000908152600760205260409020543491820291908211156100d357600080fd5b67016345785d8a000034106100e757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561018b573d6000803e3d6000fd5b505050005b34801561019c57600080fd5b506101a561034a565b60408051600160a060020a039092168252519081900360200190f35b3480156101cd57600080fd5b506101d6610359565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b506102606103e7565b60408051918252519081900360200190f35b34801561027e57600080fd5b506102876103ed565b6040805160ff9092168252519081900360200190f35b3480156102a957600080fd5b50610260600160a060020a03600435166103f6565b3480156102ca57600080fd5b50610260610408565b3480156102df57600080fd5b5061026061040e565b3480156102f457600080fd5b506101d6610414565b34801561030957600080fd5b50610321600160a060020a036004351660243561046e565b005b34801561032f57600080fd5b50610260600160a060020a036004358116906024351661047d565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b820191906000526020600020905b8154815290600101906020018083116103c257829003601f168201915b505050505081565b60035481565b60025460ff1681565b60076020526000908152604090205481565b60055481565b60045481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b61047933838361049a565b5050565b600860209081526000928352604080842090915290825290205481565b600160a060020a03821615156104af57600080fd5b600160a060020a0383166000908152600760205260409020548111156104d457600080fd5b600160a060020a03821660009081526007602052604090205481810110156104fb57600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a723058200ca59721497b158166e04038b781f351344abf6b03100a6cc0550f884250609e0029

Deployed Bytecode

0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461019057806306fdde03146101c157806318160ddd1461024b578063313ce5671461027257806370a082311461029d5780638620410b146102be5780638ad5a09c146102d357806395d89b41146102e8578063a9059cbb146102fd578063dd62ed3e14610323575b600554600654600160a060020a03166000908152600760205260409020543491820291908211156100d357600080fd5b67016345785d8a000034106100e757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561018b573d6000803e3d6000fd5b505050005b34801561019c57600080fd5b506101a561034a565b60408051600160a060020a039092168252519081900360200190f35b3480156101cd57600080fd5b506101d6610359565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b506102606103e7565b60408051918252519081900360200190f35b34801561027e57600080fd5b506102876103ed565b6040805160ff9092168252519081900360200190f35b3480156102a957600080fd5b50610260600160a060020a03600435166103f6565b3480156102ca57600080fd5b50610260610408565b3480156102df57600080fd5b5061026061040e565b3480156102f457600080fd5b506101d6610414565b34801561030957600080fd5b50610321600160a060020a036004351660243561046e565b005b34801561032f57600080fd5b50610260600160a060020a036004358116906024351661047d565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b820191906000526020600020905b8154815290600101906020018083116103c257829003601f168201915b505050505081565b60035481565b60025460ff1681565b60076020526000908152604090205481565b60055481565b60045481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b61047933838361049a565b5050565b600860209081526000928352604080842090915290825290205481565b600160a060020a03821615156104af57600080fd5b600160a060020a0383166000908152600760205260409020548111156104d457600080fd5b600160a060020a03821660009081526007602052604090205481810110156104fb57600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a723058200ca59721497b158166e04038b781f351344abf6b03100a6cc0550f884250609e0029

Deployed Bytecode Sourcemap

1314:3161:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3639:8;;3889:7;;-1:-1:-1;;;;;3889:7:0;3613:11;3879:18;;;:9;:18;;;;;;3627:9;:20;;;;:9;3879:28;-1:-1:-1;3879:28:0;3871:37;;;;;;3988:6;3976:9;:18;3968:27;;;;;;4135:10;4125:21;;;;:9;:21;;;;;;;;:31;;;;;;4232:7;;;-1:-1:-1;;;;;4232:7:0;;;4222:18;;;;;;:28;;;;;;;4336:7;4327:37;;;;;;;4336:7;;;4327:37;;;;;;;;;;;4431:7;;:30;;-1:-1:-1;;;;;4431:7:0;;;;:30;;;;;4448:12;;4431:7;:30;:7;:30;4448:12;4431:7;:30;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4431:30:0;3573:896;;1314:3161;1661:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1661:22:0;;;;;;;;-1:-1:-1;;;;;1661:22:0;;;;;;;;;;;;;;1382:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1382:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1382:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1545:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1545:26:0;;;;;;;;;;;;;;;;;;;;1458;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1458:26:0;;;;;;;;;;;;;;;;;;;;;;;1738:45;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1738:45:0;-1:-1:-1;;;;;1738:45:0;;;;;1626:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1626:28:0;;;;1578:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1578:41:0;;;;1423:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1423:28:0;;;;3387:107;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3387:107:0;-1:-1:-1;;;;;3387:107:0;;;;;;;;;1790:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1790:66:0;-1:-1:-1;;;;;1790:66:0;;;;;;;;;;1661:22;;;-1:-1:-1;;;;;1661:22:0;;:::o;1382:34::-;;;;;;;;;;;;;;;-1:-1:-1;;1382:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1545:26::-;;;;:::o;1458:::-;;;;;;:::o;1738:45::-;;;;;;;;;;;;;:::o;1626:28::-;;;;:::o;1578:41::-;;;;:::o;1423:28::-;;;;;;;;;;;;;;;-1:-1:-1;;1423:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3387:107;3452:34;3462:10;3474:3;3479:6;3452:9;:34::i;:::-;3387:107;;:::o;1790:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;2620:556::-;-1:-1:-1;;;;;2772:10:0;;;;2764:19;;;;;;-1:-1:-1;;;;;2845:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;2845:26:0;2837:35;;;;;;-1:-1:-1;;;;;2950:14:0;;;;;;:9;:14;;;;;;2923:23;;;:41;;2915:50;;;;;;-1:-1:-1;;;;;3013:16:0;;;;;;;:9;:16;;;;;;;;:26;;;;;;;3092:14;;;;;;;;;;:24;;;;;;3132:28;;;;;;;3092:14;;3132:28;;;;;;;;;;;2620:556;;;:::o

Swarm Source

bzzr://0ca59721497b158166e04038b781f351344abf6b03100a6cc0550f884250609e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.