Omniscia rain protocol Audit

ValueTier Code Style Findings

ValueTier Code Style Findings

VTR-01C: Mathematical Optimization

Description:

The linked subtraction can be performed in an unchecked block as it is guaranteed to never underflow.

Example:

contracts/tier/ValueTier.sol
56return tier_ > TierConstants.TIER_ZERO ? tierValues_[tier_ - 1] : 0;

Recommendation:

We advise this to be done so to optimize its execution cost.

Alleviation:

The linked statement was correctly wrapped in an unchecked code block.