Token Standards

Here you can ask questions related to this specific course section.

3 Likes

When a token smart contract is just created, how do the tokens circulate among exchanges?

2 Likes

Hi @Charlene_Nicer

In case of a dex, the creator of the token has to provide liquidity, for a cex you will need to contact the exchange, surely pay a fee and provide liquidity to it.

Cheers,
Dani

2 Likes

can you just copy the standards of an erc20 tokens to let’s say a bep20 tokens or are the rules always different?

Hey @jelle_van_der_meer

You can check the docs for both of them, I am sure Binance provides an accurate breakdown of the BEP20 standard.

Cheers,
Dani

1 Like

Hi, would like to know what is address(0) ? Thank you !

1 Like

Address(0) (0x0000000000000000000000000000000000000000): https://etherscan.io/address/0x0000000000000000000000000000000000000000

Is an address used in lots of Solidity contract implementations as burner address from ERC tokens.

2 Likes

Is there a base ERC20 contract that we can inherit from? Then we only need to override a few functions to make our token unique.

1 Like

Hey @Placebo, hope you are well.

Sorry for the delay, check https://openzeppelin.com/ which is a open source framework with templates for multiple contracts, you should be learning how to install them and import then further in this course :nerd_face:

Carlos Z

When a contract inherits from ours, is there a way to see that from the parent contract’s side ? Maybe some logs ?
This would mean that whenever a contract inherits from let’s say ERC20.sol, the creator of ERC20.sol could see that somehow.

1 Like

When contract A inherits from 3 other contracts (B, C & D) that all have a virtual function called MyFunction, if we define in contract A:
function MyFunction() public override(B,C) {}

  • what will happen to the definition of MyFunction in contract D ?

  • What will super.MyFunction() be ? will it concatenate what’s in B and C ? and D too ?

2 Likes

You could monitor the transactions made in your contract, if one of the addresses that has interacted with your contract triggers one of your events, you could track it and research more on which are contracts an which just users (wallets).

By the events triggered on a contract interaction. For example:

If someone transfer from user A to B, X amount > It will trigger the transfer event from A to B with X amount.

Read here: https://docs.soliditylang.org/en/v0.8.16/contracts.html?highlight=super#inheritance

Carlos Z

2 Likes