Skip to content

Commit

Permalink
fix(metamorphov1.1): remove version guard
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-devatom committed Jan 24, 2025
1 parent cb8747e commit 3dd1828
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/meta-morpho.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ import { cloneRate } from "./utils/rate";
export function handleSetName(event: SetNameEvent): void {
const mm = loadMetaMorpho(event.address);

if (mm.version !== "1.1") {
log.critical("MetaMorpho {} has a name set on a non 1.1 version", [
event.address.toHexString(),
]);
return;
}
mm.name = event.params.name;
mm.save();
}
Expand All @@ -81,13 +75,6 @@ export function handleSetSymbol(event: SetSymbolEvent): void {
const mm = loadMetaMorpho(event.address);
mm.symbol = event.params.symbol;

if (mm.version !== "1.1") {
log.critical("MetaMorpho {} has a symbol set on a non 1.1 version", [
event.address.toHexString(),
]);
return;
}

mm.save();
}

Expand Down

0 comments on commit 3dd1828

Please sign in to comment.