Hardcoded magic value
Pyth.sol
contains two instances of the hardcoded literal 0x50325748
.
We suggest creating a constant literal such as
// Comment explaining what this magic value is
uint32 constant PYTH_MAGIC = uint32(bytes4("P2WH"));
Pyth.sol
contains two instances of the hardcoded literal 0x50325748
.
We suggest creating a constant literal such as
// Comment explaining what this magic value is
uint32 constant PYTH_MAGIC = uint32(bytes4("P2WH"));