Skip to content

fix(maintenance): base reclaim timeout on recent activity - #423

Merged
chonilius merged 1 commit into
MergeFi:mainfrom
charlesedeh021-cell:fix-reclaim-inactivity-window-414
Sep 28, 2026
Merged

chonilius merged 1 commit into
MergeFi:mainfrom
charlesedeh021-cell:fix-reclaim-inactivity-window-414

Conversation

@charlesedeh021-cell

Copy link
Copy Markdown
Contributor

Closes #414
Closes #413
Closes #46

Summary

Corrects the maintenance-pool reclaim inactivity calculation so a new or recently funded pool cannot be reclaimed based on the Unix epoch rather than its actual on-chain activity.

Changes

  • Calculates reclaim eligibility from the most recent withdrawal, pool creation, or the target deposit timestamp.
  • Uses saturating time arithmetic for the inactivity-window boundary.
  • Prevents immediate reclaim of a newly created pool and prevents a late deposit into an old pool from being instantly reclaimable.
  • Keeps the existing reclaim authorization, balance checks, and transfer behavior unchanged.

Scope

This PR is the focused inactivity-window correction. The separate repeated-reclaim safeguard and broader deposit-history work listed above remain independently scoped despite being included for assignment tracking.

Verification

No dependencies were installed and no builds, tests, or CI checks were run, per request.

@vercel

vercel Bot commented Sep 28, 2026

Copy link
Copy Markdown

@charlesedeh021-cell is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@charlesedeh021-cell 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

@chonilius
chonilius merged commit a3cb1c1 into MergeFi:main Sep 28, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment