Managed Swap Fee
Summary
This plugin lets an external service such as AI Agent, dApp or KYC platform initiate a swap with the custom swap fee that takes effect only for that swap.
With this plugin swap fee can be set per-swap and not just per-address thus giving a great flexibility and enabling many business scenarios.
Setting of custom swap fee is reserved for authenticated addresses and is validated using cryptographic signatures. If a swap is initiated from a non-authorized address the fee calculation falls back to the default pool setting (static fee, dynamic fee, etc).
Features
UI-less: This plugin can be configured via direct contract calls by DEX owner.
Low gas overhead: Approx. 45K gas fees on every swap operation.
Benefits
DEX: DEXes gain the capability for truly advanced scenarios enabled by offchain services.
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.