diff --git a/apps/frontend/src/components/Navbar/Points.tsx b/apps/frontend/src/components/Navbar/Points.tsx index c0de8de8..14e85f48 100644 --- a/apps/frontend/src/components/Navbar/Points.tsx +++ b/apps/frontend/src/components/Navbar/Points.tsx @@ -4,7 +4,7 @@ import { PopoverTrigger, } from '@/components/ui/popover'; import { useFuelPoints } from '@/hooks/useFuelPoints'; -import { useSwaylendPoints } from '@/hooks/useSwaylendPoints'; +import { useSwayPoints } from '@/hooks/useSwaylendPoints'; import { cn } from '@/lib/utils'; import { useIsConnected } from '@fuels/react'; import Image from 'next/image'; @@ -27,7 +27,7 @@ export const Points = () => { const { isConnected } = useIsConnected(); const { data: fuelPoints } = useFuelPoints(); - const { data: swaylendPoints } = useSwaylendPoints(); + const { data: swaylendPoints } = useSwayPoints(); // const handleCopy = async (value: string) => { // setIsCopied(true); @@ -57,7 +57,7 @@ export const Points = () => { className="flex flex-col gap-y-2 items-center w-[258px] px-[24px]" >
-
Swaylend Points
+
SwayPoints
Supply this asset as collateral to earn 1 Swaylend Point per dollar @@ -99,7 +99,7 @@ export const POINTS_BORROW: Point[] = [ }, { id: '2', - name: 'Swaylend Points', + name: 'SwayPoints', description: (
By Borrowing USDC on Swaylend you get a{' '} @@ -146,7 +146,7 @@ export const POINTS_LEND: Point[] = [ }, { id: '2', - name: 'Swaylend Points', + name: 'SwayPoints', description: (
By Lending USDC on Swaylend you get a{' '} diff --git a/apps/frontend/src/hooks/useSwaylendPoints.ts b/apps/frontend/src/hooks/useSwaylendPoints.ts index c07a9098..5fb0e704 100644 --- a/apps/frontend/src/hooks/useSwaylendPoints.ts +++ b/apps/frontend/src/hooks/useSwaylendPoints.ts @@ -13,11 +13,11 @@ function randomDouble(min: number, max: number) { return Math.random() * (max - min) + min; } -export const useSwaylendPoints = () => { +export const useSwayPoints = () => { const { account } = useAccount(); return useQuery({ - queryKey: ['swaylendPoints', account], + queryKey: ['swayPoints', account], queryFn: async () => { if (!account) return getFormattedNumber(BigNumber(0));