Skip to content

Commit

Permalink
fix rfq error marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Apr 2, 2024
1 parent 672ba6b commit 6aadd6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/rfq/relayer/inventory/synapse.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (c *rebalanceManagerSynapseCCTP) listen(parentCtx context.Context, chainID
case cctp.CircleRequestSentTopic:
parsedEvent, err := parser.ParseCircleRequestSent(log)
if err != nil {
logger.Warnf("could not parse circle request sent: %w", err)
logger.Warnf("could not parse circle request sent: %v", err)
return nil
}
if parsedEvent.Sender != c.relayerAddress {
Expand All @@ -227,13 +227,13 @@ func (c *rebalanceManagerSynapseCCTP) listen(parentCtx context.Context, chainID
}
err = c.db.UpdateRebalance(ctx, rebalanceModel, true)
if err != nil {
logger.Warnf("could not update rebalance status: %w", err)
logger.Warnf("could not update rebalance status: %v", err)
return nil
}
case cctp.CircleRequestFulfilledTopic:
parsedEvent, err := parser.ParseCircleRequestFulfilled(log)
if err != nil {
logger.Warnf("could not parse circle request fulfilled: %w", err)
logger.Warnf("could not parse circle request fulfilled: %v", err)
return nil
}
if parsedEvent.Recipient != c.relayerAddress {
Expand All @@ -253,7 +253,7 @@ func (c *rebalanceManagerSynapseCCTP) listen(parentCtx context.Context, chainID
}
err = c.db.UpdateRebalance(parentCtx, rebalanceModel, false)
if err != nil {
logger.Warnf("could not update rebalance status: %w", err)
logger.Warnf("could not update rebalance status: %v", err)
return nil
}
default:
Expand Down

0 comments on commit 6aadd6d

Please sign in to comment.