Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

something don't understand #580

Description

@af913337456

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions