DODO Math support k=1

This commit is contained in:
mingda
2020-11-21 01:08:55 +08:00
parent 53b75dfab4
commit 75190a52f6
2 changed files with 13 additions and 15 deletions

View File

@@ -127,7 +127,6 @@ library PMMPricing {
state.Q0,
state.Q0,
DecimalMath.mulFloor(state.i, payBaseAmount),
false,
state.K
);
}
@@ -142,7 +141,6 @@ library PMMPricing {
state.B0,
state.B0,
DecimalMath.divFloor(payQuoteAmount, state.i),
false,
state.K
);
}
@@ -174,7 +172,6 @@ library PMMPricing {
state.Q0,
state.Q,
DecimalMath.mul(state.i, payBaseAmount),
false,
state.K
);
}
@@ -206,7 +203,6 @@ library PMMPricing {
state.B0,
state.B,
DecimalMath.divFloor(payQuoteAmount, state.i),
false,
state.K
);
}