Contracts have to be redeployed if one of the address remains zero upon __init__() calls
Description
While zero address checks in the solidity constructors are now implemented in commit PaladinFinance@d744db8. The Vyper __init__() functions still do not make any checks.
In order to prevent accidents and follow the same pattern, consider to implement zero address checks in the Vyper boost contracts's init functions as well: BoostV2.vy & DelegationProxy.vy.
Github username: @0xfuje Twitter username: 0xfuje Submission hash (on-chain): 0xceb477d9a803d5890656cb33004e9e4f319a0375c842308dc7c2d6ea76a81389 Severity: low
Description:
Impact
Contracts have to be redeployed if one of the address remains zero upon
__init__()
callsDescription
While zero address checks in the solidity constructors are now implemented in commit PaladinFinance@
d744db8
. The Vyper__init__()
functions still do not make any checks.contracts/boost/DelegationProxy.vy
-__init__()
Recommendation
In order to prevent accidents and follow the same pattern, consider to implement zero address checks in the Vyper boost contracts's init functions as well:
BoostV2.vy
&DelegationProxy.vy
.