Skip to content

Commit

Permalink
Remove fusdc/arb earned (#2629)
Browse files Browse the repository at this point in the history
Co-authored-by: user <[email protected]>
  • Loading branch information
af-afk and user authored Apr 19, 2024
1 parent 072bd19 commit c588827
Showing 1 changed file with 8 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
toSignificantDecimals,
numberToCommaSeparated,
useViewport,
numberToMonetaryString,
toDecimalPlaces,
} from "@fluidity-money/surfing";
import {
Expand Down Expand Up @@ -521,16 +520,13 @@ const Airdrop = () => {
);

// airdrop leaderboard data contains more than the displayed entries, so postprocessing is required
const airdropLeaderboardData = useMemo(
() => ({
loaded: airdropLeaderboardData_?.loaded,
leaderboard: getLeaderboardWithUser(
airdropLeaderboardData_?.leaderboard || [],
address ?? ""
),
}),
[airdropLeaderboardData_]
);
const airdropLeaderboardData = useMemo(() => ({
loaded: airdropLeaderboardData_?.loaded,
leaderboard: getLeaderboardWithUser(
airdropLeaderboardData_?.leaderboard || [],
address ?? ""
)
}), [airdropLeaderboardData_])

const { data: referralData } = useCache<AirdropLoaderData>(
address
Expand Down Expand Up @@ -1615,7 +1611,7 @@ const airdropRankRow = (
isMobile = false
): IRow => {
const { address } = useContext(FluidityFacadeContext);
const { user, rank, referralCount, fusdcEarned, flyStaked, bottles } = data;
const { user, rank, referralCount, flyStaked, bottles } = data;

return {
className: `airdrop-row ${isMobile ? "airdrop-mobile" : ""} ${
Expand Down Expand Up @@ -1681,40 +1677,6 @@ const airdropRankRow = (
</Text>
</td>
);
case "$fUSDC EARNED":
return (
<td>
<Text
prominent
style={
address && address === user
? {
color: "black",
}
: {}
}
>
{numberToMonetaryString(fusdcEarned)}
</Text>
</td>
);
case "$ARB EARNED":
return (
<td>
<Text
prominent
style={
address && address === user
? {
color: "black",
}
: {}
}
>
0
</Text>
</td>
);
case "$FLY STAKED":
return (
<td>
Expand Down Expand Up @@ -1837,8 +1799,6 @@ const Leaderboard = ({
{ name: "RANK" },
{ name: "USER" },
{ name: "BOTTLES" },
{ name: "$fUSDC EARNED" },
{ name: "$ARB EARNED" },
{ name: "$FLY STAKED" },
{ name: "REFERRALS" },
]}
Expand Down

0 comments on commit c588827

Please sign in to comment.