elys-network / elys

Elys Network is the first All-In-One DEFI platform to join the Atom Economic Zone, backed by Informal Systems and the Cosmos Hub. Built on Cosmos and CometBFT, leveraging the latest blockchain technologies to provide a premier user experience. Visit our official site at https://elys.network
https://elys.network
Apache License 2.0
65 stars 52 forks source link

[LeverageLp]: add position usd value #764

Closed cryptokage1996 closed 2 months ago

cryptokage1996 commented 2 months ago

add a new field in query elys.leveragelp.queryPositionsForAddress for the USD amount of the position

https://elys.atlassian.net/browse/DEV-1695

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 42.42%. Comparing base (2667e71) to head (782f18c). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #764 +/- ## ======================================= Coverage 42.42% 42.42% ======================================= Files 628 628 Lines 20457 20458 +1 ======================================= + Hits 8679 8680 +1 Misses 10772 10772 Partials 1006 1006 ``` | [Components](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | Coverage Δ | | |---|---|---| | [leveragelp_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `82.84% <ø> (ø)` | | | [leveragelp_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `88.29% <ø> (ø)` | | | [leveragelp_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `48.35% <ø> (ø)` | | | [leveragelp_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `19.28% <ø> (ø)` | | | [accountedpool_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `100.00% <ø> (ø)` | | | [accountedpool_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [accountedpool_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `68.42% <ø> (ø)` | | | [amm_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `57.93% <ø> (ø)` | | | [amm_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `79.16% <ø> (ø)` | | | [amm_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `61.13% <ø> (ø)` | | | [amm_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `29.94% <ø> (ø)` | | | [assetprofile_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `78.82% <ø> (ø)` | | | [assetprofile_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [assetprofile_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `83.33% <ø> (ø)` | | | [assetprofile_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `47.41% <ø> (ø)` | | | [burner_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `0.00% <ø> (ø)` | | | [burner_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [burner_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `100.00% <ø> (ø)` | | | [burner_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `63.54% <ø> (ø)` | | | [clock_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `30.00% <ø> (ø)` | | | [clock_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [clock_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `76.92% <ø> (ø)` | | | [clock_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [commitment_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `48.95% <ø> (ø)` | | | [commitment_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [commitment_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `19.60% <ø> (ø)` | | | [commitment_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `9.33% <ø> (ø)` | | | [epochs_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [epochs_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `100.00% <ø> (ø)` | | | [epochs_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `81.81% <ø> (ø)` | | | [epochs_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `85.71% <ø> (ø)` | | | [estaking_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `48.64% <ø> (ø)` | | | [estaking_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `71.23% <ø> (ø)` | | | [estaking_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `63.05% <ø> (ø)` | | | [estaking_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `55.31% <ø> (ø)` | | | [incentive_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `0.00% <ø> (ø)` | | | [incentive_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [incentive_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `0.00% <ø> (ø)` | | | [incentive_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [masterchef_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `63.63% <ø> (ø)` | | | [masterchef_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `73.75% <ø> (ø)` | | | [masterchef_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `89.47% <ø> (ø)` | | | [masterchef_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `45.97% <ø> (ø)` | | | [oracle_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `30.00% <ø> (ø)` | | | [oracle_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `0.00% <ø> (ø)` | | | [oracle_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `63.88% <ø> (ø)` | | | [oracle_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `34.95% <ø> (ø)` | | | [parameter_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `15.11% <ø> (ø)` | | | [parameter_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [parameter_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `75.00% <ø> (ø)` | | | [parameter_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `60.00% <ø> (ø)` | | | [stablestake_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `73.91% <ø> (ø)` | | | [stablestake_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `75.00% <ø> (ø)` | | | [stablestake_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `71.42% <ø> (ø)` | | | [stablestake_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `13.04% <ø> (ø)` | | | [tier_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `28.57% <ø> (ø)` | | | [tier_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `100.00% <ø> (ø)` | | | [tier_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `90.47% <ø> (ø)` | | | [tier_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `22.50% <ø> (ø)` | | | [tokenomics_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `72.32% <ø> (ø)` | | | [tokenomics_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [tokenomics_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `83.33% <ø> (ø)` | | | [tokenomics_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `70.96% <ø> (ø)` | | | [transferhook_transactions](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [transferhook_lifecycle](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `∅ <ø> (∅)` | | | [transferhook_keeper](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `100.00% <ø> (ø)` | | | [transferhook_queries](https://app.codecov.io/gh/elys-network/elys/pull/764/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=elys-network) | `60.00% <ø> (ø)` | |
cosmic-vagabond commented 2 months ago

@cryptokage1996 can you share some test results in comment here thanks

cryptokage1996 commented 2 months ago

@cryptokage1996 can you share some test results in comment here thanks

elysd q leveragelp get-positions --limit 10 --reverse
pagination:
  next_key: FP//IHSVyrNtMx3LU/piXxdnFF2UAAAAAAAAPZM=
  total: "0"
positions:
- position:
    address: elys1llll3p0zvykqhxtqhlfw4qu6p9llrxrgskhx0z
    amm_pool_id: "4"
    collateral:
      amount: "194200"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "234539"
    leverage: "1.100000000000000000"
    leveraged_lp_amount: "324406279695491059"
    liabilities: "0"
    position_health: "10.990820512820512821"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "214068"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1llll3p0zvykqhxtqhlfw4qu6p9llrxrgskhx0z
    amm_pool_id: "2"
    collateral:
      amount: "214900"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "215911"
    leverage: "1.100000000000000000"
    leveraged_lp_amount: "320336627582651552"
    liabilities: "0"
    position_health: "10.760012964763624577"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "232899"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1llll3p0zvykqhxtqhlfw4qu6p9llrxrgskhx0z
    amm_pool_id: "5"
    collateral:
      amount: "91000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "129800"
    leverage: "1.100000000000000000"
    leveraged_lp_amount: "78157517208674003"
    liabilities: "0"
    position_health: "9.596347331583552056"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "87249"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1lllj0q7a0d4hqg0dt7umjtcnfg9lk9x2xswh2m
    amm_pool_id: "2"
    collateral:
      amount: "52000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "99670"
    leverage: "1.700000000000000000"
    leveraged_lp_amount: "115987101305482367"
    liabilities: "0"
    position_health: "2.305073631867981749"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "84328"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1lllj0q7a0d4hqg0dt7umjtcnfg9lk9x2xswh2m
    amm_pool_id: "4"
    collateral:
      amount: "117000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "83220"
    leverage: "1.100000000000000000"
    leveraged_lp_amount: "195983847012251436"
    liabilities: "0"
    position_health: "11.035207075431584318"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "129325"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1lllj0q7a0d4hqg0dt7umjtcnfg9lk9x2xswh2m
    amm_pool_id: "5"
    collateral:
      amount: "2055000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "64217"
    leverage: "1.400000000000000000"
    leveraged_lp_amount: "2352907888468956596"
    liabilities: "0"
    position_health: "3.212467868491487409"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "2626616"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1llljqay4e2ek6vcaedfl5cjlzan3ghv597l59z
    amm_pool_id: "6"
    collateral:
      amount: "600000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "60527"
    leverage: "1.700000000000000000"
    leveraged_lp_amount: "1035910779989163168"
    liabilities: "0"
    position_health: "2.400275960509099560"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "964680"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1llljqay4e2ek6vcaedfl5cjlzan3ghv597l59z
    amm_pool_id: "5"
    collateral:
      amount: "2000000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "55803"
    leverage: "1.500000000000000000"
    leveraged_lp_amount: "2393026781554085971"
    liabilities: "0"
    position_health: "2.665938528139388980"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "2671402"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1llljqay4e2ek6vcaedfl5cjlzan3ghv597l59z
    amm_pool_id: "2"
    collateral:
      amount: "500000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "47412"
    leverage: "2.300000000000000000"
    leveraged_lp_amount: "1395963869360031133"
    liabilities: "0"
    position_health: "1.767783076923076923"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "1014927"
  updated_leverage: "1.000000000000000000"
- position:
    address: elys1llljqay4e2ek6vcaedfl5cjlzan3ghv597l59z
    amm_pool_id: "4"
    collateral:
      amount: "6220000"
      denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    id: "42059"
    leverage: "1.700000000000000000"
    leveraged_lp_amount: "15742474232626436335"
    liabilities: "0"
    position_health: "2.370525779492168703"
    stop_loss_price: "0.000000000000000000"
  position_usd_value: "10388074"
  updated_leverage: "1.000000000000000000"