Commit 05e7f9a0 authored by Kenny Tran's avatar Kenny Tran

Update output calc for remove liquidity

parent 207df311
......@@ -197,7 +197,7 @@ class RemoveLiquidity extends Component {
const ownership = liquidityBalance.dividedBy(totalSupply);
const ethPer = ethReserve.dividedBy(totalSupply);
const tokenPer = tokenReserve.dividedBy(totalSupply);
const tokenPer = tokenReserve.multipliedBy(10 ** (18 - tokenDecimals)).dividedBy(totalSupply);
const exchangeRate = tokenReserve.multipliedBy(10 ** (18 - tokenDecimals)).div(ethReserve);
const ownedEth = ethPer.multipliedBy(liquidityBalance).dividedBy(10 ** 18);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment