Disable Agorise fees on debug builds.

This commit is contained in:
Severiano Jaramillo 2019-10-31 14:09:09 -06:00
parent be205ea765
commit 36c9c5928e

View file

@ -608,6 +608,10 @@ class SendTransactionFragment : ConnectedFragment(), ZXingScannerView.ResultHand
* BTS or a SmartCoin. * BTS or a SmartCoin.
*/ */
private fun getAgoriseFeeOperation(transferOperation: TransferOperation): TransferOperation? { 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 // Verify that the current Asset is either BTS or a SmartCoin
if (Constants.assetsWhichSendFeeToAgorise.contains(transferOperation.assetAmount?.asset?.objectId ?: "")) { if (Constants.assetsWhichSendFeeToAgorise.contains(transferOperation.assetAmount?.asset?.objectId ?: "")) {
val fee = transferOperation.assetAmount?.multiplyBy(Constants.FEE_PERCENTAGE) ?: return null val fee = transferOperation.assetAmount?.multiplyBy(Constants.FEE_PERCENTAGE) ?: return null