Closed code423n4 closed 3 years ago
Disagree with the finding as setting back the value to zero twice should issue a gas refund (this gas refund math has changed recently), cannot accept the finding at face value without some references to the gas math
Handle
cmichel
Vulnerability details
The
CompoundAdapter
approves thecTokenAddress
each timedeposit
is called. It's more gas efficient to approve it only once with the max value -AaveAdapter
is already doing this.