Skip to content

Commit

Permalink
revert ibalance changes [goreleaser]
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jul 30, 2024
1 parent 4787a25 commit 6843979
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions services/rfq/relayer/inventory/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,6 @@ func (i *inventoryManagerImpl) refreshBalances(ctx context.Context) error {
var wg sync.WaitGroup
wg.Add(len(i.tokens))

gasBalances := make(map[int]*big.Int)

// TODO: this can be pre-capped w/ len(cfg.Tokens) for each chain id.
// here we register metrics for exporting through otel. We wait to call these functions until are tokens have been initialized to avoid nil issues.
for cid, tokenMap := range i.tokens {
Expand All @@ -639,7 +637,7 @@ func (i *inventoryManagerImpl) refreshBalances(ctx context.Context) error {

// queue gas token balance fetch
deferredCalls := []w3types.Caller{
eth.Balance(i.relayerAddress, nil).Returns(gasBalances[chainID]),
eth.Balance(i.relayerAddress, nil).Returns(i.gasBalances[chainID]),
}

// queue token balance fetches
Expand Down

0 comments on commit 6843979

Please sign in to comment.