Data Security
This page covers how to read state from Avon, security assumptions, and reference details.
1. Data Access
1.1 Reading Strategy Data
strategy.totalAssets();
strategy.totalBorrow();
strategy.debtOf(user);
strategy.collateralOf(user);
strategy.healthOf(user);1.2 Reading Orderbook Data
Tree Roots
orderbook.lenderTreeRoot();
orderbook.borrowerTreeRoot();Raw Quote Queries
2. Security Model
2.1 Strategy Isolation
2.2 Deterministic Matching
2.3 Gas Constraints
2.4 Oracle Dependencies
2.5 Emergency Controls
3. Reference (Structs, Events, Errors)
3.1 Structs
Tick / Quote
Position
3.2 Events
3.3 Common Errors
Last updated