Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Feb 2, 2024
1 parent d9310cd commit db8bce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TokenizedStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ contract TokenizedStrategy {

// We need to get the equivalent amount of shares
// at the current PPS before any minting or burning.
sharesToLock = _convertToShares(S, profit);
sharesToLock = _convertToShares(S, profit, Math.Rounding.Down);

// Cache the performance fee.
uint16 fee = S.performanceFee;
Expand Down Expand Up @@ -1174,7 +1174,7 @@ contract TokenizedStrategy {
// Cannot burn more than we have.
S.balances[address(this)],
// Try and burn both the shares already unlocked and the amount for the loss.
_convertToShares(S, loss) + sharesToBurn
_convertToShares(S, loss, Math.Rounding.Down) + sharesToBurn
);
}

Expand Down

0 comments on commit db8bce6

Please sign in to comment.