Skip to content

Commit

Permalink
remove error (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Jul 1, 2024
1 parent 06ab5e6 commit 4a34005
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions monitoring/pkg/monitoring/source_envelope.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,5 @@ func (s *envelopeSource) fetchLinkBalance(ctx context.Context, linkTokenAddress,
return nil, fmt.Errorf("insufficient data from balance_of '%v': %w", results, err)
}
linkBalance := results[0].BigInt(big.NewInt(0))
if linkBalance.Cmp(zeroBigInt) == 0 {
return nil, fmt.Errorf("contract's LINK balance should not be zero")
}
return linkBalance, nil
}

0 comments on commit 4a34005

Please sign in to comment.