F-2024-0014·missing-validation

Consider adding address(0) check for function parameters

Acknowledgedindex-funddefirebalancing
TL;DR

lendToken and collectToken should reject address(0) arguments to avoid silent failures and zero-address bookkeeping issues.

Severity
INFO
Impact
LOW
Likelihood
LOW
Method
MManual review
CAT.
Complexity
LOW
Exploitability
LOW
02Section · Description

Description

WEDXLender::lendToken and WEDXLender::collectToken should validate that their address arguments are not the zero address.

03Section · Recommendation

Recommendation

Consider adding address(0) check on the function parameters.

F-2024-0014

oog
zealynx

Smart Contract Security Digest

Monthly exploit breakdowns, audit checklists, and DeFi security research — straight to your inbox

© 2026 Zealynx