mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
deduct network from contributions + removed unsued Enabled properties
This commit is contained in:
parent
c134277514
commit
249b8abf03
2 changed files with 1 additions and 5 deletions
|
@ -71,8 +71,6 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
|||
public string EmbeddedCSS { get; set; }
|
||||
[Display(Name = "Allow payee to create invoices in their own denomination")]
|
||||
public bool AllowCustomPaymentAmounts { get; set; }
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
|
||||
public class ViewPaymentRequestViewModel
|
||||
|
@ -107,8 +105,6 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
|||
}
|
||||
}
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
public bool AllowCustomPaymentAmounts { get; set; }
|
||||
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ namespace BTCPayServer.Services.Apps
|
|||
|
||||
// Else, we just sum the payments
|
||||
return payments
|
||||
.Select(pay => (Key: pay.GetPaymentMethodId().ToString(), Value: pay.GetCryptoPaymentData().GetValue()))
|
||||
.Select(pay => (Key: pay.GetPaymentMethodId().ToString(), Value: pay.GetCryptoPaymentData().GetValue() - pay.NetworkFee))
|
||||
.ToArray();
|
||||
})
|
||||
.GroupBy(p => p.Key)
|
||||
|
|
Loading…
Add table
Reference in a new issue