5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-06-16 fd6a30d7a259852ea5cc10a890f2312e1d8b7089
src/components/constract/PerpetualContract/orderCom/amountSlider.vue
@@ -180,13 +180,16 @@
          default:
            sxf = 0;
        }
        const fl =
          this.walletMoney * sxf * this.initOpen.amount * this.lever_rate * rate;
        const maxAmount =
          this.walletMoney * this.initOpen.amount * this.lever_rate;
        // const fl =
        // 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 fl = maxAmount * sxf;
        console.log(maxAmount * rate, fl);
        data = maxAmount * rate - fl;
        // data = maxAmount * rate - fl;
        data = maxAmount;
        // if (this.lever_rate) {
        //   data = math.format((this.maxAmount * rate), 2);