You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call getPools(). Get a PoolsResponse containing LcdPool[]
The issue is that the received LcdPool[] have properties like pool_assets and not poolAssets. Same for total_weight and pool_params.
So, I have to "clean" my LcdPool[] before using it. With, for example if (pool.pool_params) pool.poolParams = pool.pool_params
Hi,
I got
LcdPool[]
by doing :OsmosisApiClient
getPools()
. Get aPoolsResponse
containingLcdPool[]
The issue is that the received
LcdPool[]
have properties likepool_assets
and notpoolAssets
. Same fortotal_weight
andpool_params
.So, I have to "clean" my
LcdPool[]
before using it. With, for exampleif (pool.pool_params) pool.poolParams = pool.pool_params
Here is
LcdPool
: https://github.com/cosmology-tech/cosmology/blob/main/packages/core/src/types.ts#L284Here is
PoolsResponse
: https://github.com/cosmology-tech/cosmology/blob/main/packages/core/src/clients/osmosis.ts#L21Here is the method
getPools()
ofOsmosisApiClient
: https://github.com/cosmology-tech/cosmology/blob/main/packages/core/src/clients/osmosis.ts#L33Wdyt ?
Thank you for your repo and your time.
The text was updated successfully, but these errors were encountered: