-
Notifications
You must be signed in to change notification settings - Fork 53
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
Make accrueInterests
public ?
#129
Comments
It was not settled right ? |
Ok added the question label. I thought you were in favor. |
I said that I don't see any significant drawbacks, but we still need to make sure that it's useful in some way. |
Ok mb then |
Because it's already basically available by doing small transactions but in a clunky way, I'm in favor of adding it. The use case for it would be to compound interests more precisely, which may be interesting in some cases (but maybe less relevant with #135) |
Referencing my comment for completeness: #3 (comment). I'll suggest a PR for this ASAP. |
Making |
This comment was marked as outdated.
This comment was marked as outdated.
And it seems it is equivalent to having integrators |
Ah yeah I'll hide my older comment. Seems like I'm wrong. I'll do a little more research on it. |
I’m scarce on context but here is what comes to mind:
|
Juste to recenter the debate on this issue because I think it was not clear enough. The question is more the following: do we want to let people accrue interest by triggering a function without needing to supply/borrow/... ? It seems that #135 fixes the pb for market with few interactions though |
I think an accrue interest function could be very valuable to integrators based on our own experiences with integrating with other lending protocols. Even with my PR, the interest accrued cannot be predetermined exactly without some sort of lens. I think integrators should be able to accrue interest (or have some sort of getter) to ease exact computations for them if they need it. |
Supporting @pakim249CAL's POV, but I'd be ok to extract this to a library which can be embedded into every integrator's bytecode or made external and deployed. EDIT: I read too fast. I now understand that @pakim249CAL suggests to have |
I also agree that it would be useful but I'm less convinced about the need of a getter now. |
So you essentially support #147 right? And we'd suggest integrators that don't want to trigger the public EDIT: I'd like to quantify the gas cost of |
This PR introduced it: #183 |
Based on #3
The text was updated successfully, but these errors were encountered: