Liquidity Providers
How to LP in squared asset pools
Last updated
How to LP in squared asset pools
Last updated
Providing liquidity into squared asset pools is very similar to providing liquidity in standard pools.
The only differences being you must first mint some squared asset, e.g. sqOSMO, before you can LP. However, in addition to the normal benefits of being an LP you also gain exposure to the underlying^1.5.
In order to LP users must:
Mint squared asset
Provide liquidity into the pool
Here we show users how to do this using [`osmosisd`](https://docs.osmosis.zone/osmosis-core/osmosisd/).
In order to mint squared asset we should:
Calculate the value of exposure we want
Decide on a collateralisation ratio (must be greater than 150%)
Mint the squared asset
If price of OSMO is 0.5 and we want to have an sqOSMO exposure of $500 then we can calculate the amount of sqOSMO we should mint:
Where SF
is an oracle scale factor and NF
the normalisation factor.
Thus in order to have a collateralisation ratio of 200% we should provide 2000 OSMO.
This could be achieved using the following command:
Having minted sqOSMO we now can deposit it in the relevant LP pool. Prior to depositing we must decide on the boundaries of the ticks between which we will deposit.
Given an OSMO price again of 0.5 the mark price of sqOSMO would be:
Note: as sqOSMO is the base asset in the pool we need to perform the calculation for the inverse price, i.e. 1/20000 = 0.00005.
Thus to provide liquidity across a range of 16,600
to 25,000
we should use the input of the inverse price for the calculation of the ticks -40000000
and -42000000
respectively.
This would be achieved using the command:
Having minted a squared asset and provided liquidity in the relevant pool you can validate you position has successfully been created: