Skip to main content
The indexer lives in the sibling indexer repo. It is not inside the contracts tree. Testnet chain ID 46630 is indexed over RPC. Mainnet 4663 is stubbed until deploy.

Entities

Position.debt is the sum of borrow, repay, liquidate, and deleverage event amounts. It is not live index-accrued debt. AccrueInterest updates the book index only. Query RiskLens for the live owed amount.

Example queries

Account positions:
Books:
Recent liquidations:
Timelock queue:

Notes

  • Replay BookCreated and BookBorrowingEnabled from the start block. Testnet books already exist. The indexer currently sees borrowing on; ARCHITECTURE.md says the launch flag is off. Trust the chain.
  • Book.symbol fills only when collateral matches a known testnet token.
  • ABIs in the indexer come from ./scripts/export-abis.sh against ../contracts.
The indexer lives in the sibling indexer repo. It is Envio HyperIndex writing Stockline events to Postgres and serving GraphQL. Testnet chain ID 46630 is indexed over RPC. Mainnet 4663 is stubbed until deploy. Position.debt is the sum of borrow, repay, liquidate, and deleverage event amounts. It is not live index-accrued debt. AccrueInterest updates the book index only. Query RiskLens for the live owed amount. Replay BookCreated and BookBorrowingEnabled from the start block. Testnet books already exist. The indexer currently may see borrowing on while ARCHITECTURE.md says the launch flag is off. Trust the chain. Related: Liquidators, Addresses.