Skip to content

Commit

Permalink
simplify fee conversion (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxganta authored Apr 3, 2023
1 parent 74e0174 commit fb02789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/steth/scWETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ contract scWETH is sc4626, IFlashLoanRecipient {
uint256 fee = profit.mulWadDown(performanceFee);

// mint equivalent amount of tokens to the performance fee beneficiary ie the treasury
_mint(treasury, fee.mulDivDown(C.ONE, convertToAssets(C.ONE)));
_mint(treasury, convertToShares(fee));

emit Harvest(profit, fee);
}
Expand Down

0 comments on commit fb02789

Please sign in to comment.