Skip to content

Commit 35b7e8c

Browse files
authored
[156] Change unleash (#248)
1 parent a8d5e82 commit 35b7e8c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/providers/FeatureToggleProvider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ReactNode } from "react";
22
import { FlagProvider, IConfig } from "@unleash/proxy-client-react";
33

44
const config: IConfig = {
5-
url: "https://unleash.spark-defi.com/unleash/api/frontend/",
5+
url: "https://unleash.production.sprk.fi/api/frontend/",
66
clientKey: import.meta.env.VITE_FEATURE_TOGGLE_CLIENT_KEY ?? "",
77
refreshInterval: 15,
88
appName: "spark-frontend",

src/screens/SpotScreen/BottomTables/SpotTable/SpotTableVM.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,14 @@ class SpotTableVM {
130130

131131
try {
132132
const bcNetworkCopy = await bcNetwork.chain();
133+
console.log("order", order);
133134
const tx = await bcNetworkCopy.writeWithMarket(order.market).cancelOrder(order.id);
134135
notificationStore.success({
135136
text: getActionMessage(ACTION_MESSAGE_TYPE.CANCELING_ORDER)(),
136137
hash: tx.transactionId,
137138
});
138139
} catch (error: any) {
140+
console.log("error", error);
139141
handleWalletErrors(notificationStore, error, getActionMessage(ACTION_MESSAGE_TYPE.CANCELING_ORDER_FAILED)());
140142
}
141143

src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class CreateOrderVM {
118118
const order = orders[orders.length - 1];
119119

120120
if (!order) return;
121-
122121
this.setInputPriceThrottle(order.price);
123122
},
124123
);
@@ -461,6 +460,7 @@ class CreateOrderVM {
461460
};
462461

463462
selectOrderbookOrder = async (order: SpotMarketOrder, mode: ORDER_MODE) => {
463+
console.log("selectOrderbookOrder");
464464
const { settingsStore } = this.rootStore;
465465
settingsStore.setTimeInForce(LimitType.GTC);
466466
settingsStore.setOrderType(ORDER_TYPE.Limit);

0 commit comments

Comments
 (0)