Annex Docs
Search…
Annex Docs
Annex Docs
Annex Finance Documentation
Getting Started
Guides
Networks
Protocol Math
aToken and Underlying Decimals
Interpreting Exchange Rates
Calculating Accrued Interest
Calculating the APY Using Rate Per Block
Gas Costs
ATokens
Comptroller
Governance
API
Annex.js
Auction
Security
Pools
Powered By
GitBook
Protocol Math
The Annex 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.
aToken and Underlying Decimals
Interpreting Exchange Rates
Calculating Accrued Interest
Calculating the APY Using Rate Per Block
Previous
Networks
Next
aToken and Underlying Decimals
Last modified
10mo ago
Copy link