abi.encodeWithSelector
is used in below files generate calldata for a low-level call. abi.encodeWithSelector
is not type-safe and this method is error-prone and should be considered unsafe.
LibWhitelist function verifyGaugePointSelector
LibEvaluate function getLiquidityWeight
LibTokenSilo function encodeBdvFunction
and LibGauge function calcGaugePoints
Consider replacing all instances of unsafe ABI encoding with abi.encodeCall
. It checks whether the supplied values actually match the types expected by the called function and also avoids errors caused by typos.
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.