From 36d1289a8e17cfc44a68136463ef84a83fbe965b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 13 Oct 2020 18:13:34 +0200 Subject: [PATCH] percentage is hard --- src/components/organisms/AssetActions/Pool/Remove.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organisms/AssetActions/Pool/Remove.tsx b/src/components/organisms/AssetActions/Pool/Remove.tsx index ce5e77077..e7fa9e355 100644 --- a/src/components/organisms/AssetActions/Pool/Remove.tsx +++ b/src/components/organisms/AssetActions/Pool/Remove.tsx @@ -54,7 +54,7 @@ export default function Remove({ async function getValues() { const amountPoolShares = - (Number(amountPercent) / Number(poolTokens)) * 100 + (Number(amountPercent) / 100) * Number(poolTokens) setAmountPoolShares(`${amountPoolShares}`) const amountOcean = await ocean.pool.getOceanRemovedforPoolShares(