Skip to content

Commit 79d0c47

Browse files
committed
misc
1 parent ea5a902 commit 79d0c47

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/components/transactions/Swap/errors/shared/console.helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function buildErrorPayload(state: SwapState, error: SwapError) {
3131
useFlashloan: state.useFlashloan ?? false,
3232
side: state.side,
3333
orderType: state.orderType,
34+
swapType: state.swapType,
3435
slippage: state.slippage,
3536
input: {
3637
token: state.sourceToken.symbol,

src/components/transactions/Swap/types/shared.types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/** All supported swap flows. */
22
export enum SwapType {
3-
Swap,
4-
CollateralSwap,
5-
DebtSwap,
6-
RepayWithCollateral,
7-
WithdrawAndSwap,
3+
Swap = 'swap',
4+
CollateralSwap = 'collateral_swap',
5+
DebtSwap = 'debt_swap',
6+
RepayWithCollateral = 'repay_with_collateral',
7+
WithdrawAndSwap = 'withdraw_and_swap',
88
}
99

1010
/** Order flavor shown in the UI. */
1111
export enum OrderType {
12-
MARKET,
13-
LIMIT,
12+
MARKET = 'market',
13+
LIMIT = 'limit',
1414
}
1515

1616
/**

0 commit comments

Comments
 (0)