Catalog Scope
The catalog covers accounting, oracle prices, flash loans, and lending-operation conditions. The fork draws on Aave’s invariant specifications and separates itsproduction directory from showcase checks. Those directory names describe source organization, not evidence of deployment safety.
Assertion Collections
Assertions in the production directory
Core Invariants
- BaseInvariants - Cross-transaction accounting enforcement:
- Debt token supply consistency across operations
- AToken supply consistency across operations
- Underlying balance invariant enforcement
- Virtual balance sanity checks
- Liquidity index integrity verification
Price Consistency
- OracleAssertions - Price consistency checks:
- Borrow/supply/liquidation price deviation monitoring (5% max)
- Price consistency enforcement across transactions
- Manipulated pricing input detection
Flashloan Protection
- FlashloanInvariantAssertions - Flashloan security:
- Repayment verification (amount + fee)
- Fee payment enforcement
- Reserve state integrity
Log-Based Verification
- LogBasedAssertions - Event-based accounting checks:
- Balance change verification using event logs
- Confirm emitter and call-path coverage for the target proxy design
Showcase Assertions
Operation Checks
-
LendingInvariantAssertions - Standard supply/withdrawal checks:
- Reserve state checks
- Supply cap enforcement
- Balance change verification
- Collateral withdrawal health
-
LiquidationInvariantAssertions - Standard liquidation checks:
- Health factor thresholds
- Grace period checks
- Close factor conditions
- Deficit accounting
- Reserve state requirements
Health Factor Management
- HealthFactorAssertions - Health factor transitions:
- Non-decreasing health factor actions
- Healthy to unhealthy transition prevention
- Supply/withdraw/repay health maintenance
Basic Checks
- BorrowLogicErrorAssertion - Simple balance checks:
- Borrow amount matches underlying balance change

