mirror of
https://github.com/uniwhale-io/DefiLlama-yield-server.git
synced 2026-04-29 20:35:29 +08:00
add warnings + faq
This commit is contained in:
@@ -62,6 +62,15 @@ 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
|
||||
> 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`
|
||||
|
||||
Just remove the packages `pg-promise`, `pg` and `pg-native` from package.json and then install again, make sure to avoid commiting these changes tho!
|
||||
|
||||
#### Adapter module structure
|
||||
|
||||
```js
|
||||
|
||||
@@ -6,5 +6,8 @@ module.exports = function () {
|
||||
} else {
|
||||
console.log('\nSample pools:', global.apy.slice(0, 10));
|
||||
}
|
||||
if(global.apy.some(p=>p.tvlUsd<10e3)){
|
||||
console.log("This adapters contains some pools with <10k TVL, these pools won't be shown in DefiLlama")
|
||||
}
|
||||
process.exit(0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user