Skip to content

Commit

Permalink
added last code
Browse files Browse the repository at this point in the history
  • Loading branch information
rubelux committed Oct 18, 2023
1 parent 0301ef4 commit 278c23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const Leaderboard = ({ openEditions, isWinner, count, totalSales, matchFundPoole
{index === 0 && <StyledGlyph glyph="crown" level={1} color="black" darkColor="algae" />}
</div>
<div>
<Grey>Ξ&nbsp;{BASE_ARTIFACT_PRICE * user.copies}</Grey>
<Grey>Ξ&nbsp;{salesArtifacts}</Grey>
<Green>+&nbsp; Ξ&nbsp;{calculateMatchFundContribution(user.copies)}</Green>{' '}
<Amount>
| <span> minted</span> {user.copies}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/calculateSales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const calculateSales = (isWinner: boolean, matchFundPooled: number, count
prize: split20.toFixed(2),
totalAward,
calculateMatchFundContribution: (newCount: any) => {
return getMatchFundMoney(totalSales, newCount, spli80).toFixed(2)
return (salesArtifacts + getMatchFundMoney(totalSales, newCount, spli80)).toFixed(2)
},
}
}

0 comments on commit 278c23b

Please sign in to comment.