code-423n4 / 2021-04-maple-findings

0 stars 0 forks source link

Unused code #97

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

paulius.eth

Vulnerability details

Vulnerability details

unused variable in Pool contract: uint8 public constant DL_FACTORY = 1; // Factory type of DebtLockerFactory. Also unused event in MapleTreasury contract: event FundsTokenModified(address by, address newFundsToken); Unused code provokes doubts about its intended use.

Recommended Mitigation Steps

Remove unused code to make it more readable and consume less gas.

lucas-manuel commented 3 years ago

Informational, will address

lucas-manuel commented 3 years ago

Not going to address, might need for future DLs