Skip to content

Commit

Permalink
🩹Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Jun 19, 2024
1 parent 5d9d3b4 commit db7ada3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useSwapNetworkFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ const useSwapNetworkFees = (trade: InterfaceTrade | undefined, currencies: Curre
const buildTradeWithOneXlmAsInput = async (): Promise<InterfaceTrade | undefined> => {
const valueOfOne = '10000000';

const currencyA = currencies.INPUT;
const currencyA = {currency: currencies.INPUT! as TokenType, value: '0'};
const currencyB = currencies.OUTPUT;

if (!currencyA || !currencyB) return undefined;

const result = await generateRoute({
amountTokenAddress: currencyA.contract,
quoteTokenAddress: currencyB.contract,
amountAsset: currencyA,
quoteAsset: currencyB,
amount: valueOfOne,
tradeType: TradeType.EXACT_INPUT,
});
Expand All @@ -68,7 +68,7 @@ const useSwapNetworkFees = (trade: InterfaceTrade | undefined, currencies: Curre
const trade: InterfaceTrade = {
inputAmount: {
value: valueOfOne,
currency: currencyA,
currency: currencyA.currency!,
},
outputAmount: {
value: outputAmount,
Expand Down

0 comments on commit db7ada3

Please sign in to comment.