Once I used the ERC-20 token contract template to publish a token, is it possible to swap directly? ![]()
Hi, welcome to the community! ![]()
swap directly? Do you mean in your publish token contract?
And if possible, you can share your code at there.
you need to provide liquidiy to be able to swap any tokens.
I do not find a function to swap in your code. So just like Team_X said, maybe you can provide liquidity in a DEX, like Uniswap, then users can swap, or you can add a function to swap in your original token contract.
Good answer!
Thanks a lot!
