Access List
live
Developer
Categories
KYC
Hooks
#beforeSwap
#beforeFlash
#beforeModifyPosition
#afterInitialize
Summary
The Access List plugin allows a DEX to control how traders interact with the protocol. This is especially important for KYC-compliant implementations.
Whitelisted addresses have full access to all functionality: swaps, flash loans, and adding/removing liquidity. Non-whitelisted addresses are restricted to liquidity removal only, ensuring users can always withdraw their positions even if the access list changes.
The plugin uses tx.origin as the end-user identifier.
Features
- UI-less: The plugin is configured via direct contract calls by the DEX owner or the AccessListManager role.
- Low gas overhead: ~15K gas per swap, mint, or burn operation.