Closed ehpst closed 3 months ago
@ehpst I have implemented the feature in the feature/rmm-debt-from-smart-contract branch. I recommend utilizing this only for a quicker response or if TheGraph fails to index the blockchain state accurately. Please consider merging this branch only if there is concrete evidence of an issue with TheGraph's indexing.
Update: It's seems that the current TheGraph implementation don't take into account interest. So this one is more accurate
For consistency I also add deposit xDAI amount using the same method.
Update: PR opened to solve the issue #19
Summary/RMM borrow is taken from TheGraph which does not take the most recent value. It would be better to get the value directly from the RMM contract.