5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-06-19 198ddcef9ac5e9c6ba15b7a4f4403019c265f68e
修改先取整在计算
1 files modified
3 ■■■■ changed files
src/components/constract/PerpetualContract/orderCom/amountSlider.vue 3 ●●●● patch | view | raw | blame | history
src/components/constract/PerpetualContract/orderCom/amountSlider.vue
@@ -184,7 +184,8 @@
        // this.walletMoney * sxf * this.initOpen.amount * this.lever_rate * rate;
        // const maxAmount =
        // this.walletMoney * this.initOpen.amount * this.lever_rate;
        const maxAmount = (this.walletMoney / (1 + sxf)) * this.lever_rate;
        const maxAmount =
          Math.floor(this.walletMoney / (1 + sxf)) * this.lever_rate;
        const fl = maxAmount * sxf;
        console.log(maxAmount * rate, fl);