Skip to content

Comments

PR 1: Centralize SideShift URLs to shared/config/sideshift.ts#318

Open
sr-857 wants to merge 2 commits intoGauravKarakoti:mainfrom
sr-857:feature/centralize-sideshift-urls-271
Open

PR 1: Centralize SideShift URLs to shared/config/sideshift.ts#318
sr-857 wants to merge 2 commits intoGauravKarakoti:mainfrom
sr-857:feature/centralize-sideshift-urls-271

Conversation

@sr-857
Copy link

@sr-857 sr-857 commented Feb 20, 2026

PR 1: Centralize SideShift URLs (#271)

Technical Analysis

The codebase had hardcoded SideShift API endpoints and checkout URLs scattered across various frontend and backend files. This made it difficult to manage environment-specific configurations and increased the risk of inconsistent endpoint usage.

Proposed Solution

Centralize all SideShift-related URLs into a single configuration file in the shared directory. This ensures a "single source of truth" and simplifies updates to API versions or base URLs.

Changes

  • Created SIDESHIFT_CONFIG in shared/config/sideshift.ts.
  • Refactored frontend/utils/sideshift-client.ts, bot/src/services/sideshift-client.ts, and frontend/components/SwapConfirmation.tsx to use the centralized config.

Verification

  • Verified all hardcoded strings were replaced.
  • Manual inspection of API request logic.

@vercel
Copy link
Contributor

vercel bot commented Feb 20, 2026

@sr-857 is attempting to deploy a commit to the Gaurav's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for swapsmithminiapp canceled.

Name Link
🔨 Latest commit 9a494df
🔍 Latest deploy log https://app.netlify.com/projects/swapsmithminiapp/deploys/699949c0fb882a0008f2bae4

@GauravKarakoti
Copy link
Owner

Please resolve the merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants