func (rs *reserveState) tier(x *big.Int) tier {

	// x < rs.Inner || x == 0
	if x.Cmp(rs.Inner) < 0 || rs.Inner.Cmp(big.NewInt(0)) == 0 {
		return unreserved
	}

	// x < rs.Outer
	if x.Cmp(rs.Outer) < 0 {
		return inner
	}

	// x >= rs.Outer
	return outer
}
// tier returns which tier a value falls into
tier returns which tier a value falls into
// tier returns which tier a value falls into
func (rs *reserveState) tier(x *big.Int) tier {
	if x.Cmp(rs.Inner) < 0 || rs.Inner.Cmp(big.NewInt(0)) == 0 {
		return unreserved
	}
	if x.Cmp(rs.Outer) < 0 {
		return inner
	}
	return outer
}
func ( rs * reserveState ) tier ( x * big . Int ) tier { if x . Cmp ( rs . Inner ) < 0 || rs . Inner . Cmp ( big . NewInt ( 0 ) ) == 0 { return unreserved } if x . Cmp ( rs . Outer ) < 0 { return inner } return outer }
tier returns which tier a value falls into
tier returns which tier a value falls into
// x < rs.Inner || x == 0 // x < rs.Outer // x >= rs.Outer