mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
add hallmark warning
This commit is contained in:
4
test.js
4
test.js
@@ -110,6 +110,9 @@ sdk.api.abi.call = async (...args) => {
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
if(module.hallmarks && module.hallmarks.length > 6){
|
||||
console.error("WARNING: Hallmarks should only be set for events that led to a big change in TVL, please reduce hallmarks to only those that meet this condition")
|
||||
}
|
||||
// await initCache()
|
||||
const chains = Object.keys(module).filter(item => typeof module[item] === 'object' && !Array.isArray(module[item]));
|
||||
checkExportKeys(module, passedFile, chains)
|
||||
@@ -121,7 +124,6 @@ sdk.api.abi.call = async (...args) => {
|
||||
const tokensBalances = {};
|
||||
const usdTokenBalances = {};
|
||||
const chainTvlsToAdd = {};
|
||||
const knownTokenPrices = {};
|
||||
|
||||
let tvlPromises = Object.entries(module).map(async ([chain, value]) => {
|
||||
if (typeof value !== "object" || value === null) {
|
||||
|
||||
Reference in New Issue
Block a user