code-423n4 / 2021-12-vader-findings

0 stars 0 forks source link

Returns not assigned value #66

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

xnarus

Vulnerability details

Impact

Returns not assigned value can have influence for caller.

Proof of Concept

https://github.com/code-423n4/2021-12-vader/blob/main/contracts/tokens/USDV.sol#L147

Tools Used

Recommended Mitigation Steps

0xstormtrooper commented 2 years ago

Return values are correct. Return values are assigned if the for loop runs. (0, 0) means there is nothing to claim.