Open akegaviar opened 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?
VaultJetton.createSwapPayload({ poolAddress })
VaultJetton
Is it this ?
const tokenVault = tonClient.open(await factory.getJettonVault(Address.parse(tokenAddress)));
but in this case, it does not have createSwapPayload function
createSwapPayload
Thanks
No answer found
Original
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 isVaultJetton
from?Is it this ?
but in this case, it does not have
createSwapPayload
functionThanks
Answer
No answer found
Original