Overview
Notional supports multiple collateral assets with different loan-to-value (LTV) ratios and risk parameters.Supported Collateral
Risk parameters vary by asset based on historical volatility and market liquidity:| Asset | Max LTV |
|---|---|
| BTC | 85% |
| ETH | 85% |
| HYPE | 75% |
| SOL | 75% |
| USDC | 100%* |
Collateral Structure
Each asset balance is tracked separately with four key fields: the asset identifier, total balance, hold amount (reserved for pending withdrawals), segregated balance (not available for borrowing), and last updated timestamp.Balance Categories
Total Balance- All funds owned by the account
- Includes available, hold, and segregated
- Calculated as total minus hold minus segregated
- Funds available for trading and margin
- Funds locked for pending withdrawals
- Released when withdrawal completes or fails
- User-designated funds not used for margin
- Cannot be used for borrowing or margin
- Protected from liquidation
Core Accounting Formulas
All user actions are governed by three fundamental formulas from the Notional whitepaper:Account Balance
Account Balance represents the total value of all deposited assets at current market prices:Account Value
Account Value represents net equity after accounting for unrealized gains/losses:max(0, margin requirements - available USDC).
Total Margin Value
Total Margin Value represents the effective collateral available for margin purposes:Maintenance Margin Requirement (MMR)
Cross positions are liquidated when total collateral falls below the maintenance margin requirement:Initial Margin Requirement (IMR)
IMR is the minimum equity required to open a new position, stricter than MMR:Cross Margin Ratio
Account health is measured by the Cross Margin Ratio:Deposit Flow
1. Transfer to Protocol
Transfer USDC to the protocol address using the ERC-20 transfer function. For example, 1000 USDC (6 decimals) = 1000000000.2. Report Deposit
Submit a POST request to /exchange with action type “reportDeposit”, specifying the asset, amount, transaction hash, and exchange ID.3. Event Emitted
A DepositDetected event is emitted containing the user address, asset ID, amount, transaction hash, and exchange ID.4. Balance Updated
The total balance is incremented by the deposit amount while hold and segregated remain unchanged. For example, a 1000 USDC deposit increases total from 5000 to 6000.Withdrawal Flow
1. Initiate Withdrawal
Submit a POST request to /exchange with action type “withdraw”, specifying the asset, amount, destination address, and source (balance or segregated).2. Funds Placed on Hold
A WithdrawalInitiated event is emitted containing the withdrawal details. The balance is updated to move the withdrawal amount from available to hold. For example, a 500 USDC withdrawal increases hold from 0 to 500 while total remains at 6000.3. Withdrawal Executed
A WithdrawalCompleted event is emitted with the transaction hash. The balance is updated to reduce total by the withdrawal amount and release the hold. For example, total decreases from 6000 to 5500 and hold returns to 0.Borrowing Power
Available to Borrow
Available to borrow is calculated as account value minus maintenance margin minus current borrowed amount. Example: With account value of 475, and current borrowed of 11,425.Maximum Position Size
Maximum position size is calculated as available to borrow times leverage divided by mark price. Example: With 95,000, the maximum position size is 0.6 BTC.Multi-Collateral Examples
BTC Collateral Only
With 1 BTC collateral at 40,000 (20x max leverage):- Balance: $40,000
- Total Collateral: $34,000 (applying 85% LTV)
- Total Margin Value: $34,000 (no unrealized PnL)
- MMR: $10,000
- Cross Margin Ratio: 0.294 (29.4%) ✅ Healthy
BTC + USDC Collateral
With 1 BTC at $40,000 and 10,000 USDC collateral, same 10 BTC-PERP position:- Balance: $50,000
- Total Collateral: 34,000 from BTC + $10,000 from USDC)
- Total Margin Value: $44,000
- MMR: $10,000
- Cross Margin Ratio: 0.227 (22.7%) ✅ Healthier
With Unrealized Loss
With 1 BTC collateral and 10 BTC-PERP position entered at 38,000:- Unrealized PnL: -$20,000
- Balance: $38,000 (BTC price also dropped)
- Total Collateral: $32,300 (applying 85% LTV to current price)
- Total Margin Value: $12,300 (including unrealized loss)
- MMR: $9,500
- Cross Margin Ratio: 0.772 (77.2%)