V3 Technical Docs
  • Deployed Contracts
    • Notional V3
      • Ethereum Mainnet
      • Arbitrum
  • Security
    • Audits
    • Bug Bounty
  • Currency Ids & Precision
    • Currency Ids
    • Market Indexes
    • Notional Internal Precision
  • Contract interaction guides
    • Intro
    • Trading guide
      • Deposit (Prime Lend)
      • Trade fCash (Borrow & Lend Fixed)
      • Add liquidity (Mint nTokens)
      • Withdraw liquidity (Redeem nTokens)
      • Withdraw (Prime Cash)
      • Settle Account
      • Enter Leveraged Vaults
      • Exit Leveraged Vaults
    • Accounts
    • Prime Cash Markets
    • fCash Markets
    • nTokens
    • Leveraged Vaults
    • Oracles
    • Governance parameters
  • Subgraph guides
    • Notional V3 Subgraphs
      • Fetch Notional Accounts
      • Fetch Notional's reserves
      • Fetch Notional nToken accounts
      • Fetch Historical Trades
      • Fetch an Account's P&L
      • Fetch current fCash and Prime Cash Rates
      • Fetch Historical Prime Cash & Prime Debt Exchange Rates
      • Fetch Prime Cash Market Balances
      • Fetch fCash Market Balances
      • Fetch Outstanding Debt
      • Fetch Historical nToken Exchange Rates
      • Fetch ETH Oracle Exchange Rates
      • Fetch Annual Incentive Rates
      • Fetch Interest Rate Models
      • Fetch Governance Parameters
  • Dune Dashboard
  • Notional Risk Docs
  • Notional V3 Docs
  • Notional Blog
Powered by GitBook
On this page
  • Balances
  • Rates
  • Scalars
  • Prime factors
  1. Currency Ids & Precision

Notional Internal Precision

Balances

Notional's internal balance precision is 8 decimals. For example, here is a non-exhaustive list of balance related variables with 1e8 precision:

  • User Prime Cash and Prime Debt balances

  • User nToken balances

  • User fCash balances

  • nToken liquidity token balances

  • User Vault Share Balances

  • User Free Collateral balances

  • fCash markets total Prime Cash and total fCash balances

  • Prime Cash totalUnderlyingSupply balances

  • maxUnderlyingSupply parameters

  • Leveraged Vaults minAccountBorrowSize parameters

Rates

Notional's internal rate precision is 9 decimals. For example, here is a non-exhaustive list of rates related variables with 1e9 precision:

  • fCashOracleRates

  • fCashLastImpliedRates

  • oracleSupplyRate

  • Leveraged Vaults minCollateralRatio, maxRequiredAccountCollateralRatio, maxDeleverageCollateralRatio, liquidationRate, and feeRate parameters

Scalars

Prime Cash scalars are 1e18 precision. For example, the precision of the following variables is 1e18:

  • debtScalar

  • supplyScalar

  • underlyingScalar

Prime factors

The Prime Cash debtFactorand supplyFactor precision is 1e36.

PreviousMarket IndexesNextIntro

Last updated 5 months ago