Technical Architect
Staking Process

Staking Process

A crucial aspect of any Liquid Staking project is the staking process. For MilkyWay, the system is designed to be both efficient and secure.

OsmosisCelestia1. Liquid Stake TIA2. Mints milkTIA based on exchange rateLiquid Staking ProcessUserStaking Contract4. Deposit TIA to the Staker Multisig on CelesiaStaker MultisigMilkyWayCoordinator5. Monitor transfers between Celestia & Osmosis6. Stakes across all MilkyWay's validatorsGranteeLimited Authorization3. Sends milkTIAMilkyWay's validatorsGrants limited authorizationFull Authorization

Here’s a step-by-step breakdown of the procedure:

  1. Initiation: When a user stakes TIA on MilkyWay — the TIA is transferred from Celestia to Osmosis via IBC, then deposited into a CosmWasm Staking Contract.

  2. Calculation and Minting: The contract calculates the amount of milkTIA to provide based on TIA’s exchange rate. It then mints milkTIA and provides the user with milkTIA as a tokenized representation of the staked TIA coin. The milkTIA is sent to the user’s Osmosis account.

Sounds simple and familiar right? Now the user can use the milkTIA for other DeFi activities. But actually MilkyWay’s job continues when the user is merrily checking out various milkTIA usage options on our upcoming Discovery page.

  1. IBC Transfer Message: The contract then sends the user’s TIA from Osmosis to the Staker Multisig on Celestia.

  2. Monitoring: The Coordinator tracks funds moving from Osmosis to Celestia for MilkyWay transactions.

  3. Stake: The Coordinator stakes uniformly across all MilkyWay’s validators on Celestia using the Grantee’s account.