Functions related to removal of collateral and asset does not check for from != to.
Important function removeCollateralNative
, removeCollateral
and removeAsset
does not have any check to prevent Owner from transferring funds to himself.
removeCollateralNative
, removeCollateral
and removeAsset
functions are only callable by the owner of the contract which can be lead to loss of funds for stakers, as these function can be used by owner to transfer all asset to himself.
Manual code review
The recommendation is made for all three functions removeCollateralNative
, removeCollateral
and removeAsset
of SmartVaultV3
to have check for preventing the owner to set himself as the recipient of collateral and asset when removing them.
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.