node icon indicating copy to clipboard operation
node copied to clipboard

`zetacore` [observer]: improve logic in the staking hooks

Open kingpinXD opened this issue 1 year ago • 1 comments

The logic present in the staking hooks , is responsible for removing observers from the observer set , if their stake falls below the minimum required amount https://github.com/zeta-chain/node/blob/develop/x/observer/keeper/hooks.go

This logic can be refactored to make it more readable by abstracting out some of the common logic. We should also add more unit tests to test these functions, including all possible edge cases.

kingpinXD avatar Oct 25 '24 15:10 kingpinXD

Related https://github.com/zeta-chain/node/issues/3803

kingpinXD avatar Jun 30 '25 19:06 kingpinXD