tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
42 stars 36 forks source link

An example of sending a Ston.fi swap transaction in Cookbook #149

Open anton-trunov opened 3 months ago

anton-trunov commented 3 months ago

Related issue: #146

Also, it would be nice to have an example of adding liquidity (as suggested by @Gusarich)

novusnota commented 3 months ago

Depends on #142 UPD: Not anymore!

crazybee69 commented 1 month ago

I implemented this in my code here: https://github.com/crazybee69/TonDcaBot/blob/main/contracts/ton_dca_wallet.tact#L257

I spent a lot of time trying to send messages including structures, but I couldn't make it work. Native messages with CellBuilder it works well.

Here is API reference of StonFi: https://docs.ston.fi/docs/developer-section/api-reference/router#swap-0x25938561

a-bahdanau commented 14 hours ago

Hello! Version 2 of ston.fi looks like it's in development. Should I make an example using version 2 contracts or stick to version 1?

anton-trunov commented 13 hours ago

Let's please target v2 as it's around the corner