code-423n4 / 2021-06-pooltogether-findings

0 stars 0 forks source link

_depositToAave always returns 0 #80

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

pauliax

Vulnerability details

Impact

contract ATokenYieldSource function _depositToAave returns 0 if successful. However, this value is not checked nor used anywhere. As this function is internal it would probably be better to remove this unnecessary return to save some gas and eliminate confusion.

Recommended Mitigation Steps

refactor function _depositToAave to return void.

PierrickGT commented 3 years ago

PR: https://github.com/pooltogether/aave-yield-source/pull/15