1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

restore user balance calculation

This commit is contained in:
Matthias Kretschmann 2020-08-19 17:37:50 +02:00
parent ab0996f168
commit da23dd51da
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -61,7 +61,7 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
const userBalance = {
ocean: `${
(Number(sharesBalance) * Number(dtReserve)) / Number(oceanReserve)
(Number(sharesBalance) / Number(dtReserve)) * Number(oceanReserve)
}`,
dt: sharesBalance
}