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

improvement: handle rate interest #56

Open
azurwastaken opened this issue Sep 18, 2024 · 0 comments
Open

improvement: handle rate interest #56

azurwastaken opened this issue Sep 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@azurwastaken
Copy link
Collaborator

azurwastaken commented Sep 18, 2024

Current Behavior

currently we retrieve computed position amount only once when encountered. This can lead to false negative due to rate interest.

Expected Behavior

Find a way to update position amount over time. No need to update it too frequently because rate impact are not that big.

Possible Solution

  • Find a way to get latest rate_accumulator and nominal_debt from emitted event to compute amount locally and not calling RPC. (Favourite)

or

  • Call get_amount on each indexed position every N seconds/minutes/hours and update them.
@azurwastaken azurwastaken changed the title handle interest improvement : handle rate interest Sep 19, 2024
@akhercha akhercha added the enhancement New feature or request label Sep 26, 2024
@akhercha akhercha changed the title improvement : handle rate interest improvement: handle rate interest Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants