seamless-protocol / seamless-interface

https://seamless-interface.vercel.app
Other
7 stars 4 forks source link

Fetch claimable rewards for table #507

Closed WingsDevelopment closed 2 weeks ago

WingsDevelopment commented 3 weeks ago

resolves #504

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
seamless-interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 10:53am
kitanovicd commented 2 weeks ago

One important thing that is forgotten in this PR is to update fetchAssetPriceInBlock function. Currently function returns price of a token in 3 ways:

  1. Try to get it from oracle
  2. Try to get it from coingecko
  3. Calculate equity per share if it is strategy.

There should be one more way. If token is esSEAM we don't have oracle, we don't have cg price and it is not strategy. In that case function should return price of SEAM token. Currently hook does not work for my wallet properly.