From 70fea016fce0d33c15ec365cd989f56bf4631e6d Mon Sep 17 00:00:00 2001 From: mihaisc Date: Thu, 31 Mar 2022 07:49:20 -0700 Subject: [PATCH] fix setup (#396) --- src/mappings/pool.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mappings/pool.ts b/src/mappings/pool.ts index dbbafb0..d8f6a0d 100644 --- a/src/mappings/pool.ts +++ b/src/mappings/pool.ts @@ -234,7 +234,10 @@ export function handleSetup(event: LOG_SETUP): void { ) poolTx.type = PoolTransactionType.SETUP poolTx.baseToken = token.id - poolTx.datatoken = datatoken.id + poolTx.baseTokenValue = weiToDecimal( + event.params.baseTokenAmountIn.toBigDecimal(), + token.decimals + ) pool.save() poolTx.save()