Skip to content

Commit

Permalink
chore: remove superfluous code
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Dec 4, 2024
1 parent fcfb485 commit c1c56f0
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ export const useRewardSimulation = ({
const atas: PublicKey[] = [];

for (let bank of banksWithEmissions) {
const _bank = marginfiClient.getBankByPk(bank.meta.address);
if (!_bank || !bank) continue;
if (!bank) continue;

const tokenMint = _bank.emissionsMint;
const tokenSymbol = _bank.tokenSymbol ?? "";
const mintDecimals = _bank.mintDecimals;
const tokenMint = bank.info.rawBank.emissionsMint;
const tokenSymbol = bank.info.rawBank.tokenSymbol ?? "";
const mintDecimals = bank.info.rawBank.mintDecimals;
if (!tokenMint) continue;

const programId = TOKEN_2022_MINTS.includes(tokenMint.toString()) ? TOKEN_2022_PROGRAM_ID : TOKEN_PROGRAM_ID;
Expand Down

0 comments on commit c1c56f0

Please sign in to comment.