Learn
Technical Architect
Compound Staking Rewards

Compound Staking Rewards

It is also important that we automate the compounding of staking rewards for users. After all, who wants to manually claim staking rewards every block?

To address these needs, we have designed a system that will update the exchange rate and compound staking rewards simultaneously.

Exchange Rate Updating ProcessOsmosisCelestia3. Updates exchange rate Staking Contract2. Transfers TIA back to OsmosisStaker MultisigMilkyWayCoordinator1. Periodically claims staking rewards GranteeLimited AuthorizationMilkyWay's validatorsGrants limited authorizationFull Authorization4. Transfer TIA to the Staker Multisig on Celestia5. Monitor transfers between Celestia & Osmosis6. Stakes across all MilkyWay's validators

Here’s a step-by-step breakdown of what happens in the background:

  1. Claim and Transfer: The Coordinator periodically claims staking rewards on behalf of the users and transfers them back to the Osmosis Staking Contract

  2. Exchange Rate Update: The Staking Contract rebalances the rate based on the above formula.

  3. Auto Compound: Rewards are then staked back to the validators by repeating steps 3–5 in the Staking process.