Skip to content

Commit

Permalink
mitigation
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Sep 4, 2024
1 parent d5b760c commit ae59c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/p1/StRSR.sol
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,9 @@ abstract contract StRSRP1 is Initializable, ComponentP1, IStRSR, EIP712Upgradeab
index = queue.length;

uint192 oldDrafts = index != 0 ? queue[index - 1].drafts : 0;
uint64 lastAvailableAt = index != 0 ? queue[index - 1].availableAt : 0;
uint64 lastAvailableAt = index != 0 && firstRemainingDraft[draftEra][account] < index
? queue[index - 1].availableAt
: 0;
availableAt = uint64(block.timestamp) + unstakingDelay;
if (lastAvailableAt > availableAt) {
availableAt = lastAvailableAt;
Expand Down

0 comments on commit ae59c81

Please sign in to comment.