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.