Skip to content

Commit

Permalink
⚡ [G-6] use existing pending obligations to update unlockObligations
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIryna committed May 13, 2024
1 parent 76df9d9 commit fb2a0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strategies/CLeverCVXStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ contract CleverCvxStrategy is ICleverCvxStrategy, TrackedAllowances, Ownable, UU
// total unlock amount already requested
uint256 existingUnlockObligations = unlockObligations;

unlockObligations += amount;
unlockObligations = existingUnlockObligations + amount;
UnlockRequest[] storage unlocks = requestedUnlocks[account].unlocks;

// retrieve an array of locked CVX and the epoch it can be unlocked starting from the next epoch
Expand Down

0 comments on commit fb2a0c7

Please sign in to comment.