Skip to content

feat: implement order manifest for TWAP and PerpetualStableSwap#28

Open
mfw78 wants to merge 1 commit into
feat/order-manifest-interfacefrom
feat/order-manifest-types
Open

feat: implement order manifest for TWAP and PerpetualStableSwap#28
mfw78 wants to merge 1 commit into
feat/order-manifest-interfacefrom
feat/order-manifest-types

Conversation

@mfw78

@mfw78 mfw78 commented Jul 10, 2026

Copy link
Copy Markdown
  • TWAP enumerates all n parts with per-part validity windows, validating parameters before any part math so degenerate bundles yield an empty manifest instead of underflowing
  • PerpetualStableSwap exposes only the current discrete order and terminates pagination on every branch (closes manifest: unbounded getManifestPage never terminates pagination #7); empty pages carry the decoded reason (e.g. NotFunded)

Part of #1.

TWAP enumerates all n parts with per-part validity windows, validating
parameters before any part math so degenerate bundles yield an empty
manifest instead of underflowing. PerpetualStableSwap exposes only the
current discrete order and terminates pagination on every branch, so a
naive offset walker cannot loop forever; empty pages carry the decoded
reason (e.g. not funded).
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