DefiLlama / yield-server

140 stars 779 forks source link

Adding EVAA finance pools #1429

Closed shuva10v closed 2 months ago

llamatester commented 3 months ago

The evaa-protocol adapter exports pools:

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

Nb of pools: 4

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────────────┬───────┬─────────────────┬─────────┬────────────────────┬─────────────────────┬────────────────────────────────────────────────────────┬────────────────────────────────────────┬────────────────────┬────────────────────┬──────────────────────┐
│ (index) │                                           pool                                           │ chain │     project     │ symbol  │       tvlUsd       │       apyBase       │                    underlyingTokens                    │                  url                   │   totalSupplyUsd   │   totalBorrowUsd   │    apyBaseBorrow     │
├─────────┼──────────────────────────────────────────────────────────────────────────────────────────┼───────┼─────────────────┼─────────┼────────────────────┼─────────────────────┼────────────────────────────────────────────────────────┼────────────────────────────────────────┼────────────────────┼────────────────────┼──────────────────────┤
│    0    │ 'evaa-23103091784861387372100043848078515239542568751939923972799733728526040769767-ton' │ 'Ton' │ 'evaa-protocol' │ 'tsTON' │ 18175914.260497194 │ 0.15148711209509447 │ [ 'EQC98_qAmNEptUtPc7W6xdHh_ZHrBUFpw5Ft_IzNU20QAJav' ] │ 'https://app.evaa.finance/token/tsTON' │ 20419145.293838657 │ 2243231.033341465  │ 0.017784492032883792 │
│    1    │ 'evaa-91621667903763073563570557639433445791506232618002614896981036659302854767224-ton' │ 'Ton' │ 'evaa-protocol' │ 'USDT'  │ 6804114.893994179  │  8.83860040834672   │ [ 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs' ] │ 'https://app.evaa.finance/token/USDT'  │ 21227845.820003267 │ 14423730.926009089 │ 0.16864992315844152  │
│    2    │ 'evaa-33171510858320790266247832496974106978700190498800858393089426423762035476944-ton' │ 'Ton' │ 'evaa-protocol' │ 'stTON' │ 2151345.4825934903 │ 0.25576723390225986 │ [ 'EQDNhy-nxYFgUqzfUzImBEP67JqsyMIcyk2S5_RwNNEYku0k' ] │ 'https://app.evaa.finance/token/stTON' │ 2590062.0872200336 │ 438716.6046265433  │ 0.019326229848762422 │
│    3    │ 'evaa-11876925370864614464799087627157805050745321306404563164673853337929163193738-ton' │ 'Ton' │ 'evaa-protocol' │  'TON'  │ 906196.1993335104  │  2.736145139248425  │ [ 'EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c' ] │  'https://app.evaa.finance/token/TON'  │ 8999150.064587137  │ 8092953.865253626  │  0.0382716374893004  │
└─────────┴──────────────────────────────────────────────────────────────────────────────────────────┴───────┴─────────────────┴─────────┴────────────────────┴─────────────────────┴────────────────────────────────────────────────────────┴────────────────────────────────────────┴────────────────────┴────────────────────┴──────────────────────┘
llamatester commented 3 months ago

The evaa-protocol adapter exports pools:

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

Nb of pools: 4

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────────────┬───────┬─────────────────┬─────────┬────────────────────┬─────────────────────┬────────────────────────────────────────────────────────┬────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────────┐
│ (index) │                                           pool                                           │ chain │     project     │ symbol  │       tvlUsd       │       apyBase       │                    underlyingTokens                    │                  url                   │   totalSupplyUsd   │   totalBorrowUsd   │   apyBaseBorrow    │
├─────────┼──────────────────────────────────────────────────────────────────────────────────────────┼───────┼─────────────────┼─────────┼────────────────────┼─────────────────────┼────────────────────────────────────────────────────────┼────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────────┤
│    0    │ 'evaa-23103091784861387372100043848078515239542568751939923972799733728526040769767-ton' │ 'Ton' │ 'evaa-protocol' │ 'tsTON' │  18176897.4885173  │ 0.15148711209509447 │ [ 'EQC98_qAmNEptUtPc7W6xdHh_ZHrBUFpw5Ft_IzNU20QAJav' ] │ 'https://app.evaa.finance/token/tsTON' │ 20420250.03065789  │ 2243352.5421405938 │ 1.7784492032883792 │
│    1    │ 'evaa-91621667903763073563570557639433445791506232618002614896981036659302854767224-ton' │ 'Ton' │ 'evaa-protocol' │ 'USDT'  │ 6804141.995414533  │  8.83860040834672   │ [ 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs' ] │ 'https://app.evaa.finance/token/USDT'  │ 21227943.068073634 │ 14423801.072659101 │ 16.86499231584415  │
│    2    │ 'evaa-33171510858320790266247832496974106978700190498800858393089426423762035476944-ton' │ 'Ton' │ 'evaa-protocol' │ 'stTON' │ 2151461.8571442533 │ 0.25576723390225986 │ [ 'EQDNhy-nxYFgUqzfUzImBEP67JqsyMIcyk2S5_RwNNEYku0k' ] │ 'https://app.evaa.finance/token/stTON' │ 2590202.2283691363 │ 438740.37122488295 │ 1.9326229848762422 │
│    3    │ 'evaa-11876925370864614464799087627157805050745321306404563164673853337929163193738-ton' │ 'Ton' │ 'evaa-protocol' │  'TON'  │ 906289.7488004407  │  2.736145139248425  │ [ 'EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c' ] │  'https://app.evaa.finance/token/TON'  │ 9000082.440794146  │ 8093792.691993705  │ 3.8271637489300403 │
└─────────┴──────────────────────────────────────────────────────────────────────────────────────────┴───────┴─────────────────┴─────────┴────────────────────┴─────────────────────┴────────────────────────────────────────────────────────┴────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────────┘
slasher125 commented 3 months ago

ty for adding. not a fan of using other sdk's than ours. pls refactor this, either by using methods from DefiLlama-Adapters helpers or by switching to an api call

llamatester commented 2 months ago

The evaa-protocol adapter exports pools:

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

Nb of pools: 4

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────────────┬───────┬─────────────────┬─────────┬────────────────────┬─────────────────────┬────────────────────────────────────────────────────────┬────────────────────────────────────────┬────────────────────┬───────────────────┬────────────────────┐
│ (index) │                                           pool                                           │ chain │     project     │ symbol  │       tvlUsd       │       apyBase       │                    underlyingTokens                    │                  url                   │   totalSupplyUsd   │  totalBorrowUsd   │   apyBaseBorrow    │
├─────────┼──────────────────────────────────────────────────────────────────────────────────────────┼───────┼─────────────────┼─────────┼────────────────────┼─────────────────────┼────────────────────────────────────────────────────────┼────────────────────────────────────────┼────────────────────┼───────────────────┼────────────────────┤
│    0    │ 'evaa-23103091784861387372100043848078515239542568751939923972799733728526040769767-ton' │ 'Ton' │ 'evaa-protocol' │ 'tsTON' │ 18118316.59476402  │ 0.2241557674793171  │ [ 'EQC98_qAmNEptUtPc7W6xdHh_ZHrBUFpw5Ft_IzNU20QAJav' ] │ 'https://app.evaa.finance/token/tsTON' │ 21343859.25410577  │ 3225542.659341749 │ 1.8844186759027437 │
│    1    │ 'evaa-91621667903763073563570557639433445791506232618002614896981036659302854767224-ton' │ 'Ton' │ 'evaa-protocol' │ 'USDT'  │ 7260675.210536137  │  9.351099093063775  │ [ 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs' ] │ 'https://app.evaa.finance/token/USDT'  │ 24049475.849900406 │ 16788800.63936427 │ 17.363373047586485 │
│    2    │ 'evaa-33171510858320790266247832496974106978700190498800858393089426423762035476944-ton' │ 'Ton' │ 'evaa-protocol' │ 'stTON' │ 2029139.3152226573 │ 0.36648568934545267 │ [ 'EQDNhy-nxYFgUqzfUzImBEP67JqsyMIcyk2S5_RwNNEYku0k' ] │ 'https://app.evaa.finance/token/stTON' │ 2617398.537268815  │ 588259.2220461577 │ 2.074153540101653  │
│    3    │ 'evaa-11876925370864614464799087627157805050745321306404563164673853337929163193738-ton' │ 'Ton' │ 'evaa-protocol' │  'TON'  │ 928298.8379420461  │  2.706992437658906  │ [ 'EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c' ] │  'https://app.evaa.finance/token/TON'  │ 8674241.484588573  │ 7745942.646646527 │ 3.8107952530983313 │
└─────────┴──────────────────────────────────────────────────────────────────────────────────────────┴───────┴─────────────────┴─────────┴────────────────────┴─────────────────────┴────────────────────────────────────────────────────────┴────────────────────────────────────────┴────────────────────┴───────────────────┴────────────────────┘
shuva10v commented 2 months ago

@slasher125 removed @evaafi/sdk, could we consider adding @ton/ton library? For some operations it is required to deal with TON data structures and for TON it is the same as web3.js for the EVM world

slasher125 commented 2 months ago

gm sir, sry for delay

slasher125 commented 2 months ago

@shuva10v can u pls update the adapter by adding the ltv field (so we can also display evaa on our borrow aggregator)

shuva10v commented 2 months ago

@slasher125 done! #1441