fix setup (#396)

This commit is contained in:
mihaisc 2022-03-31 07:49:20 -07:00 committed by GitHub
parent 1037666e47
commit 70fea016fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,10 @@ export function handleSetup(event: LOG_SETUP): void {
) )
poolTx.type = PoolTransactionType.SETUP poolTx.type = PoolTransactionType.SETUP
poolTx.baseToken = token.id poolTx.baseToken = token.id
poolTx.datatoken = datatoken.id poolTx.baseTokenValue = weiToDecimal(
event.params.baseTokenAmountIn.toBigDecimal(),
token.decimals
)
pool.save() pool.save()
poolTx.save() poolTx.save()