LoopringSecondary / relay

Loopring relay node with ring-mining capability
Apache License 2.0
73 stars 29 forks source link

something don't understand #580

Open af913337456 opened 6 years ago

af913337456 commented 6 years ago

When I reading the source code,I don't know what the meaning of this line of code is and why it should be set.

var MarketBaseOrder = map[string]uint8{"BAR": 5, "LRC": 10, "WETH": 20, "DAI": 30}

why is 'BAR' but 'EOS' ? and it was used in

for k := range allTokens { // lrc,omg
        for kk := range supportMarkets { //eth
            // map[string]uint8{"BAR": 5, "LRC": 10, "WETH": 20, "DAI": 30}
            o, ok := MarketBaseOrder[k]
            if ok {
                baseOrder := MarketBaseOrder[kk]
                if o < baseOrder {
                    allMarkets = append(allMarkets, k+"-"+kk)
                }
            } else {
                allMarkets = append(allMarkets, k+"-"+kk)
            }
            log.Infof("market util,supported market:%s", k+"-"+kk)
        }
    }

Please give me a guide @mmmmmagina

af913337456 commented 6 years ago

@hzbdesigner @kongliangzhong @dong77 @yun163 can u help me for this?