PRECISION
Documentation for eth_defi.gmx.constants.PRECISION data.
- PRECISION = 30
GMX uses 30-decimal fixed-point arithmetic throughout the protocol. All OI, liquidity, rate, and price-impact values returned by the REST API and DataStore contract are integers scaled by
10 ** PRECISION. Divide by10 ** PRECISIONto convert to plain USD / dimensionless floats.Reference: https://github.com/gmx-io/gmx-synthetics/blob/main/contracts/utils/Precision.sol