Skip to content

Commit

Permalink
Merge pull request #413 from TosiDrop/master
Browse files Browse the repository at this point in the history
Release 3.1.1
  • Loading branch information
reqlez authored Mar 1, 2023
2 parents 0d26581 + 0e7c9b3 commit 15d0fcf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,14 @@ app.get(
let claimableTokens = await getRewards(stakeAddress);
const accountsInfo = await getAccountsInfo(stakeAddress);
const poolInfo = await getPoolMetadata(accountsInfo[0]);
poolInfo.isWhitelisted = false;

const whitelist = TOSIFEE_WHITELIST ? TOSIFEE_WHITELIST.split(",") : [];
if (whitelist.includes(poolInfo.delegated_pool_id_bech32)) {
poolInfo.isWhitelisted = true;
if (poolInfo != null) {
poolInfo.isWhitelisted = false;

const whitelist = TOSIFEE_WHITELIST ? TOSIFEE_WHITELIST.split(",") : [];
if (whitelist.includes(poolInfo.delegated_pool_id_bech32)) {
poolInfo.isWhitelisted = true;
}
}

const consolidatedGetRewards = {
Expand Down

0 comments on commit 15d0fcf

Please sign in to comment.