Skip to content

Commit 128555f

Browse files
authored
Merge branch 'DefiLlama:master' into master
2 parents 97dfbea + 8ccecbc commit 128555f

File tree

503 files changed

+70655
-18266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+70655
-18266
lines changed

.github/workflows/master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ jobs:
4545
TRADERJOE: ${{ secrets.TRADERJOE }}
4646
GRAPH_API_KEY: ${{ secrets.GRAPH_API_KEY }}
4747
OSMOSIS_API_KEY: ${{ secrets.OSMOSIS_API_KEY}}
48+
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY}}
49+
HYPERLIQUID_RPC: ${{ secrets.HYPERLIQUID_RPC }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- id: file_changes
8-
uses: trilom/file-changes-action@v1.2.3
8+
uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272
99
with:
1010
output: 'json'
1111
fileOutput: 'json'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Untitled.ipynb
1515
yarn-error.log
1616
test.sql
1717
yarn.lock
18+
.test-adapter-output/
1819

1920

2021
src/adaptors/maverick-protocol/

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@ A note on how to set apy related fields:
7474
- if you are unsure/your data source doesn't contain a detailed breakdown, then provide an `apy` field indicating the total apy and omit the `apyBase` and `apyReward` fields (or set to null)
7575
```
7676

77-
#### FAQ
77+
### FAQ
7878

79-
> Why are some pools missing on DefiLlama which appear on my adapter?
79+
#### Why are some pools missing on DefiLlama which appear on my adapter?
8080

8181
DefiLlama only displays pools with >10k TVL, so pools with less TVL than that will appear on the adapter but not on defillama
8282

83-
> I'm getting errors when running `npm install`
83+
#### I'm getting errors when running `npm install`
8484

8585
Make sure you're running the command inside the `src/adaptors` folder, not in the project root folder.
8686

87-
> Why is X pool missing from https://defillama.com/yields/stablecoins ?
87+
#### Why is X pool missing from https://defillama.com/yields/stablecoins ?
8888

8989
That page has stricter filters than other pages, only pools with >1M TVL and on audited protocols are included there.
9090

91-
#### Adapter module structure
91+
### Adapter module structure
9292

9393
```js
9494
module.exports = {

env.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ module.exports = {
2727
// DB
2828
DATABASE_URL: process.env.DATABASE_URL,
2929
OSMOSIS_API_KEY: process.env.OSMOSIS_API_KEY,
30+
DUNE_API_KEY: process.env.DUNE_API_KEY,
31+
HYPERLIQUID_RPC: process.env.HYPERLIQUID_RPC,
3032
};

migrations/yield_indices.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- used for fetching latest apy values per pool with min tvl filter
2+
CREATE INDEX concurrently yield_cfg_ts_desc_high_tvl_idx
3+
ON yield ("configID", timestamp DESC)
4+
INCLUDE ("tvlUsd")
5+
WHERE "tvlUsd" >= 10000;
6+
7+
8+
-- used by avg N day query
9+
CREATE INDEX CONCURRENTLY yield_ts_cfg_idx
10+
ON yield (timestamp DESC, "configID")
11+
INCLUDE (apy);

0 commit comments

Comments
 (0)