Skip to content
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

Adapters πŸ¦™ #652

Open
0xsign opened this issue Jun 9, 2023 · 0 comments
Open

Adapters πŸ¦™ #652

0xsign opened this issue Jun 9, 2023 · 0 comments
Labels
adapter good first issue Good for newcomers

Comments

@0xsign
Copy link
Contributor

0xsign commented Jun 9, 2023

Welcome llamas πŸ‘‹ πŸ¦™ , following a list of missing (or with some issues) adapters for LlamaFolio (frequently updated):

Status:

  • empty: to do
  • πŸ¦™: in progress (grazing)
  • βœ…: done

Adapters

status id chain comments
βœ… crvusd ethereum
βœ… morpho-aavev3 ethereum
βœ… radiant-v2 bsc
βœ… velodrome optimism
βœ… equalizer fantom
βœ… solidly-v2 ethereum
βœ… thena bsc
βœ… solidlizard arbitrum
maverick-protocol bsc,ethereum,zksync contracts not verified atm
βœ… pendle Ethereum, arb, bsc, avalanche
timeless Ethereum, optimism, arb, polygon

Boilerplate code can be generated using:

pnpm run create-adapter {adapter_id}

To test your adapter with a user address:

pnpm run adapter {adapter_id} {chain} {address}

Methodology

We highly suggest you to look at existing adapters to understand how it works and reuse as much code as possible.

If your protocol is a fork of an existing one, odds are there's already some code implemented.

Adapters are made of 2 functions:

  • getContracts: identify protocol contracts. Most likely found in the protocol docs, in DefiLlama adapter code, in a graph or by listing pools of a factory contract.
  • getBalances: add amounts to contracts above. Most likely an erc20 balanceOf call + some transformation (ex: LP token ratio)

Docs

Check out hands-on adapter tutorials

https://docs.llamafolio.com/docs/tutorials/aave/

Don't see your protocol ?

If you don't see your protocol in the list above nor in our adapters, please leave a comment on this issue with the link to DefiLlama adapter.

Help

Reach out on #contributors Discord if you need any help.

Thanks πŸ™ πŸ™

@0xsign 0xsign added adapter good first issue Good for newcomers labels Jun 9, 2023
@0xsign 0xsign pinned this issue Jun 9, 2023
@0xsign 0xsign changed the title Missing adapters list Adapters πŸ¦™ Jun 9, 2023
This was referenced Jun 9, 2023
@0xpeluche 0xpeluche unpinned this issue Sep 26, 2023
@0xpeluche 0xpeluche pinned this issue Sep 26, 2023
@0xpeluche 0xpeluche mentioned this issue Sep 28, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapter good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant