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()