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

Added APY Yield for BakerFi #1445

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

chefkenji
Copy link
Contributor

No description provided.

@chefkenji chefkenji marked this pull request as draft August 2, 2024 10:15
@chefkenji chefkenji changed the title Supporing Yield for Bakerfi Added APY Yield for BakerFi Aug 2, 2024
@chefkenji chefkenji marked this pull request as ready for review September 9, 2024 08:50
@chefkenji
Copy link
Contributor Author

Running bakerfi Test
✓ Check if link to the pool's page exist
✓ Check for unique pool ids (1 ms)
✓ Check project field is constant in all pools and if folder name and project field in pool objects matches the information in /protocols slug
Check for allowed field names
✓ Expects pool id 0x37327c99bbc522e677a97d01021db20227faf60a-base to contain only allowed keys: pool,chain,project,symbol,apy,apyBase,apyReward,underlyingTokens,rewardTokens,poolMeta,url,apyBaseBorrow,apyRewardBorrow,totalSupplyUsd,totalBorrowUsd,ltv,borrowable,borrowFactor,debtCeilingUsd,mintedCoin,apyBase7d,apyRewardFake,apyRewardBorrowFake,il7d,volumeUsd1d,volumeUsd7d,apyBaseInception,tvlUsd and has: pool,chain,project,symbol,apyReward,rewardTokens,underlyingTokens,poolMeta,tvlUsd,apyBase (1 ms)
Check apy data types
✓ Expects pool with id 0x37327c99bbc522e677a97d01021db20227faf60a-base to have at least one number apy field
Check tvl data type
✓ tvlUsd field of pool with id 0x37327c99bbc522e677a97d01021db20227faf60a-base should be number
Check tokens data types
✓ rewardTokens field of pool with id 0x37327c99bbc522e677a97d01021db20227faf60a-base should be an Array of strings (1 ms)
✓ underlyingTokens field of pool with id 0x37327c99bbc522e677a97d01021db20227faf60a-base should be an Array of strings
Check other fields data types
✓ Expect other fields of pool with id 0x37327c99bbc522e677a97d01021db20227faf60a-base to match thier data types
Check if pool has a rewardApy then rewardTokens must also exist
✓ The pool 0x37327c99bbc522e677a97d01021db20227faf60a-base is expected to have a rewardTokens field
Check if pool id already used by other project
✓ Expect duplicate ids array to be empty

Test Suites: 1 passed, 1 total
Tests: 11 passed, 11 total
Snapshots: 0 total
Time: 0.179 s, estimated 1 s
Ran all test suites.

Nb of pools: 1

Sample pools: [
{
pool: '0x37327c99bbc522e677a97d01021db20227faf60a-base',
chain: 'base',
project: 'bakerfi',
symbol: 'ETH',
apyReward: 0,
rewardTokens: [ '0x4200000000000000000000000000000000000006' ],
underlyingTokens: [ '0x4200000000000000000000000000000000000006' ],
poolMeta: 'wstETH/ETH Recursive Staking',
tvlUsd: 46079,
apyBase: '5.6858437455555556'
}
]

@slasher125
Copy link
Collaborator

the api is not working

@chefkenji
Copy link
Contributor Author

chefkenji commented Sep 13, 2024

the api is not working

The API is working , you can try yourself
https://api-v1.bakerfi.xyz/api/vaults/cly4i95530008kl5eesquxqyc/yield

When i run the adapter everything is fine.

npm run test --adapter=bakerfi

@slasher125 slasher125 merged commit f7ba275 into DefiLlama:master Sep 17, 2024
1 check failed
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