Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: high
Invalid

Return value of the function call is not checked, CreditDelegationBranch.sol

Summary

Function rebalanceVaultsAssets returns value is ignored.

Vulnerability Details

When function executeSwapExactInputSingle will execute should returns a value, however the code is not checking for that value.

If the swap fails or return 0 the contract will continue, which can lead to incorrect calculations.

dexSwapStrategy.executeSwapExactInputSingle(swapCallData);

Impact

Wrong calculation

Tools Used

Manual review

Recommendations

Check for return value.

uint256 amountReceived = dexSwapStrategy.executeSwapExactInputSingle(swapCallData);
require(amountReceived > 0, "Swap failed or returned zero amount");
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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