56801 sc insight function burn could be gas optimized
Description
Brief/Intro
Vulnerability Details
// Debt is subject to protocol fee similar to redemptions
_accounts[recipientId].collateralBalance -= convertDebtTokensToYield(credit) * protocolFee / BPS;
TokenUtils.safeTransfer(myt, protocolFeeReceiver, convertDebtTokensToYield(credit) * protocolFee / BPS);
_mytSharesDeposited -= convertDebtTokensToYield(credit) * protocolFee / BPS;Impact Details
References
Proof of Concept
Proof of Concept
Previous58689 sc critical incorrect deduction logic in alchemistv3 redeem may lead to insufficient contract collateralNext57464 sc high incorrect accounting in stargate strategy causes protocol insolvency and user liquidations
Was this helpful?