add warnings + faq

This commit is contained in:
0xngmi
2022-12-04 13:25:02 +00:00
parent 69530e59a5
commit c4c74b1d30
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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);
};