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

IPOR yields update #1036

Merged
merged 1 commit into from
Oct 16, 2023
Merged

IPOR yields update #1036

merged 1 commit into from
Oct 16, 2023

Conversation

kris-ipor
Copy link
Contributor

Hi, our protocol was upgraded to new version, abi of smart contract was changed.

I have added if (asset.asset === 'stETH') beacause for stETH pool we have to make slightly different calculation and i have also issue with one test:
● Running ipor Test › Check if pool id already used by other project › Expect duplicate ids array to be empty
So i changed for this one pool way how id is created.

@llamatester
Copy link

The ipor adapter exports pools:

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

Nb of pools: 4
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬────────────────────┬────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┐
│ (index) │                         pool                          │   chain    │ project │ symbol  │       tvlUsd       │  apyBase   │     apyReward      │                 underlyingTokens                 │                   rewardTokens                   │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼────────────────────┼────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┤
│    0    │ '0x6b175474e89094c44da98b954eedeac495271d0f-ethereum' │ 'Ethereum' │ 'ipor'  │  'DAI'  │ 5298034.567151409  │ 4.91747724 │ 1.3424141875313322 │ [ '0x6b175474e89094c44da98b954eedeac495271d0f' ] │ [ '0x1e4746dc744503b53b4a082cb3607b169a289090' ] │
│    1    │ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48-ethereum' │ 'Ethereum' │ 'ipor'  │ 'USDC'  │ 3925818.7101995824 │ 3.58146648 │ 1.1309226598490845 │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │ [ '0x1e4746dc744503b53b4a082cb3607b169a289090' ] │
│    2    │ '0xdac17f958d2ee523a2206206994597c13d831ec7-ethereum' │ 'Ethereum' │ 'ipor'  │ 'USDT'  │ 2921798.5213940577 │ 6.44932224 │ 1.6844732272886032 │ [ '0xdac17f958d2ee523a2206206994597c13d831ec7' ] │ [ '0x1e4746dc744503b53b4a082cb3607b169a289090' ] │
│    3    │ '0xc40431b6c510aeb45fbb5e21e40d49f12b0c1f0c-ethereum' │ 'Ethereum' │ 'ipor'  │ 'stETH' │ 1355734.0268350625 │  3.37525   │ 3.935981205706165  │ [ '0xae7ab96520de3a18e5e111b5eaab095312d7fe84' ] │ [ '0x1e4746dc744503b53b4a082cb3607b169a289090' ] │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴────────────────────┴────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┘

@slasher125 slasher125 merged commit 3cc3198 into DefiLlama:master Oct 16, 2023
1 check 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