Skip to content

Conversation

@spider-g
Copy link
Contributor

No description provided.

@llamatester
Copy link

Error while running avant-protocol adapter:

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

Nb of pools: 3
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬──────────────────┬──────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬────────────────────────────┬─────────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project          │ symbol   │ tvlUsd             │ apyBase            │ underlyingTokens                                 │ poolMeta                   │ url                             │
├─────────┼───────────────────────────────────────────────────────┼────────────┼──────────────────┼──────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼────────────────────────────┼─────────────────────────────────┤
│ 0       │ '0x06d47F3fb376649c3A9Dafe069B3D6E35572219E-avax'     │ 'avax'     │ 'avant-protocol' │ 'savUSD' │ 110242995.45558523 │ 27.744186133503757 │ [ '0x24dE8771bC5DdB3362Db529Fc3358F2df3A0E346' ] │ 'ERC-4626: savUSD → avUSD' │ 'https://www.avantprotocol.com' │
│ 1       │ '0x649342c6bff544d82DF1B2bA3C93e0C22cDeBa84-avax'     │ 'avax'     │ 'avant-protocol' │ 'savBTC' │ 21140386.37971089  │ 5.900253386043408  │ [ '0xfd2c2A98009d0cBed715882036e43d26C4289053' ] │ 'ERC-4626: savBTC → avBTC' │ 'https://www.avantprotocol.com' │
│ 2       │ '0xDA06eE2dACF9245Aa80072a4407deBDea0D7e341-ethereum' │ 'ethereum' │ 'avant-protocol' │ 'savETH' │ 4390806.172138739  │ 5.6009516638740875 │ [ '0x9469470C9878bf3d6d0604831d9A3A366156f7EE' ] │ 'ERC-4626: savETH → avETH' │ 'https://www.avantprotocol.com' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴──────────────────┴──────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴────────────────────────────┴─────────────────────────────────┘
}

@slasher125
Copy link
Collaborator

@spider-g sir u'll need to use the individual child adapter protocol name(s) which is why the tests are failing

@llamatester
Copy link

Error while running avant-protocol adapter:

Test Suites: 1 failed, 1 total
Tests: 1 failed, 21 passed, 22 total
Snapshots: 0 total
Time: 0.259 s
Ran all test suites.

Nb of pools: 3
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬───────────────┬──────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬────────────────────────────┬─────────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project       │ symbol   │ tvlUsd             │ apyBase            │ underlyingTokens                                 │ poolMeta                   │ url                             │
├─────────┼───────────────────────────────────────────────────────┼────────────┼───────────────┼──────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼────────────────────────────┼─────────────────────────────────┤
│ 0       │ '0x06d47F3fb376649c3A9Dafe069B3D6E35572219E-avax'     │ 'avax'     │ 'avant-avusd' │ 'savUSD' │ 111361511.83922899 │ 30.955438588274475 │ [ '0x24dE8771bC5DdB3362Db529Fc3358F2df3A0E346' ] │ 'ERC-4626: savUSD → avUSD' │ 'https://www.avantprotocol.com' │
│ 1       │ '0x649342c6bff544d82DF1B2bA3C93e0C22cDeBa84-avax'     │ 'avax'     │ 'avant-avbtc' │ 'savBTC' │ 26834736.844582293 │ 5.364032007783837  │ [ '0xfd2c2A98009d0cBed715882036e43d26C4289053' ] │ 'ERC-4626: savBTC → avBTC' │ 'https://www.avantprotocol.com' │
│ 2       │ '0xDA06eE2dACF9245Aa80072a4407deBDea0D7e341-ethereum' │ 'ethereum' │ 'avant-aveth' │ 'savETH' │ 4223470.972869774  │ 5.716827508312661  │ [ '0x9469470C9878bf3d6d0604831d9A3A366156f7EE' ] │ 'ERC-4626: savETH → avETH' │ 'https://www.avantprotocol.com' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴───────────────┴──────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴────────────────────────────┴─────────────────────────────────┘
}

@spider-g
Copy link
Contributor Author

I have updated the project slugs, the one that seems to be still missing is avant-aveth which should have already been imported by the PR DefiLlama/DefiLlama-Adapters#16776

@slasher125
Copy link
Collaborator

@spider-g sry i think i wasn't clear enough: the project field must be constant (see the test output, best to run this locally btw) and it must match the file name.

so, in your case, u'd need to list 3 separate adapters (u can export from one so we dont duplicate the same code N times).

@llamatester
Copy link

The avant-avbtc adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────┬────────┬───────────────┬──────────┬────────────────────┬───────────────────┬──────────────────────────────────────────────────┬────────────────────────────┬─────────────────────────────────┐
│ (index) │ pool                                              │ chain  │ project       │ symbol   │ tvlUsd             │ apyBase           │ underlyingTokens                                 │ poolMeta                   │ url                             │
├─────────┼───────────────────────────────────────────────────┼────────┼───────────────┼──────────┼────────────────────┼───────────────────┼──────────────────────────────────────────────────┼────────────────────────────┼─────────────────────────────────┤
│ 0       │ '0x649342c6bff544d82DF1B2bA3C93e0C22cDeBa84-avax' │ 'avax' │ 'avant-avbtc' │ 'savBTC' │ 27198038.340793293 │ 4.830958463373625 │ [ '0xfd2c2A98009d0cBed715882036e43d26C4289053' ] │ 'ERC-4626: savBTC → avBTC' │ 'https://www.avantprotocol.com' │
└─────────┴───────────────────────────────────────────────────┴────────┴───────────────┴──────────┴────────────────────┴───────────────────┴──────────────────────────────────────────────────┴────────────────────────────┴─────────────────────────────────┘

@llamatester
Copy link

The avant-avbtc adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────┬────────┬───────────────┬──────────┬────────────────────┬───────────────────┬──────────────────────────────────────────────────┬────────────────────────────┬─────────────────────────────────┐
│ (index) │ pool                                              │ chain  │ project       │ symbol   │ tvlUsd             │ apyBase           │ underlyingTokens                                 │ poolMeta                   │ url                             │
├─────────┼───────────────────────────────────────────────────┼────────┼───────────────┼──────────┼────────────────────┼───────────────────┼──────────────────────────────────────────────────┼────────────────────────────┼─────────────────────────────────┤
│ 0       │ '0x649342c6bff544d82DF1B2bA3C93e0C22cDeBa84-avax' │ 'avax' │ 'avant-avbtc' │ 'savBTC' │ 27966291.238795944 │ 5.937142349014501 │ [ '0xfd2c2A98009d0cBed715882036e43d26C4289053' ] │ 'ERC-4626: savBTC → avBTC' │ 'https://www.avantprotocol.com' │
└─────────┴───────────────────────────────────────────────────┴────────┴───────────────┴──────────┴────────────────────┴───────────────────┴──────────────────────────────────────────────────┴────────────────────────────┴─────────────────────────────────┘

@slasher125
Copy link
Collaborator

@spider-g any reason why the apy values are quite diffrent compared to ur ui?

@spider-g
Copy link
Contributor Author

@spider-g any reason why the apy values are quite diffrent compared to ur ui?

Great question. Yes, the methods are different: on our UI, we look at the amount of rewards that will be sent to vault stakers today (distribution is daily), so users get a sense of their yield if they enter the protocol at that moment — the logic is therefore forward-looking. The DefiLlama adapter, on the other hand, looks at rewards distributed over the past week and then prorates them to calculate the APY, so it’s historical.

@slasher125 slasher125 merged commit 58515e8 into DefiLlama:master Oct 24, 2025
2 checks passed
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