diff --git a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx index 92528210..23a29a8d 100644 --- a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx +++ b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx @@ -78,7 +78,7 @@ }); var sentFunds = 0; // the 0.1 cents are necessary for an odometer workaround - var minerFees = 0; // negative, or the .1 cents will go wrong + var minerFees = <%=this.MinerFeeDefaultFee%>; // negative, or the .1 cents will go wrong var returnedFunds = 0; // as above var addressUsedLegacy = SwarmopsJS.unescape('<%=this.BitcoinCashAddressLegacy %>'); diff --git a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs index cea2dd6b..d393cfeb 100644 --- a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs +++ b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs @@ -42,6 +42,7 @@ namespace Swarmops.Frontend.Pages.v5.Admin } DateTime utcNow = DateTime.UtcNow; + this._currency = CurrentOrganization.Currency; HotBitcoinAddress address = HotBitcoinAddress.CreateUnique(this.CurrentOrganization, BitcoinChain.Cash, BitcoinUtility.BitcoinEchoTestIndex, this.CurrentUser.Identity, utcNow.Year, utcNow.Month, utcNow.Day); @@ -184,5 +185,17 @@ namespace Swarmops.Frontend.Pages.v5.Admin } } + + private Currency _currency; + + public double MinerFeeDefaultFee + { + get + { + Int64 satoshisFee = BitcoinUtility.EchoFeeSatoshis; + Logic.Financial.Money presentationCurrencyFee = new Logic.Financial.Money(satoshisFee, Currency.BitcoinCash).ToCurrency(_currency); + return presentationCurrencyFee.Cents / -100.0; + } + } } } \ No newline at end of file