mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-26 15:50:42 -04:00
Fix bug with collateral
This commit is contained in:
parent
d20a9306ee
commit
0ef491ac58
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue