Skip to content

Commit 70fea01

Browse files
authored
fix setup (#396)
1 parent 1037666 commit 70fea01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mappings/pool.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ export function handleSetup(event: LOG_SETUP): void {
234234
)
235235
poolTx.type = PoolTransactionType.SETUP
236236
poolTx.baseToken = token.id
237-
poolTx.datatoken = datatoken.id
237+
poolTx.baseTokenValue = weiToDecimal(
238+
event.params.baseTokenAmountIn.toBigDecimal(),
239+
token.decimals
240+
)
238241
pool.save()
239242
poolTx.save()
240243

0 commit comments

Comments
 (0)