Skip to content

Commit

Permalink
Merge pull request #7 from the-standard/202406-staking-swap
Browse files Browse the repository at this point in the history
feat: new staking change
  • Loading branch information
ZakMooney authored Jun 11, 2024
2 parents b717845 + 5fb213e commit bd44f72
Showing 1 changed file with 66 additions and 50 deletions.
116 changes: 66 additions & 50 deletions src/pages/liquidation-pools/LiquidationPools.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,59 +77,75 @@ const LiquidationPools = () => {
}, []);

return (
<main className="grid gap-4 grid-cols-1 md:grid-cols-2">
<div>
<Staking />
</div>
<div>
<StakedAssets
loading={isLoading}
positions={positions || {}}
pending={pending || {}}
/>
</div>
<div>
<Card className="card-compact">
<div className="card-body">
<Typography variant="h2" className="card-title flex justify-between">
{showValue ? (
'Asset Value'
) : (
'Asset Totals'
)}
<Button size="sm" color="ghost" onClick={() => setShowValue(!showValue)}>
<>
<Card className="card-compact mb-4">
<div className="card-body">
<div role="alert" className="alert alert-warning bg-yellow-400/20 flex flex-col items-start">
<Typography variant="h2">
Changes With Earning Fees & New Staking Pool
</Typography>
<Typography variant="p">
With the upcoming release of our new & improved Staking Pool, from <b>17th June '24</b>, we will be moving all earnable fees over to it.
<br/>
The existing Liquidation Pool will continue to exist past this date so you can withdraw your staked assets and claim any outstanding rewards.
</Typography>
</div>
</div>
</Card>
<main className="grid gap-4 grid-cols-1 md:grid-cols-2">
<div>
<Staking />
</div>
<div>
<StakedAssets
loading={isLoading}
positions={positions || {}}
pending={pending || {}}
/>
</div>
<div>
<Card className="card-compact">
<div className="card-body">
<Typography variant="h2" className="card-title flex justify-between">
{showValue ? (
<>
<ArrowTrendingUpIcon className="h-4 w-4 inline-block"/>
Show Totals
</>
'Asset Value'
) : (
<>
<BanknotesIcon className="h-4 w-4 inline-block"/>
Show Values
</>
'Asset Totals'
)}
</Button>
</Typography>
{showValue ? (
<>
<VolumeChart chartData={chartData || []} />
</>
) : (
<>
<ValueChart chartData={chartData || []} />
</>
)}
</div>
</Card>
</div>
<div>
<ClaimTokens
loading={isLoading}
rewards={rewards || []}
/>
</div>
</main>
<Button size="sm" color="ghost" onClick={() => setShowValue(!showValue)}>
{showValue ? (
<>
<ArrowTrendingUpIcon className="h-4 w-4 inline-block"/>
Show Totals
</>
) : (
<>
<BanknotesIcon className="h-4 w-4 inline-block"/>
Show Values
</>
)}
</Button>
</Typography>
{showValue ? (
<>
<VolumeChart chartData={chartData || []} />
</>
) : (
<>
<ValueChart chartData={chartData || []} />
</>
)}
</div>
</Card>
</div>
<div>
<ClaimTokens
loading={isLoading}
rewards={rewards || []}
/>
</div>
</main>
</>
);
};

Expand Down

0 comments on commit bd44f72

Please sign in to comment.