diff --git a/indexer/packages/postgres/src/constants.ts b/indexer/packages/postgres/src/constants.ts index a65a8ee94f..79b90e21da 100644 --- a/indexer/packages/postgres/src/constants.ts +++ b/indexer/packages/postgres/src/constants.ts @@ -23,7 +23,7 @@ import { PerpetualMarketStatus, TimeInForce, } from './types'; -import { uuid } from './stores/subaccount-table'; +import { SubaccountTable } from '.'; export const BUFFER_ENCODING_UTF_8: BufferEncoding = 'utf-8'; @@ -133,4 +133,5 @@ export const CHILD_SUBACCOUNT_MULTIPLIER: number = 1000; // From https://github.com/dydxprotocol/v4-chain/blob/protocol/v7.0.0-dev0/protocol/app/module_accounts_test.go#L41 export const MEGAVAULT_MODULE_ADDRESS: string = 'dydx18tkxrnrkqc2t0lr3zxr5g6a4hdvqksylxqje4r'; -export const MEGAVAULT_SUBACCOUNT_ID: string = uuid(MEGAVAULT_MODULE_ADDRESS, 0); +// Generated from the module address + subaccount number 0. +export const MEGAVAULT_SUBACCOUNT_ID: string = 'c7169f81-0c80-54c5-a41f-9cbb6a538fdf';