tact-docs icon indicating copy to clipboard operation
tact-docs copied to clipboard

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

Open anton-trunov opened this issue 1 year ago • 4 comments

Related issue: #146

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

anton-trunov avatar Mar 25 '24 16:03 anton-trunov

Depends on #142 UPD: Not anymore!

novusnota avatar Mar 28 '24 22:03 novusnota

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

crazybee69 avatar Jun 14 '24 13:06 crazybee69

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?

a-bahdanau avatar Jul 19 '24 10:07 a-bahdanau

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

anton-trunov avatar Jul 19 '24 11:07 anton-trunov