Skip to content

feat: pending-proposal views, decimals-aware submit_intent guard, fill-history log - #324

Open
ink-mami wants to merge 1 commit into
stellar-vortex-protocol:mainfrom
ink-mami:feature/251-252-244-pending-views-decimal-guard-fill-history
Open

feat: pending-proposal views, decimals-aware submit_intent guard, fill-history log#324
ink-mami wants to merge 1 commit into
stellar-vortex-protocol:mainfrom
ink-mami:feature/251-252-244-pending-views-decimal-guard-fill-history

Conversation

@ink-mami

@ink-mami ink-mami commented Aug 30, 2026

Copy link
Copy Markdown

Summary

  • get_pending_admin, get_pending_dst_token_add, get_pending_dst_token_remove view functions, mirroring the existing get_pending_fee_recipient shape (DataKey/Error variants these — and the pre-existing propose_admin_transfer/accept_admin_transfer/execute_add_dst_token/execute_remove_dst_token flows — rely on are now declared).
  • submit_intent now queries dst_token's own decimals() and rejects a min_dst_amount implausible for that precision (Error::ImplausibleDstAmount), guarding against decimal-magnitude fat-finger mistakes. Heuristic and trade-offs documented in README.
  • fill_intent now appends each partial fill to a bounded on-chain (solver, amount, timestamp) log (MAX_FILL_HISTORY = 20, FIFO eviction), exposed via get_intent_fill_history.

Closes: #251
Closes: #252
Closes: #244
closes #243

Validation performed

…ubmit_intent guard, and fill-history log

Closes: stellar-vortex-protocol#251
Closes: stellar-vortex-protocol#252
Closes: stellar-vortex-protocol#244

- get_pending_admin/get_pending_dst_token_add/get_pending_dst_token_remove
  mirror get_pending_fee_recipient, and the DataKey/Error variants they
  (and the pre-existing propose/accept flows) rely on are now declared.
- submit_intent rejects a min_dst_amount implausible for dst_token's own
  decimals() precision (Error::ImplausibleDstAmount).
- fill_intent appends each partial fill to a bounded on-chain
  (solver, amount, timestamp) log, exposed via get_intent_fill_history.

Issue stellar-vortex-protocol#243 (bid-window events) is not included: it explicitly depends on
issue stellar-vortex-protocol#6 (bid_intent/settle_bids) landing first, which is not yet
implemented in this codebase.
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@ink-mami 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant