Skip to content

Commit

Permalink
[strkfarm/index.js] refac strkfarm domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ariyan-hashstack committed Jan 10, 2025
2 parents 33231ac + 5318a49 commit 1e766bd
Show file tree
Hide file tree
Showing 101 changed files with 12,722 additions and 1,268 deletions.
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ jobs:
VENDOR_FINANCE: ${{ secrets.VENDOR_FINANCE }}
TRADERJOE: ${{ secrets.TRADERJOE }}
GRAPH_API_KEY: ${{ secrets.GRAPH_API_KEY }}
OSMOSIS_API_KEY: ${{ secrets.OSMOSIS_API_KEY}}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,21 @@ A note on how to set apy related fields:
- 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)
```

#### FAQ
### FAQ

> Why are some pools missing on DefiLlama which appear on my adapter?
#### Why are some pools missing on DefiLlama which appear on my adapter?

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

> I'm getting errors when running `npm install`
#### I'm getting errors when running `npm install`

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

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

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

#### Adapter module structure
### Adapter module structure

```js
module.exports = {
Expand Down
1 change: 1 addition & 0 deletions env.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ module.exports = {
GRAPH_API_KEY: process.env.GRAPH_API_KEY,
// DB
DATABASE_URL: process.env.DATABASE_URL,
OSMOSIS_API_KEY: process.env.OSMOSIS_API_KEY,
};
212 changes: 205 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"@blend-capital/blend-sdk": "^2.2.0",
"@defillama/sdk": "^5.0.60",
"@stacks/network": "^6.13.0",
"@stacks/transactions": "^6.15.0",
"@ton/ton": "14.0.0",
"@types/jest": "^28.1.6",
"@uniswap/sdk-core": "^5.3.0",
"@uniswap/v3-sdk": "^3.13.0",
Expand All @@ -41,10 +45,7 @@
"starknet": "^4.22.0",
"superagent": "^6.1.0",
"validator": "^13.9.0",
"web3": "^4.9.0",
"@ton/ton": "14.0.0",
"@stacks/network": "^6.13.0",
"@stacks/transactions": "^6.15.0"
"web3": "^4.9.0"
},
"devDependencies": {
"@babel/core": "^7.17.8",
Expand Down
1 change: 1 addition & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ functions:
SMARDEX_SUBGRAPH_API_KEY: ${file(./env.js):SMARDEX_SUBGRAPH_API_KEY}
VENDOR_FINANCE: ${file(./env.js):VENDOR_FINANCE}
TRADERJOE: ${file(./env.js):TRADERJOE}
OSMOSIS_API_KEY: ${file(./env.js):OSMOSIS_API_KEY}

# --- data enrichment
triggerEnrichment:
Expand Down
2 changes: 1 addition & 1 deletion src/adaptors/aave-v3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const stkGho = async () => {

const stkghoMeritApy = (
await axios.get('https://apps.aavechan.com/api/merit/base-aprs')
).data.actionsAPR['ethereum-stkgho'];
).data['ethereum-stkgho'];

const stkghoApy = stkghoNativeApy + stkghoMeritApy;

Expand Down
Loading

0 comments on commit 1e766bd

Please sign in to comment.