mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01: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() {
|
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() {
|
BtcAddressValidator getBtcAddressValidator() {
|
||||||
|
Loading…
Reference in New Issue
Block a user