Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/leverage: frontend summary query #893

Closed
toteki opened this issue May 11, 2022 · 0 comments · Fixed by #894
Closed

x/leverage: frontend summary query #893

toteki opened this issue May 11, 2022 · 0 comments · Fixed by #894

Comments

@toteki
Copy link
Member

toteki commented May 11, 2022

Frontend team is considering the possibility of combined queries that streamline some of the traffic on the frontend.

If implemented directly like the other queries (rather than in some middleware), it would likely resemble:

https://api.poke.umeemania-1.network.umee.cc/umee/leverage/v1beta1/front_end_summary?denom=ibc/<denom>

{
  "exchange_rates": [
    {
      "denom": "ATOM",
      "amount": "14.001388914790883104"
    }
  ]
"lend_APY": "0.023353603293602098", // lend APY
"borrow_APY": "0.087485408130324650", // borrow APY
"market_size_usd": "16840428.406458300000000000", //marketSize USD
"amount": "64266663653122" // availableBorrow
}

Original issue: https://github.com/umee-network/umee-v1-client/issues/434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant