Search code examples
soliditybinance-smart-chain

Is it necessary to send a share of the newly created token to contract address?


am new to token creation. I have successfully created my token on bscmainet and claimed all the coins, now I have them in my Metamask wallet.

A lot of tutorials recommend sending part of the supply to the contract address of the token itself. Is this a necessary step?

From what I understood, I will need to provide liquidity on DEX out of my own wallet not from the contract address so what's the point in sending a share to contract address?

Thank you


Solution

  • Sending tokens to the token contract is useful if there's a direct way to buy the tokens through your contract. Example:

    function buy() external payable {
        uint256 amount = calculateAmount(msg.value);
    
        // send tokens from this contract address to the user
        transfer(msg.sender, amount);
    }
    

    But if there's no way to retrieve the tokens sent to the contract address (e.g. you're planning to sell them only through exchanges), there's no point of sending them to the contract address.