akegaviar / ton-foo

MIT License
0 stars 0 forks source link

Dedust sdk swap jetton to ton #529

Open akegaviar opened 4 months ago

akegaviar commented 4 months ago

https://docs.dedust.io/docs/swaps

Hello, it works when I am swapping ton to jetton. But not jetton -> ton.

In the docs, VaultJetton.createSwapPayload({ poolAddress }), where is VaultJetton from?

Is it this ?

const tokenVault = tonClient.open(await factory.getJettonVault(Address.parse(tokenAddress)));

but in this case, it does not have createSwapPayload function

Thanks

Answer

No answer found


Original