Skip to content

Commit

Permalink
fix missing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-chauhan committed Feb 20, 2024
1 parent 2c55b32 commit 4570cd7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { HopProtocolEthereumConfigurations } from "../../protocols/hop-protocol/
import { HopProtocolOptimismConfigurations } from "../../protocols/hop-protocol/config/deployments/hop-protocol-optimism/configurations";
import { HopProtocolxDaiConfigurations } from "../../protocols/hop-protocol/config/deployments/hop-protocol-xdai/configurations";
import { HopProtocolPolygonConfigurations } from "../../protocols/hop-protocol/config/deployments/hop-protocol-polygon/configurations";
import { HopProtocolPolygonZKEVMConfigurations } from "../../protocols/hop-protocol/config/deployments/hop-protocol-polygon-zkevm/configurations";
import { Configurations } from "./interface";
import { Deploy } from "./deploy";
import { log } from "@graphprotocol/graph-ts";
Expand All @@ -24,6 +25,9 @@ export function getNetworkConfigurations(deploy: i32): Configurations {
case Deploy.HOP_PROTOCOL_POLYGON: {
return new HopProtocolPolygonConfigurations();
}
case Deploy.HOP_PROTOCOL_POLYGON_ZKEVM: {
return new HopProtocolPolygonZKEVMConfigurations();
}
default: {
log.critical(
"No configurations found for deployment protocol/network",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class HopProtocolPolygonZKEVMConfigurations implements Configurations {
return [];
}
getEthTokens(): string[] {
return [PolygonZKEVMToken.ETH, PolygonZKEVMToken.ETH];
return [PolygonZKEVMToken.ETH, PolygonZKEVMHToken.ETH];
}
getMaticTokens(): string[] {
return [];
Expand Down
2 changes: 2 additions & 0 deletions subgraphs/hop-protocol/src/sdk/util/rewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ function getStartingBlockRate(): BigDecimal {
return BigDecimal.fromString("12.5");
} else if (NetworkConfigs.getNetwork() == Network.MATIC) {
return BigDecimal.fromString("2");
} else if (NetworkConfigs.getNetwork() == Network.POLYGON_ZKEVM) {
return BigDecimal.fromString("2");
} else if (NetworkConfigs.getNetwork() == Network.XDAI) {
return BigDecimal.fromString("5");
} else if (NetworkConfigs.getNetwork() == Network.MOONBEAM) {
Expand Down

0 comments on commit 4570cd7

Please sign in to comment.