Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 remove ability to specify backup capital cost fee #875

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions api/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ export const DEFAULT_GAS_MARKUP = 0;
// Don't permit HUB_POOL_CHAIN_ID=0
export const HUB_POOL_CHAIN_ID = Number(REACT_APP_HUBPOOL_CHAINID || 1);

// Permit REACT_APP_FLAT_RELAY_CAPITAL_FEE=0
export const FLAT_RELAY_CAPITAL_FEE = Number(
process.env.REACT_APP_FLAT_RELAY_CAPITAL_FEE ?? 0.03
); // 0.03%

// Tokens that should be disabled in the routes
export const DISABLED_ROUTE_TOKENS = (
process.env.DISABLED_ROUTE_TOKENS || ""
Expand Down Expand Up @@ -453,7 +448,6 @@ export const getRelayerFeeCalculator = (destinationChainId: number) => {

const relayerFeeCalculatorConfig = {
feeLimitPercent: maxRelayFeePct * 100,
capitalCostsPercent: FLAT_RELAY_CAPITAL_FEE, // This is set same way in ./src/utils/bridge.ts
queries: queryFn(),
capitalCostsConfig: relayerFeeCapitalCostConfig,
};
Expand Down
4 changes: 0 additions & 4 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,6 @@ export const FEE_ESTIMATION = ".004";
export const MAX_RELAY_FEE_PERCENT = Number(
process.env.REACT_APP_MAX_RELAY_FEE_PERCENT || 50
);
export const FLAT_RELAY_CAPITAL_FEE = process.env
.REACT_APP_FLAT_RELAY_CAPITAL_FEE
? Number(process.env.REACT_APP_FLAT_RELAY_CAPITAL_FEE)
: 0;
export const SHOW_ACX_NAV_TOKEN =
process.env.REACT_APP_SHOW_ACX_NAV_TOKEN === "true";
export const AddressZero = ethers.constants.AddressZero;
Expand Down
Loading