Omniscia Tangible Audit

BasketManager Static Analysis Findings

BasketManager Static Analysis Findings

BMR-01S: Unutilized Code

Description:

The BasketManager::onlyBasket modifier is not utilized in the codebase.

Example:

src/BasketManager.sol
98/// @notice Modifier verifying msg.sender is a valid Basket contract.
99modifier onlyBasket() {
100 require(isBasket[msg.sender], "Caller is not valid basket");
101 _;
102}

Recommendation:

We advise it to be safely omitted.

Alleviation (106fc61dcd38fe29a81d1984ccde9171f5f231af):

The referenced code has been safely omitted as advised.