oceanprotocol / df-issues

Data Farming issue tracking
0 stars 0 forks source link

Claim & smart-stake. FE & BE #67

Closed trentmc closed 2 years ago

trentmc commented 2 years ago

What

Have a button to be able to claim & re-LP, where the claimed rewards will allocate the rewards into 3-5 pools with predicted best gains, found via optimization.

On implementing

Predicted best gains are wrt to reward function RF = log(stake + offset) + log(vol + offset).

The computation will likely run an optimization algorithm. We can explore ways to make it run super-fast. This means it'll be in python. Expect that it'll run in dftool; though if we can make it lightweight enough, maybe it can be in pyscript in the browser.

TODOs

Notes

This is in df-issues since it involves both FE and BE.

Appendix: What to label the button?

Ideas:

Discussion: