revamp server lite

This commit is contained in:
Nour Alharithi
2024-07-26 15:29:16 -07:00
parent 8924f66156
commit 3de6dc8f55
3 changed files with 211 additions and 411 deletions

View File

@@ -144,7 +144,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
: this.driftClient.getOracleDataForSpotMarket(marketArgs.marketIndex)
.slot;
let includeVamm = marketArgs.includeVamm;
if (dlobSlot - oracleSlot > STALE_ORACLE_REMOVE_VAMM_THRESHOLD) {
if (dlobSlot - oracleSlot.toNumber() > STALE_ORACLE_REMOVE_VAMM_THRESHOLD) {
logger.info('Oracle is stale, removing vamm orders');
includeVamm = false;
}