Settlement modules

learn more about Settlement Modules here

Overview

Within the TurtleShell SDK, the Settlement Modules stand out as a pivotal component, designed to streamline the response mechanism when a security parameter's conditions are met.

A Settlement Module is a specialized contract that every security parameter must be associated with. When the Firewall is triggered for a specific parameter, the prevent function within the associated Settlement Module is invoked. The behavior of this prevent function, as defined in the module, determines the subsequent actions.

Predefined Settlement Modules within the SDK

The TurtleShell SDK offers a suite of pre-configured Settlement Modules, each tailored for a specific response mechanism. These modules are:

  1. BlockSettlementModule.sol: This module is designed to block the transaction or operation that caused the triggering of the Firewall. It serves as an immediate halt to any suspicious or unauthorized activity.

  2. FreezeSettlementModule.sol: The Freeze module, when invoked, restricts any movement of specific funds or assets. This is particularly useful when a transaction involves a suspicious withdrawal or transfer, ensuring that the funds remain stationary until further investigation or resolution.

  3. PauseSettlementModule.sol: Opting for the Pause module means that the entire protocol or specific operations within it will be temporarily halted. This is a broader measure, ensuring that no further transactions or activities can take place until the issue is addressed.

Ease of Integration

One of the standout features of these Settlement Modules is their ready-to-use nature. Each module is pre-coded, eliminating the need for protocols to develop them from scratch. Protocols can simply deploy their chosen module and link its address to their security parameter configuration. This not only saves time but also ensures that the response mechanisms are based on tried and tested logic.

Last updated