iqlusioninc / liquidity-staking-module

Other
87 stars 29 forks source link

Global Liquid Staking Cap #61

Closed sampocs closed 1 year ago

sampocs commented 1 year ago

Context

As an additional safety measure for liquid staking, this PR introduces a global liquid staking cap. For instance, a cap of 0.3 means only 30% of staked ATOM can be liquid staked. The liquid staking volume is determined by tracking tokenized shares and/or delegations from ICA accounts. The total stake is calculated from the total balance of the Bonded pool.

ADR (courtesy of @riley-stride)

Action Item: There is still 1 small required change to the evidence module to handle tombstoned validators (see ADR/Spec)

Brief Changelog

github-advanced-security[bot] commented 1 year ago

You have successfully added a new CodeQL configuration .github/workflows/codeql-analysis.yml:analyze. As part of the setup process, we have scanned this repository and found 2 existing alerts. Please check the repository Security tab to see all alerts.

faddat commented 1 year ago

moment on this one -- I am going to do a bunch of branch tidying and get this in.

Thank you so much.

faddat commented 1 year ago

@sampocs -- I am not 100% sure about this one.

I think that I may prefer a tax to a cap.

wdyt?

sampocs commented 1 year ago

Moved ADR to #66 so we can include a static link for the proposal