Skip to content

Commit

Permalink
fix: try name before hardcoded overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Dec 18, 2024
1 parent e1f4e1c commit 194372d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subgraphs/isolated-pools/src/operations/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ export function createMarket(
market.address = vTokenAddress;
market.pool = comptroller;

market.name = vTokenContract.name();
const nameResult = vTokenContract.try_name();
if (!nameResult.reverted) {
market.name = nameResult.value;
}
market.isListed = true;
market.interestRateModelAddress = vTokenContract.interestRateModel();
market.symbol = vTokenContract.symbol();
Expand Down

0 comments on commit 194372d

Please sign in to comment.