mirror of
https://github.com/oceanprotocol/react.git
synced 2024-11-22 17:50:15 +01:00
destruct
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
84e28fda91
commit
1a1a741645
@ -221,7 +221,8 @@ function usePricing(ddo: DDO): UsePricing {
|
|||||||
weightOnDataToken,
|
weightOnDataToken,
|
||||||
swapFee
|
swapFee
|
||||||
} = priceOptions
|
} = priceOptions
|
||||||
let dtAmount = priceOptions.dtAmount
|
|
||||||
|
let { dtAmount } = priceOptions
|
||||||
const isPool = type === 'dynamic'
|
const isPool = type === 'dynamic'
|
||||||
|
|
||||||
if (!isPool && !config.fixedRateExchangeAddress) {
|
if (!isPool && !config.fixedRateExchangeAddress) {
|
||||||
@ -235,7 +236,7 @@ function usePricing(ddo: DDO): UsePricing {
|
|||||||
setStep(99, 'pool')
|
setStep(99, 'pool')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//if fixedPrice set dt to max amount
|
// if fixedPrice set dt to max amount
|
||||||
if (!isPool) dtAmount = 1000
|
if (!isPool) dtAmount = 1000
|
||||||
await mint(`${dtAmount}`)
|
await mint(`${dtAmount}`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user