Skip to content

Conversation

iamsahu
Copy link
Contributor

@iamsahu iamsahu commented Aug 1, 2023

No description provided.

@sgzsh269
Copy link
Collaborator

sgzsh269 commented Aug 2, 2023

@iamsahu this PR is in draft, if it's ready for review, please change the status.

@iamsahu iamsahu marked this pull request as ready for review August 4, 2023 09:36
Copy link
Collaborator

@sgzsh269 sgzsh269 left a 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

return dataclass_to_container_params(self)

def fetch_tvl(protocol) -> str:
url = f"https://api.llama.fi/tvl/{protocol}"
Copy link
Collaborator

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

Copy link
Collaborator

@sgzsh269 sgzsh269 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants