Saving block number inn pool

This commit is contained in:
Jamie Hewitt 2022-07-07 16:50:54 +01:00
parent 345a3284ea
commit b8abd08ec9

View File

@ -236,10 +236,11 @@ export function handleSetup(event: LOG_SETUP): void {
token.decimals token.decimals
) )
pool.tx = event.transaction.hash.toHex() pool.tx = event.transaction.hash.toHex()
pool.block = event.block.number.toI32()
pool.save() pool.save()
poolTx.save() poolTx.save()
log.debug('\n\n Pool: {}\n\n\n', [pool.tx]) log.info('\n\n ##### \n\n Pool: {}\n\n########\n\n\n ', [pool.tx])
const lpFee = getPoolLpSwapFee(event.address) const lpFee = getPoolLpSwapFee(event.address)
pool.liquidityProviderSwapFee = lpFee pool.liquidityProviderSwapFee = lpFee