From ce307a7f36df544a1f78bbffbd85fc1435d46916 Mon Sep 17 00:00:00 2001 From: realdiganta <47485188+dxganta@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:57:18 +0530 Subject: [PATCH] simpler conversion code --- src/steth/scWETH.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steth/scWETH.sol b/src/steth/scWETH.sol index 933e5df9..4144abe3 100644 --- a/src/steth/scWETH.sol +++ b/src/steth/scWETH.sol @@ -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); }