bvs-guardrail 2.4.0

SatLayer Bitcoin Validated Service
docs.rs failed to build bvs-guardrail-2.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: bvs-guardrail-2.3.0

BVS Guardrail

BVS Guardrail is a smart contract that serves as a final check for the slashing request before it can be finalized.

Overview

BVS Guardrail implements a voting system based on the CW3 multisig specification and CW4 group membership. It ensures that slashing requests are only finalized if they have been approved by a sufficient number of eligible voters within the specified voting period.

This contract is largely adapted from cw3-flex-multisig and cw4-group implementations.

Usage

The contract is initialized with a set of members (voters) and a threshold configuration that determines how many votes are required for a proposal to pass. Once initialized, authorized members can create and vote on slashing proposals.

Proposals are created when a slashing request is initiated. Members can vote on these proposals within a specified voting period. If the proposal receives enough votes before the voting period ends, it is considered approved and the slashing request can be finalized.