Skip to content

Track yield for Resupply Finance #1804

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

Merged
merged 3 commits into from
Apr 9, 2025
Merged

Conversation

benber86
Copy link
Contributor

@benber86 benber86 commented Apr 8, 2025

TVL & Yields for Resupply: https://resupply.fi/supply

@llamatester
Copy link

The resupply adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬────────────┬─────────────────┬─────────────┬─────────┬───────────────┬────────────────────┬────────────────┬────────────────┬──────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────┬──────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project    │ symbol          │ tvlUsd      │ apyBase │ apyBaseBorrow │ apyRewardBorrow    │ totalSupplyUsd │ totalBorrowUsd │ ltv  │ underlyingTokens                                 │ rewardTokens                                                                                                                                 │ poolMeta                         │ url                          │
├─────────┼───────────────────────────────────────────────────────┼────────────┼────────────┼─────────────────┼─────────────┼─────────┼───────────────┼────────────────────┼────────────────┼────────────────┼──────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────┤
│ 0       │ '0x2d8ecd48b58e53972dbc54d8d0414002b41abc9d-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WBTC'    │ 12036525.87 │ 0.1024  │ 3.1487        │ 51.9737            │ 12036525.87    │ 10253291.22    │ 0.1  │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WBTC collateral'    │ 'https://resupply.fi/supply' │
│ 1       │ '0x08064a8eeecf71203449228f3eac65e462009fdf-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SDOLA'   │ 10618050.57 │ 4.1141  │ 3.1487        │ 30.5395            │ 10618050.57    │ 9416255.67     │ 0.94 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sDOLA collateral'   │ 'https://resupply.fi/supply' │
│ 2       │ '0xc5184cccf85b81eddc661330acb3e41bd89f34a1-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SFRXUSD' │ 9429755.54  │ 5.7575  │ 3.1487        │ 28.8774            │ 9429755.54     │ 8297515.96     │ 0.17 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sfrxUSD collateral' │ 'https://resupply.fi/supply' │
│ 3       │ '0xcf1deb0570c2f7dee8c07a7e5fa2bd4b2b96520d-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WETH'    │ 7684884.76  │ 0.0205  │ 3.1487        │ 46.7314            │ 7684884.76     │ 6574670.2      │ 0.07 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WETH collateral'    │ 'https://resupply.fi/supply' │
│ 4       │ '0x39ea8e7f44e9303a7441b1e1a4f5731f1028505c-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SUSDE'   │ 7463695.9   │ 4.0797  │ 3.1487        │ 36.104800000000004 │ 7463695.9      │ 6539813.2      │ 0.26 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sUSDe collateral'   │ 'https://resupply.fi/supply' │
│ 5       │ '0x4a7c64932d1ef0b4a2d430ea10184e3b87095e33-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WSTETH'  │ 6818555.67  │ 0.0853  │ 3.1487        │ 39.675             │ 6818555.67     │ 6033718.59     │ 0.06 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - wstETH collateral'  │ 'https://resupply.fi/supply' │
│ 6       │ '0x3b037329ff77b5863e6a3c844ad2a7506abe5706-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-USDE'    │ 4712963.29  │ 0.3583  │ 3.1487        │ 30.7783            │ 4712963.29     │ 4045758.42     │ 0.16 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - USDe collateral'    │ 'https://resupply.fi/supply' │
│ 7       │ '0xb5575fe3d3b7877415a166001f67c2df94d4e6c1-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WBTC'    │ 3198837.05  │ 0.2523  │ 3.1487        │ 14.9003            │ 3198837.05     │ 2774523.57     │ 0.03 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - WBTC collateral'     │ 'https://resupply.fi/supply' │
│ 8       │ '0x3f2b20b8e8ce30bb52239d3dfadf826ecfe6a5f7-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SFRXETH' │ 3135623.93  │ 0.1148  │ 3.1487        │ 15.927             │ 3135623.93     │ 2771601.62     │ 0.06 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - sfrxETH collateral'  │ 'https://resupply.fi/supply' │
│ 9       │ '0x24ccbd9130ec24945916095ec54e9acc7382c864-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SCRVUSD' │ 3049433.64  │ 0       │ 3.1487        │ 15.7376            │ 3049433.64     │ 2586221.98     │ 0.05 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - scrvUSD collateral'  │ 'https://resupply.fi/supply' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴────────────┴─────────────────┴─────────────┴─────────┴───────────────┴────────────────────┴────────────────┴────────────────┴──────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────┴──────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The resupply adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬────────────┬─────────────────┬─────────────┬─────────┬───────────────┬────────────────────┬────────────────┬────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────┬──────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project    │ symbol          │ tvlUsd      │ apyBase │ apyBaseBorrow │ apyRewardBorrow    │ totalSupplyUsd │ totalBorrowUsd │ ltv                │ underlyingTokens                                 │ rewardTokens                                                                                                                                 │ poolMeta                         │ url                          │
├─────────┼───────────────────────────────────────────────────────┼────────────┼────────────┼─────────────────┼─────────────┼─────────┼───────────────┼────────────────────┼────────────────┼────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────┤
│ 0       │ '0x2d8ecd48b58e53972dbc54d8d0414002b41abc9d-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WBTC'    │ 12186566.28 │ 0.1741  │ 3.1487        │ 53.6176            │ 12186566.28    │ 10383421.19    │ 0.8520382978625215 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WBTC collateral'    │ 'https://resupply.fi/supply' │
│ 1       │ '0x08064a8eeecf71203449228f3eac65e462009fdf-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SDOLA'   │ 10772410.81 │ 3.936   │ 3.1487        │ 30.731499999999997 │ 10772410.81    │ 9558808.18     │ 0.8873415940586469 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sDOLA collateral'   │ 'https://resupply.fi/supply' │
│ 2       │ '0xc5184cccf85b81eddc661330acb3e41bd89f34a1-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SFRXUSD' │ 9419741.45  │ 7.1472  │ 3.5961        │ 27.8135            │ 9419741.45     │ 8305740.81     │ 0.8817376627678035 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sfrxUSD collateral' │ 'https://resupply.fi/supply' │
│ 3       │ '0xcf1deb0570c2f7dee8c07a7e5fa2bd4b2b96520d-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WETH'    │ 8686228.19  │ 0.022   │ 3.1487        │ 40.5826            │ 8686228.19     │ 7506203.03     │ 0.8641498779230207 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WETH collateral'    │ 'https://resupply.fi/supply' │
│ 4       │ '0x39ea8e7f44e9303a7441b1e1a4f5731f1028505c-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SUSDE'   │ 7613461.32  │ 1.2381  │ 3.1487        │ 32.9334            │ 7613461.32     │ 6701902.4      │ 0.8802701055818853 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sUSDe collateral'   │ 'https://resupply.fi/supply' │
│ 5       │ '0x4a7c64932d1ef0b4a2d430ea10184e3b87095e33-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WSTETH'  │ 6818555.67  │ 0.0853  │ 3.1487        │ 39.675             │ 6818555.67     │ 6033718.59     │ 0.8848968728886245 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - wstETH collateral'  │ 'https://resupply.fi/supply' │
│ 6       │ '0x3b037329ff77b5863e6a3c844ad2a7506abe5706-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-USDE'    │ 4704660.69  │ 0.3612  │ 3.1487        │ 29.599             │ 4704660.69     │ 4056030.49     │ 0.8621302910582485 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - USDe collateral'    │ 'https://resupply.fi/supply' │
│ 7       │ '0xb5575fe3d3b7877415a166001f67c2df94d4e6c1-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WBTC'    │ 3198837.05  │ 0.2523  │ 3.1487        │ 14.9003            │ 3198837.05     │ 2774523.57     │ 0.8673538309805434 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - WBTC collateral'     │ 'https://resupply.fi/supply' │
│ 8       │ '0x3f2b20b8e8ce30bb52239d3dfadf826ecfe6a5f7-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SFRXETH' │ 3135623.93  │ 0.1148  │ 3.1487        │ 15.927             │ 3135623.93     │ 2771601.62     │ 0.8839075354294799 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - sfrxETH collateral'  │ 'https://resupply.fi/supply' │
│ 9       │ '0x24ccbd9130ec24945916095ec54e9acc7382c864-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SCRVUSD' │ 3049433.64  │ 0       │ 3.1487        │ 15.7376            │ 3049433.64     │ 2586221.98     │ 0.8480991178414362 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - scrvUSD collateral'  │ 'https://resupply.fi/supply' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴────────────┴─────────────────┴─────────────┴─────────┴───────────────┴────────────────────┴────────────────┴────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────┴──────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The resupply adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬────────────┬─────────────────┬─────────────┬─────────┬───────────────┬────────────────────┬────────────────┬────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────┬──────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project    │ symbol          │ tvlUsd      │ apyBase │ apyBaseBorrow │ apyRewardBorrow    │ totalSupplyUsd │ totalBorrowUsd │ ltv                │ underlyingTokens                                 │ rewardTokens                                                                                                                                 │ poolMeta                         │ url                          │
├─────────┼───────────────────────────────────────────────────────┼────────────┼────────────┼─────────────────┼─────────────┼─────────┼───────────────┼────────────────────┼────────────────┼────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────┤
│ 0       │ '0x2d8ecd48b58e53972dbc54d8d0414002b41abc9d-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WBTC'    │ 12095546.17 │ 0.1976  │ 3.1487        │ 25.8084            │ 12095546.17    │ 10333715.41    │ 0.8543405369846148 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WBTC collateral'    │ 'https://resupply.fi/supply' │
│ 1       │ '0x08064a8eeecf71203449228f3eac65e462009fdf-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SDOLA'   │ 11222254.52 │ 3.4045  │ 3.1487        │ 34.5497            │ 11222254.52    │ 9998930.98     │ 0.8909912854124076 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sDOLA collateral'   │ 'https://resupply.fi/supply' │
│ 2       │ '0xcf1deb0570c2f7dee8c07a7e5fa2bd4b2b96520d-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WETH'    │ 10181996.39 │ 0.0239  │ 3.1487        │ 45.775800000000004 │ 10181996.39    │ 8830867.09     │ 0.8673021234492895 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WETH collateral'    │ 'https://resupply.fi/supply' │
│ 3       │ '0xc5184cccf85b81eddc661330acb3e41bd89f34a1-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SFRXUSD' │ 9441922.56  │ 4.0066  │ 3.1487        │ 32.4654            │ 9441922.56     │ 8359181.46     │ 0.8853262041581497 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sfrxUSD collateral' │ 'https://resupply.fi/supply' │
│ 4       │ '0x39ea8e7f44e9303a7441b1e1a4f5731f1028505c-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SUSDE'   │ 8817799.02  │ 2.2278  │ 3.1487        │ 34.9746            │ 8817799.02     │ 7822594.35     │ 0.8871368390521561 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sUSDe collateral'   │ 'https://resupply.fi/supply' │
│ 5       │ '0x4a7c64932d1ef0b4a2d430ea10184e3b87095e33-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WSTETH'  │ 6818565.59  │ 0.0859  │ 3.1487        │ 43.0948            │ 6818565.59     │ 6035320.27     │ 0.8851304853400992 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - wstETH collateral'  │ 'https://resupply.fi/supply' │
│ 6       │ '0x3b037329ff77b5863e6a3c844ad2a7506abe5706-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-USDE'    │ 5066051.06  │ 0.2594  │ 3.1487        │ 32.837599999999995 │ 5066051.06     │ 4394852.13     │ 0.8675104293165178 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - USDe collateral'    │ 'https://resupply.fi/supply' │
│ 7       │ '0x3f2b20b8e8ce30bb52239d3dfadf826ecfe6a5f7-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SFRXETH' │ 3590679.86  │ 0.0991  │ 3.1487        │ 16.772             │ 3590679.86     │ 3192013.25     │ 0.8889718310893916 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - sfrxETH collateral'  │ 'https://resupply.fi/supply' │
│ 8       │ '0x24ccbd9130ec24945916095ec54e9acc7382c864-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-SCRVUSD' │ 3346781     │ 0       │ 3.1487        │ 17.3811            │ 3346781        │ 2853750.95     │ 0.852685296707493  │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - scrvUSD collateral'  │ 'https://resupply.fi/supply' │
│ 9       │ '0xb5575fe3d3b7877415a166001f67c2df94d4e6c1-ethereum' │ 'Ethereum' │ 'resupply' │ 'REUSD-WBTC'    │ 3262762.29  │ 0.2456  │ 3.1487        │ 17.776             │ 3262762.29     │ 2820539.88     │ 0.8644637976369403 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - WBTC collateral'     │ 'https://resupply.fi/supply' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴────────────┴─────────────────┴─────────────┴─────────┴───────────────┴────────────────────┴────────────────┴────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────┴──────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

@benber86

can u confirm that users need to borrow reUSD when supplying crvUsd or frxUSD on resupply?

if so, some required changes:

  • symbol should be the deposit token only, in this case either crvUsd or frxUsd
  • add mintedCoin = reUSD
  • in your case, use totalSupplyUsd = tvlUsd (the total amount of deposited crvUsd or frxUsd for a market)
  • totalBorrowUsd = total amount of borrowed reUSD
  • add debtCeilingUsd = the max borrow amount of a market

@llamatester
Copy link

The resupply adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬────────────┬──────────┬─────────────┬────────────┬─────────┬───────────────┬────────────────────┬────────────────┬────────────────┬────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────┬──────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project    │ symbol   │ tvlUsd      │ mintedCoin │ apyBase │ apyBaseBorrow │ apyRewardBorrow    │ totalSupplyUsd │ totalBorrowUsd │ debtCeilingUsd │ ltv                │ underlyingTokens                                 │ rewardTokens                                                                                                                                 │ poolMeta                         │ url                          │
├─────────┼───────────────────────────────────────────────────────┼────────────┼────────────┼──────────┼─────────────┼────────────┼─────────┼───────────────┼────────────────────┼────────────────┼────────────────┼────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼──────────────────────────────┤
│ 0       │ '0x2d8ecd48b58e53972dbc54d8d0414002b41abc9d-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 12080028.71 │ 'reUSD'    │ 0.1983  │ 3.1487        │ 26.3008            │ 12080028.71    │ 10322252.19    │ 100000000      │ 0.854489044504928  │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WBTC collateral'    │ 'https://resupply.fi/supply' │
│ 1       │ '0x08064a8eeecf71203449228f3eac65e462009fdf-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 11204327.02 │ 'reUSD'    │ 3.4003  │ 3.1487        │ 35.9142            │ 11204327.02    │ 9985772.63     │ 10000000       │ 0.8912425183748341 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sDOLA collateral'   │ 'https://resupply.fi/supply' │
│ 2       │ '0xcf1deb0570c2f7dee8c07a7e5fa2bd4b2b96520d-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 10160651.34 │ 'reUSD'    │ 0.0239  │ 3.1487        │ 46.672000000000004 │ 10160651.34    │ 8815315.5      │ 100000000      │ 0.8675935434666731 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - WETH collateral'    │ 'https://resupply.fi/supply' │
│ 3       │ '0xc5184cccf85b81eddc661330acb3e41bd89f34a1-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 9517532.63  │ 'reUSD'    │ 3.8988  │ 3.1487        │ 33.4363            │ 9517532.63     │ 8421136.87     │ 50000000       │ 0.8848025215543703 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sfrxUSD collateral' │ 'https://resupply.fi/supply' │
│ 4       │ '0x39ea8e7f44e9303a7441b1e1a4f5731f1028505c-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 8827290.6   │ 'reUSD'    │ 2.2154  │ 3.1487        │ 36.12220000000001  │ 8827290.6      │ 7829300.33     │ 25000000       │ 0.8869426288061708 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - sUSDe collateral'   │ 'https://resupply.fi/supply' │
│ 5       │ '0x4a7c64932d1ef0b4a2d430ea10184e3b87095e33-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 6718185.23  │ 'reUSD'    │ 0.0892  │ 3.1487        │ 14.867899999999999 │ 6718185.23     │ 5934565.08     │ 100000000      │ 0.8833583589656399 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - wstETH collateral'  │ 'https://resupply.fi/supply' │
│ 6       │ '0x3b037329ff77b5863e6a3c844ad2a7506abe5706-ethereum' │ 'Ethereum' │ 'resupply' │ 'CRVUSD' │ 5070655.87  │ 'reUSD'    │ 0.2584  │ 3.1487        │ 33.408100000000005 │ 5070655.87     │ 4398034.11     │ 25000000       │ 0.8673501461656083 │ [ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726', '0xd533a949740bb3306d119cc777fa900ba034cd52', '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Curvelend - USDe collateral'    │ 'https://resupply.fi/supply' │
│ 7       │ '0x3f2b20b8e8ce30bb52239d3dfadf826ecfe6a5f7-ethereum' │ 'Ethereum' │ 'resupply' │ 'FRXUSD' │ 3491742.13  │ 'reUSD'    │ 0.1011  │ 3.1487        │ 17.3112            │ 3491742.13     │ 3092582.01     │ 50000000       │ 0.8856845365038454 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - sfrxETH collateral'  │ 'https://resupply.fi/supply' │
│ 8       │ '0x24ccbd9130ec24945916095ec54e9acc7382c864-ethereum' │ 'Ethereum' │ 'resupply' │ 'FRXUSD' │ 3346781     │ 'reUSD'    │ 0       │ 3.1487        │ 17.3811            │ 3346781        │ 2853750.95     │ 50000000       │ 0.852685296707493  │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - scrvUSD collateral'  │ 'https://resupply.fi/supply' │
│ 9       │ '0xb5575fe3d3b7877415a166001f67c2df94d4e6c1-ethereum' │ 'Ethereum' │ 'resupply' │ 'FRXUSD' │ 3268914.78  │ 'reUSD'    │ 0.2452  │ 3.1487        │ 17.6856            │ 3268914.78     │ 2834956.2      │ 100000000      │ 0.8672468971491513 │ [ '0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29' ] │ [ '0x419905009e4656fdc02418c7df35b1e61ed5f726' ]                                                                                             │ 'Fraxlend - WBTC collateral'     │ 'https://resupply.fi/supply' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴────────────┴──────────┴─────────────┴────────────┴─────────┴───────────────┴────────────────────┴────────────────┴────────────────┴────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────┴──────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@benber86
Copy link
Contributor Author

benber86 commented Apr 9, 2025

@slasher125

  • symbol should be the deposit token only, in this case either crvUsd or frxUsd - fixed
  • add mintedCoin = reUSD - added
  • in your case, use totalSupplyUsd = tvlUsd (the total amount of deposited crvUsd or frxUsd for a market) - already the case
  • totalBorrowUsd = total amount of borrowed reUSD - already the case
  • add debtCeilingUsd = the max borrow amount of a market - added

@slasher125 slasher125 merged commit f3c1ad3 into DefiLlama:master Apr 9, 2025
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