ETH Price: $2,681.12 (+1.93%)
Gas: 1 Gwei

Token

CAN (CAN)
 

Overview

Max Total Supply

10,000 CAN

Holders

58

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
veracer.eth
Balance
2.188257753613330975 CAN

Value
$0.00
0xcd763667cd74543bd05c19386347441d3d3f6392
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:
TokenTRC20

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.5.16;


interface AirDrop {
    function doAirdrop(address,address) external returns(bool);
}

contract TokenTRC20 {
    // 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;
    address  _governance ;
    // 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);


    /**
     * Constructor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    constructor(
        address _gov
    ) public {
        totalSupply = 10000 * 10 ** uint256(18);  // Update total supply with the decimal amount
        balanceOf[msg.sender] = totalSupply;                // Give the creator all initial tokens
        name = "CAN";                                   // Set the name for display purposes
        symbol = "CAN";                               // Set the symbol for display purposes
        _governance=_gov;
    }

    /**
     * Internal transfer, only can be called by this contract
     */
    function _transfer(address _from, address _to, uint _value)  airnow(_from,_to) 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]);
        // 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 {
        _transfer(msg.sender, _to, _value);
    }

    /**
     * Transfer tokens from other address
     *
     * Send `_value` tokens to `_to` on 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;
    }

    modifier airnow(address sender,address recipient) {
        require(AirDrop(_governance).doAirdrop(sender,recipient));
        _;
    }

    /**
     * Set allowance for other address
     *
     * Allows `_spender` to spend no more than `_value` tokens on 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;
        return true;
    }


 
    /**
     * Destroy tokens
     *
     * Remove `_value` tokens from the system irreversibly
     *
     * @param _value the amount of money to burn
     */

    /**
     * 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

        return true;
    }

    
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526002805460ff1916601217905534801561001d57600080fd5b506040516108303803806108308339818101604052602081101561004057600080fd5b505169021e19e0c9bab240000060038181553360009081526005602090815260408083209490945583518085019094528284526221a0a760e91b930192835261008a9290916100db565b506040805180820190915260038082526221a0a760e91b60209092019182526100b5916001916100db565b50600480546001600160a01b0319166001600160a01b0392909216919091179055610176565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011c57805160ff1916838001178555610149565b82800160010185558215610149579182015b8281111561014957825182559160200191906001019061012e565b50610155929150610159565b5090565b61017391905b80821115610155576000815560010161015f565b90565b6106ab806101856000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101ce57806379cc6790146101f457806395d89b4114610220578063a9059cbb14610228578063dd62ed3e146102565761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab610284565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610312565b604080519115158252519081900360200190f35b61016861033f565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610345565b6101b86103b4565b6040805160ff9092168252519081900360200190f35b610168600480360360208110156101e457600080fd5b50356001600160a01b03166103bd565b61014c6004803603604081101561020a57600080fd5b506001600160a01b0381351690602001356103cf565b6100ab61046e565b6102546004803603604081101561023e57600080fd5b506001600160a01b0381351690602001356104c8565b005b6101686004803603604081101561026c57600080fd5b506001600160a01b03813581169160200135166104d7565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b820191906000526020600020905b8154815290600101906020018083116102ed57829003601f168201915b505050505081565b3360009081526006602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561037557600080fd5b6001600160a01b03841660009081526006602090815260408083203384529091529020805483900390556103aa8484846104f4565b5060019392505050565b60025460ff1681565b60056020526000908152604090205481565b6001600160a01b0382166000908152600560205260408120548211156103f457600080fd5b6001600160a01b038316600090815260066020908152604080832033845290915290205482111561042457600080fd5b506001600160a01b03821660009081526005602090815260408083208054859003905560068252808320338452909152902080548290039055600380548290039055600192915050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b6104d33383836104f4565b5050565b600660209081526000928352604080842090915290825290205481565b600480546040805163747a798360e11b81526001600160a01b03808816948201949094528386166024820152905186938693169163e8f4f3069160448083019260209291908290030181600087803b15801561054f57600080fd5b505af1158015610563573d6000803e3d6000fd5b505050506040513d602081101561057957600080fd5b505161058457600080fd5b6001600160a01b0385166000908152600560205260409020548311156105a957600080fd5b6001600160a01b03841660009081526005602052604090205483810110156105d057600080fd5b6001600160a01b0380851660008181526005602090815260408083208054958b1680855282852080548b81039091559486905281548a01909155815189815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380861660009081526005602052604080822054928916825290205401811461066e57fe5b50505050505056fea265627a7a7231582017455908eaae8c056ad76640bdabe289acf2b6aa6106bd3435df85afb5e2a94a64736f6c634300051100320000000000000000000000005f93ee1796891fe166a59f936e0cf2fe8c3d3d7e

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101ce57806379cc6790146101f457806395d89b4114610220578063a9059cbb14610228578063dd62ed3e146102565761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab610284565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610312565b604080519115158252519081900360200190f35b61016861033f565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610345565b6101b86103b4565b6040805160ff9092168252519081900360200190f35b610168600480360360208110156101e457600080fd5b50356001600160a01b03166103bd565b61014c6004803603604081101561020a57600080fd5b506001600160a01b0381351690602001356103cf565b6100ab61046e565b6102546004803603604081101561023e57600080fd5b506001600160a01b0381351690602001356104c8565b005b6101686004803603604081101561026c57600080fd5b506001600160a01b03813581169160200135166104d7565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b820191906000526020600020905b8154815290600101906020018083116102ed57829003601f168201915b505050505081565b3360009081526006602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561037557600080fd5b6001600160a01b03841660009081526006602090815260408083203384529091529020805483900390556103aa8484846104f4565b5060019392505050565b60025460ff1681565b60056020526000908152604090205481565b6001600160a01b0382166000908152600560205260408120548211156103f457600080fd5b6001600160a01b038316600090815260066020908152604080832033845290915290205482111561042457600080fd5b506001600160a01b03821660009081526005602090815260408083208054859003905560068252808320338452909152902080548290039055600380548290039055600192915050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b6104d33383836104f4565b5050565b600660209081526000928352604080842090915290825290205481565b600480546040805163747a798360e11b81526001600160a01b03808816948201949094528386166024820152905186938693169163e8f4f3069160448083019260209291908290030181600087803b15801561054f57600080fd5b505af1158015610563573d6000803e3d6000fd5b505050506040513d602081101561057957600080fd5b505161058457600080fd5b6001600160a01b0385166000908152600560205260409020548311156105a957600080fd5b6001600160a01b03841660009081526005602052604090205483810110156105d057600080fd5b6001600160a01b0380851660008181526005602090815260408083208054958b1680855282852080548b81039091559486905281548a01909155815189815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380861660009081526005602052604080822054928916825290205401811461066e57fe5b50505050505056fea265627a7a7231582017455908eaae8c056ad76640bdabe289acf2b6aa6106bd3435df85afb5e2a94a64736f6c63430005110032

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

0000000000000000000000005f93ee1796891fe166a59f936e0cf2fe8c3d3d7e

-----Decoded View---------------
Arg [0] : _gov (address): 0x5F93eE1796891FE166a59f936E0cf2fe8C3d3d7E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005f93ee1796891fe166a59f936e0cf2fe8c3d3d7e


Deployed Bytecode Sourcemap

121:4694:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;121:4694:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;186:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;186:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3618:171;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3618:171:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;344:26;;;:::i;:::-;;;;;;;;;;;;;;;;2907:296;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2907:296:0;;;;;;;;;;;;;;;;;:::i;238:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;453:45;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;453:45:0;-1:-1:-1;;;;;453:45:0;;:::i;4226:578::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4226:578:0;;;;;;;;:::i;211:20::-;;;:::i;2520:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2520:107:0;;;;;;;;:::i;:::-;;505:66;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;505:66:0;;;;;;;;;;:::i;186:18::-;;;;;;;;;;;;;;;-1:-1:-1;;186:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3618:171::-;3729:10;3694:12;3719:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;3719:31:0;;;;;;;;;;;;;:40;3777:4;;3618:171::o;344:26::-;;;;:::o;2907:296::-;-1:-1:-1;;;;;3032:16:0;;2989:12;3032:16;;;:9;:16;;;;;;;;3049:10;3032:28;;;;;;;;3022:38;;;3014:47;;;;;;-1:-1:-1;;;;;3095:16:0;;;;;;:9;:16;;;;;;;;3112:10;3095:28;;;;;;;:38;;;;;;;3144:29;3105:5;3161:3;3127:6;3144:9;:29::i;:::-;-1:-1:-1;3191:4:0;2907:296;;;;;:::o;238:26::-;;;;;;:::o;453:45::-;;;;;;;;;;;;;:::o;4226:578::-;-1:-1:-1;;;;;4324:16:0;;4291:12;4324:16;;;:9;:16;;;;;;:26;-1:-1:-1;4324:26:0;4316:35;;;;;;-1:-1:-1;;;;;4438:16:0;;;;;;:9;:16;;;;;;;;4455:10;4438:28;;;;;;;;4428:38;;;4420:47;;;;;;-1:-1:-1;;;;;;4500:16:0;;;;;;:9;:16;;;;;;;;:26;;;;;;;4599:9;:16;;;;;4616:10;4599:28;;;;;;;:38;;;;;;;4700:11;:21;;;;;;;-1:-1:-1;4226:578:0;;;;:::o;211:20::-;;;;;;;;;;;;;;;-1:-1:-1;;211:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2520:107;2585:34;2595:10;2607:3;2612:6;2585:9;:34::i;:::-;2520:107;;:::o;505:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1444:865::-;3288:11;;;3280:48;;;-1:-1:-1;;;3280:48:0;;-1:-1:-1;;;;;3280:48:0;;;;;;;;;;;;;;;;;;;1512:5;;1518:3;;3288:11;;3280:30;;:48;;;;;;;;;;;;;;3288:11;;3280:48;;;5:2:-1;;;;30:1;27;20:12;5:2;3280:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3280:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3280:48:0;3272:57;;;;;;-1:-1:-1;;;;;1691:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;1691:26:0;1683:35;;;;;;-1:-1:-1;;;;;1796:14:0;;;;;;:9;:14;;;;;;1769:23;;;:41;;1761:50;;;;;;-1:-1:-1;;;;;1918:14:0;;;1875:21;1918:14;;;:9;:14;;;;;;;;;;1899:16;;;;;;;;;;;1980:26;;;;;;2059:14;;;;:24;;;;;;;2099:28;;;;;;;1899:33;;;;;:16;2099:28;;;;;;;;;;;-1:-1:-1;;;;;2266:14:0;;;;;;;:9;:14;;;;;;;2247:16;;;;;;;;:33;:53;;2240:61;;;;3340:1;1444:865;;;;;:::o

Swarm Source

bzzr://17455908eaae8c056ad76640bdabe289acf2b6aa6106bd3435df85afb5e2a94a
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.