Skip to content

Commit

Permalink
Cleanup: prints
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Jul 28, 2024
1 parent 045bc68 commit d6a236e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions services/rfq/relayer/relconfig/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,13 @@ var defaultMaxBalance *big.Int // default to nil, signifies 'positive inf'
// GetMaxBalance returns the MaxBalance for the given chain and address.
// Note that this getter returns the value in native token decimals.
func (c Config) GetMaxBalance(chainID int, addr common.Address) *big.Int {
fmt.Printf("getmaxbalance for chain %v addr %v\n", chainID, addr)
chainCfg, ok := c.Chains[chainID]
if !ok {
return defaultMaxBalance
}

Check warning on line 328 in services/rfq/relayer/relconfig/getters.go

View check run for this annotation

Codecov / codecov/patch

services/rfq/relayer/relconfig/getters.go#L324-L328

Added lines #L324 - L328 were not covered by tests

var tokenCfg *TokenConfig
for _, cfg := range chainCfg.Tokens {
fmt.Printf("checking token cfg: %v\n", cfg)
if common.HexToAddress(cfg.Address).Hex() == addr.Hex() {
cfgCopy := cfg
tokenCfg = &cfgCopy
Expand Down

0 comments on commit d6a236e

Please sign in to comment.