You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the geometric price book does not support cases where the common ratio is bigger than 1.002. This is due to the unnecessary constraint that every possible value within uint16 be supported when creating price books.
In the case of arithmetic price books,
if (d == 0 || type(uint16).max * d > type(uint128).max - a) {
revert Errors.CloberError(Errors.INVALID_COEFFICIENTS);
}
Price books with 1.01 as the common ratio are needed for markets with lower liquidity. To support this, I propose we remove this constraint and allow price books that don't cover the full extent of the numbers possible within uint16.
The text was updated successfully, but these errors were encountered:
Currently, the geometric price book does not support cases where the common ratio is bigger than 1.002. This is due to the unnecessary constraint that every possible value within
uint16
be supported when creating price books.In the case of arithmetic price books,
In the case of geometric price books.
Price books with 1.01 as the common ratio are needed for markets with lower liquidity. To support this, I propose we remove this constraint and allow price books that don't cover the full extent of the numbers possible within
uint16
.The text was updated successfully, but these errors were encountered: