mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-26 15:44:54 +01:00
Issue: if a taker used exactly all BSQ from the BSQ inputs to pay the trading fee, there was no BSQ change in the takeOfferFeeTx. It was assumed that the second output was the reservedForTrade output, but in the case of missing BSQ change it was the first output. Fix: added a check to make sure the value of the inputs to the deposit tx match the expected inputAmount. Added a check that if there is no BSQ outputs in the bsqTradingFeeTx a change output is added of value 1 satoshi more than the BSQ input value. This ensures that the second output is always the reservedForTrade output. It also ensures that the BSQ is burnt, even in the very unlikely case that the amount of BSQ burnt is larger than the reservedForTrade amount. |
||
---|---|---|
.. | ||
java/bisq/core | ||
resources |