updating the datatoken cap in the pool

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

View File

@ -145,7 +145,7 @@ type Pool @entity {
"publisher market fee value"
publishMarketSwapFee: BigDecimal!
"publisher market fee total amount"
publishMarketSwapFeeAmount: BigDecimal
publishMarketSwapFeeAmount: BigDecimal!
"Liquidty provider fee value"
liquidityProviderSwapFee: BigDecimal

View File

@ -239,6 +239,7 @@ export function handleSetup(event: LOG_SETUP): void {
pool.block = event.block.number.toI32()
pool.symbol = datatoken.symbol
pool.name = datatoken.name
pool.cap = datatoken.cap
pool.save()
poolTx.save()