We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6562e48 commit 67688fbCopy full SHA for 67688fb
src/alexSDK.ts
@@ -78,7 +78,9 @@ export class AlexSDK {
78
async fetchTokenInfo(tokenAddress: string): Promise<TokenInfo | null> {
79
return (
80
(await this.getTokenInfos()).find(
81
- (x) => x.underlyingToken.split('::')[0] === tokenAddress.split('::')[0]
+ (x) =>
82
+ x.wrapToken.split('::')[0] === tokenAddress.split('::')[0] ||
83
+ x.underlyingToken.split('::')[0] === tokenAddress.split('::')[0]
84
) ?? null
85
);
86
}
0 commit comments