2022-01-14 15:51:23 +01:00
|
|
|
import { NewPool } from '../@types/FactoryRouter/FactoryRouter'
|
|
|
|
import { Pool } from '../@types/schema'
|
|
|
|
import { BPool } from '../@types/templates'
|
2022-02-15 17:13:55 +01:00
|
|
|
import { addPool } from './utils/globalUtils'
|
2022-01-14 15:51:23 +01:00
|
|
|
|
|
|
|
export function handleNewPool(event: NewPool): void {
|
|
|
|
BPool.create(event.params.poolAddress)
|
|
|
|
const pool = new Pool(event.params.poolAddress.toHexString())
|
|
|
|
pool.save()
|
2022-02-15 17:13:55 +01:00
|
|
|
addPool()
|
2022-01-14 15:51:23 +01:00
|
|
|
}
|