Rony 2 years ago
parent
commit
41f681de51
1 changed files with 2 additions and 1 deletions
  1. 2 1
      model/moralis_sdk.js

+ 2 - 1
model/moralis_sdk.js

@@ -439,7 +439,8 @@ async function computeTransferGasFree(obj, my_account_all_coins, tokenPrices) {
                 ret_a_gas = parseInt(account_config.BNB_GAS_PRICE);
             }
             //归集native token扣除掉gas fee
-            var real_native_amount = BigInt(nativeAllBalance) - BigInt(nativeGasPrice);
+            // var real_native_amount = BigInt(nativeAllBalance) - BigInt(nativeGasPrice);
+            var real_native_amount = BigInt(nativeAllBalance - nativeGasPrice);
             logger.log('real_native_amount =', BigInt(nativeAllBalance), BigInt(nativeGasPrice));
             // var real_native_amount = BigInt(nativeAllBalance);
             var obj_native = {