Missing Zero-Address Validation in Stratax::calculateUnwindParams Can Cause Misconfiguration Reverts
Description:
Stratax::calculateUnwindParams does not validate _collateralToken and _borrowToken before using them in external calls:
If either token parameter is address(0), the function may revert or produce undefined behavior depending on downstream calls (Aave data provider, oracle, IERC20.decimals()).
Impact:
Low. This is mainly an input-sanity / robustness issue that can lead to confusing reverts and operational mistakes, especially when this function is used by frontends or scripts.
Recommended Mitigation:
(Optionally also validate strataxOracle != address(0) if it’s not guaranteed elsewhere.)
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.
The contest is complete and the rewards are being distributed.