Specify retrieval price in FIL/GiB

This commit is contained in:
Ingar Shu 2020-09-16 14:30:04 -07:00
parent 2aef7f7c07
commit f56602c588
No known key found for this signature in database
GPG Key ID: BE3D9CE79F22E769

View File

@ -166,11 +166,11 @@ var retrievalSetAskCmd = &cli.Command{
Flags: []cli.Flag{
&cli.StringFlag{
Name: "price",
Usage: "Set the price of the ask for retrievals (per byte)",
Usage: "Set the price of the ask for retrievals (FIL/GiB)",
},
&cli.StringFlag{
Name: "unseal-price",
Usage: "Set the price to unseal (FIL/GiB)",
Usage: "Set the price to unseal",
},
&cli.StringFlag{
Name: "payment-interval",
@ -202,7 +202,7 @@ var retrievalSetAskCmd = &cli.Command{
if err != nil {
return err
}
ask.PricePerByte = abi.TokenAmount(v)
ask.PricePerByte = types.BigDiv(types.BigInt(v), types.NewInt(1<<30))
}
if cctx.IsSet("unseal-price") {