Token-0x

First Flight #54
Beginner FriendlyDeFi
100 EXP
Submission Details
Impact: high
Likelihood: high

Incorrect Assembly Shift Parameter Order

Author Revealed upon completion

H-1: Incorrect Assembly Shift Parameter Order

Example: shl(shifted, 4) will shift the right constant 4 by a bits. The correct order is shl(4, shifted).

8 Found Instances
  • Found in src/helpers/ERC20Internals.sol Line: 43

    mstore(0x00, shl(224, 0xe602df05))
  • Found in src/helpers/ERC20Internals.sol Line: 48

    mstore(0x00, shl(224, 0x94280d62))
  • Found in src/helpers/ERC20Internals.sol Line: 95

    mstore(0x00, shl(224, 0x96c6fd1e))
  • Found in src/helpers/ERC20Internals.sol Line: 101

    mstore(0x00, shl(224, 0xec442f05))
  • Found in src/helpers/ERC20Internals.sol Line: 119

    mstore(0x00, shl(224, 0xe450d38c))
  • Found in src/helpers/ERC20Internals.sol Line: 137

    mstore(0x00, shl(224, 0xec442f05))
  • Found in src/helpers/ERC20Internals.sol Line: 161

    mstore(0x00, shl(224, 0x96c6fd1e))
  • Found in src/helpers/ERC20Internals.sol Line: 195

    mstore(0x00, shl(224, 0xfb8f41b2))

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!