feat(trading): use camel case marketId in updateMarginMode tx
This commit is contained in:
parent
0bd13a5f7b
commit
4ef789e00a
@ -65,7 +65,7 @@ const CrossMarginModeDialog = ({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
create({
|
create({
|
||||||
updateMarginMode: {
|
updateMarginMode: {
|
||||||
market_id: marketId,
|
marketId,
|
||||||
mode: MarginMode.MARGIN_MODE_CROSS_MARGIN,
|
mode: MarginMode.MARGIN_MODE_CROSS_MARGIN,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -131,7 +131,7 @@ const IsolatedMarginModeDialog = ({
|
|||||||
onSubmit={() => {
|
onSubmit={() => {
|
||||||
create({
|
create({
|
||||||
updateMarginMode: {
|
updateMarginMode: {
|
||||||
market_id: marketId,
|
marketId,
|
||||||
mode: MarginMode.MARGIN_MODE_ISOLATED_MARGIN,
|
mode: MarginMode.MARGIN_MODE_ISOLATED_MARGIN,
|
||||||
marginFactor: `${1 / leverage}`,
|
marginFactor: `${1 / leverage}`,
|
||||||
},
|
},
|
||||||
|
@ -456,7 +456,7 @@ export enum MarginMode {
|
|||||||
MARGIN_MODE_ISOLATED_MARGIN,
|
MARGIN_MODE_ISOLATED_MARGIN,
|
||||||
}
|
}
|
||||||
export interface UpdateMarginMode {
|
export interface UpdateMarginMode {
|
||||||
market_id: string;
|
marketId: string;
|
||||||
mode: MarginMode;
|
mode: MarginMode;
|
||||||
marginFactor?: string;
|
marginFactor?: string;
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ const CancelOrderDetails = ({
|
|||||||
const MarginModeDetails = ({ data }: { data: UpdateMarginMode }) => {
|
const MarginModeDetails = ({ data }: { data: UpdateMarginMode }) => {
|
||||||
const t = useT();
|
const t = useT();
|
||||||
const { data: markets } = useMarketsMapProvider();
|
const { data: markets } = useMarketsMapProvider();
|
||||||
const marketId = data.market_id;
|
const { marketId } = data;
|
||||||
const market = marketId && markets?.[marketId];
|
const market = marketId && markets?.[marketId];
|
||||||
if (!market) {
|
if (!market) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user