BTC --> sBTC peg in, display minimum received #6070
Labels
enhancement
enhancement-p1
Critical functionality needed by many users, with no clear alternatives
sbtc
Currently when a user pegs in BTC for sBTC they do not see how much sBTC they can expect as a minimum. As they would see with swaps on an AMM
It would be better to show the minimum received to prevent surprise.
Mark said: This seems less like a problem of distinguishing swaps vs. bridges, and more like a problem of consistently guaranteeing a clear minimum received (so that the user isn't surprised by the ultimate dynamic costs involved
https://trustmachines.slack.com/archives/C05LRS7G44R/p1737112029207709?thread_ts=1737110238.019419&cid=C05LRS7G44R
Peg ins work with two transactions. The second transaction incurs a bitcoin networking fee that is variable and not known in advance. This will lower the amount of sBTC received in the wallet. The maximum fee incurred is 80000 sats. We should display this in the wallet as we do with swaps where the minimum received is coded in the contract call, if the prices changes more than expected for an AMM swap it fails. If the fee would be higher than 80000 sats the consolidation/peg is not completed and the user can reclaim their BTC to try again.
From app.stacks.co
The text was updated successfully, but these errors were encountered: