Skip to content

feat(offer-liability-headroom): audit offer liabilities against account balances - #493

Merged
egekoca merged 2 commits into
RevenantLabs:mainfrom
Caneryy:feat/offer-liability-headroom
Sep 30, 2026
Merged

egekoca merged 2 commits into
RevenantLabs:mainfrom
Caneryy:feat/offer-liability-headroom

Conversation

@Caneryy

@Caneryy Caneryy commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a read-only Offer Liability and Capacity Audit that pairs Horizon offers with account balances/liabilities.

  • Associates each offer with buying and selling asset identities
  • Shows balance, selling/buying liabilities and trustline limit separately
  • Keeps exact price_r rationals (no float math for capacity estimates)
  • Warns on unmatched assets and ledger skew; large skew fails as inconsistent
  • Never implies estimates guarantee execution

Files

Entire slice under features/offer-liability-headroom/ (35 files).

Out of scope

  • No offer creation/cancellation
  • No market prediction
  • No changes outside this feature folder

Test plan

  • npm run verify:features -- offer-liability-headroom
  • npm test -- --run features/offer-liability-headroom

Closes #471

@drips-wave

drips-wave Bot commented Sep 29, 2026

Copy link
Copy Markdown

@Caneryy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@egekoca
egekoca merged commit 2aece15 into RevenantLabs:main Sep 30, 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.

[Developer Utilities] Offer Liability and Capacity Audit

2 participants