Redundant Fee Check in VaultRouterBranch::deposit
Before transfering `ctx.assetFees` the code checks that it is greter than zero.
However there is no need for this check as it is already handled earlier in the execution:
Unnecessary gas usage: The extra conditional check slightly increases gas consumption.
Manual review
Remove the redundant if (ctx.assetFees > 0)
check before safeTransferFrom
, as ctx.assetFees
is always nonzero when the fee is enforced.
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.