|
@@ -12,6 +12,7 @@ const logger = require('./logger')
|
|
const report = require("./report") //导入 db.js
|
|
const report = require("./report") //导入 db.js
|
|
const BigNumber = require('bignumber.js')
|
|
const BigNumber = require('bignumber.js')
|
|
const collect_coins_db = require('./db/collect_coins_db')
|
|
const collect_coins_db = require('./db/collect_coins_db')
|
|
|
|
+const czz = require('./czz')
|
|
|
|
|
|
/* Moralis init code */
|
|
/* Moralis init code */
|
|
var serverUrl = moralis_config.SERVER_URL;
|
|
var serverUrl = moralis_config.SERVER_URL;
|
|
@@ -395,7 +396,7 @@ async function computeTransferGasFree(obj, my_account_all_coins, tokenPrices) {
|
|
ret_a_gas = lastBnbPrice;
|
|
ret_a_gas = lastBnbPrice;
|
|
} else {
|
|
} else {
|
|
nativeGasPrice = parseInt(nativeCount) * parseInt(account_config.BNB_GAS_LIMIT) * parseInt(account_config.BNB_GAS_PRICE);
|
|
nativeGasPrice = parseInt(nativeCount) * parseInt(account_config.BNB_GAS_LIMIT) * parseInt(account_config.BNB_GAS_PRICE);
|
|
- ret_a_gas = parseInt(account_config.BNB_GAS_PRICE);
|
|
|
|
|
|
+ ret_a_gas = parseInt(account_config.BNB_GAS_PRICE);
|
|
}
|
|
}
|
|
|
|
|
|
// var real_native_amount = BigInt(nativeAllBalance) - BigInt(nativeGasPrice) - BigInt(tokenGasPrice);
|
|
// var real_native_amount = BigInt(nativeAllBalance) - BigInt(nativeGasPrice) - BigInt(tokenGasPrice);
|
|
@@ -954,8 +955,8 @@ async function transfer_(opts) {
|
|
} else {
|
|
} else {
|
|
switch (opts.chainId) {
|
|
switch (opts.chainId) {
|
|
case utils.CHAIN_ID.czz:
|
|
case utils.CHAIN_ID.czz:
|
|
- //todo...
|
|
|
|
- break
|
|
|
|
|
|
+ var ret = await czz.withdraw(opts)
|
|
|
|
+ return ret
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|