Skip to content

Commit

Permalink
feat: add stage and source to rpcConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix committed Sep 27, 2023
1 parent 4be444b commit 209f787
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion configs/oasis-borrow/getRpcConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export const getRpcConfig = () => ({
import { ConfigHelperType } from "⌨️";

type PickConfigHelper = Pick<ConfigHelperType, "notProduction">;

export const getRpcConfig = ({ notProduction }: PickConfigHelper) => ({
skipCache: false,
skipMulticall: false,
skipGraph: true,
stage: notProduction ? "staging" : "prod",
source: notProduction ? "borrow-staging" : "borrow-prod",
});
2 changes: 1 addition & 1 deletion configs/oasis-borrow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export default function ({
features: getFeatures({ isStaging }),
parameters: getParameters({ notProduction }),
navigation: getNavigation(),
rpcConfig: getRpcConfig(),
rpcConfig: getRpcConfig({ notProduction }),
};
}

0 comments on commit 209f787

Please sign in to comment.