Skip to content

Commit

Permalink
fix: hardchade underlying ankrstakedbnb token to avoid errors queryin…
Browse files Browse the repository at this point in the history
…g before existence
  • Loading branch information
coreyar committed Jan 4, 2025
1 parent 175b0bb commit 12903b3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions subgraphs/isolated-pools/src/operations/getOrCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
createPool,
createRewardDistributor,
} from './create';
import { vWETHLiquidStakedETHAddress, vWETHCoreAddress } from '../constants/addresses';
import { getMarketPosition, getMarket } from './get';
import { vBifiAddress } from '../constants/addresses';

Expand Down Expand Up @@ -181,7 +180,6 @@ export function getOrCreateWrappedEthToken(): Token {
}
return tokenEntity;
}

/**
* Creates and Token object with symbol and address
*
Expand All @@ -190,9 +188,6 @@ export function getOrCreateWrappedEthToken(): Token {
*/
export function getOrCreateToken(asset: Address): Token {
let tokenEntity = Token.load(getTokenId(asset));
if (asset.equals(vWETHCoreAddress) || asset.equals(vWETHLiquidStakedETHAddress)) {
return getOrCreateWrappedEthToken();
}

if (!tokenEntity) {
const erc20 = BEP20.bind(asset);
Expand Down

0 comments on commit 12903b3

Please sign in to comment.