Saving block number inn pool

This commit is contained in:
Jamie Hewitt 2022-07-07 16:50:54 +01:00
parent 345a3284ea
commit b8abd08ec9
1 changed files with 2 additions and 1 deletions

View File

@ -236,10 +236,11 @@ export function handleSetup(event: LOG_SETUP): void {
token.decimals
)
pool.tx = event.transaction.hash.toHex()
pool.block = event.block.number.toI32()
pool.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)
pool.liquidityProviderSwapFee = lpFee