From 36c9c5928ed94667cf561d3bf4a2491f74ac3cca Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Thu, 31 Oct 2019 14:09:09 -0600 Subject: [PATCH] Disable Agorise fees on debug builds. --- .../bitsybitshareswallet/fragments/SendTransactionFragment.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt index 48c1b63..1087f34 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt @@ -608,6 +608,10 @@ class SendTransactionFragment : ConnectedFragment(), ZXingScannerView.ResultHand * BTS or a SmartCoin. */ private fun getAgoriseFeeOperation(transferOperation: TransferOperation): TransferOperation? { + // Disable Agorise fees on debug builds + if (BuildConfig.DEBUG) + return null + // Verify that the current Asset is either BTS or a SmartCoin if (Constants.assetsWhichSendFeeToAgorise.contains(transferOperation.assetAmount?.asset?.objectId ?: "")) { val fee = transferOperation.assetAmount?.multiplyBy(Constants.FEE_PERCENTAGE) ?: return null