mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +01:00
fix fixedRateExchange.create
This commit is contained in:
parent
4636fadec9
commit
61e48431d6
@ -228,7 +228,7 @@ function usePricing(ddo: DDO): UsePricing {
|
|||||||
)
|
)
|
||||||
.next((step: number) => setStep(step, 'pool'))
|
.next((step: number) => setStep(step, 'pool'))
|
||||||
: await ocean.fixedRateExchange
|
: await ocean.fixedRateExchange
|
||||||
.create(dataToken, `${price}`, accountId)
|
.create(dataToken, `${price}`, accountId, `${dtAmount}`)
|
||||||
.next((step: number) => setStep(step, 'exchange'))
|
.next((step: number) => setStep(step, 'exchange'))
|
||||||
await sleep(20000)
|
await sleep(20000)
|
||||||
return tx
|
return tx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user