I want to deploy a smart contract with N tokens.
How do I assign a selling price to each token within the smart contract?
Thanks.
I want to deploy a smart contract with N tokens.
How do I assign a selling price to each token within the smart contract?
Thanks.
The price of the token on DEXes depends on provided liquidity, so you can set the price by providing initial liquidity. Also you can “mockup” the price by creating a contract for token sale.
You can find ERC20 token sale contract example here https://docs.openzeppelin.com/contracts/2.x/crowdsales