Skip to content

Commit

Permalink
log absolute change, and break percentage when circuit is tripped
Browse files Browse the repository at this point in the history
  • Loading branch information
bonedaddy committed Mar 24, 2021
1 parent 26e4fc0 commit 3a9bde6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eventwatcher/handle_log_swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ func (wc *WatchedContract) handleLogSwaps(

wc.logger.Warn(
"price fluctuation outside of acceptable bounds, breaking!",
zap.Float64("change.abs", math.Abs(change)),
zap.Float64("break.percentage", breakPercentage),
)

// lock the authorizer since bind.TransactOpts is not threadsafe
Expand Down

0 comments on commit 3a9bde6

Please sign in to comment.