Skip to content

Commit

Permalink
fix(public-allocator): missing field at metamorpho creation
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-devatom committed Sep 23, 2024
1 parent b9ba4dc commit 2b91acc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@ type MetaMorphoPublicAllocatorMarket @entity(immutable: true) {

}

type SetFlowCapsEvent implements Event @entity(immutable: true) @transaction {
type SetFlowCapsEvent @entity(immutable: true) @transaction {

" { Transaction hash }{ Log index } "
id: Bytes!
Expand Down Expand Up @@ -2458,7 +2458,7 @@ type SetFlowCapsEvent implements Event @entity(immutable: true) @transaction {
flowCaps: [MarketFlowCapsSet!]! @derivedFrom(field: "setFlowCapsEvent")
}

type PublicAllocatorReallocationToEvent implements Event @entity(immutable: true) @transaction {
type PublicAllocatorReallocationToEvent @entity(immutable: true) @transaction {

" { Transaction hash }{ Log index } "
id: Bytes!
Expand Down Expand Up @@ -2496,7 +2496,7 @@ type PublicAllocatorReallocationToEvent implements Event @entity(immutable: true
flowCaps: MarketFlowCapsSet! @derivedFrom(field: "publicReallocationEvent")
}

type PublicAllocatorWithdrawalEvent implements Event @entity(immutable: true) @transaction {
type PublicAllocatorWithdrawalEvent @entity(immutable: true) @transaction {

" { Transaction hash }{ Log index } "
id: Bytes!
Expand Down
2 changes: 2 additions & 0 deletions src/meta-morpho-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ export function handleCreateMetaMorpho(event: CreateMetaMorphoEvent): void {
event.params.metaMorpho
).getAccount().id;

metaMorpho.hasPublicAllocator = false;

metaMorpho.save();
}

0 comments on commit 2b91acc

Please sign in to comment.