Protocol Math
aToken and Underlying DecimalsInterpreting Exchange RatesCalculating Accrued InterestCalculating the APY Using Rate Per Block
Last updated
The Agile protocol contracts use a system of exponential math, Exponential.sol, in order to represent fractional quantities with sufficient precision.
Most numbers are represented as a mantissa, an unsigned integer scaled by 1 * 10 ^ 18, in order to perform basic math at a high level of precision.
Last updated