Skip to main content
This reference catalogs checks in the separate Phylax Aave V3 fork. It is distinct from the adapters in credible-std.
Do not deploy this fork as a production version of Aave. It includes an intentional borrowing defect and mock contracts designed to create invalid states.

Catalog Scope

The catalog covers accounting, oracle prices, flash loans, and lending-operation conditions. The fork draws on Aave’s invariant specifications and separates its production 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

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

Validation Before Adaptation

Review and pin the fork revision before using its tests or copying an assertion. Inspect the mock contracts and distinguish intentional failures from the behavior of the deployed protocol. The collections above describe intended checks. This review does not establish runtime compatibility, test coverage, or live enforcement for that fork. Follow assertion testing for your own implementation, then review release backtests and the integration test plan before activation.