Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max price #269

Merged
merged 7 commits into from
Jun 27, 2022
5 changes: 3 additions & 2 deletions cmd/newallocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ var newallocationCmd = &cobra.Command{
}
lock = zcncore.ConvertToValue(lockf)

const maxPrice = math.MaxInt64/100
var (
readPrice = sdk.PriceRange{Min: 0, Max: math.MaxInt64}
writePrice = sdk.PriceRange{Min: 0, Max: math.MaxInt64}
readPrice = sdk.PriceRange{Min: 0, Max: maxPrice}
writePrice = sdk.PriceRange{Min: 0, Max: maxPrice}
)

if flags.Changed("read_price") {
Expand Down