Skip to content

Commit

Permalink
Revert "log"
Browse files Browse the repository at this point in the history
This reverts commit 33a1a81.
  • Loading branch information
yuhochu committed Dec 30, 2023
1 parent 9f35c7b commit 53ff6cc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions redux/selectors/getAccountRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ export const computeNetLiquidityDailyAmount = (
const newBoostedShares = shares * multiplier;
const newTotalBoostedShares = totalBoostedShares + newBoostedShares - boostedShares;
const newDailyAmount = (newBoostedShares / newTotalBoostedShares) * totalRewardsPerDay;
console.info(
` | dailyAmount:${dailyAmount} boostedShares:${boostedShares}/totalBoostedShares:${totalBoostedShares}*totalRewardsPerDay:${totalRewardsPerDay}`,
);

return { dailyAmount, newDailyAmount, multiplier, totalBoostedShares, shares };
};

Expand Down Expand Up @@ -234,7 +232,6 @@ export const getAccountRewards = createSelector(
const { icon, symbol, name } = rewardAsset.metadata;
const unclaimedAmount = Number(shrinkToken(farmData.unclaimed_amount, rewardAssetDecimals));

console.info(`rewardTokenId:${rewardTokenId}`);
const { dailyAmount, newDailyAmount, multiplier } = computeNetLiquidityDailyAmount(
rewardAsset,
xBRRRAmount,
Expand Down Expand Up @@ -262,9 +259,8 @@ export const getAccountRewards = createSelector(
const hasNetTvlFarm = !!Object.entries(assets.netTvlFarm).length;

const suppliedRewards = Object.entries(supplied).map(computePoolsRewards("supplied")).flat();
console.info("suppliedRewards", suppliedRewards);
const borrowedRewards = Object.entries(borrowed).map(computePoolsRewards("borrowed")).flat();
console.info("borrowedRewards", borrowedRewards);

const netLiquidityRewards = hasNetTvlFarm
? Object.entries(netTvl)
.filter(([tokenId]) => assets.netTvlFarm[tokenId])
Expand Down

0 comments on commit 53ff6cc

Please sign in to comment.