Skip to content

Commit

Permalink
fix assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
soilking committed Oct 11, 2024
1 parent 2194fc5 commit 8ff29df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function addMigratedPlot(account: Address, index: BigInt, amount: BigInt, event:

export function handleL1BeansMigrated(event: L1BeansMigrated): void {
const season = loadSeason(BigInt.fromU32(getCurrentSeason()));
season.unmigratedL1Beans!.minus(event.params.amount);
season.unmigratedL1Beans = season.unmigratedL1Beans!.minus(event.params.amount);
season.save();
}

Expand All @@ -152,7 +152,7 @@ export function handleL1DepositsMigrated(event: L1DepositsMigrated): void {
migratedBdv = migratedBdv.plus(event.params.amounts[i]);
}
const silo = loadSilo(event.address);
silo.unmigratedL1DepositedBdv!.minus(migratedBdv);
silo.unmigratedL1DepositedBdv = silo.unmigratedL1DepositedBdv!.minus(migratedBdv);
silo.save();
}

Expand All @@ -163,7 +163,7 @@ export function handleL1PlotsMigrated(event: L1PlotsMigrated): void {
migratedPods = migratedPods.plus(event.params.pods[i]);
}
const field = loadField(event.address);
field.unmigratedL1Pods!.minus(migratedPods);
field.unmigratedL1Pods = field.unmigratedL1Pods!.minus(migratedPods);
field.save();
}

Expand All @@ -173,7 +173,7 @@ export function handleL1FertilizerMigrated(event: L1FertilizerMigrated): void {
migratedFert = migratedFert.plus(event.params.amounts[i]);
}
const fert = loadFertilizer(getProtocolFertilizer(v())!);
fert.unmigratedL1Supply!.minus(migratedFert);
fert.unmigratedL1Supply = fert.unmigratedL1Supply!.minus(migratedFert);
fert.save();
}

Expand Down

0 comments on commit 8ff29df

Please sign in to comment.