Skip to content

chore: add market_collateral to prover cumulatives endpoint#1710

Open
unizarr wants to merge 3 commits intomainfrom
chore/market-collateral
Open

chore: add market_collateral to prover cumulatives endpoint#1710
unizarr wants to merge 3 commits intomainfrom
chore/market-collateral

Conversation

@unizarr
Copy link
Contributor

@unizarr unizarr commented Mar 4, 2026

Description

  • Add market_collateral and market_collateral_formatted fields to the /v1/market/provers/:address/cumulatives endpoint
  • Compute prover's current deposited collateral balance from indexed events: deposits - withdrawals - slashed - locked
  • Add get_prover_market_collateral method to MarketDb
  • Add tests for the new DB method

@unizarr unizarr marked this pull request as ready for review March 4, 2026 16:11
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.

1 participant