Skip to content

Conversation

ethien-salinas
Copy link

Guale Yield Adapter (Arbitrum)

Hello DefiLlama team, thanks for reviewing this PR! 🙏

This contribution adds a yield-server adapter for Guale (a yield optimizer on Arbitrum).

Vault logic

  • Each vault exposes:
    • wants() → identifies the two underlying tokens
    • balances() → returns the total amounts (vault + strategy/positions)
  • These values are converted to USD using DefiLlama price feeds.

APY

  • Currently set to 0, since the vaults do not expose pricePerShare or a similar metric to calculate daily growth.
  • We’ll be happy to update this once PPS or fee data is available.

Scope

This PR covers the 3 live CLM vaults on Arbitrum:

  • 0x6a84f7ba493c4d6590696b782b0f0fb2588fbdc2 (USDC/USDT)
  • 0xea89fd775cc0203b79a5cb5710d66a6145ea391d (WBTC/WETH)
  • 0x6077e51a48a1ee3f8fa975dc23041cf248b180c7 (WETH/USDC)

Compliance

  • project field matches the folder name (guale) and the slug in /protocols.
  • No leverage, boosts, or locked rewards included.
  • PR is limited to src/adaptors/guale/index.js.

Links

@llamatester
Copy link

Error while running guale adapter:

Test Suites: 1 failed, 1 total
Tests: 1 failed, 24 passed, 25 total
Snapshots: 0 total
Time: 0.308 s
Ran all test suites.

Nb of pools: 3
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────┬──────────────┬────────────────────┬─────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────┬─────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project │ symbol       │ tvlUsd             │ apy │ underlyingTokens                                                                               │ rewardTokens │ url                     │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────┼──────────────┼────────────────────┼─────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────┼─────────────────────────┤
│ 0       │ '0xea89fd775cc0203b79a5cb5710d66a6145ea391d-arbitrum' │ 'Arbitrum' │ 'guale' │ 'WBTC-WETH'  │ 17929.761498460117 │ 0   │ [ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f', '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' ] │ []           │ 'https://app.guale.co/' │
│ 1       │ '0x6077e51a48a1ee3f8fa975dc23041cf248b180c7-arbitrum' │ 'Arbitrum' │ 'guale' │ 'WETH-USDC'  │ 6582.08286804751   │ 0   │ [ '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │ []           │ 'https://app.guale.co/' │
│ 2       │ '0x6a84f7ba493c4d6590696b782b0f0fb2588fbdc2-arbitrum' │ 'Arbitrum' │ 'guale' │ 'USDC-USD₮0' │ 623.6531687459601  │ 0   │ [ '0xaf88d065e77c8cc2239327c5edb3a432268e5831', '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' ] │ []           │ 'https://app.guale.co/' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────┴──────────────┴────────────────────┴─────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────┴─────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama
}

@llamatester
Copy link

The guale adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 25 passed, 25 total
Snapshots: 0 total
Time: 0.286 s
Ran all test suites.

Nb of pools: 3
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────┬──────────────┬──────────┬─────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────┬─────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project │ symbol       │ tvlUsd   │ apy │ underlyingTokens                                                                               │ rewardTokens │ url                     │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────┼──────────────┼──────────┼─────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────┼─────────────────────────┤
│ 0       │ '0xea89fd775cc0203b79a5cb5710d66a6145ea391d-arbitrum' │ 'Arbitrum' │ 'guale' │ 'WBTC-WETH'  │ 18032.49 │ 0   │ [ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f', '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' ] │ []           │ 'https://app.guale.co/' │
│ 1       │ '0x6077e51a48a1ee3f8fa975dc23041cf248b180c7-arbitrum' │ 'Arbitrum' │ 'guale' │ 'WETH-USDC'  │ 6605.49  │ 0   │ [ '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │ []           │ 'https://app.guale.co/' │
│ 2       │ '0x6a84f7ba493c4d6590696b782b0f0fb2588fbdc2-arbitrum' │ 'Arbitrum' │ 'guale' │ 'USDC-USD₮0' │ 623.66   │ 0   │ [ '0xaf88d065e77c8cc2239327c5edb3a432268e5831', '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' ] │ []           │ 'https://app.guale.co/' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────┴──────────────┴──────────┴─────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────┴─────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The guale adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 25 passed, 25 total
Snapshots: 0 total
Time: 0.278 s
Ran all test suites.

Nb of pools: 3
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────┬──────────────┬──────────┬─────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────┬─────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project │ symbol       │ tvlUsd   │ apy │ underlyingTokens                                                                               │ rewardTokens │ url                     │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────┼──────────────┼──────────┼─────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────┼─────────────────────────┤
│ 0       │ '0xea89fd775cc0203b79a5cb5710d66a6145ea391d-arbitrum' │ 'Arbitrum' │ 'guale' │ 'WBTC-WETH'  │ 18550.82 │ 0   │ [ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f', '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' ] │ []           │ 'https://app.guale.co/' │
│ 1       │ '0x6077e51a48a1ee3f8fa975dc23041cf248b180c7-arbitrum' │ 'Arbitrum' │ 'guale' │ 'WETH-USDC'  │ 5132.65  │ 0   │ [ '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │ []           │ 'https://app.guale.co/' │
│ 2       │ '0x6a84f7ba493c4d6590696b782b0f0fb2588fbdc2-arbitrum' │ 'Arbitrum' │ 'guale' │ 'USDC-USD₮0' │ 112.71   │ 0   │ [ '0xaf88d065e77c8cc2239327c5edb3a432268e5831', '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' ] │ []           │ 'https://app.guale.co/' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────┴──────────────┴──────────┴─────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────┴─────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

@ethien-salinas pls confirm u still working on this yes?

@ethien-salinas
Copy link
Author

@ethien-salinas pls confirm u still working on this yes?
it's done; i'd like to have your help to merge this

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.

3 participants