-
Notifications
You must be signed in to change notification settings - Fork 66
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
Ideation: Find ways to allocate and calculate returns for lenders #728
Comments
In progress, just leaving it here for time being
I was looking at the compound implementation where they use CTokens ERC20. |
Some thoughts-
|
on point 1.
|
|
Here is an attempt to calculate returns the qtokens way. Please let me know if you find any mistakes or faulty assumptions. Return rates are dependent on the qtokens and the exchange rate k, for that specific token, at that point of time. |
cc @kevsul |
a minimal script run for the calculation https://gist.github.com/souradeep-das/de89e2b3336d515f59e344f8d85ea26a |
Some points in the scope of this issue to research/explore-
in the future, we could have fee to be only OMG (as a fee input)
The text was updated successfully, but these errors were encountered: