Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6381 commits
Select commit Hold shift + click to select a range
3c63912
add apy split
slasher125 May 4, 2026
35969fc
apy split
slasher125 May 4, 2026
980b786
split apy
slasher125 May 4, 2026
f47a641
remove project
slasher125 May 4, 2026
780ec84
update exclusion list
slasher125 May 4, 2026
5db3f06
fix symbol
slasher125 May 4, 2026
f2aaefa
use new sanctum api w/fallback (#2648)
0xkr3p May 4, 2026
65535d4
remove project
slasher125 May 5, 2026
8690e32
update url
slasher125 May 5, 2026
3d19ed2
remove project
slasher125 May 5, 2026
9f96333
metrom fix
slasher125 May 5, 2026
eb89f13
fix(jupiter-lend): staking double count (#2649)
0xkr3p May 5, 2026
c542db6
feat(fluid-lite): add lite usd vault tvl and rates (#2640)
SamarendraGouda May 5, 2026
da87652
refactor hyperswap-v3 onchain instead of broken subgraph (#2650)
0xkr3p May 5, 2026
1fdb4b1
hyperswap-v3 subgraph (#2652)
0xkr3p May 6, 2026
8bfe68b
feat: add accountable on Citrea (#2647)
eyusufatik May 6, 2026
6c0cba5
use stats.tvl (#2654)
0xkr3p May 6, 2026
d282073
hyperswap-v2 subgraph (#2657)
0xkr3p May 6, 2026
3682f1a
feat: add chainflip lending pools (#2576)
zoheb391 May 6, 2026
e00ac3c
feat(yo-protocol): include yoSOL rewards in adapter (#2656)
AndonMitev May 6, 2026
8abd2e4
Update APY calculation to include landing sales revenue (#2653)
trxadm May 7, 2026
d78ab8a
improve accuracy for token / rewards / underlying (#2658)
0xkr3p May 7, 2026
9ebe3fe
feat: add gmtrade yield adapter (#2639)
thomas-pixel-star May 8, 2026
4a2f952
fix usual-eth0 underlying (#2662)
0xkr3p May 8, 2026
0002d50
feat(ample): add adapter (#2661)
0xkr3p May 8, 2026
b677c47
add steth price fallback (#2663)
0xkr3p May 10, 2026
4657725
additional price per share coverage (#2664)
0xkr3p May 10, 2026
7c36618
update exclusion
slasher125 May 5, 2026
3c31434
add db health logging
slasher125 May 11, 2026
a68e040
add concrete (#2667)
0xkr3p May 11, 2026
b304a1a
add megaeth gUSDm vault (#2665)
0xCrumb May 11, 2026
dd7e9a1
add ember protocol (#2668)
0xkr3p May 11, 2026
4d12720
add felix cdp (#2669)
0xkr3p May 11, 2026
8b0ff23
rename liminal -> liminal-basis (#2672)
0xkr3p May 12, 2026
8438373
remove utils.formatSymbol(symbol) from adapters
slasher125 May 12, 2026
f3a9f45
Merge pull request #2674 from DefiLlama/remove-formatsymbol-from-adap…
slasher125 May 12, 2026
536bcbb
remove remaining symbol formats
slasher125 May 12, 2026
29a1309
Merge pull request #2675 from DefiLlama/more-symbol-things
slasher125 May 12, 2026
826131c
amnis finance fix apy
slasher125 May 13, 2026
e5d514d
temp remove amnis
slasher125 May 13, 2026
4588ef8
return all pools from the ekubo adapter instead of just top pool (#2600)
moodysalem May 13, 2026
cc96b57
add mezo vaults (#2676)
0xkr3p May 13, 2026
a8c831f
update exclusion
slasher125 May 13, 2026
6e60745
update exclusion
slasher125 May 13, 2026
1721062
update exclusion
slasher125 May 14, 2026
db75ab9
use lp address for pool value
0xkr3p May 14, 2026
9812dc7
refactor concetrator
slasher125 May 14, 2026
93d68dd
Merge pull request #2679 from 0xkr3p/fix/across-pool-value
slasher125 May 14, 2026
3cc1456
yusan use gecko ids for underlying
slasher125 May 14, 2026
817efa2
fix liqwid underlying
slasher125 May 14, 2026
ca74fd2
fix wing finance missing underlying
slasher125 May 14, 2026
54e84bf
more exclusion updates
slasher125 May 14, 2026
51bedfb
add missing underlying
slasher125 May 14, 2026
528422c
fixes
slasher125 May 14, 2026
b218cde
beefy fix: their apy includes merkl rewards already
slasher125 May 14, 2026
d6590c0
rename benddao-lending
slasher125 May 15, 2026
8bf8cc0
modify slug to benddao-lending-v1 (#2684)
0xkr3p May 15, 2026
ee503c3
arche: add Metrom incentive APY (#2683)
yieldarche May 15, 2026
840cb76
benddao migration (#2685)
0xkr3p May 15, 2026
09e1df1
morpho-blue: use 1d-realized APY and drop spike snapshots
0xkr3p May 15, 2026
c3bb33c
feat(mezo-earn): add adapter (#2687)
0xkr3p May 16, 2026
e725bc1
add new sGHO, mark old one as legacy
slasher125 May 17, 2026
6552625
change reward for legacy gho pool
slasher125 May 17, 2026
ce10b50
add aave umbrealla gho
slasher125 May 17, 2026
7217668
aave-v3 add remaining umbrella pools
slasher125 May 17, 2026
ba76259
Merge pull request #2686 from 0xkr3p/fix/morpho-blue-apy-spike-filter
slasher125 May 18, 2026
860ce8e
feat: add ScrubVault yield pools to scrub project (Kava USDt + Arbitr…
gaspare100 May 18, 2026
1b93aaf
fix pool values
slasher125 May 18, 2026
2c4efa0
borrow token batch1
slasher125 May 18, 2026
257c30a
update exclusion
slasher125 May 18, 2026
8f959ad
Merge pull request #2692 from DefiLlama/add-borrow-token
slasher125 May 18, 2026
b4230e8
fix underlying, symbol in fluid-lending/ajna-v2
slasher125 May 18, 2026
8266096
add search token override to pendle
slasher125 May 18, 2026
e8eb3f6
fira fix undelrying
slasher125 May 18, 2026
90fa15f
update exclusion
slasher125 May 18, 2026
913471c
fix rewardtoken tectonic
slasher125 May 18, 2026
6b6f657
update exclusion
slasher125 May 18, 2026
701d1c1
lista fix reward token
slasher125 May 18, 2026
2eaacb4
rename aegis
slasher125 May 19, 2026
f0c6f74
update exclusion
slasher125 May 19, 2026
17bca7f
refactor(scrubvault): publish under scrubvault slug for Basis Trading…
gaspare100 May 19, 2026
6c81d65
update bifi source
slasher125 May 19, 2026
d808284
Merge branch 'master' of github.com:DefiLlama/yield-server
slasher125 May 19, 2026
07654a6
update exclusion
slasher125 May 19, 2026
c7ad389
update exclusion
slasher125 May 19, 2026
469cc6e
layerbank remove frozen/inactive markets
slasher125 May 19, 2026
9b14d6d
update exclusion
slasher125 May 19, 2026
91e7d3f
add uncollateralized lending to $0 tvl bypass
slasher125 May 19, 2026
e024a39
sparklend remove frozen markets, fix tvl for dai, add urls
slasher125 May 19, 2026
817089e
feat: 🎸 added saturn trache (#2689)
0xnaman1 May 20, 2026
2302853
Add vesting APY as reward APY to selected IPOR Fusion vaults (#2670)
rav-ipor May 20, 2026
e4d5de7
Add Unblock Equity yield adapter — 24 vaults on Base (#2659)
vladimirzoyan May 20, 2026
cb820a1
migration scrub -> scrubvault (#2696)
0xkr3p May 20, 2026
4dc2d30
Add Circuit protocol yield/APY adapter (#2548)
nimcon May 20, 2026
3f98c9b
moonwell lending fix (#2697)
0xkr3p May 20, 2026
3ef6bad
crvusd fix decimals for ltv
slasher125 May 20, 2026
b85eadc
update url endpoint
slasher125 May 21, 2026
9da1935
velo-v3 remove the gauge null address filter
slasher125 May 21, 2026
f1fb7b0
aave-v3 fix gho tvl
slasher125 May 21, 2026
e07127e
velodrome-v2 include pools with missing gauge rewards
slasher125 May 21, 2026
4f2c581
Centrifuge adaptor (#2666)
0x4Graham May 21, 2026
4280588
aave-v3 use reserve debt fields for totalBorrowUsd
slasher125 May 21, 2026
2647d62
takara fix for neg tvl
slasher125 May 21, 2026
19a978d
remove depcreated pools for abracadabra-spell
slasher125 May 21, 2026
401b6dd
fix avalon case of neg tvl
slasher125 May 21, 2026
bc6c48b
fix potential neg tvl on colend
slasher125 May 21, 2026
814138f
exactly remove frozen markets
slasher125 May 21, 2026
9d399a2
fix dedust adapter (#2699)
0xkr3p May 21, 2026
e472943
fix ltv for exactly
slasher125 May 22, 2026
f360f23
hyperlend-pooled improve totalBorrow calc
slasher125 May 22, 2026
c4ff67f
improve borrow value for extra-finance-xlend
slasher125 May 22, 2026
37cd82f
fraxlend remove dust pools
slasher125 May 22, 2026
fdf728f
curve-llamalend check for bad entries
slasher125 May 22, 2026
98d3ed5
aave remove legacy etherfi market, update poolmeta
slasher125 May 23, 2026
113fdcd
exclude
slasher125 May 23, 2026
c35d385
uni-v4 improve filter
slasher125 May 23, 2026
bea2ec5
morpho replace whitelisted with listed
slasher125 May 23, 2026
46d33d2
yo-protocol: remove pre-tge reward apy
slasher125 May 23, 2026
ba0b7ae
update readme
slasher125 May 23, 2026
20e843b
fix underlying balancer
slasher125 May 23, 2026
2205901
add rune to thorchain underlying
slasher125 May 24, 2026
bf86083
beefy fix retired check
slasher125 May 24, 2026
47f3c5e
bex fix underlying
slasher125 May 24, 2026
41cf87a
gmtrade change url
slasher125 May 24, 2026
18894a4
bmx fix underlying
slasher125 May 24, 2026
8f39857
nest-credit fix underlying, add search token
slasher125 May 24, 2026
b2dc3df
feat(metrom-adapter): add support for megaeth and pool meta informati…
luzzif May 24, 2026
1a2bd64
update exclusion
slasher125 May 25, 2026
b8378c2
morpho add tempo markets, fix op url
slasher125 May 25, 2026
057535d
rename bitway
slasher125 May 26, 2026
e68a7de
remove gauge filter on subgraph query (#2701)
0xkr3p May 26, 2026
41d572a
fix(etherex-cl): remove gauge filter from query (#2702)
0xkr3p May 26, 2026
cc45c47
Add Liquidium USDC pool to yields adapter (#2700)
robin-liquidium May 26, 2026
cfec1b6
feat(kintsu): switch APY to 7d window and add inception APY (#2655)
realnimish May 26, 2026
c243ce8
feat: add yzPrime, and bridge on HyperEVM, SEI (#2693)
tangten May 26, 2026
570fec6
rename nest-v1 to nest-amm (#2706)
0xkr3p May 26, 2026
c638ebb
Satsuma: index all Citrea LP pools and ICHI vaults (#2704)
MiguelBits May 27, 2026
5f646b3
Add phoenix-protocol (phUSD staking) (#2682)
gititGoro May 27, 2026
92184cf
add new borrorw fields
slasher125 May 27, 2026
5e8d20e
Merge pull request #2708 from DefiLlama/add-new-borrow-fields
slasher125 May 27, 2026
2fa3fdc
aave-v3: add new borrow fields
slasher125 May 27, 2026
33401ad
aave-v3: add new borrow fields for aptos too. keep legacy tvl def
slasher125 May 27, 2026
be1384d
add monolith-market saving vaults & cdp markets (#2660)
webmass May 28, 2026
3b5c4ea
add availableBorrowUsd to aave-v3 forks
slasher125 May 28, 2026
9a51d24
Merge pull request #2711 from DefiLlama/add-availableBorrowUsd-field
slasher125 May 28, 2026
5f0d81c
add field to aave-v2 forks
slasher125 May 28, 2026
650ec24
compound-v2 forks
slasher125 May 28, 2026
77fc8a9
Merge pull request #2712 from DefiLlama/add-availableBorrowUsd-remainder
slasher125 May 28, 2026
b7636c1
update exclusion
slasher125 May 28, 2026
e80374a
fix graphql queries (#2713)
0xkr3p May 28, 2026
7521d8a
add availableBorrowUsd to compound-v3
slasher125 May 29, 2026
2e6afa8
remove deprecated il computation
slasher125 May 29, 2026
b21c943
compound-v3: fold comet borrow metrics into collateral rows
slasher125 May 29, 2026
a1f05d9
marketKey field
slasher125 May 29, 2026
91cd073
morpho-blue add availableBorrowUsd
slasher125 May 29, 2026
9ad861f
sky-lending,lista-cdp add availableBorrowUsd
slasher125 May 29, 2026
a62ecec
liquity(and forks): add availableborrowusd
slasher125 May 29, 2026
94f9341
save add availableBorrowUsd
slasher125 May 29, 2026
daaad80
Add Flying Tulip ftUSD APY adapter (#2631)
patcito May 30, 2026
cbdfd02
exclude
slasher125 May 30, 2026
41720f1
exclude
slasher125 May 30, 2026
90274c2
exclude
slasher125 May 30, 2026
56c39ab
fluid-lending add plasma
slasher125 May 31, 2026
625418a
fluid lending drop deprecated pools
slasher125 May 31, 2026
f771a05
fix fira lending structure
slasher125 May 31, 2026
af0ca21
fluid-lending: add new borrow fields
slasher125 May 31, 2026
e30f855
folks-finance*: add borrowable, availableBorrowUsd, check for depreca…
slasher125 May 31, 2026
f05f9b2
venus-core-pool: check for isListed
slasher125 May 31, 2026
1827f2d
fluid-lending: add polygon vaults
slasher125 May 31, 2026
53ebbd9
blend-pools-v2: add availableBorrowUsd
slasher125 May 31, 2026
aff594f
crvusd: add availableBorrowUsd
slasher125 May 31, 2026
92a6191
dolomite: add availableBorrowUsd
slasher125 May 31, 2026
77ac2e5
evaa-protocol: add availableBorrowUsd
slasher125 May 31, 2026
79eafb9
echelon-market: add availableBorrowUsd
slasher125 May 31, 2026
de8d779
inverse-finance-firm: add new borrowfields
slasher125 May 31, 2026
752ab57
kava-mint: add new borrowfields
slasher125 May 31, 2026
d407074
navi-lending add new borrow fields
slasher125 May 31, 2026
af21096
project-0 add new borrow fields
slasher125 May 31, 2026
536e3c7
current add new borrow fields
slasher125 May 31, 2026
7e9e4b0
update exlcusion
slasher125 May 31, 2026
e1970aa
monoligh fix
slasher125 May 31, 2026
03125a5
update readme
slasher125 Jun 1, 2026
4b5850c
refactor merkl to use api key (#2707)
0xkr3p Jun 1, 2026
c4728e7
exclude
slasher125 Jun 1, 2026
0b42cdc
Merge branch 'master' of github.com:DefiLlama/yield-server
slasher125 Jun 1, 2026
d540bff
kamino-lend: add other markets, add new borrow fields
slasher125 Jun 1, 2026
28267ae
Add Gremlix yields adapter (#2673)
anatoliyck Jun 1, 2026
69933ad
add new borrow fields
slasher125 Jun 1, 2026
ef140df
Merge branch 'master' of github.com:DefiLlama/yield-server
slasher125 Jun 1, 2026
4d9ee63
update exclusion
slasher125 Jun 1, 2026
bb3486a
tighten lending tvl filters
slasher125 Jun 1, 2026
abd6282
optimized O(n²) pool lookup to O(n) with Map in getPoolsBorrow (#2716)
adityamane765 Jun 1, 2026
9815d7e
compound-v3: model collateral routes via comet marketKey
slasher125 Jun 2, 2026
2bde17d
euler-v2 remove unused code block
slasher125 Jun 2, 2026
50266c6
euler-v2 fix urls
slasher125 Jun 2, 2026
7bde80d
euler-v2 drop deprecated earn pools
slasher125 Jun 2, 2026
fb949ef
exclude
slasher125 Jun 2, 2026
e88dce4
exclude
slasher125 Jun 2, 2026
2311297
terminate immediately on ctrl c
slasher125 Jun 2, 2026
62932a3
fix(euler-v2): source earn vault state from live lens data
slasher125 Jun 2, 2026
17a17bc
euler-v2 fix urls
slasher125 Jun 2, 2026
34f5dcb
exclude
slasher125 Jun 2, 2026
d7a7a13
euler-v2: fetch EVK lend metrics from vault lens
slasher125 Jun 2, 2026
3540905
euler-v2: remove bob chain
slasher125 Jun 2, 2026
fa5406a
curve-llamalend: fix structure
slasher125 Jun 2, 2026
97bea2a
euler-v2: remove deprecated chain deployments
slasher125 Jun 2, 2026
6248c79
rename superstate adapters (#2721)
0xkr3p Jun 2, 2026
2b9f95f
fraxlend fix structure
slasher125 Jun 3, 2026
9e9cd04
exclude
slasher125 Jun 3, 2026
2d9d03d
exclude
slasher125 Jun 3, 2026
6d14c7a
exclude
slasher125 Jun 3, 2026
05aa2e4
add poolKind for routing to tests
slasher125 Jun 3, 2026
5f0b7cb
dont persist routing_collateral entries to config/yield table
slasher125 Jun 3, 2026
2328373
euler-v2: add routing_collatera
slasher125 Jun 3, 2026
ad59455
compound-v3 add routing collateral field
slasher125 Jun 3, 2026
4600338
exclude
slasher125 Jun 3, 2026
5357ea4
update url
slasher125 Jun 3, 2026
e0f0b4e
ZealousSwap: Add Igra Network (#2720)
louissaadgo Jun 3, 2026
578afeb
compound-v3 add comment
slasher125 Jun 3, 2026
02bf149
change collateralMarketKey -> underlyingStateKey
slasher125 Jun 3, 2026
e1b3ce4
euler-v2 use underlyingStateKey
slasher125 Jun 3, 2026
ec1e3ba
skip aave-v4 routing
slasher125 Jun 3, 2026
4aab707
add aave-v4 collateral routes
slasher125 Jun 3, 2026
50c23ac
Merge branch 'master' of github.com:DefiLlama/yield-server
slasher125 Jun 3, 2026
1ed7db5
rename marketKey -> routeGroupKey
slasher125 Jun 3, 2026
05420e5
Add Gami Labs yield adapter (#2715)
marien-gami Jun 3, 2026
e9c43ef
add borrowToken where missing
slasher125 Jun 3, 2026
9db236f
Merge pull request #2725 from DefiLlama/add-missing-borrowToken
slasher125 Jun 3, 2026
70ba65d
update gitignore
slasher125 Jun 3, 2026
b7d4e07
feat: add Brix wiTRY yield adapter (#2680)
ismailemin Jun 3, 2026
cc15188
rename changes (#2726)
0xkr3p Jun 3, 2026
de327d9
nest cl
0xkr3p Jun 3, 2026
1864742
fix url
slasher125 Jun 4, 2026
1df8a70
ramses-hl fix
slasher125 Jun 5, 2026
e22e001
exclude
slasher125 Jun 5, 2026
caa7570
split nest pools (#2727)
0xkr3p Jun 5, 2026
9f03246
aave-v4: add hub available liq
slasher125 Jun 5, 2026
c7bba6c
accountable: add ethereum support and use API TVL
pawel-accountable Jun 5, 2026
40d4329
Merge pull request #2728 from pawel-accountable/feat/accountable-eth-…
g1nt0ki Jun 5, 2026
517ce48
uni v3 forks: use active liquidity for v3 fee APY estimates
slasher125 Jun 5, 2026
761adb4
silo-v2 fix structure
slasher125 Jun 5, 2026
a05fbff
exclude
slasher125 Jun 6, 2026
7e7184c
wildcat-protocol: dedupe price API keys
slasher125 Jun 6, 2026
f9cca1d
exclude
slasher125 Jun 6, 2026
0d2707e
exclude
slasher125 Jun 6, 2026
f1fcb3b
exclude
slasher125 Jun 6, 2026
ad88106
Add ForgeYields yield adaptor …
0xSacha Jun 6, 2026
3f3fdcd
geth fix
slasher125 Jun 6, 2026
910b889
Merge branch 'master' of github.com:DefiLlama/yield-server
slasher125 Jun 6, 2026
b8b2fa4
exactly update structure for b-aggregator
slasher125 Jun 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 63 additions & 0 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Comment_PR
on:
workflow_run:
workflows: ["Test_Change"]
types: [completed]

permissions:
pull-requests: write
actions: read

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Download PR comments artifact
id: download
uses: actions/download-artifact@v4
with:
name: pr-comments
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
path: pr-comments
continue-on-error: true

- name: Post comments on PR
if: steps.download.outcome == 'success'
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const path = require('path');

const dir = 'pr-comments';
if (!fs.existsSync(dir)) {
core.info('No pr-comments directory, nothing to post.');
return;
}

const prNumberPath = path.join(dir, 'pr-number.txt');
if (!fs.existsSync(prNumberPath)) {
core.info('No pr-number.txt, nothing to post.');
return;
}
const prNumber = Number(fs.readFileSync(prNumberPath, 'utf8').trim());
if (!Number.isInteger(prNumber) || prNumber <= 0) {
core.setFailed(`Invalid PR number in artifact: ${prNumber}`);
return;
}

const files = fs.readdirSync(dir)
.filter(f => f.endsWith('.md'))
.sort();

for (const f of files) {
const body = fs.readFileSync(path.join(dir, f), 'utf8');
if (!body.trim()) continue;
await github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
}
61 changes: 28 additions & 33 deletions .github/workflows/commentResult.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
const { readFileSync } = require('fs');
const fetch = require('node-fetch');
const junk = 'VPTOH1X0B7rf8od7BGNsQ1z0BJk8iMNLxqrD';
const { readFileSync, writeFileSync, mkdirSync } = require('fs');
const path = require('path');

async function main() {
const [, , log, author, repo, pr, path ] = process.argv;
const file = readFileSync(log, 'utf-8');
function main() {
const [, , log, outDir, adapter] = process.argv;
const file = readFileSync(log, 'utf-8');

const passed = /PASS\s+.*test\.js/.test(file);
const failed = /FAIL\s+.*test\.js/.test(file);

const errorString = '------ ERROR ------';
const summaryIndex = file.indexOf('------ TVL ------');
const errorIndex = file.indexOf(errorString);
let body;
// Everything from "Test Suites:" onward (includes pool output from afterTests.js)
const summaryIndex = file.indexOf('Test Suites:');
if (summaryIndex === -1) return;
const output = file.substring(summaryIndex);

if (summaryIndex != -1) {
body = `The adapter at ${path} exports TVL:
\n \n ${file.substring(summaryIndex + 17).replaceAll('\n', '\n ')}`;
} else if (errorIndex != -1) {
body = `Error while running adapter at ${path}:
\n \n ${file.split(errorString)[1].replaceAll('\n', '\n ')}`;
} else
return;
let body;
if (passed && !failed) {
body = `The ${adapter} adapter exports pools:
\n \n ${output.replaceAll('\n', '\n ')}`;
} else if (failed) {
body = `Error while running ${adapter} adapter:
\n \n ${output.replaceAll('\n', '\n ')}`;
} else {
return;
}

await fetch(
`https://api.github.com/repos/${author}/${repo}/issues/${pr}/comments`,
{
body,
method: "POST",
headers: {
Authorization: `token ghp_${translate(junk)}`,
Accept: 'application/vnd.github.v3+json'
}
});
};
function translate(input) {
return input ? translate(input.substring(1)) + input[0] : input;
};
main();
mkdirSync(outDir, { recursive: true });
const safeName = (adapter || 'general').replace(/[^a-zA-Z0-9._-]/g, '_');
const fileName = `${Date.now()}-${process.pid}-${safeName}.md`;
writeFileSync(path.join(outDir, fileName), body);
}

main();
24 changes: 16 additions & 8 deletions .github/workflows/getFileList.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
const MODIFIED = parse(process.env.MODIFIED)
const ADDED = parse(process.env.ADDED)
const MODIFIED = parse(process.env.MODIFIED);
const ADDED = parse(process.env.ADDED);
const fileSet = new Set();

[...MODIFIED, ...ADDED].forEach(file => {
const [root0, root1, dir] = file.split('/')
if (root0 === 'src' && root1 === 'adaptors' && dir !=='test.js' && dir !== 'utils.js') fileSet.add(file)
})
[...MODIFIED, ...ADDED].forEach((file) => {
const [root0, root1, dir] = file.split('/');
if (
root0 === 'src' &&
root1 === 'adaptors' &&
dir !== 'test.js' &&
dir !== 'utils.js' &&
dir !== 'package.json' &&
dir !== 'package-lock.json'
)
fileSet.add(dir);
});

console.log(JSON.stringify([...fileSet]))
console.log(JSON.stringify([...fileSet]));

function parse(data) {
return data.replace('[', '').replace(']', '').split(',')
return (data || '').split(' ').filter(Boolean);
}
54 changes: 41 additions & 13 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,55 @@ jobs:
deploy:
strategy:
matrix:
node-version: [14.x]
node-version: [24.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm ci --omit=optional
- run: node scripts/checkAdaptors.js
- run: node scripts/createAdapterList.js
- name: Run database migrations
run: npm run migrate -- up
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Deploy infrastructure stack
run: npm run deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ETHERSCAN: ${{ secrets.ETHERSCAN}}
FANTOMSCAN: ${{ secrets.FANTOMSCAN }}
POLYGONSCAN: ${{ secrets.POLYGONSCAN }}
SNOWTRACE: ${{ secrets.SNOWTRACE }}
ARBISCAN: ${{ secrets.ARBISCAN }}
OPTIMISM: ${{ secrets.OPTIMISM }}
INFURA_CONNECTION: ${{ secrets.INFURA_CONNECTION }}
ALCHEMY_CONNECTION_POLYGON: ${{ secrets.ALCHEMY_CONNECTION_POLYGON }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
ALCHEMY_CONNECTION_ARBITRUM: ${{ secrets.ALCHEMY_CONNECTION_ARBITRUM }}
XDAI: ${{ secrets.XDAI }}
ALCHEMY_CONNECTION_ETHEREUM: ${{ secrets.ALCHEMY_CONNECTION_ETHEREUM }}
ALCHEMY_CONNECTION_POLYGON: ${{ secrets.ALCHEMY_CONNECTION_POLYGON }}
ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }}
XDAI_RPC: ${{ secrets.XDAI_RPC }}
CRONOS_RPC: ${{ secrets.CRONOS_RPC }}
FANTOM_RPC: ${{ secrets.FANTOM_RPC }}
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }}
AVAX_RPC: ${{ secrets.AVAX_RPC }}
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
TRON_RPC: ${{ secrets.TRON_RPC }}
BASE_RPC: ${{ secrets.BASE_RPC }}
TVL_SPIKE_WEBHOOK: ${{ secrets.TVL_SPIKE_WEBHOOK }}
NEW_YIELDS_WEBHOOK: ${{ secrets.NEW_YIELDS_WEBHOOK }}
STALE_PROJECTS_WEBHOOK: ${{ secrets.STALE_PROJECTS_WEBHOOK }}
ZEROX_API: ${{ secrets.ZEROX_API }}
SMARDEX_SUBGRAPH_API_KEY: ${{ secrets.SMARDEX_SUBGRAPH_API_KEY }}
VENDOR_FINANCE: ${{ secrets.VENDOR_FINANCE }}
TRADERJOE: ${{ secrets.TRADERJOE }}
GRAPH_API_KEY: ${{ secrets.GRAPH_API_KEY }}
OSMOSIS_API_KEY: ${{ secrets.OSMOSIS_API_KEY}}
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY}}
HYPERLIQUID_RPC: ${{ secrets.HYPERLIQUID_RPC }}
PLASMA_RPC: ${{ secrets.PLASMA_RPC }}
STARKNET_RPC: ${{ secrets.STARKNET_RPC }}
MONAD_RPC: ${{ secrets.MONAD_RPC }}
LLAMA_INDEXER_V2_ENDPOINT: ${{ secrets.LLAMA_INDEXER_V2_ENDPOINT }}
LLAMA_INDEXER_V2_API_KEY: ${{ secrets.LLAMA_INDEXER_V2_API_KEY }}
PROJECT_0_API_KEY: ${{ secrets.PROJECT_0_API_KEY }}
SANCTUM_API_KEY: ${{ secrets.SANCTUM_API_KEY }}
MERKL_API_KEY: ${{ secrets.MERKL_API_KEY }}
51 changes: 34 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
name: Test_Change
on:
pull_request
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- id: file_changes
uses: trilom/file-changes-action@v1.2.3
with:
output: 'json'
fileOutput: 'json'
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
- id: file_changes
uses: tj-actions/changed-files@v44

- name: Record PR number
run: |
mkdir -p pr-comments
echo "${{ github.event.number }}" > pr-comments/pr-number.txt

- name: Run changes files through test script
env:
ALCHEMY_CONNECTION_ARBITRUM: ${{ secrets.ALCHEMY_CONNECTION_ARBITRUM }}
ALCHEMY_CONNECTION_ETHEREUM: ${{ secrets.ALCHEMY_CONNECTION_ETHEREUM }}
ALCHEMY_CONNECTION_POLYGON: ${{ secrets.ALCHEMY_CONNECTION_POLYGON }}
run: |
RUN_FILES=$(
MODIFIED=${{ steps.file_changes.outputs.files_modified}} \
ADDED=${{ steps.file_changes.outputs.files_added}} \
MODIFIED="${{ steps.file_changes.outputs.modified_files }}" \
ADDED="${{ steps.file_changes.outputs.added_files }}" \
node ${{ github.workspace }}/.github/workflows/getFileList.js
)

Expand All @@ -25,18 +31,29 @@ jobs:
exit 0
fi

npm ci --production --only=prod
npm ci

for i in $(echo $RUN_FILES | tr -d '"[]' | tr "," "\n")
do
{
node ${{ github.workspace }}/src/adaptors/test.js ${{ github.workspace }}/${i} 2>&1 | tee output.txt
node ${{ github.workspace }}/.github/workflows/commentResult.js /home/runner/work/yield-server/yield-server/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i}
if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then
do
{
npm run test --adapter=${i} 2>&1 | tee output.txt
node ${{ github.workspace }}/.github/workflows/commentResult.js ${{ github.workspace }}/output.txt ${{ github.workspace }}/pr-comments ${i}
if grep -qE "PASS\s+.*test\.js" output.txt; then
exit 0;
else
exit 1;
fi
} || {
} || {
echo -n $i
echo ' doesnt run'
}
done

- name: Upload PR comments artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: pr-comments
path: pr-comments/
if-no-files-found: ignore
retention-days: 1
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@ ccImages
.webpack
.idea/
*output.json
*.csv
scripts/*.json
src/adaptors/list.js
Untitled.ipynb
.ipynb_checkpoints/
yarn-error.log
test.sql
yarn.lock
.test-adapter-output/
.claude/
local/
backfill.env*

src/adaptors/maverick-protocol/
src/adaptors/metavault-v3/
src/adaptors/muuu-finance/navi-lending/
src/adaptors/syncswap/
Empty file modified .prettierrc
100755 → 100644
Empty file.
Loading