We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2422a commit b53ff18Copy full SHA for b53ff18
projects/tapp-exchange/index.js
@@ -1,4 +1,5 @@
1
const { function_view } = require("../helper/chain/aptos");
2
+const { sleep } = require("../helper/utils");
3
4
const MODULE_VIEW = "0xf5840b576a3a6a42464814bc32ae1160c50456fb885c62be389b817e75b2a385";
5
@@ -72,7 +73,9 @@ module.exports = {
72
73
const pairedCoin = await getPairedCoin(coin) || coin;
74
if (pairedCoin) {
75
api.add(pairedCoin, pool.reserves[i]);
- }
76
+ }
77
+ // Add small delay to avoid rate limiting
78
+ await sleep(200);
79
}
80
81
},
0 commit comments