diff --git a/chain/deals/provider_states.go b/chain/deals/provider_states.go index 7df6c29c6..595f236da 100644 --- a/chain/deals/provider_states.go +++ b/chain/deals/provider_states.go @@ -88,7 +88,7 @@ func (p *Provider) accept(ctx context.Context, deal MinerDeal) (func(*MinerDeal) // TODO: check StorageCollateral // TODO: - minPrice := types.BigDiv(types.BigMul(p.ask.Ask.Price, types.NewInt(deal.Proposal.PieceSize)), types.NewInt(1 << 30)) + minPrice := types.BigDiv(types.BigMul(p.ask.Ask.Price, types.NewInt(deal.Proposal.PieceSize)), types.NewInt(1<<30)) if deal.Proposal.StoragePricePerEpoch.LessThan(minPrice) { return nil, xerrors.Errorf("storage price per epoch less than asking price: %s < %s", deal.Proposal.StoragePricePerEpoch, minPrice) } diff --git a/chain/types/ask.go b/chain/types/ask.go index 3e1767b06..dd768feb3 100644 --- a/chain/types/ask.go +++ b/chain/types/ask.go @@ -17,7 +17,7 @@ type SignedStorageAsk struct { type StorageAsk struct { // Price per GiB / Epoch - Price BigInt + Price BigInt MinPieceSize uint64 Miner address.Address