ShareModule is a core module responsible for managing user interactions with a vault through structured deposit and redeem queues. It provides governance over queue creation, hook configurations, oracle-driven settlement, and fee accounting.
SET_HOOK_ROLE: Grants the ability to modify per-queue and default hook addresses.CREATE_QUEUE_ROLE: Allows creation of new deposit/redeem queues.SET_QUEUE_STATUS_ROLE: Permits pausing/unpausing individual queues.SET_QUEUE_LIMIT_ROLE: Enables setting the max number of total queues.REMOVE_QUEUE_ROLE: Allows safe removal of queues with canBeRemoved() check.ShareModuleStorage)shareManager: Reference to contract handling share minting/burning.feeManager: Reference to contract that calculates fees and stores fee-related data.oracle: Oracle contract providing price data and asset support status.defaultDepositHook / defaultRedeemHook: Global fallback hooks used by default in case custom hooks are not defined.customHooks: Per-queue override for custom hook logic.