From ab2d80429acc77df6c4f42809672969d191a0ad9 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Fri, 25 Feb 2022 15:12:17 +0200 Subject: [PATCH] fix liquidity (#363) --- src/mappings/pool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mappings/pool.ts b/src/mappings/pool.ts index 7bec403..2bf21eb 100644 --- a/src/mappings/pool.ts +++ b/src/mappings/pool.ts @@ -86,12 +86,12 @@ export function handleExit(event: LOG_EXIT): void { poolTx.datatoken = token.id poolTx.datatokenValue = ammount.neg() - pool.datatokenLiquidity.minus(ammount) + pool.datatokenLiquidity = pool.datatokenLiquidity.minus(ammount) } else { poolTx.baseToken = token.id poolTx.baseTokenValue = ammount.neg() - pool.baseTokenLiquidity.minus(ammount) + pool.baseTokenLiquidity = pool.baseTokenLiquidity.minus(ammount) removeLiquidity(token.id, ammount) }