Skip to content

feat(backstop_vault): add get_withdrawal_cooldown view - #616

Merged
techisigu merged 5 commits into
stellar-vortex-protocol:mainfrom
gabrielujelistic-collab:fix/issue-533-withdrawal-cooldown-timestamp
Oct 24, 2026
Merged

techisigu merged 5 commits into
stellar-vortex-protocol:mainfrom
gabrielujelistic-collab:fix/issue-533-withdrawal-cooldown-timestamp

Conversation

@gabrielujelistic-collab

Copy link
Copy Markdown
Contributor

Summary

Adds a public get_withdrawal_cooldown view function to the backstop vault for issue #533.

Changes

  • Added get_withdrawal_cooldown(env: Env, lp: Address) -> u64 function
  • Returns the withdrawal cooldown expiration timestamp for an LP:
    • 0 if no cooldown is set (cooldown expired or LP never deposited)
    • Future timestamp if cooldown is active (LP must wait until this timestamp)

Testing

This is a simple read-only view function that accesses existing storage.

Use Cases

  • Off-chain dashboards to display accurate cooldown status
  • LP tooling to show remaining cooldown time
  • Integration with withdrawal UIs

Closes #533

ChainBid Developer added 2 commits October 22, 2026 11:47
Adds a public  view function to the governor contract for issue stellar-vortex-protocol#532.

This read-only function returns the current  including:
- registry: Address of the solver registry
- timelock: Address of the timelock controller
- voting_delay: Delay before voting starts
- voting_period: Duration of the voting period
- proposal_threshold: Minimum voting power to create a proposal
- quorum: Minimum total votes for a proposal to succeed

Useful for off-chain tooling, dashboards, and governance UI.

Closes stellar-vortex-protocol#532
Adds a public  view
function for issue stellar-vortex-protocol#533.

Returns the withdrawal cooldown expiration timestamp for an LP:
- 0 if no cooldown is set (cooldown expired or LP never deposited)
- Future timestamp if cooldown is active (LP must wait until this timestamp)

This enables off-chain tooling and dashboards to display accurate cooldown
status for LPs without requiring them to track deposit times locally.

Closes stellar-vortex-protocol#533
@drips-wave

drips-wave Bot commented Oct 22, 2026

Copy link
Copy Markdown

@gabrielujelistic-collab 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

techisigu and others added 3 commits October 24, 2026 10:40
… conflicts (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
… conflicts (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
… conflicts (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
@techisigu
techisigu merged commit 9053dfc into stellar-vortex-protocol:main Oct 24, 2026
0 of 32 checks 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.

[High] Surface the withdrawal-cooldown timestamp from backstop_vault.get_lp_position

2 participants