-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
feat: update Reserve adapter to dynamically fetch TVL #5408
Conversation
The adapter at projects/reserve exports TVL:
|
@larrythecucumber321 thanks for the PR, I updated it to cache logs and blacklisted RSR from being counted towards tvl |
Thank you for the upgrades @g1nt0ki 🙏 I was wondering if it would be possible to remove RSR from the blacklist, because users stake it to provide insurance for the protocol, just like how AAVE is used for that purpose (and I see it's being counted towards TVL). |
sorry, we are more strict/conservative when it comes to CDP, for example: in the daI-USDC arrakis LP of collateral, we only count the USDC part, same for curve LP with FRAX in it for FRAX |
Thanks for that explanation. Would RSR staking be more appropriate under the |
yup, that is correct |
hope this is correct: 15520b2 |
This implementation relies on listening for the deployer contract's
RTokenCreated
event to populate theowners
array. The relevant tokens are then subsequently queriedcloses reserve-protocol/protocol#423