[G-01] Tier removal check is not necessary in JBTiered721DelegateStore.recordAddTiers
Description
A tier is considered removed if the bit in the _isTierRemoved bitmap is set accordingly. The function JBTiered721DelegateStore.recordAddTiers adds new tiers and sorts them by contributionFloor, no matter if a tier is removed or not. Therefore, the _isTierRemoved bitmap reads are unnecessary and can be safely removed.
Table of Contents
JBTiered721DelegateStore.recordAddTiers
[G-01] Tier removal check is not necessary in
JBTiered721DelegateStore.recordAddTiers
Description
A tier is considered removed if the bit in the
_isTierRemoved
bitmap is set accordingly. The functionJBTiered721DelegateStore.recordAddTiers
adds new tiers and sorts them bycontributionFloor
, no matter if a tier is removed or not. Therefore, the_isTierRemoved
bitmap reads are unnecessary and can be safely removed.Findings
JBTiered721DelegateStore.sol#L724-L725\ JBTiered721DelegateStore.sol#L717
Recommended mitigation steps
Consider removing the
_isTierRemoved
bitmap reads.