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 ee80961
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

0 comments on commit ee80961

Please sign in to comment.