Skip to content

fix(yield-vault): enforce admin time-lock delay for APY parameter adj… - #1086

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
OlaGreat:fix/988-yield-vault-apy-timelock
Sep 26, 2026
Merged

ONEONUORA merged 1 commit into
Fracverse:masterfrom
OlaGreat:fix/988-yield-vault-apy-timelock

Conversation

@OlaGreat

Copy link
Copy Markdown
Contributor

…ustments (#988)

  • Add cancel_apy() entrypoint so owners can revoke a queued APY change before the 24-hour delay elapses, completing the timelock lifecycle
  • Add test_cancel_apy_clears_pending_change: verifies pending state is cleared and a new proposal can be queued/applied after cancellation
  • Add test_pending_apy_view_helpers: covers pending_apy() and pending_apy_activation() view helpers across the full queue/apply cycle
  • Keep existing try_* error-path tests as #[ignore] consistent with the rest of the suite (Soroban no_std panic aborts cannot be caught via try_*)

Closes #988

…ustments (Fracverse#988)

- Add cancel_apy() entrypoint so owners can revoke a queued APY change
  before the 24-hour delay elapses, completing the timelock lifecycle
- Add test_cancel_apy_clears_pending_change: verifies pending state is
  cleared and a new proposal can be queued/applied after cancellation
- Add test_pending_apy_view_helpers: covers pending_apy() and
  pending_apy_activation() view helpers across the full queue/apply cycle
- Keep existing try_* error-path tests as #[ignore] consistent with the
  rest of the suite (Soroban no_std panic aborts cannot be caught via try_*)

The core time-lock mechanism (APY_TIMELOCK_SECS, update_apy queuing,
apply_apy enforcement) was already in place; this PR adds the missing
cancel path and test coverage for the full timelock surface area.

Closes Fracverse#988
@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

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

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @OlaGreat

@ONEONUORA
ONEONUORA merged commit 1ce758e into Fracverse:master Sep 26, 2026
10 of 11 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.

contract: CONTRACT: ENFORCE ADMIN TIME-LOCK DELAY FOR APY PARAMETER ADJUSTMENTS

2 participants