Skip to content

feat: add a get_min_bond() view for the current minimum bond requirem… - #167

Open
Mimah97 wants to merge 2 commits into
stellar-vortex-protocol:mainfrom
Mimah97:feat/get-min-bond-view
Open

feat: add a get_min_bond() view for the current minimum bond requirem…#167
Mimah97 wants to merge 2 commits into
stellar-vortex-protocol:mainfrom
Mimah97:feat/get-min-bond-view

Conversation

@Mimah97

@Mimah97 Mimah97 commented Jul 27, 2026

Copy link
Copy Markdown

Summary

Implement four features: get_min_bond view, per-token bond multiplier configuration, user intents listing, and post-slash cooldown enforcement.

Changes

#62 — Add a get_min_bond() view

  • Added view function exposing MIN_BOND constant

#59 — Per-token bond multiplier

  • Added set_min_bond_multiplier/get_min_bond_multiplier admin functions
  • Multiplier enforced in accept_intent via get_adjusted_min_bond helper
  • Defaults to 10 (1.0x) when unset

#58 — List intents by user

  • Added list_intents_by_user view function
  • UserIntents index maintained during submit_intent

Post-slash cooldown

  • Added last_slash_time field to SolverRecord
  • SLASH_COOLDOWN (1 hour) enforced in accept_intent
  • slash_solver sets cooldown timestamp

Tests

Added 10 tests covering multiplier defaults, bond requirement enforcement, user intent listing, and cooldown expiration.

Closes #61, Closes #62, Closes #59, Closes #58

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Mimah97 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