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

Influence Token rewards not claimed recently warning #2544

Open
mrbasado opened this issue Apr 6, 2023 · 2 comments
Open

Influence Token rewards not claimed recently warning #2544

mrbasado opened this issue Apr 6, 2023 · 2 comments

Comments

@mrbasado
Copy link
Collaborator

mrbasado commented Apr 6, 2023

Integrate this API https://api.hiddenhand.finance/reward/1/0x3c0989eF27e3e3fAb87a2d7C38B35880C90E63b5 into the app to show if rewards have been claimed yet (showing users that not claimed yet can explain low yields). This ticket needs more explantion and detail before being implemented by @mrbasado and someone who knows the system better

@gosuto-inzasheru
Copy link

lmk what more you need to know. i think doing an initial check onchain for the last time we claimed (eg https://etherscan.io/tx/0xa49c64642abcaf22debcf6359778f00619fe8cb7e43128f3d514cc68e529d6e3) and then stating something like:

  • expected harvest: (last_claim(t) + 14 days)
  • pending harvest (from their api endpoint, see here how we currently process that endpoint into a claim)

note that this api is not suppose to be public, and we are lucky hh lets us use it. if to be used in prod i would therefore suggest to cache it or something, as to not overload the endpoint.

@mrbasado
Copy link
Collaborator Author

we could have the api pinged on a fixed cadence every 5 minutes and have the result saved in the DB to prevent high usage

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

No branches or pull requests

2 participants