Hooks
Learn how Lotus hooks execute custom validation logic after supply, borrow, and withdraw operations, including AllowlistHook and BorrowHealthGuardHook.
When Hooks Fire
sequenceDiagram
participant User
participant Lotus
participant Hook
User->>Lotus: supply()
Lotus->>Lotus: Accrue interest, mint shares
Lotus->>Hook: afterSupply(SupplyParams)
Hook->>Hook: Custom logic (e.g. check allowlist)
Hook-->>Lotus: Return selector (success)
Lotus->>Lotus: Transfer tokens
Lotus-->>User: Return (assets, shares)Available Hook Points
Production Hooks
How Hooks Are Configured
See Also
Last updated

