h-agent-swap 3.0.5 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/agent-swap.js +3 -0
package/package.json
CHANGED
package/src/agent-swap.js
CHANGED
|
@@ -558,6 +558,9 @@ ${JSON.stringify(data,null,2)}`)
|
|
|
558
558
|
if(!config.onoff) {
|
|
559
559
|
throw "交易对未开启"
|
|
560
560
|
}
|
|
561
|
+
config.feeRate = multiplication(division(config.feeRate,100),this.pointMax)
|
|
562
|
+
config.burnRate = multiplication(division(config.burnRate,100),this.pointMax)
|
|
563
|
+
|
|
561
564
|
// amount 为固定输入金额
|
|
562
565
|
// 扣除手续费 以及 销毁费用
|
|
563
566
|
amount = await this.pointOffset({
|