按渠道方要求,networkFee按目标crypto换算

This commit is contained in:
CounterFire2023 2023-07-18 12:57:36 +08:00
parent 025132ac5c
commit 508574b816

View File

@ -116,7 +116,12 @@ class AlchemyOutController extends BaseController {
if (crypto.toLowerCase() === 'eth') {
priceToSend = price + ''
}
let networkFee = gas * parseFloat(price)
// 20230717 沟通, gas费需要换算成目标货币
let networkFee = gas
if (crypto.toLowerCase() === 'ceg') {
networkFee = networkFee * parseFloat(price) * 10
}
let result = {
direct: 1,
data: {