This commit is contained in:
Ian Philips 2022-09-19 07:17:54 -06:00
parent 94bb9370ae
commit 7fa1d14443
2 changed files with 20 additions and 18 deletions

View File

@ -48,7 +48,7 @@ const calculateProvenCorrectBadgeRarity = (badge: ProvenCorrectBadge) => {
const thresholdArray = provenCorrectRarityThresholds
let i = thresholdArray.length - 1
while (i >= 0) {
if (betAmount == thresholdArray[i]) {
if (betAmount >= thresholdArray[i]) {
return i + 1
}
i--
@ -56,7 +56,7 @@ const calculateProvenCorrectBadgeRarity = (badge: ProvenCorrectBadge) => {
return 1
}
export const streakerBadgeRarityThresholds = [1, 25, 100]
export const streakerBadgeRarityThresholds = [1, 50, 125]
const calculateStreakerBadgeRarity = (badge: StreakerBadge) => {
const { totalBettingStreak } = badge.data
const thresholdArray = streakerBadgeRarityThresholds
@ -70,7 +70,7 @@ const calculateStreakerBadgeRarity = (badge: StreakerBadge) => {
return 1
}
export const marketMakerBadgeRarityThresholds = [1, 25, 150]
export const marketMakerBadgeRarityThresholds = [1, 50, 200]
const calculateMarketMakerBadgeRarity = (badge: MarketCreatorBadge) => {
const { totalContractsCreated } = badge.data
const thresholdArray = marketMakerBadgeRarityThresholds

View File

@ -126,22 +126,24 @@ function ProvenCorrectBadgeItem(props: {
<SiteLink
href={contractPathWithoutContract(contractCreatorUsername, contractSlug)}
>
<Medal rarity={rarity} />
<Tooltip
text={`Make a comment attached to a winning bet worth ${betAmount}`}
>
<span
className={
rarity === 'gold'
? goldClassName
: rarity === 'silver'
? silverClassName
: bronzeClassName
}
<Col className={'text-center'}>
<Medal rarity={rarity} />
<Tooltip
text={`Make a comment attached to a winning bet worth ${betAmount}`}
>
Proven Correct
</span>
</Tooltip>
<span
className={
rarity === 'gold'
? goldClassName
: rarity === 'silver'
? silverClassName
: bronzeClassName
}
>
Proven Correct
</span>
</Tooltip>
</Col>
</SiteLink>
)
}