So after 2 months can anyone provide a simple swap contract example?

Why didn’t the Cardano developer team put out some swap contract examples for everyone to learn and use? It would be huuuge help for a lot of dapp developers.
The example should be like this: The contract stores A and B tokens. If you send some amount of A token, the contract sends back the proportional amount of B token.

They have one from the very beginning.

6 Likes

Here is another one, which locks ASTOR pool rewards to get paid out to loyal delegators.

2 Likes

Sorry wrong post.:slight_smile: My bad. Deleting it. More tabs open and pressed enter on the wrong one.:slight_smile: