Skip to content

feat: also relock locks that expire in the next week - #4

Merged
gosuto-inzasheru merged 2 commits into
mainfrom
feat/relock-expire-in-next-week
Aug 26, 2025
Merged

feat: also relock locks that expire in the next week#4
gosuto-inzasheru merged 2 commits into
mainfrom
feat/relock-expire-in-next-week

Conversation

@gosuto-inzasheru

Copy link
Copy Markdown
Contributor

No description provided.

@0xahtle7 0xahtle7 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It looks good it takes advantage of the fact relocks can happen one week before expiration

Comment thread src/AuraLockerModule.sol
// Relock expired locks if there are any
(, uint256 relockable,,) = AURA_LOCKER.lockedBalances(address(SAFE));
if (relockable > 0) {
// Check if there are any expired locks

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

to avoid repeating code this logic could be in a fn .

@gosuto-inzasheru
gosuto-inzasheru merged commit 99343cd into main Aug 26, 2025
1 check 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.

2 participants