For create token

Hello, I am a beginner, I want create 500,000,000,000,000
Token Supply, my question is what numbers should I put in the contract instead of the question mark
_mint(msg.sender, ? *? ** decimals());

and i want have every token price 0.000000000001$

thanks for help

It should look like this

_mint(msg.sender, 500000000000000 * 10 ** decimals());

You should test the contract first inside a testnet network before deploying in production.

For your second question about the price, i dont have an easy answer for this because the price wont be in USD, it will be generated based on the ratio of the tokens’ quantities in the pool.

A few articles that you should check before starting developing your contract
https://support.uniswap.org/hc/en-us/articles/8829880740109-What-is-a-liquidity-pool-

https://medium.com/tozex/what-is-uniswap-liquidity-pool-and-how-does-it-work-e52e677228ef

https://medium.com/cardwallet/providing-liquidity-what-does-it-mean-and-how-does-it-work-2a0ad0ea2a2d

thank you for help

and tow question in https://docs.openzeppelin.com/contracts/4.x/wizard

What are the functions of these two options in the contract and which one should I choose?

access control?

Ownable
Roles

upgradeability?

Transparent
UUPS

Hi, im not familiar myself with token creation and the best implementation.

I recommend doing some research on the best practices there

HI thanks do you know how can i add fee in contract?

Hi @omid007m

You will have to define your own logic to add fees to the contract. For example, if you want to add fees for minting NFT, you will define a payable function with the code to transfer fees followed by the minting function.

i want crate meme coin by this option https://docs.openzeppelin.com/contracts/4.x/wizard

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.