1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 05:41:41 +02:00

effect dependencies

This commit is contained in:
Matthias Kretschmann 2020-10-26 18:49:16 +01:00
parent 2c27d955d9
commit 4585fecb1f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -53,7 +53,7 @@ export default function Dynamic({
.times(foo)
.div(new Decimal(1).minus(new Decimal(swapFee)))
setFirstPrice(`${tokenAmountIn}`)
}, [swapFee, weightOnOcean, weightOnDataToken])
}, [swapFee, weightOnOcean, weightOnDataToken, dtAmount, oceanAmount])
// Check: account, network & insufficient balance
useEffect(() => {