Now that we have looked into the underlying mechanism of how Cosmos Ecosystem works and what it does rely on. We'll move into a sub-system of Cosmos which is Osmosis. Osmosis works on built key concepts of Cosmos. Osmosis extends its functionalities and so it's name from Cosmos-is. Anyways ,Osmosis also heavily believes in preserving it's sovereignty and heterogeneity and you'll see them echoed in ever feature.
Osmosis is an automated market maker (AMM) built with the Cosmos SDK; it specializes in the InterchainDeFi movement (Tendermint-based blockchains) in the Cosmos ecosystem. In other words, Osmosis is a decentralized exchange specifically built for Cosmos, seeking to extend to more blockchains. Osmosis Lab is founded by Sunny Aggarwal and Josh Lee. Osmosis Lab is where all the Osmosis takes place. Osmosis Lab is a Defi Dapp providing multiple functionalities to the user.
Anyone who transacts on the chain will pay the fees. The fees are subjected to change and depends on computational storage and costs. The fees are distributed among OSMO stakers and validators operators.
Anyone who swaps fees on DEX will pay swap fees which are determined by each liquidity pool’s parameters and trade size.
Liquidity providers are obliged to pay exit fees when they pull their liquidity out of pool. The LP shares are then burned, and the value is distributed to the remaining liquidity providers.
Osmosis Key Features:
1. Setting up and funding Keplr account:
To use this functionality of the dapp you will have to connect supported Cosmos Ecosystem web3 wallet which is Keplr,a google chrome extension. Unfortunately, there is no Keplr extension for Firefox at this time. The same way we fund ether to Ropsten test network in Meta mask we will also need to fund our wallet with some $ATOM.
2. Creating a Keplr account:
Those who are familiar with meta mask know how things will work out when creating a wallet. You will be given 12 or 24 word mnemonic seed phrase. Choose an account name and set a strong password. The seed phrase is the key to accessing your assets within the wallet, and is what you’ll need to restore access to your wallet should you lose it for any reason, for example, if you lost your password or computer. The security should be your top concern especially in crypto wallets.If you have a Ledger hardware wallet you can connect it and use Keplr for interacting with dApps. This keeps the seed phrase hidden within a secure element on the device and requires you to physically approve each transaction by pressing a button. You can find a Medium article explaining how to do it here.
3.Deposit $ATOM to your Keplr wallet:
So now our wallet is setup it is ready to receive some $ATOM. Using Binance or Kraken we can easily buy some $ATOM and withdraw using Keplr.
Make sure Cosmos is selected from the drop-down menu at the top of Keplr. Under the account name you chose earlier, click to copy your wallet address beginning with cosmic... When withdrawing from your preferred CEX, paste this address into the Recipient form. The $ATOM should appear in your Keplr wallet within a few minutes.
Go to Assets:
4. Transfer funds to your Osmosis Chain Wallet via the Osmosis Dapp
Navigate down to Cosmos Hub — ATOM and click on Deposit.
Enter the desired amount of $ATOM, click Deposit, and approve the transaction in Keplr. The $ATOM will be transferred to your Osmosis Keplr wallet as a result of this action. I'd suggest keeping a little sum of $ATOM in your Cosmos wallet for future gas purchases.
Go to Trade:
5. Swap some $ATOM for $OSMO
You can use the swap function to receive some $OSMO tokens now that you have some $ATOM in your Osmosis wallet. Because this is an Osmosis chain, you'll need $OSMO to pay for gas each time a transaction is completed. However, if you don't have any $OSMO to pay for petrol, you can set Fee to Low and the exchange will be completed for free. On the left, click Trade. Select From ATOM, To OSMO (if they're in the wrong order, just click the up and down arrows in between them to rearrange their locations). If you want to provide liquidity, you'll need to have the right token-to-pool ratio. You can supply liquidity to any of the various pools, but for the purposes of this lesson, we'll use the ATOM/OSMO pool, which has been incentivized. Enter half of your ATOM tokens, which will be replaced with an equal number of OSMO tokens, and then click Swap. Wait for the transaction to finish before confirming it. Your Osmosis wallet will now include some OSMO tokens. Returning to Keplr, you should be able to see how much OSMO you have if you pick Osmosis from the drop down menu that previously showed Cosmos.
Go to Pools, and select Pool#1 ATOM/OSMO.
6. Pool and bond tokens to start receiving rewards and Pool $ATOM and $OSMO
Now that you have an equal amount of both $ATOM and $OSMO, you can combine them into the 50/50 ATOM/OSMO pool to earn trading fees and LP rewards.
Click Add Liquidity after entering the amount of $ATOM you have, which will populate an equal amount of $OSMO. I wouldn't propose pooling all of your $OSMO because you'll need some cash to pay for petrol. While you can make swaps for free by setting the gas fee to a low value, I've found that doing so when increasing or reducing liquidity can lead to failure. You should now see the value of your LP tokens under My Liquidity once the transaction is complete.
— You can obtain incentives by bonding your LP tokens.
You must bond your LP tokens for a set length of time before you can start collecting LP rewards. Bonding means that if you want to withdraw your pooled tokens, you must first make a withdrawal and then wait the length of time you bonded for your tokens to unlock. During this time, you'll continue to collect LP rewards.
On the right side of the Pool#1 page, click Start Earning.
Select the length of time you want to bind your LP tokens. The longer you bond, the greater your APR (annual percentage rate). These benefits are provided once a day in $OSMO and are currently extremely generous. To enter all of your LP tokens, click Max, then Bond, authorise the transaction, and wait for it to finish. On the pool page, the value you've locked should now appear under Bonded.
Osmosis requires liquidity providers to bind their tokens and distributes rewards in epochs rather than in a linear fashion (the timer for which is clearly visible). Farmers selling their tokens as they earn them would normally put steady downward pressure on the price of $OSMO, therefore this incentivizes longer-term investing. It also prevents price drops from cascading because panic sellers must wait until their tokens are unbonded, giving the market time to recover.
Unlike most DEXs, which require manual claiming, your liquidity incentives are paid straight into your Keplr wallet. To compound your gains, go back to Osmosis once a day and sell half of your earned $OSMO to the asset you want to pool it with, then repeat steps 4 and 5 to add this to your bonded liquidity. This will result in a large rise in the amount of interest you earn over a period of time.
Osmosis is a brand-new AMM and DEX with a lot of promise. It's the first time that anybody has heard of such in the Cosmos ecosystem that allows for such smooth cross-chain trading. The first reward period has yet to end, but close to $30 million TVL has already been pooled, demonstrating the high demand for DeFi applications among holders of Cosmos-based blockchain assets.
As additional liquidity enters each pool and the incentives are spread among a larger number of participants, the interest that can be earned as an LP (as high as 5,400 percent APY) will decrease in the following days and weeks. It pays to be early in many things, especially in crypto. Osmosis is stepping up the game and it would not be wrong to say that it has already become a game changer in the field of crypto.