Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhochu committed Dec 30, 2023
1 parent 33a1a81 commit f975d23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redux/selectors/getAccountRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export const computePoolsDailyAmount = (
const newBoostedShares = shares * multiplier;
const newTotalBoostedShares = totalBoostedShares + newBoostedShares - boostedShares;
const newDailyAmount = (newBoostedShares / newTotalBoostedShares) * totalRewardsPerDay;

console.info(
`dailyAmount:${dailyAmount} ${boostedShares}/${totalBoostedShares}*${totalRewardsPerDay} (boostedShares / totalBoostedShares * totalRewardsPerDay)`,
);
return { dailyAmount, newDailyAmount, multiplier, totalBoostedShares, shares };
};

Expand Down Expand Up @@ -259,6 +261,7 @@ export const getAccountRewards = createSelector(
};

const { supplied, borrowed, netTvl } = account.portfolio.farms;
console.info("accountPortfolio", account.portfolio);
const hasNetTvlFarm = !!Object.entries(assets.netTvlFarm).length;

const suppliedRewards = Object.entries(supplied).map(computePoolsRewards("supplied")).flat();
Expand Down

0 comments on commit f975d23

Please sign in to comment.