cryptoalgebra
Developer
Categories
AMM
Hooks
beforeSwap
afterFlash
beforePositionModify

Safety Switch

live

Summary

The purpose of Security Trigger Plugin is to add a way of mitigating possible attacks of any form on Integral Dexes.
This is achieved by providing a functionality of stopping a certain pool or all the pools (which have the plugin connected).
Plugin operates with two asymmetrical roles: Guard and Admin. Guard can pause the pool operations while Admin can pause and unpause the pool. When the pool is paused all pool actions are prevented from completion.
This plugin can be utilized manually in the state of emergency. However, its utility is best when combined with on-chain security monitoring platforms like Hexagate. The platform may assume the Guard role and trigger pool pause immediately when detecting the threat. DEX administration may then review the threat and resume operations when the threat is mitigated.

Features

UI-less: this plugin can be configured via direct contract calls by DEX owner or Guard role.
Low gas overhead: approx. 14K gas fees on every swap/burn/mint operation.

Benefits

For DEXes: gaining the way of meaningfully reacting to ongoing threats.
For Security Platforms: gaining direct way to apply threat responses.

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.