We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0780f53 commit 144c2b1Copy full SHA for 144c2b1
src/dex/fluid-dex/fluid-dex.ts
@@ -128,11 +128,14 @@ export class FluidDex extends SimpleExchange implements IDex<FluidDexData> {
128
);
129
130
if (!this.dexHelper.config.isSlave) {
131
- await this.liquidityProxy.fetchAndSetState(blockNumber);
132
- this.reserveUpdateIntervalTask = setInterval(
133
- this.updateReserves.bind(this),
134
- RESERVE_REFRESH_INTERVAL_MS,
135
- );
+ void this.updateReserves();
+
+ if (!this.reserveUpdateIntervalTask) {
+ this.reserveUpdateIntervalTask = setInterval(
+ this.updateReserves.bind(this),
136
+ RESERVE_REFRESH_INTERVAL_MS,
137
+ );
138
+ }
139
}
140
141
0 commit comments