L2AssetRouter::_ensureTokenRegisteredWithNTV
function is supposed to return the asset Id of the registered token. However, this value is never set and the function is always returning a default bytes32 value.
L2AssetRouter::_ensureTokenRegisteredWithNTV
function is used to get the asset Id corresponding to the token address passed as argument. However, even when the function actually perform some calculations, the returned assetId
variable is never updated. This results in an incorrect return value, causing processes that rely on this data to fail.
Impact: High
Functions that depend on the return value of L2AssetRouter::_ensureTokenRegisteredWithNTV
will always fail.
Likelihood: Medium
Manual Review
Update the assetId
variable after perform the calculations within the function.
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.