Skip to content

Commit

Permalink
Log spread percentage on error
Browse files Browse the repository at this point in the history
  • Loading branch information
starsquidnodes committed Apr 14, 2024
1 parent a63749c commit d0f0281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oracle/provider/finv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ func (p *FinV2Provider) Poll() error {
high = base
}

spread := high.Sub(low)

if high.GT(low.Mul(floatToDec(1.1))) {
spread := high.Sub(low).Quo(low)
p.logger.Error().
Str("spread", spread.String()).
Str("symbol", symbol).
Msg("spread too large")
continue
}
Expand Down

0 comments on commit d0f0281

Please sign in to comment.