Disable Agorise fees on debug builds.

master
Severiano Jaramillo 2019-10-31 14:09:09 -06:00
parent be205ea765
commit 36c9c5928e
1 changed files with 4 additions and 0 deletions

View File

@ -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