Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
Ruben Campos de Teba authored and Ruben Campos de Teba committed Dec 6, 2023
1 parent 8a11d1c commit f71b81f
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Leaderboard.tsx
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ const Leaderboard = ({ openEditions, isWinner, count, totalSales, matchFundPoole
'NEXT_PUBLIC_BASE_ARTIFACT_PRICE',
)

const { salesArtifacts, spli80, prize, totalAward, projectMatchFund, calculateMatchFundContribution } =
const { salesArtifacts, prize, totalAward, projectMatchFund, calculateMatchFundContribution, getSalesArtifacts } =
calculateSales(isWinner, matchFundPooled, count, totalSales)

const title = (
@@ -59,7 +59,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;{getSalesArtifacts(user.copies)}</Grey>
<Green>+&nbsp; Ξ&nbsp;{calculateMatchFundContribution(user.copies)}</Green>{' '}
<Amount>
| <span> minted</span> {user.copies}
1 change: 1 addition & 0 deletions src/lib/calculateSales.ts
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ export const calculateSales = (isWinner: boolean, matchFundPooled: number, count
spli80: spli90.toFixed(2),
prize: split10.toFixed(2),
totalAward,
getSalesArtifacts: (newCount: any) => getSalesArtifacts(newCount).toFixed(2),
calculateMatchFundContribution: (newCount: any) => {
return getMatchFundMoney(totalSales, newCount, spli90).toFixed(2)
// return (getSalesArtifacts(newCount) + getMatchFundMoney(totalSales, newCount, spli90)).toFixed(2)

0 comments on commit f71b81f

Please sign in to comment.