Lucene search

K
code423n4Code4renaCODE423N4:2022-01-OPENLEVERAGE-FINDINGS-ISSUES-62
HistoryJan 27, 2022 - 12:00 a.m.

_supportDexs array length not checked in constructor

2022-01-2700:00:00
Code4rena
github.com
4

Handle

jayjonah8

Vulnerability details

Impact

In OpenLevDelegator.sol an array of _supportDexs is passed to the constructor function and then passed to the delegateTo function but the _supportDexs arrays length is not checked which can result in costly errors.

#Proof of Concept

Tools Used

Manual code review

Recommended Mitigation Steps

Add to constructor: require(_supportDexs.lenght > 0, β€œNo Dexs Founds”);


The text was updated successfully, but these errors were encountered:

All reactions