DefiLlama / yield-server

140 stars 779 forks source link

fix: rho markets apy query process #1545

Closed CarlWiles closed 6 days ago

CarlWiles commented 6 days ago

Fix rho markets apy query adapter

llamatester commented 6 days ago

The rho-markets adapter exports pools:

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

Nb of pools: 11

Sample pools:
┌─────────┬─────────────────────────────────────────────────────┬──────────┬───────────────┬────────────────────────┬─────┬────────────────────┬────────────────────┬────────────────────┬──────────────────┬───────────────────┬─────────────┬──────────────────────────────────────────────────┬────────────────────────────────────────────────┐
│ (index) │                        pool                         │  chain   │    project    │        poolMeta        │ ltv │       tvlUsd       │   totalSupplyUsd   │   totalBorrowUsd   │     apyBase      │   apyBaseBorrow   │   symbol    │                 underlyingTokens                 │                      url                       │
├─────────┼─────────────────────────────────────────────────────┼──────────┼───────────────┼────────────────────────┼─────┼────────────────────┼────────────────────┼────────────────────┼──────────────────┼───────────────────┼─────────────┼──────────────────────────────────────────────────┼────────────────────────────────────────────────┤
│    0    │ '0xad3d07d431b85b525d81372802504fa18dbd554c-scroll' │ 'Scroll' │ 'rho-markets' │   'Rho STONE Market'   │ 0.5 │ 30718612.270267285 │ 31102141.751406875 │ 399570.74363347044 │        0         │         0         │   'STONE'   │ [ '0x80137510979822322193FC997d400D5A6C747bf7' ] │   'https://dapp.rhomarkets.xyz/market/STONE'   │
│    1    │ '0x65a5dbef0d1bff772822e4652aed2829718dc43f-scroll' │ 'Scroll' │ 'rho-markets' │   'Rho weETH Market'   │ 0.7 │  2465642.79515386  │ 2845445.4518503286 │ 393698.7089485296  │        0         │         0         │   'weETH'   │ [ '0x01f0a31698C4d065659b9bdC21B3610292a1c506' ] │   'https://dapp.rhomarkets.xyz/market/weETH'   │
│    2    │ '0x52fef2b9040ba81e40421660335655d70fe8cf03-scroll' │ 'Scroll' │ 'rho-markets' │  'Rho wrsETH Market'   │ 0.6 │ 2166217.7628096044 │ 2459983.2341685337 │  297427.222819634  │        0         │         0         │  'wrsETH'   │ [ '0xa25b25548B4C98B0c7d3d27dcA5D5ca743d68b7F' ] │  'https://dapp.rhomarkets.xyz/market/wrsETH'   │
│    3    │ '0x639355f34ca9935e0004e30bd77b9ce2ada0e692-scroll' │ 'Scroll' │ 'rho-markets' │    'Rho ETH Market'    │ 0.7 │ 1290684.286234351  │ 6231113.546713061  │ 5053310.705538494  │ 2.18334687888234 │ 3.665506606473887 │    'ETH'    │ [ '0x0000000000000000000000000000000000000000' ] │    'https://dapp.rhomarkets.xyz/market/ETH'    │
│    4    │ '0xe4fc4c444effb5eca80274c021f652980794eae6-scroll' │ 'Scroll' │ 'rho-markets' │  'Rho wstETH Market'   │ 0.7 │ 1172659.4690184724 │ 5368573.791997827  │ 4302855.821521276  │        0         │         0         │  'wstETH'   │ [ '0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32' ] │  'https://dapp.rhomarkets.xyz/market/wstETH'   │
│    5    │ '0x8966993138b95b48142f6ecb590427eb7e18a719-scroll' │ 'Scroll' │ 'rho-markets' │ 'Rho SolvBTC.b Market' │ 0.4 │ 1010760.225575507  │ 1036160.0892354001 │ 25445.450433371156 │        0         │         0         │ 'SolvBTC.b' │ [ '0x3Ba89d490AB1C0c9CC2313385b30710e838370a4' ] │ 'https://dapp.rhomarkets.xyz/market/SolvBTC.b' │
│    6    │ '0x7ae3c19de353ce163fe81ae3ebfc90709d3868be-scroll' │ 'Scroll' │ 'rho-markets' │  'Rho ylstETH Market'  │ 0.5 │ 607119.6447229548  │ 607119.6447229545  │         0          │        0         │         0         │  'ylstETH'  │ [ '0xBAC6DD1b1F186EF7cf4d64737235a9C53878cB27' ] │  'https://dapp.rhomarkets.xyz/market/ylstETH'  │
│    7    │ '0x855cea8626fa7b42c13e7a688b179bf61e6c1e81-scroll' │ 'Scroll' │ 'rho-markets' │   'Rho USDT Market'    │ 0.7 │ 409587.1123493851  │ 1608306.7021443248 │ 1241818.1380635248 │        0         │         0         │   'USDT'    │ [ '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df' ] │   'https://dapp.rhomarkets.xyz/market/USDT'    │
│    8    │ '0xae1846110f72f2daabc75b7ceee96558289edfc5-scroll' │ 'Scroll' │ 'rho-markets' │   'Rho USDC Market'    │ 0.7 │ 223039.39523388306 │ 3020420.259476805  │ 2948654.716153421  │        0         │         0         │   'USDC'    │ [ '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4' ] │   'https://dapp.rhomarkets.xyz/market/USDC'    │
│    9    │ '0xfe707359517f0d5ad0187a237974d3110a734016-scroll' │ 'Scroll' │ 'rho-markets' │  'Rho uniETH Market'   │ 0.5 │ 7680.113744405482  │ 7680.113744405482  │         0          │        0         │         0         │  'uniETH'   │ [ '0x15EEfE5B297136b8712291B632404B66A8eF4D25' ] │  'https://dapp.rhomarkets.xyz/market/uniETH'   │
└─────────┴─────────────────────────────────────────────────────┴──────────┴───────────────┴────────────────────────┴─────┴────────────────────┴────────────────────┴────────────────────┴──────────────────┴───────────────────┴─────────────┴──────────────────────────────────────────────────┴────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama