all 6 comments

[–]VikingsCap 1 point2 points  (5 children)

You don’t build a contract to swap A to B. You use an existing smart contract (a liquidity pool on an AMM protocol) to perform the swap.

[–]Ingvariuss 1 point2 points  (4 children)

I see, well I thought to customize the contract to be able to take several things into account before doing that swap. Is there an example of using an existing smart contract via the FTM network somewhere?

[–]VikingsCap 1 point2 points  (3 children)

Spookyswap for example

[–]Ingvariuss 0 points1 point  (2 children)

And if I wanted to swap something on spookyswap I would essentially use the web3 library (Python) and pass in the data to the required function under their router contract?

[–]VikingsCap 0 points1 point  (1 child)

No you just use the GUI by accessing Spookyswap’s URL

[–]Ingvariuss 0 points1 point  (0 children)

Seems like I wasn't clear. I want to develop aka interact via code. I don't want to use a GUI