-
Notifications
You must be signed in to change notification settings - Fork 17
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
Defillama additional integration #210
base: dev
Are you sure you want to change the base?
Conversation
@iamsahu this PR is in draft, if it's ready for review, please change the status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments
@@ -22,6 +22,15 @@ def container_name(self) -> str: | |||
def container_params(self) -> Dict: | |||
return dataclass_to_container_params(self) | |||
|
|||
def fetch_tvl(protocol) -> str: | |||
url = f"https://api.llama.fi/tvl/{protocol}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering how are users supposed to know the canonical name/protocol slug that Defillama supports, like what would be the canonical name for the Yield protocol
We may need to have a normalizer that is able to map parsed protocol name to Defillama's protocol slug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamsahu quickly did another pass on this PR
- Please resolve the merge conflicts
- Did you get a chance to look my comment https://github.com/yieldprotocol/cacti-backend/pull/210/files#r1286288048
No description provided.