按渠道方要求,networkFee按目标crypto换算
This commit is contained in:
parent
025132ac5c
commit
508574b816
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user