Skip to content

Commit

Permalink
Update USDC metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
trunghai95 committed Apr 11, 2024
1 parent b634cc9 commit 3cf00d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/pgstorage/pgstorage_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (p *PostgresStorage) UpdateL1DepositStatus(ctx context.Context, depositCoun
return err
}

// UpdateL2DepositsStatus updates the ready_for_claim status of L2 deposits. and return deposit list
// UpdateL2DepositsStatusXLayer updates the ready_for_claim status of L2 deposits. and return deposit list
func (p *PostgresStorage) UpdateL2DepositsStatusXLayer(ctx context.Context, exitRoot []byte, rollupID, networkID uint, dbTx pgx.Tx) ([]*etherman.Deposit, error) {
const updateDepositsStatusSQL = `WITH d AS (UPDATE sync.deposit SET ready_for_claim = true, ready_time = $4
WHERE deposit_cnt <=
Expand Down
2 changes: 1 addition & 1 deletion synchronizer/synchronizer_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (s *ClientSynchronizer) afterProcessDeposit(deposit *etherman.Deposit, depo
}
}

utils.ReplaceUSDCDepositInfo(deposit)
// Notify FE about a new deposit
go func() {
if s.messagePushProducer == nil {
Expand All @@ -50,7 +51,6 @@ func (s *ClientSynchronizer) afterProcessDeposit(deposit *etherman.Deposit, depo
return
}
}
utils.ReplaceUSDCDepositInfo(deposit)
err := s.messagePushProducer.PushTransactionUpdate(&pb.Transaction{
FromChain: uint32(deposit.NetworkID),
ToChain: uint32(deposit.DestinationNetwork),
Expand Down

0 comments on commit 3cf00d8

Please sign in to comment.