Skip to content

Commit

Permalink
Add logging + deploy to testnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Oct 28, 2024
1 parent 0a9cdcf commit 56f804a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/indexer-build-and-push-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Indexer Build & Push Images to AWS ECR for Testnet Branch
on: # yamllint disable-line rule:truthy
push:
branches:
- 'vincentc/test-in-testnet'
- main
- 'release/indexer/v[0-9]+.[0-9]+.x' # e.g. release/indexer/v0.1.x
- 'release/indexer/v[0-9]+.x' # e.g. release/indexer/v1.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,13 @@ function aggregateVaultPnlTicks(
DateTime.fromISO(aggregatedTick.pnlTick.createdAt),
(a: DateTime, b: DateTime) => { return a.diff(b).milliseconds; },
);
logger.info({
at: 'VaultController#aggregateVaultPnlTicks',
message: 'Comparing aggregated pnl tick to expected ticks',
vaultCreationTimes,
numVaultsCreated,
aggregatedTick,
});
// Number of ticks should be greater than number of vaults created before it as there should be
// a tick for the main vault subaccount.
return aggregatedTick.numTicks >= numVaultsCreated;
Expand Down

0 comments on commit 56f804a

Please sign in to comment.