Omniscia Beanstalk Audit

BeanDibbler Code Style Findings

BeanDibbler Code Style Findings

BDR-01C: Deprecated Representation Style

TypeSeverityLocation
Code StyleBeanDibbler.sol:L21

Description:

The linked code contains the representation of the maximum value of a uint32 in the 2**32 - 1 format which has been officially deprecated and no longer compiles in recent pragma versions.

Example:

protocol/contracts/farm/facets/FieldFacet/BeanDibbler.sol
21uint32 private constant MAX_UINT32 = 2**32-1;

Recommendation:

We advise the type(uint32).max standardised representational style to be utilised instead.

Alleviation:

The variable no longer exists in the codebase rendering this exhibit nullified.