diff --git a/package-lock.json b/package-lock.json index 62ae8e9..69e053d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@cosmjs/proto-signing": "^0.32.2", "@cosmjs/stargate": "^0.32.2", "@mui/base": "^5.0.0-beta.38", + "@vercel/analytics": "^1.2.2", "bignumber.js": "^9.1.2", "cosmjs-types": "^0.9.0", "next": "14.1.0", @@ -2899,6 +2900,26 @@ "resolved": "https://registry.npmjs.org/@vectis/extension-client/-/extension-client-0.7.2.tgz", "integrity": "sha512-tIzihqLSljxLC4VVnn94VH1Q7QqlWYPy2HnoeVaqmjv06YI3CSX97kLN+TYGiUKdZoSmnxIJVBq8QRIBASthKQ==" }, + "node_modules/@vercel/analytics": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.2.2.tgz", + "integrity": "sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==", + "dependencies": { + "server-only": "^0.0.1" + }, + "peerDependencies": { + "next": ">= 13", + "react": "^18 || ^19" + }, + "peerDependenciesMeta": { + "next": { + "optional": true + }, + "react": { + "optional": true + } + } + }, "node_modules/@walletconnect/core": { "version": "2.11.2", "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.11.2.tgz", @@ -9217,6 +9238,11 @@ "node": ">=10" } }, + "node_modules/server-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz", + "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==" + }, "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", diff --git a/package.json b/package.json index f2c602a..fa47b3a 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@cosmjs/proto-signing": "^0.32.2", "@cosmjs/stargate": "^0.32.2", "@mui/base": "^5.0.0-beta.38", + "@vercel/analytics": "^1.2.2", "bignumber.js": "^9.1.2", "cosmjs-types": "^0.9.0", "next": "14.1.0", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e8f1c75..912d640 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,7 @@ import { AbstraxionProvider } from "@burnt-labs/abstraxion"; import "@burnt-labs/abstraxion/dist/index.css"; import "@burnt-labs/ui/dist/index.css"; +import { Analytics } from "@vercel/analytics/react"; import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; @@ -32,6 +33,7 @@ export default function RootLayout({ {children} + diff --git a/src/constants.ts b/src/constants.ts index 05e9be9..7a167a2 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -6,12 +6,12 @@ export const isTestnet = true; export const dashboardUrl = undefined; -// export const rpcEndpoint = "https://rpc.xion-testnet-1.burnt.com:443"; -export const rpcEndpoint = "https://rpc.xion-testnet.forbole.com"; +export const rpcEndpoint = "https://rpc.xion-testnet-1.burnt.com:443"; +// export const rpcEndpoint = "https://rpc.xion-testnet.forbole.com"; // This only exists on testnet. export const faucetContractAddress = - "xion1z8gr3jn7rd5leyvz7z3zmelxmrz6q8lv7flc3a4u8kltwj6leags8u64qx"; + "xion132dxh4k3dpyalq6tfq7006h8kpk3m30f4mwc5dgqefy6akudm50s96mn6q"; export const basePath = process.env.NEXT_PUBLIC_IS_DEPLOYMENT === "true" ? "/xion-staking" : ""; @@ -28,4 +28,4 @@ export const unbondingDays = isTestnet ? 3 : 21; // Arbitrary value to avoid using a bigger fee than the actual reward export const minClaimableXion = 0.00001; -export const minDisplayedXion = 0.001; +export const minDisplayedXion = 0.000001; diff --git a/src/features/staking/components/faucet.tsx b/src/features/staking/components/faucet.tsx index bdda954..56b4e57 100644 --- a/src/features/staking/components/faucet.tsx +++ b/src/features/staking/components/faucet.tsx @@ -34,7 +34,7 @@ const Faucet = () => { return; } - if (parseInt(staking.state.tokens?.amount) > result.maxBalance) { + if (parseInt(staking.state.tokens?.amount) >= result.maxBalance) { setLastFaucetStatus({ ...result,