mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
Add small delay to avoid rate limiting
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const { function_view } = require("../helper/chain/aptos");
|
||||
const { sleep } = require("../helper/utils");
|
||||
|
||||
const MODULE_VIEW = "0xf5840b576a3a6a42464814bc32ae1160c50456fb885c62be389b817e75b2a385";
|
||||
|
||||
@@ -72,7 +73,9 @@ module.exports = {
|
||||
const pairedCoin = await getPairedCoin(coin) || coin;
|
||||
if (pairedCoin) {
|
||||
api.add(pairedCoin, pool.reserves[i]);
|
||||
}
|
||||
}
|
||||
// Add small delay to avoid rate limiting
|
||||
await sleep(200);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user