mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix total sum order on compute
This commit is contained in:
parent
bbd391ddfe
commit
2fb9fb2c63
@ -128,7 +128,9 @@ export default function FormStartCompute({
|
|||||||
selectedAlgorithmAsset?.accessDetails.price
|
selectedAlgorithmAsset?.accessDetails.price
|
||||||
)
|
)
|
||||||
const priceDataset = new Decimal(
|
const priceDataset = new Decimal(
|
||||||
datasetOrderPriceAndFees?.price || asset.accessDetails.price
|
hasPreviousOrder
|
||||||
|
? 0
|
||||||
|
: datasetOrderPriceAndFees?.price || asset.accessDetails.price
|
||||||
).toDecimalPlaces(MAX_DECIMALS)
|
).toDecimalPlaces(MAX_DECIMALS)
|
||||||
|
|
||||||
const priceAlgo =
|
const priceAlgo =
|
||||||
@ -138,6 +140,7 @@ export default function FormStartCompute({
|
|||||||
algoOrderPriceAndFees?.price ||
|
algoOrderPriceAndFees?.price ||
|
||||||
selectedAlgorithmAsset.accessDetails.price
|
selectedAlgorithmAsset.accessDetails.price
|
||||||
).toDecimalPlaces(MAX_DECIMALS)
|
).toDecimalPlaces(MAX_DECIMALS)
|
||||||
|
|
||||||
const providerFees = providerFeeAmount
|
const providerFees = providerFeeAmount
|
||||||
? new Decimal(providerFeeAmount).toDecimalPlaces(MAX_DECIMALS)
|
? new Decimal(providerFeeAmount).toDecimalPlaces(MAX_DECIMALS)
|
||||||
: new Decimal(0)
|
: new Decimal(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user