Skip to content

Commit

Permalink
Fix initialize event
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jun 21, 2024
1 parent 7146b3a commit d571e69
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/clm/lifecycle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { ProxyCreated as CLMManagerCreatedEvent } from "../../generated/ClmManagerFactory/ClmManagerFactory"
import { ProxyCreated as RewardPoolCreatedEvent } from "../../generated/RewardPoolFactory/RewardPoolFactory"
import { Initialized as ClmManagerInitializedEvent } from "../../generated/ClmManagerFactory/ClmManager"
import { Initialized as RewardPoolInitializedEvent } from "../../generated/RewardPoolFactory/RewardPool"
import {
ClmManager as ClmManagerTemplate,
ClmRewardPool as ClmRewardPoolTemplate,
Expand All @@ -17,14 +19,14 @@ export function handleRewardPoolCreated(event: RewardPoolCreatedEvent): void {
ClmRewardPoolTemplate.create(address)
}

export function handleClmManagerInitialized(event: CLMManagerCreatedEvent): void {
const address = event.params.proxy
export function handleClmManagerInitialized(event: ClmManagerInitializedEvent): void {
const address = event.address
fetchAndSaveTokenData(address)
BeefyERC20ProductTemplate.create(address)
}

export function handleRewardPoolInitialized(event: RewardPoolCreatedEvent): void {
const address = event.params.proxy
export function handleRewardPoolInitialized(event: RewardPoolInitializedEvent): void {
const address = event.address
fetchAndSaveTokenData(address)
BeefyERC20ProductTemplate.create(address)
}

0 comments on commit d571e69

Please sign in to comment.