Skip to content

Commit

Permalink
♻️Renamed PransactionType to PlatformType
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Jun 19, 2024
1 parent 3742596 commit dfad3d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useSwapNetworkFees.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { calculateSwapFees } from 'functions/getNetworkFees';
import { InterfaceTrade, TransactionType } from 'state/routing/types';
import { InterfaceTrade, PlatformType } from 'state/routing/types';
import { SorobanContextType, useSorobanReact } from '@soroban-react/core';
import useSWRImmutable from 'swr/immutable';
import { useRouterSDK } from 'functions/generateRoute';
Expand Down Expand Up @@ -76,7 +76,7 @@ const useSwapNetworkFees = (trade: InterfaceTrade | undefined, currencies: Curre
},
path: result?.trade.path,
tradeType: TradeType.EXACT_INPUT,
transctionType: TransactionType.SOROBAN
platform: PlatformType.SOROBAN
};

return trade;
Expand Down
4 changes: 2 additions & 2 deletions src/state/routing/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export enum TradeType {
EXACT_OUTPUT = 'EXACT_OUTPUT',
}

export enum TransactionType {
export enum PlatformType {
SOROBAN = 'SOROBAN',
STELLAR_CLASSIC = 'STELLAR_CLASSIC'
}
Expand All @@ -245,7 +245,7 @@ export type InterfaceTrade = {
path: string[] | undefined;
priceImpact?: Percent | undefined;
[x: string]: any;
transctionType: TransactionType;
platform: PlatformType;
};

export enum QuoteState {
Expand Down

0 comments on commit dfad3d2

Please sign in to comment.