code-423n4 / 2021-11-badgerzaps-findings

0 stars 0 forks source link

Double reading of memory array index inside a loop #64

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pants

Vulnerability details

At IbbtcVaultZap.deposit you read amounts[i] instead of caching it once and using the cached value instead at the second time.

GalloDaSballo commented 2 years ago

The warden must have not read the code, invalid finding

Screenshot 2021-11-17 at 16 42 24
0xleastwood commented 2 years ago

Agree with sponsor, making invalid.