Skip to content

Remove the workaround for the (non-existent) TimelockManager bug#305

Merged
bbenligiray merged 1 commit intomainfrom
remove-timelock-workaround
Jul 7, 2021
Merged

Remove the workaround for the (non-existent) TimelockManager bug#305
bbenligiray merged 1 commit intomainfrom
remove-timelock-workaround

Conversation

@bbenligiray
Copy link
Copy Markdown
Member

The current implementation has a workaround that ensures that releaseStart<releaseEnd, based on the concern that if we are past releaseEnd when withdrawToPool() is called, this line will cause the transferred timelock to have a larger releaseStart than releaseEnd.

This concern is invalid, as if now>=releaseEnd, the entire timelock will be unlocked, resulting in timelocked being 0 and the offending line not being reached. In other words, TimelockManager.sol has no issue that needs to be worked around, so the related "fix" can be reverted. This shouldn't affect how things work in practice.

@bbenligiray bbenligiray requested a review from Ashar2shahid July 6, 2021 16:59
@bbenligiray bbenligiray self-assigned this Jul 6, 2021
Copy link
Copy Markdown
Contributor

@Ashar2shahid Ashar2shahid left a comment

Choose a reason for hiding this comment

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

Everything looks good

@bbenligiray bbenligiray changed the title Remove the workaround for the (non-existant) TimelockManager bug Remove the workaround for the (non-existent) TimelockManager bug Jul 7, 2021
@bbenligiray bbenligiray merged commit 0b8bb17 into main Jul 7, 2021
@bbenligiray bbenligiray deleted the remove-timelock-workaround branch July 7, 2021 09:33
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