Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 799 Bytes

Variable shadowing from OUSD to ERC20.md

File metadata and controls

24 lines (21 loc) · 799 Bytes

OUSD inherits from ERC20, but redefines the allowances and _totalSupply state variables.

As a result, access to these variables can lead to returning different values.

Recommendation:

Remove the shadowed variables (_allowances and _totalSupply) in OUSD.


Slide Screenshot

135.jpg


Slide Text

  • ToB Audit Origin Dollar Finding 16
  • Undefined Behavior
  • Inheritance
  • Variable Shaodwing
  • Remove Shadowed Variables

References


Tags