Skip to content

Commit

Permalink
fix: update querying underlying token for wbeth
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Jan 4, 2025
1 parent c3d8729 commit 87ef873
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subgraphs/venus/src/operations/getOrCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export function getOrCreateMarket(marketAddress: Address, event: ethereum.Event)
tokenEntity.decimals = 18;
tokenEntity.save();
market.underlyingToken = tokenEntity.id;
} else if (marketAddress.equals(vwbETHAddress)) {
market.underlyingToken = getOrCreateToken(
Address.fromBytes(Bytes.fromHexString('0x9c37E59Ba22c4320547F00D4f1857AF1abd1Dd6f')),
).id;
} else {
market.underlyingToken = getOrCreateToken(vTokenContract.underlying()).id;
}
Expand Down

0 comments on commit 87ef873

Please sign in to comment.