Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/airdrop/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface AirdropConfig {
readonly GOLD: Milestone;
readonly DIAMOND: Milestone;
};
readonly LOCKER_ID: string | null;
readonly LOCKER_TX: string | null;
readonly POINTS: {
readonly BUY_PER_PLOT: number;
readonly REFERRAL_PCT: number;
Expand Down Expand Up @@ -62,7 +62,7 @@ const TEST_CONFIG: AirdropConfig = {
GOLD: { mcap: 35_000, pct: 50 },
DIAMOND: { mcap: 50_000, pct: 100 },
},
LOCKER_ID: "3882",
LOCKER_TX: "0xb4549d21a3a026d215f38d9bf50779fe337254944ae746d008b3b13cd684adce",
POINTS,
STREAK_BOOSTS,
STREAK_MIN_GAP_MINUTES,
Expand All @@ -78,7 +78,7 @@ const PROD_CONFIG: AirdropConfig = {
GOLD: { mcap: 50_000_000, pct: 50 },
DIAMOND: { mcap: 100_000_000, pct: 100 },
},
LOCKER_ID: null,
LOCKER_TX: null,
POINTS,
STREAK_BOOSTS,
STREAK_MIN_GAP_MINUTES,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotlink",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/airdrop/status/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function GET() {
milestones,
totalPointsEarned,
totalParticipants,
lockerId: AIRDROP_CONFIG.LOCKER_ID,
lockerTx: AIRDROP_CONFIG.LOCKER_TX,
}, {
headers: { "Cache-Control": "public, s-maxage=60, stale-while-revalidate=30" },
});
Expand Down
8 changes: 4 additions & 4 deletions src/components/airdrop/CampaignHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface StatusData {
};
totalPointsEarned: number;
totalParticipants: number;
lockerId: string | null;
lockerTx: string | null;
}

interface DailyPrice {
Expand Down Expand Up @@ -634,14 +634,14 @@ export function CampaignHero() {
</p>

{/* Lock-up proof */}
{data.lockerId ? (
{data.lockerTx ? (
<a
href={`https://mint.club/locker/${data.lockerId}`}
href={`https://basescan.org/tx/${data.lockerTx}`}
target="_blank"
rel="noopener noreferrer"
className="text-accent text-xs hover:underline inline-flex items-center gap-1"
>
<span>&#x1F512;</span> View lock-up proof on Mint Club
<span>&#x1F512;</span> View lock-up proof on Basescan
</a>
) : (
<span className="text-muted text-xs inline-flex items-center gap-1">
Expand Down
Loading