diff --git a/src/features/makeOtc/makeOtcActions.ts b/src/features/makeOtc/makeOtcActions.ts index 4210ba8ad..15a293202 100644 --- a/src/features/makeOtc/makeOtcActions.ts +++ b/src/features/makeOtc/makeOtcActions.ts @@ -60,7 +60,7 @@ export const createOtcOrder = createAsyncThunk( signerWallet: signerWallet, signerToken: params.signerToken, senderToken: params.senderToken, - protocolFee: "7", + protocolFee: params.protocolFee, signerAmount, senderAmount, chainId: params.chainId, diff --git a/src/features/metadata/metadataSlice.ts b/src/features/metadata/metadataSlice.ts index 3a8aaa61f..c64998d54 100644 --- a/src/features/metadata/metadataSlice.ts +++ b/src/features/metadata/metadataSlice.ts @@ -40,7 +40,7 @@ export interface MetadataState { const initialState: MetadataState = { isFetchingAllTokens: false, - protocolFee: 7, + protocolFee: 0, tokens: { all: {}, active: [], @@ -88,14 +88,9 @@ export const fetchProtocolFee = createAsyncThunk< provider: Web3Provider; chainId: number; } ->("metadata/fetchProtocolFee", async ({ provider, chainId }) => { - try { - return getProtocolFee(chainId, provider); - } catch { - console.error("Error getting protocol fee from contract, defaulting to 7."); - return 7; - } -}); +>("metadata/fetchProtocolFee", async ({ provider, chainId }) => + getProtocolFee(chainId, provider) +); export const metadataSlice = createSlice({ name: "metadata",