Skip to content

Commit

Permalink
fix: points (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyv09 authored Oct 18, 2024
1 parent 3bdeb04 commit 41b1329
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const POINTS_BORROW: Point[] = [
name: 'Activity Points',
description: (
<div className="text-md">
Earn <span className="text-primary">2x</span>{' '}
<span className="text-lavender font-semibold">Activity Points</span> by
borrowing assets on Swaylend.{' '}
Earn up to <span className="text-primary">4x</span>{' '}
<span className="text-lavender font-semibold">Activity Points</span> by{' '}
borrowing <br /> assets on Swaylend.{' '}
<a
href="https://fuel.mirror.xyz/UfX-NnWGvYy56K8lq5gPfGLPI58DGD3KOHBJupHIibk"
className="text-primary underline"
Expand Down Expand Up @@ -277,7 +277,7 @@ export const BorrowTable = () => {
</TableCell>
<TableCell>{borrowedBalance}</TableCell>
<TableCell>
<PointIcons value="2x" points={POINTS_BORROW} />
<PointIcons value="4x" points={POINTS_BORROW} />
</TableCell>
<TableCell>
{userRole === USER_ROLE.LENDER ? (
Expand Down Expand Up @@ -411,7 +411,7 @@ export const BorrowTable = () => {
<div className="w-1/2 text-moon font-medium">
Borrow Points
</div>
<PointIcons value="2x" points={POINTS_BORROW} />
<PointIcons value="4x" points={POINTS_BORROW} />
</div>
</div>
</CardContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,18 @@ const POINTS_COLLATERAL: Point[] = [
description: (
<div className="text-md">
Earn <span className="text-lavender font-semibold">Passive Points</span>{' '}
by supplying collateral on Swaylend.
<br />
Note that Passive Points are not the same as Activity Points <br />
earned by Lending or Borrowing.{' '}
by holding <span className="text-lavender">unused</span> collateral{' '}
<br /> on Swaylend. Note that Collateral used in <br /> Borrow positions
earns{' '}
<span className="text-lavender font-semibold">Activity Points</span>{' '}
instead. <br />{' '}
<a
href="https://fuel.mirror.xyz/UfX-NnWGvYy56K8lq5gPfGLPI58DGD3KOHBJupHIibk"
className="text-primary underline"
target="_blank"
rel="noreferrer"
>
Learn more about <br /> the different types of points here
Learn more
</a>
.
</div>
Expand Down Expand Up @@ -252,7 +253,10 @@ const CollateralTableRow = ({
</div>
</TableCell>
<TableCell>
<PointIcons points={POINTS_COLLATERAL} />
<PointIcons
value={symbol === 'USDT' || symbol === 'ETH' ? '2x' : undefined}
points={POINTS_COLLATERAL}
/>
</TableCell>
<TableCell>
<div className="flex gap-x-2 w-full">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const POINTS_LEND: Point[] = [
name: 'Activity Points',
description: (
<div className="text-md">
Earn <span className="text-primary">2x</span>{' '}
Earn <span className="text-primary">4x</span>{' '}
<span className="text-lavender font-semibold">Activity Points</span> by
lending assets on Swaylend.{' '}
lending assets <br /> on Swaylend.{' '}
<a
href="https://fuel.mirror.xyz/UfX-NnWGvYy56K8lq5gPfGLPI58DGD3KOHBJupHIibk"
className="text-primary underline"
Expand Down Expand Up @@ -251,7 +251,7 @@ export const LendTable = () => {
{appConfig.assets[marketConfiguration?.baseToken.bits ?? '']}
</TableCell>
<TableCell>
<PointIcons value="2x" points={POINTS_LEND} />
<PointIcons value="4x" points={POINTS_LEND} />
</TableCell>
<TableCell>
{userRole === USER_ROLE.BORROWER ? (
Expand Down Expand Up @@ -389,7 +389,7 @@ export const LendTable = () => {
<div className="w-1/2 text-moon font-medium">
Supply Points
</div>
<PointIcons value="2x" points={POINTS_LEND} />
<PointIcons value="4x" points={POINTS_LEND} />
</div>
</div>
</CardContent>
Expand Down

0 comments on commit 41b1329

Please sign in to comment.