DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: medium
Invalid

Error in the Deployedbalance function Calculation

Vulnerability Details

The current calculation does not reflect the full scope of the deployed balance. An accurate deployed balance should represent the total assets deposited into the system, adjusted for withdrawals and yield interest.

Here is the calculation as coded in the function

transmuter.getUnexchangedBalance(address(this)) + underlying.balanceOf(address(this)) + asset.balanceOf(address(this));
}

Recommendations

The balanceDeployed function should be updated to include the exchanged balance in its calculation. The deployed balance formula should be revised to:

Deployed Balance = Total Assets Deposited - (Total Withdrawn - Yield Interest)

This adjustment will ensure the deployed balance accurately represents all asset states, including the exchanged balance.

Updates

Appeal created

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.