Skip to content

feat(keeper): add expiry-scoped futures discovery - #62

Merged
shev-titan merged 2 commits into
devfrom
fix/keeper-backfill-env
Sep 1, 2026
Merged

feat(keeper): add expiry-scoped futures discovery#62
shev-titan merged 2 commits into
devfrom
fix/keeper-backfill-env

Conversation

@lsheva

@lsheva lsheva commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • forward the optional BACKFILL_FROM_BLOCK variable for Vault and Perps startup discovery
  • rebuild bounded participant and position caches for active and previous Futures expiries
  • combine Vault/Perps and Futures participants for liquidation and prediction
  • drive cash settlement from the expiry index and expose expiry/delivery health metrics

Test plan

  • pnpm test — 202 tests
  • pnpm test:integration — 27 tests
  • pnpm typecheck
  • lint changed expiry-discovery files
  • git diff --check

Pass the optional startup anchor into ECS so keeper restarts can rediscover existing participants without treating an unset value as block zero.
Rebuild bounded per-expiry caches on startup so liquidation and settlement discover pre-existing Futures users without deployment-wide history scans.
@lsheva lsheva changed the title fix(keeper): forward discovery backfill block feat(keeper): add expiry-scoped futures discovery Sep 1, 2026
@shev-titan
shev-titan merged commit 6284a5b into dev Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants