Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bergarces committed Dec 12, 2024
1 parent 6eb8c1e commit 250041d
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,6 @@ export class JitoJitosolAdapter implements IProtocolAdapter {
async getProtocolTokens(): Promise<ProtocolToken<AdditionalMetadata>[]> {
const metaplex = Metaplex.make(this.provider)

const metadataAccount = metaplex
.nfts()
.pdas()
.metadata({ mint: JITOSOL_TOKEN_ADDRESS })

const metadataAccountInfo =
await this.provider.getAccountInfo(metadataAccount)

if (!metadataAccountInfo) {
throw new Error('Metadata not found for token')
}

const token = await metaplex
.nfts()
.findByMint({ mintAddress: JITOSOL_TOKEN_ADDRESS })
Expand Down

0 comments on commit 250041d

Please sign in to comment.