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

Add Origin Ether (OETH) #782

Merged
merged 2 commits into from
May 29, 2023
Merged

Add Origin Ether (OETH) #782

merged 2 commits into from
May 29, 2023

Conversation

shahthepro
Copy link
Contributor

@shahthepro shahthepro commented May 26, 2023

Adds OETH yield adapter

@llamatester
Copy link

The origin-ether adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬────────────────┬────────────┬────────────────┬────────┬────────────────────┬────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │      pool      │   chain    │    project     │ symbol │       tvlUsd       │        apy         │                                                                       underlyingTokens                                                                        │
├─────────┼────────────────┼────────────┼────────────────┼────────┼────────────────────┼────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ 'origin-ether' │ 'Ethereum' │ 'origin-ether' │ 'OETH' │ 10924512.784980346 │ 12.054093616417063 │ [ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84', '0xae78736Cd615f374D3085123A210448E74Fc6393', ... 1 more item ] │
└─────────┴────────────────┴────────────┴────────────────┴────────┴────────────────────┴────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

@slasher125
Copy link
Collaborator

gm, ty for adding.pls make use of onchain calls/subgraph for at least the tvl data. ty

@shahthepro
Copy link
Contributor Author

gm, ty for adding.pls make use of onchain calls/subgraph for at least the tvl data. ty

Hello, our contracts return the TVL denominated in ETH and we don't have a ETH/USD price oracle in the contract. That's the reason I used API calls

@slasher125
Copy link
Collaborator

no problem, for eth usd price u can just use our price api

@shahthepro
Copy link
Contributor Author

@slasher125 Have made that change, PTAL

@slasher125
Copy link
Collaborator

ran this locally, working fine

@slasher125 slasher125 merged commit 8526145 into DefiLlama:master May 29, 2023
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