Skip to content

Commit

Permalink
Merge pull request #271 from metaDAOproject/staging
Browse files Browse the repository at this point in the history
Deploy Production
  • Loading branch information
LukasDeco authored Sep 6, 2024
2 parents c98c10b + 71624a1 commit fef1cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const AmmMarketAccountIntervalFetchIndexer: IntervalFetchIndexer = {
}
return res;
} catch (e) {
logger.error("general error with indexing amm market account info:", e);
logger.errorWithChatBotAlert("general error with indexing amm market account info:", e);
return Err({ type: AmmAccountIntervalIndexerError.General });
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/src/indexers/amm-market/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export async function indexAmmMarketAccountWithContext(
updatedSlot: context
? BigInt(context.slot)
: BigInt(ammMarketAccount.oracle.lastUpdatedSlot.toNumber()),
lastObservation: ammMarketAccount.oracle.lastObservation,
lastPrice: ammMarketAccount.oracle.lastPrice
lastObservation: ammMarketAccount.oracle.lastObservation.toNumber(),
lastPrice: ammMarketAccount.oracle.lastPrice.toNumber()
};

// TODO batch commits across inserts - maybe with event queue
Expand Down

0 comments on commit fef1cb6

Please sign in to comment.