This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
feat(abracadabra): Add statsitems to cauldrons #2649
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added common stats items to all cauldrons.
Checklist
How to test?
Compare cauldrons on various chains with data with either Abracadabra's UI: https://app.abracadabra.money/ or DefILlama: https://defillama.com/yields/borrow?project=abracadabra (also written by me 🤷). Note that some cauldrons has a negative interest strategy. That is, interest on the collateral deposited. This is not included in this PR. Abracadabra's UI does not distinguishes between interest and negative interest, however, DeFiLlama does.
Positions on the various chains:
http://localhost:5001/apps/abracadabra/positions?network=arbitrum&groupIds%5B%5D=cauldron
http://localhost:5001/apps/abracadabra/positions?network=avalanche&groupIds%5B%5D=cauldron
http://localhost:5001/apps/abracadabra/positions?network=binance-smart-chain&groupIds%5B%5D=cauldron
http://localhost:5001/apps/abracadabra/positions?network=ethereum&groupIds%5B%5D=cauldron
http://localhost:5001/apps/abracadabra/positions?network=fantom&groupIds%5B%5D=cauldron
http://localhost:5001/apps/abracadabra/positions?network=optimism&groupIds%5B%5D=cauldron