1
zj
2024-08-02 a7bd76dfd00efc7b03999c4559cf8554e34c19cb
src/main/java/project/contract/ContractOrder.java
@@ -149,17 +149,7 @@
   private Double volume_open;
   public Double getChange_ratio() {
      if (STATE_SUBMITTED.equals(state)) {
         change_ratio = Arith.div(Arith.sub(Arith.add(Arith.add(amount_close, profit), deposit), deposit_open),
               deposit_open);
      } else {
         change_ratio = Arith.div(Arith.sub(Arith.add(amount_close, deposit), deposit_open), deposit_open);
      }
      change_ratio = Arith.mul(change_ratio, 100);
      DecimalFormat df = new DecimalFormat("#.##");
      return Double.valueOf(df.format(change_ratio));
      return change_ratio;
   }
   public Serializable getPartyId() {