Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 976 Bytes

Return value is not used for `TokenUtils.withdrawTokens`.md

File metadata and controls

22 lines (19 loc) · 976 Bytes

The return value of TokenUtils.withdrawTokens which represents the actual amount of tokens that were transferred is never used throughout the repository. This might cause discrepancy in the case where the original value of _amount was type(uint256).max.

Recommendation:

The return value can be used to validate the withdrawal or used in the event emitted


Slide Screenshot

106.jpg


Slide Text

  • ConsenSys Audit DeFi Saver Finding 5.10
  • Error Checking
  • Unchecked Return Value Transferred Tokens
  • Check Return Value

References


Tags