Skip to content

Commit

Permalink
fix: add referral points to points sum on leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Nov 22, 2023
1 parent f4e17c0 commit 0218bb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/marginfi-v2-ui-state/src/lib/points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ const getPointsDataForUser = async (wallet: string | undefined): Promise<UserPoi
const totalPoints =
pointsData.total_deposit_points +
pointsData.total_borrow_points +
(pointsData.total_referral_deposit_points + pointsData.total_referral_borrow_points) +
(pointsData.socialPoints ? pointsData.socialPoints : 0);

const userRank = await fetchUserRank(totalPoints);
Expand Down

2 comments on commit 0218bb4

@vercel
Copy link

@vercel vercel bot commented on 0218bb4 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

omni – ./apps/omni

omni-mrgn.vercel.app
omni-one.vercel.app
omni.marginfi.com
omni-git-production-mrgn.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 0218bb4 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.