raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
50 stars 31 forks source link

when deposit sol to create token account, the amount is wrong #63

Closed YoungHorn1999 closed 3 months ago

YoungHorn1999 commented 3 months ago

when swap this token BdV3mqyMwwy7NiFS7pY45qz18zcQTF5xjRQWLsscrtqp to the sol. the deposit amount to be proportional to the transaction amount. When the money in the wallet is less than the deposit amount, the transaction will fail. If it's sloscan display bug, the tx will not fail. the tx in the pic is 4uxNNxXQfzKNBgWUHkUJfGpT6Dp2tmgWfsESiha5fcVUS6fucrqzMvgPn5uVxgcBeErV6BC7SzHhsFWmy1r4hid9

1721046018409

cruzshia commented 3 months ago

update sdk and try again https://github.com/raydium-io/raydium-sdk-V2-demo/commit/69a813fe31541d648a2c650253d533137d504d1a

YoungHorn1999 commented 3 months ago

thank you so much. it's ok.