Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Sep 4, 2024
1 parent c92ec4a commit e81c4c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/classic/bind_old_products.template.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { Address, log } from "@graphprotocol/graph-ts"
import { Address, log, ethereum } from "@graphprotocol/graph-ts"
import { addIgnoredContract } from "../common/entity/ignored"
import { BeefyERC20Product as BeefyERC20ProductTemplate } from "../../generated/templates"
import { ADDRESS_ZERO } from "../common/utils/address";


export function bindOldProducts(): void {
log.warning("Binding old boosts", [])

export function bindOldProducts(block: ethereum.Block): void {
log.warning("Binding old boosts at block {}", [block.number.toString()])
{{#old_boosts}}
addIgnoredContract(Address.fromString("{{.}}"));
{{/old_boosts}}

log.warning("Binding old vaults", [])
log.warning("Binding old vaults at block {}", [block.number.toString()])
{{#old_vaults}}
BeefyERC20ProductTemplate.create(Address.fromString("{{.}}"))
{{/old_vaults}}
Expand Down

0 comments on commit e81c4c3

Please sign in to comment.