Storage reference is passed to a function with a memory parameter. This will not update the storage variable as expected.
we have in the CreditDelegationBranch::_convertAssetsToUsdc
function a parameter which is specified as a memory the path
parameter,
but in the function call in line Line: 447, the 4th argument is declared as storage while the function expects a memory parameter.
that also happens in line Line: 500, with the function CreditDelegationBranch::_convertUsdcToAssets
.
This means that if the path
parameter changes in CreditDelegationBranch::_convertAssetsToUsdc
function or the other one, the storage argument that is passed in the function call will not get changed .
In this case the path
parameter did not change so there is no risk, but in general using storage instaed of memory would be better.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.