-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Problem
Currently we are using the compound historical API to calculate interest sent over time. This requires a single call (potentially more in the future) to the API for each loan transfer event. The API has performed well so far, but I'd prefer if we moved to something faster, more robust, and that we not depend on a 3rd party for certain features to work.
Suggested Solution
Get the historical rate directly from Eth network using the getStorageAt(contract, slot, blockNumber) method. To make this easier, I suggest finding an existing library to help compute the Compound rate directly from contract state, without writing all this logic over again.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed