Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-Audit fixes part 2 #287

Merged
merged 5 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: CCIP-4070
  • Loading branch information
makramkd committed Nov 1, 2024
commit 51b9fb7cf0ee051a63898478c9f6d03d94f178eb
4 changes: 3 additions & 1 deletion commit/chainfee/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,23 @@ func (p *processor) Observation(
chainFeeUpdates := FeeUpdatesFromTimestampedBig(timestampedPriceUpdates)

fChain := p.ObserveFChain()
now := time.Now().UTC()

p.lggr.Infow("observed fee components",
"supportedChains", supportedChains.ToSlice(),
"feeComponents", feeComponents,
"nativeTokenPrices", nativeTokenPrices,
"chainFeeUpdates", chainFeeUpdates,
"fChain", fChain,
"timestampNow", now,
)

return Observation{
FChain: fChain,
FeeComponents: feeComponents,
NativeTokenPrices: nativeTokenPrices,
ChainFeeUpdates: chainFeeUpdates,
TimestampNow: time.Now().UTC(),
TimestampNow: now,
}, nil
}

Expand Down
6 changes: 3 additions & 3 deletions commit/tokenprice/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ func (p *processor) Observation(

feedTokenPrices := p.ObserveFeedTokenPrices(ctx)
feeQuoterUpdates := p.ObserveFeeQuoterTokenUpdates(ctx)
ts := time.Now().UTC()
now := time.Now().UTC()
p.lggr.Infow(
"observed token prices",
"feed prices", feedTokenPrices,
"fee quoter updates", feeQuoterUpdates,
"timestamp", ts,
"timestampNow", now,
)

return Observation{
FeedTokenPrices: feedTokenPrices,
FeeQuoterTokenUpdates: feeQuoterUpdates,
FChain: fChain,
Timestamp: ts,
Timestamp: now,
}, nil
}

Expand Down