Skip to content

Commit

Permalink
Merge pull request #377 from skip-mev/staging
Browse files Browse the repository at this point in the history
sync staging to main
  • Loading branch information
codingki authored Sep 27, 2024
2 parents 55f7534 + 3c8cb0a commit 637c83d
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 308 files
2 changes: 1 addition & 1 deletion initia-registry
38 changes: 19 additions & 19 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@sentry/nextjs": "^7.99.0",
"@skip-go/widget": "^2.4.12",
"@skip-go/widget": "^2.5.0",
"@solana/spl-token": "^0.4.1",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-wallets": "^0.19.31",
Expand Down
9 changes: 8 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ const isVercelPreview = (str: string) => {
return false;
};

const isNetlifyPreview = (str: string) => {
if (str.endsWith("netlify.app")) {
return true;
}
return false;
};

const isCloudflarePreview = (str: string) => {
if (str.endsWith("pages.dev")) {
return true;
Expand All @@ -38,7 +45,7 @@ const isCloudflarePreview = (str: string) => {
};

const isPreview = (str: string) => {
if (isVercelPreview(str) || isCloudflarePreview(str)) {
if (isVercelPreview(str) || isCloudflarePreview(str) || isNetlifyPreview(str)) {
return true;
}
return false;
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default function Home() {
amountOut: Number(defaultRoute?.amountOut),
}}
settings={{
customGasAmount: 200_000,
slippage: 3,
}}
onlyTestnet={process.env.NEXT_PUBLIC_IS_TESTNET ? true : false}
Expand Down
1 change: 0 additions & 1 deletion src/pages/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function WidgetPage() {
amountOut: Number(defaultRoute?.amountOut),
}}
settings={{
customGasAmount: 200_000,
slippage: 3,
}}
onlyTestnet={process.env.NEXT_PUBLIC_IS_TESTNET ? true : false}
Expand Down

0 comments on commit 637c83d

Please sign in to comment.