1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

percentage is hard

This commit is contained in:
Matthias Kretschmann 2020-10-13 18:13:34 +02:00
parent 89f4bf5aea
commit 36d1289a8e
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -54,7 +54,7 @@ export default function Remove({
async function getValues() { async function getValues() {
const amountPoolShares = const amountPoolShares =
(Number(amountPercent) / Number(poolTokens)) * 100 (Number(amountPercent) / 100) * Number(poolTokens)
setAmountPoolShares(`${amountPoolShares}`) setAmountPoolShares(`${amountPoolShares}`)
const amountOcean = await ocean.pool.getOceanRemovedforPoolShares( const amountOcean = await ocean.pool.getOceanRemovedforPoolShares(