DEV Community

Cover image for TokenSwap smart contract!
revoltez
revoltez

Posted on • Edited on

1

TokenSwap smart contract!

I wrote a TokenSwap smart contract that swaps two erc20 tokens and takes a fee, it has two panels, the user panel where users can buy one of the two erc20 tokens and an Admin panel that charges the TokenSwap smart contract with the Two tokens and sets the Ratio of TokenA to TokenB and set the fees

code on:
https://github.com/revoltez/TokenSwap

Top comments (1)

Collapse
 
ethben1987 profile image
Ethben1987

hi @revoltez, i minted erc20 token - thcv2 in gnosis chain, i need to bulkswap the tokens to stablecoins, is there any way for this ? if you could help i can give some thcv2 as my gift of gratitude.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay