mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-14 18:06:34 -04:00
Fix bug with collateral
This commit is contained in:
parent
d20a9306ee
commit
0ef491ac58
@ -237,7 +237,12 @@ public class PendingTradesPM extends PresentationModel<PendingTradesModel> {
|
||||
}
|
||||
|
||||
String getCollateral() {
|
||||
return formatter.formatCoinWithCode(model.getTrade().getOffer().getCollateralAmount());
|
||||
// collateral is handled different for offerer and taker.
|
||||
// Offerer have paid in the max amount, but taker might have taken less so also paid in less collateral
|
||||
if (model.isOfferer())
|
||||
return formatter.formatCoinWithCode(model.getTrade().getOffer().getCollateralAmount());
|
||||
else
|
||||
return formatter.formatCoinWithCode(model.getTrade().getCollateralAmount());
|
||||
}
|
||||
|
||||
BtcAddressValidator getBtcAddressValidator() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user