Skip to content

Commit 9c5fb06

Browse files
authored
Merge pull request #138 from oasisprotocol/ml/set-paymaster-partner-id
Set Nitro partner id
2 parents f1d5dcc + 0d219a6 commit 9c5fb06

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VITE_WALLET_CONNECT_PROJECT_ID=e3727c2e231abb0791d9cc90b55fb1e1
22
# VITE_ROFL_APP_BACKEND=http://localhost:8899
3-
VITE_ROFL_APP_BACKEND=https://backend.rofl.app
3+
VITE_ROFL_APP_BACKEND=https://backend.rofl.app
44
VITE_FATHOM_SIDE_ID=ADZXERYI
5+
VITE_NITRO_PARTNER_ID=309

src/contexts/top-up/RouterPathfinderProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const RouterPathfinderContextProvider: FC<PropsWithChildren> = ({ childre
3131
const defaultParams = {
3232
slippageTolerance: 2,
3333
destFuel: 0,
34-
partnerId: 1,
34+
partnerId: Number(import.meta.env.VITE_NITRO_PARTNER_ID),
3535
}
3636

3737
const mergedParams = { ...defaultParams, ...params }

src/vite-env.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ declare const APP_VERSION: string
44

55
interface ImportMetaEnv {
66
VITE_WALLET_CONNECT_PROJECT_ID: string
7+
VITE_ROFL_APP_BACKEND: string
8+
VITE_FATHOM_SIDE_ID: string
9+
VITE_NITRO_PARTNER_ID: string
710
}
811

912
interface ImportMeta {

0 commit comments

Comments
 (0)