Skip to content

fix: escrow-vault refund restriction, cancel_admin_proposal, saturating_sub for DelegatedPower#732

Open
Userhorlie wants to merge 1 commit into
ThinkLikeAFounder:mainfrom
Userhorlie:fix/issues-693-694-708
Open

fix: escrow-vault refund restriction, cancel_admin_proposal, saturating_sub for DelegatedPower#732
Userhorlie wants to merge 1 commit into
ThinkLikeAFounder:mainfrom
Userhorlie:fix/issues-693-694-708

Conversation

@Userhorlie
Copy link
Copy Markdown

Summary

Fixes three security/correctness bugs in one commit.

#693 — escrow-vault: refund_escrow has no caller restriction

Added a check so only the depositor or admin can trigger a refund on an expired escrow. Previously any authenticated address could force-refund any expired escrow.

#694 — common-admin: no cancel_admin_proposal function

Added cancel_admin_proposal to common-admin and exposed it on both governance-token and escrow-vault. The current admin can now revoke a pending admin transfer before the 17,280-ledger delay elapses.

#708 — governance-token: raw subtraction on DelegatedPower

Replaced raw - with saturating_sub in all three places that decrement DelegatedPower:

  • burn
  • delegate (re-delegation path)
  • revoke_delegation

Closes #693
Closes #694
Closes #708

…nkLikeAFounder#708

- escrow-vault: restrict refund_escrow to depositor or admin (ThinkLikeAFounder#693)
- common-admin: add cancel_admin_proposal function (ThinkLikeAFounder#694)
- governance-token: expose cancel_admin_proposal via common-admin (ThinkLikeAFounder#694)
- escrow-vault: expose cancel_admin_proposal via common-admin (ThinkLikeAFounder#694)
- governance-token: use saturating_sub for DelegatedPower in burn,
  delegate (re-delegation), and revoke_delegation (ThinkLikeAFounder#708)
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

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