Skip to content

Commit

Permalink
Merge pull request #2 from burnt-labs/main
Browse files Browse the repository at this point in the history
Push updates to upstream
  • Loading branch information
icfor committed Apr 16, 2024
2 parents fb6aecb + baa7e46 commit 2c4a67e
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -32,6 +33,7 @@ export default function RootLayout({
<CoreProvider>
<StakingProvider>
<BaseWrapper>{children}</BaseWrapper>
<Analytics />
</StakingProvider>
</CoreProvider>
</AbstraxionProvider>
Expand Down
8 changes: 4 additions & 4 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" : "";
Expand All @@ -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;
2 changes: 1 addition & 1 deletion src/features/staking/components/faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 2c4a67e

Please sign in to comment.