Adding datatoken name and symbol to the pool

This commit is contained in:
Jamie Hewitt 2022-07-07 17:02:35 +01:00
parent b8abd08ec9
commit 406353e100
1 changed files with 2 additions and 2 deletions

View File

@ -237,11 +237,11 @@ export function handleSetup(event: LOG_SETUP): void {
)
pool.tx = event.transaction.hash.toHex()
pool.block = event.block.number.toI32()
pool.symbol = datatoken.symbol
pool.name = datatoken.name
pool.save()
poolTx.save()
log.info('\n\n ##### \n\n Pool: {}\n\n########\n\n\n ', [pool.tx])
const lpFee = getPoolLpSwapFee(event.address)
pool.liquidityProviderSwapFee = lpFee
const publisherMarketFee = getPoolPublisherMarketFee(event.address)