Disable Agorise fees on debug builds.
This commit is contained in:
parent
be205ea765
commit
36c9c5928e
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue