Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Interfluid staking sub-component tracking #705

Closed
1 of 11 tasks
ValarDragon opened this issue Jan 3, 2022 · 1 comment
Closed
1 of 11 tasks

WIP: Interfluid staking sub-component tracking #705

ValarDragon opened this issue Jan 3, 2022 · 1 comment

Comments

@ValarDragon
Copy link
Member

ValarDragon commented Jan 3, 2022

Interfluid staking is allowing a user to use their OSMO <> $A token LP shares, and stake both the osmo component and $A component of their LP shares.

For a v1, I suggest we have all validators get the same reward rate per unit stake, and punt distinct reward rates per validator to a v2. (We can easily account for commission) This is fine because all cosmos chains atm have validator rewards only differ in proposer bonus of inflation minting' (centralizing), and tx fees (negligible impact atm).

I also suggest all delegation rewards getting distributed on Osmosis. Doing delegation rewards on the other chain requires very high cross-chain communication complexity. We can extend our airdrop tooling to make this easier for folks.

We should make two new modules, x/interfluid_staking that chain A uses, and x/interfluid_custodian that Osmosis uses.

Subset of steps needed:

  • IBC communications
    • Get all of chain A's active validators over IBC.
      • Needs moniker + valoperaddress + commission
    • Make a hook on every slash tx to create an IBC packet to Osmosis.
    • Need to figure out how general data communication is supposed to work over IBC
    • Need to figure out how to communicate Chain A's interfluid version. (As we have to be backwards compatible with old interfluid versions)
    • Communicate delegation amounts changing (only needed for each validator)
    • Send delegation rewards over IBC at some regular cadence. (Perhaps having epochs module integrated in x/interfluid_staking)
    • Cross-chain governance voting (split votes, using interchain accounts)
  • Elongate an existing lockup #711
  • Token-minting safety checks for x/interfluid_staking (As we are intending to repeat the design of superfluid_staking)
  • Adapting bank supply and token supply queries accordingly
@ValarDragon
Copy link
Member Author

Going to close this, mesh security changes the architecture we'd use for interfluid staking

@github-project-automation github-project-automation bot moved this from Todo 🕒 to Done ✅ in Osmosis Chain Development Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant