cryptoalgebra
Developer
Categories
AMM
discount
Hooks
beforeSwap
afterSwap

Whitelist Fee Discount

live

Summary

This plugin allows DEXes to set swap fees for the specific set of user addresses on specific pools. When a user with a whitelisted address performs swap a custom static fee is applied.
Custom fee settings can be used to incentivize known actors that perform a big volume of swaps. Fee discount will make swaps more attractive for such actors and will in turn result in bigger swap volume.
By managing the trade-off between volume and fee discount it is possible to reach the point of mutual benefits for both LPs and big traders.

Features

UI-less: this plugin can be configured via direct contract calls by DEX owner or Fee Discount Manager role
Low gas overhead: 17K gas on every swap

Benefits

DEX: DEXes gain the way to incentivise market-maker traders to attract extra volume.
LPs: Liquidity Providers benefit from increased swap volumes that recompense the fees discount on swaps.
Traders: Market-maker traders benefit from reduced swap costs while regular traders do not feel any side effects.

About Algebra Integral

Until now, each DEX had its source code in the form of a single immutable monolith, and updating such architecture required liquidity migration and associated additional expenses.

With the advent of Integral, it became possible to separate the most vulnerable part (liquidity storage) and peripheral functionality modules (e.g. oracles, fee calculation) from each other. Critical functionality of liquidity storage and swap calculations is kept at the unchangeable Core, while peripheral functionality performs as Plugins and can be updated when needed without liquidity migration. This approach allows DEXes to develop faster.

Plugins can be introduced by DEXes themselves or external developers encouraged by the fees to create new Plugins and push the technology forward according to DeFi current trends.