osmosis-labs / mesh-security

Other
62 stars 8 forks source link

Support multiple slash ratios #151

Closed maurolacy closed 10 months ago

maurolacy commented 11 months ago

In Cosmos based blockchains there are typically two slash ratios, one slashing for being offline, and another for double signing.

Let's add support for those on the Provider. This is already required by the current slashing during jailing impl (https://github.com/osmosis-labs/mesh-security/blob/331ace589c0b693de075368e5875777e9d15fcda/contracts/provider/external-staking/src/contract.rs#L499).