Token NXTSCORE

 

Overview [ERC-20]

Max Total Supply:
1,000,000,000 NXTX

Holders:
65 (0.00%)

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

The NXTSCORE protocol and ecosystem functions using NXTX tokens. NXTX are ERC-20 tokens. Tokens can be burned and converted on a 1-to-1 basis for tokens on other chains, but not more than 1 billion NXTX tokens in total will ever exist across all chains.

# Exchange Pair Price  24H Volume % Volume
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x1b0d41a65b82a17e33a7919a65e25496597c4022

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.13

Optimization Enabled:
N/A

Other Settings:
None license

Contract Source Code (Vyper language format)

# Scoretrade NXTX ERC-20 Token Smart Contract
# Copyright 2021 Scoretrade, Inc.

from vyper.interfaces import ERC20

implements: ERC20

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

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

name: public(String[64])
symbol: public(String[32])
decimals: public(uint256)


# https://vyper.readthedocs.io/en/v0.1.0-beta.8/types.html?highlight=getter#mappings
balanceOf: public(HashMap[address, uint256])
allowance: public(HashMap[address, HashMap[address, uint256]])
totalSupply: public(uint256)
minter: address


@external
def __init__(_name: String[64], _symbol: String[32], _decimals: uint256, _supply: uint256):
    init_supply: uint256 = _supply * 10 ** _decimals
    self.name = _name
    self.symbol = _symbol
    self.decimals = _decimals
    self.balanceOf[msg.sender] = init_supply
    self.totalSupply = init_supply
    self.minter = msg.sender
    log Transfer(ZERO_ADDRESS, msg.sender, init_supply)



@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.
    """

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

@external
def getBalance(_owner : address) -> uint256:
    """
    @dev Returns token balance of given address
    @param _owner The address whose balance we wish to return.
    """

    return self.balanceOf[_owner]


@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
    """
    # vyper does not allow underflows
    # no need for SafeMath equivalent like in Solidity
    # these subtractions would revert in case of insufficient balance

    self.balanceOf[_from] -= _value
    self.balanceOf[_to] += _value

    self.allowance[_from][msg.sender] -= _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


@external
def mint(_to: address, _value: uint256):
    """
    @dev External function to mint 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 _to The account that will receive the created tokens.
    @param _value The amount that will be created.
    """
    assert msg.sender == self.minter
    assert _to != ZERO_ADDRESS
    self.totalSupply += _value
    self.balanceOf[_to] += _value
    log Transfer(ZERO_ADDRESS, _to, _value)


@internal
def _burn(_to: address, _value: uint256):
    """
    @dev Internal function that burns an amount of the token of a given
         account.
    @param _to The account whose tokens will be burned.
    @param _value The amount that will be burned.
    """
    assert _to != ZERO_ADDRESS
    self.totalSupply -= _value
    self.balanceOf[_to] -= _value
    log Transfer(_to, ZERO_ADDRESS, _value)


@external
def burn(_value: uint256):
    """
    @dev External function to urn an amount of the token of msg.sender.
    @param _value The amount to be burned.
    """
    self._burn(msg.sender, _value)


@external
def burnFrom(_to: address, _value: uint256):
    """
    @dev External function to urn an amount of the token from a given account.
    @param _to The account whose tokens will be burned.
    @param _value The amount to be burned.
    """
    self.allowance[_to][msg.sender] -= _value
    self._burn(_to, _value)

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":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_decimals","type":"uint256"},{"name":"_supply","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":77310},{"stateMutability":"nonpayable","type":"function","name":"getBalance","inputs":[{"name":"_owner","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":2633},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":114995},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":37821},{"stateMutability":"nonpayable","type":"function","name":"mint","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[],"gas":79571},{"stateMutability":"nonpayable","type":"function","name":"burn","inputs":[{"name":"_value","type":"uint256"}],"outputs":[],"gas":77958},{"stateMutability":"nonpayable","type":"function","name":"burnFrom","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[],"gas":115609},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":12828},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":10581},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2658},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":2903},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3148},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2748}]

6080610842610140396060602061084260c03960c051610842016101c0396040602061084260c03960c05160040135111561003957600080fd5b6040602060206108420160c03960c05161084201610240396020602060206108420160c03960c05160040135111561007057600080fd5b6101a051604e610180511061008457600080fd5b61018051600a0a808202821582848304141761009f57600080fd5b809050905090506102a0526101c0806000602082510161012060006003818352015b826101205160200211156100d4576100f6565b61012051602002850151610120518501555b81516001018083528114156100c1575b505050505050610240806004602082510161012060006002818352015b8261012051602002111561012657610148565b61012051602002850151610120518501555b8151600101808352811415610113575b505050505050610180516007556102a05160083360e05260c052604060c020556102a051600a5533600b556102a0516102c0523360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206102c0a361082a56600436101561000d576105d6565b600035601c52600051341561002157600080fd5b63a9059cbb8114156100d25760043560a01c1561003d57600080fd5b60083360e05260c052604060c02080546024358082101561005d57600080fd5b80820390509050815550600860043560e05260c052604060c020805460243581818301101561008b57600080fd5b8082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f35b63f8b2cb4f8114156101085760043560a01c156100ee57600080fd5b600860043560e05260c052604060c0205460005260206000f35b6323b872dd8114156102055760043560a01c1561012457600080fd5b60243560a01c1561013457600080fd5b600860043560e05260c052604060c02080546044358082101561015657600080fd5b80820390509050815550600860243560e05260c052604060c020805460443581818301101561018457600080fd5b80820190509050815550600960043560e05260c052604060c0203360e05260c052604060c0208054604435808210156101bc57600080fd5b80820390509050815550604435610140526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f35b63095ea7b381141561027e5760043560a01c1561022157600080fd5b60243560093360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b6340c10f1981141561033a5760043560a01c1561029a57600080fd5b600b5433146102a857600080fd5b6000600435186102b757600080fd5b600a80546024358181830110156102cd57600080fd5b80820190509050815550600860043560e05260c052604060c02080546024358181830110156102fb57600080fd5b808201905090508155506024356101405260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3005b6342966c68811415610368573361014052600435610160526101605161014051600658016105dc565b600050005b6379cc67908114156103e05760043560a01c1561038457600080fd5b600960043560e05260c052604060c0203360e05260c052604060c0208054602435808210156103b257600080fd5b8082039050905081555060043561014052602435610160526101605161014051600658016105dc565b600050005b6306fdde0381141561047d57600080610180602082540161012060006003818352015b8261012051602002111561041657610438565b61012051850154610120516020028501525b8151600101808352811415610403575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b4181141561051a57600480610180602082540161012060006002818352015b826101205160200211156104b3576104d5565b61012051850154610120516020028501525b81516001018083528114156104a0575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b63313ce5678114156105325760075460005260206000f35b6370a082318114156105685760043560a01c1561054e57600080fd5b600860043560e05260c052604060c0205460005260206000f35b63dd62ed3e8114156105bc5760043560a01c1561058457600080fd5b60243560a01c1561059457600080fd5b600960043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6318160ddd8114156105d457600a5460005260206000f35b505b60006000fd5b610180526101405261016052600061014051186105f857600080fd5b600a8054610160518082101561060d57600080fd5b8082039050905081555060086101405160e05260c052604060c0208054610160518082101561063b57600080fd5b80820390509050815550610160516101a0526000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101a0a361018051565b6101aa61082a036101aa6000396101aa61082a036000f3000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000000094e65787473636f7265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e58545800000000000000000000000000000000000000000000000000000000

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.