Skip to content

Commit

Permalink
final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamest0 committed Oct 16, 2023
1 parent 30dce23 commit 0640634
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 40 deletions.
5 changes: 3 additions & 2 deletions components/LockingRoom/LockingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ const LockingScreen: React.FC<{ room: Room }> = ({ room }) => {
<span className="animation-appear">You&apos;ve successfully locked your tokens.</span>
) : (
<span className="animation-appear">
If you move these tokens during the governance farming period, your voting power will
stop compounding.
In order to farm governance points, you must commit not to move these tokens.
<div className="my-1" />
The tokens will remain in your wallet but if you move these tokens during the governance farming period, your voting power will stop compounding.
</span>
)}
{roomData.extra_details && status !== 'completed' && status !== 'locked' && (
Expand Down
2 changes: 1 addition & 1 deletion pages/farming/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Farming: NextPage = () => {
<h1 className="text-5xl font-bold text-center mt-[-25px]">👨🏻‍⚖️</h1>
<h1 className="text-center text-xl font-bold text-black">Select a room in the mansion</h1>
<p className="text-center text-sm font-normal">
Earn Infinex voting power by depositing your tokens and proving your trade history
You can earn Infinex governance points by <a className="underline cursor-pointer" href="https://docs.infinex.io/governance/elections-and-voting/governance-farming" target='_blank'>locking</a> your tokens or proving your trade history.
</p>
<Button
className={classNames(
Expand Down
13 changes: 3 additions & 10 deletions pages/farming/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,18 @@ export default function Profile() {
</div>

{/* Data Points */}
<div className="grid sm:grid-cols-2 grid-cols-1 gap-4 mt-4 text-center w-full">
<div className="grid sm:grid-cols-3 grid-cols-1 gap-4 mt-4 text-center w-full">
<div>
<h3 className="text-sm font-semibold">{`Total points earned`}</h3>
<h3 className="text-sm font-semibold">{`Your points`}</h3>
<p className="text-sm">{formatNumberWithLocale(userTotal)}</p>
</div>
<div>
<h3 className="text-sm font-semibold">{`Base points earned`}</h3>
<p className="text-sm">{formatNumberWithLocale(userTotalRaw)}</p>
</div>
<div>
<h3 className="text-sm font-semibold">{`Points in pool`}</h3>
<p className="text-sm">{formatNumberWithLocale(numPointsInPool)}</p>
</div>
<div>
<h3 className="text-sm font-semibold">{`Users in pool`}</h3>
<p className="text-sm">{formatNumberWithLocale(numUsersInPool)}</p>
<p className="text-sm">{numUsersInPool}</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -246,7 +242,6 @@ export default function Profile() {
<div className="table-row">
{[
'Your governance points',
'Your governance power',
'Active governance farmers',
'Time left to farm',
].map((heading, index) => (
Expand All @@ -260,8 +255,6 @@ export default function Profile() {
formatNumberWithLocale(userTotals?.total_points) === 'Loading...'
? 0
: formatNumberWithLocale(userTotals?.total_points),
// formatNumberWithLocale(userTotals?.total_points_raw),
formatPercent(userTotals?.total_points / platformTotals?.total_points),
platformTotals?.total_user_count || 0,
formatTimeRemaining(),
].map((data, index) => (
Expand Down
54 changes: 27 additions & 27 deletions utils/config/rooms.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
const rooms = [
{
type: 'dex',
key: 13,
name: 'Spot Dex Sauna',
description: 'Connect your address\\nEarn Voting Power',
emoji: '❤️‍🔥',
token: '',
info: "We collect volumes from over 30 spot DEX's incouding Uniswap, Sushiswap and Curve",
exchange_id: 'Spot Dex',
needsApiPass: false,
linking: true,
locking: false,
dex: true,
},
{
type: 'cex',
key: 1,
name: 'Binance Forecourt',
description: 'Deposit BNB\\nEarn Voting Power',
description: 'Lock BNB\\nEarn Voting Power',
emoji: '⛲',
token: 'BNB',
exchange_id: 'Binance',
Expand All @@ -33,7 +19,7 @@ const rooms = [
type: 'dex',
key: 14,
name: 'Spartan Grounds',
description: 'Connect your address\\nEarn Voting Power',
description: 'Connect your wallet\\nEarn Voting Power',
emoji: '⚔️',
token: '',
exchange_id: 'SNX',
Expand All @@ -42,11 +28,25 @@ const rooms = [
locking: false,
dex: true,
},
{
type: 'dex',
key: 13,
name: 'AMM Sauna',
description: 'Prove volume on Curve, Sushi and Uniswap \\nEarn Voting Power',
emoji: '🦄',
token: '',
info: "We collect volumes from over 30 AMMs including Uniswap, Sushiswap and Curve",
exchange_id: 'Spot Dex',
needsApiPass: false,
linking: true,
locking: false,
dex: true,
},
{
type: 'cex',
key: 2,
name: 'FTX Panic Room',
description: 'Deposit FTT\\nEarn Voting Power',
description: 'Lock FTT\\nEarn Voting Power',
emoji: '🫣',
token: 'FTT',
exchange_id: 'FTX',
Expand All @@ -59,7 +59,7 @@ const rooms = [
type: 'cex',
key: 3,
name: 'Kucoin Scullery',
description: 'Deposit KCS\\nEarn Voting Power',
description: 'Lock KCS\\nEarn Voting Power',
emoji: '🛖',
token: 'KCS',
exchange_id: 'Kucoin',
Expand All @@ -71,12 +71,12 @@ const rooms = [
guide:
'https://docs.infinex.io/governance/elections-and-voting/governance-farming/linking-your-api-keys/kucoin-guide',
},
// {type:"cex", key: 4, name: "His Excellency’s Chambers", description: "Deposit HT, Earn Voting Power", emoji: "🧖‍♂️", token: "HT", exchange_id: "Huobi", needsApiPass: false},
// {type:"cex", key: 4, name: "His Excellency’s Chambers", description: "Lock HT, Earn Voting Power", emoji: "🧖‍♂️", token: "HT", exchange_id: "Huobi", needsApiPass: false},
{
type: 'cex',
key: 5,
name: 'BitMex Ballroom',
description: 'Deposit BMEX\\nEarn Voting Power',
description: 'Lock BMEX\\nEarn Voting Power',
emoji: '💃',
token: 'BMEX',
exchange_id: 'Bitmex',
Expand All @@ -91,11 +91,11 @@ const rooms = [
type: 'dex',
key: 6,
name: 'dYdX Observatory',
description: 'Deposit DYDX\\nEarn Voting Power',
description: 'Lock dYdX\\nEarn Voting Power',
emoji: '🔭',
token: 'DYDX',
exchange_id: 'Dydx',
info: 'We track your deposits to DYDX layer 2',
info: 'We track your deposits to dYdX layer 2',
needsApiPass: false,
linking: true,
locking: true,
Expand All @@ -105,7 +105,7 @@ const rooms = [
type: 'dex',
key: 7,
name: 'Blueberry Fields',
description: 'Deposit GMX\\nEarn Voting Power',
description: 'Lock GMX\\nEarn Voting Power',
emoji: '🫐',
token: 'GMX',
info: 'We collect volumes from Arbirtum and Avalanche',
Expand All @@ -119,7 +119,7 @@ const rooms = [
type: 'cex',
key: 8,
name: 'Bybit Pillow Chamber',
description: 'Deposit MNT\\nEarn Voting Power',
description: 'Lock MNT\\nEarn Voting Power',
emoji: '🌖',
token: 'MNT',
exchange_id: 'Bybit',
Expand All @@ -135,7 +135,7 @@ const rooms = [
type: 'cex',
key: 9,
name: 'OKX Pitstop',
description: 'Deposit OKB\\nEarn Voting Power',
description: 'Lock OKB\\nEarn Voting Power',
emoji: '🏁',
token: 'OKB',
exchange_id: 'OKX',
Expand All @@ -150,7 +150,7 @@ const rooms = [
type: 'cex',
key: 10,
name: 'The Bitget Laundromat',
description: 'Deposit BGB\\nEarn Voting Power',
description: 'Lock BGB\\nEarn Voting Power',
emoji: '🧺',
token: 'BGB',
exchange_id: 'Bitget',
Expand All @@ -165,7 +165,7 @@ const rooms = [
type: 'cex',
key: 11,
name: 'MEXC Nursery',
description: 'Deposit MX\\nEarn Voting Power',
description: 'Lock MX\\nEarn Voting Power',
emoji: '🤱',
token: 'MX',
exchange_id: 'MEXC',
Expand Down

0 comments on commit 0640634

Please sign in to comment.