unisat-wallet / wallet-sdk

ISC License
43 stars 26 forks source link

Why do you use UTXO_DUST size for output? it will cause lose all assets. #2

Closed lolieatapple closed 6 months ago

lolieatapple commented 7 months ago

https://github.com/unisat-wallet/wallet-sdk/blob/674801bbdd0d542ea3bd662572582bc89f53c32c/src/tx-helpers/send-btc.ts#L68

Why do you use UTXO_DUST size for output in sendAllBTC function? it will cause lose all assets.

huanniangstudio commented 6 months ago

This is just a dummy and will be adjusted to the correct amount later.