unisat-wallet / wallet-utils

ISC License
50 stars 37 forks source link

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

Closed lolieatapple closed 11 months ago

lolieatapple commented 11 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.

slient-coder commented 11 months ago

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