Skip to content

Commit

Permalink
Use string for megavault subaccount id.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Sep 26, 2024
1 parent f52ca5d commit 1698310
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions indexer/packages/postgres/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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';

0 comments on commit 1698310

Please sign in to comment.