diff --git a/package.json b/package.json index 32dc54f..45f2f8e 100644 --- a/package.json +++ b/package.json @@ -37,9 +37,9 @@ "@cosmjs/proto-signing": "^0.31.0", "@cosmjs/stargate": "^0.31.0", "@cosmjs/tendermint-rpc": "^0.31.0", - "@dydxprotocol/abacus": "^0.4.16", + "@dydxprotocol/abacus": "^0.4.18", "@dydxprotocol/v4-client-js": "^0.33.1", - "@dydxprotocol/v4-localization": "^0.0.25", + "@dydxprotocol/v4-localization": "^0.1.4", "@ethersproject/providers": "^5.7.2", "@js-joda/core": "^5.5.3", "@radix-ui/react-collapsible": "^1.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9d2a433..ebff776 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,14 +27,14 @@ dependencies: specifier: ^0.31.0 version: 0.31.0 '@dydxprotocol/abacus': - specifier: ^0.4.16 - version: 0.4.16 + specifier: ^0.4.18 + version: 0.4.18 '@dydxprotocol/v4-client-js': specifier: ^0.33.1 version: 0.33.1 '@dydxprotocol/v4-localization': - specifier: ^0.0.25 - version: 0.0.25 + specifier: ^0.1.4 + version: 0.1.4 '@ethersproject/providers': specifier: ^5.7.2 version: 5.7.2 @@ -1145,8 +1145,8 @@ packages: resolution: {integrity: sha512-RpfLEtTlyIxeNPGKcokS+p3BZII/Q3bYxryFRglh5H3A3T8q9fsLYm72VYAMEOOIBLEa8o93kFLiBDUWKrwXZA==} dev: true - /@dydxprotocol/abacus@0.4.16: - resolution: {integrity: sha512-FTvzgVZ0xjMRmfHwlyoluUSG4Uu4FUHPnaTvLLPl0ER0junmaVDrmBydAUMWMEYGiLyx/k0ln1cLUDrYF2aX6A==} + /@dydxprotocol/abacus@0.4.18: + resolution: {integrity: sha512-WqfgIgUPpMN2Dl2/kGARSBBgOCFrltUsVXnQOTEc4DJStCDn+7qHCfQMXSlvGMkYQE9eL5vKUOBbgyGtw/Pq1g==} dev: false /@dydxprotocol/v4-client-js@0.33.1: @@ -1172,8 +1172,8 @@ packages: - utf-8-validate dev: false - /@dydxprotocol/v4-localization@0.0.25: - resolution: {integrity: sha512-Rp6VHA8z+nwgvTjjB3fvL8gY7bd4DYDHV+NPoL0MFuRm39vhFxGlBVAGDkXPkQTh6YU5BlZV2yXLkDeSfFqEBQ==} + /@dydxprotocol/v4-localization@0.1.4: + resolution: {integrity: sha512-wvpoP+FgiIAkqYCocRzlJXiljWfLPHg2QOB9cTajSIUYp635wphnacKwy5DnR6XByQ/H3r7BiF6Z8GDIa/d+Lw==} dev: false /@dydxprotocol/v4-proto@0.1.2: diff --git a/src/constants/tooltips/trade.ts b/src/constants/tooltips/trade.ts index d2beee4..339df58 100644 --- a/src/constants/tooltips/trade.ts +++ b/src/constants/tooltips/trade.ts @@ -5,6 +5,10 @@ export const tradeTooltips: TooltipStrings = { title: stringGetter({ key: TOOLTIP_STRING_KEYS.ACCOUNT_LEVERAGE_TITLE }), body: stringGetter({ key: TOOLTIP_STRING_KEYS.ACCOUNT_LEVERAGE_BODY }), }), + 'base-position-notional': ({ stringGetter }) => ({ + title: stringGetter({ key: TOOLTIP_STRING_KEYS.BASE_POSITION_NOTIONAL_TITLE }), + body: stringGetter({ key: TOOLTIP_STRING_KEYS.BASE_POSITION_NOTIONAL_BODY }), + }), 'bracket-sl': ({ stringGetter }) => ({ title: stringGetter({ key: TOOLTIP_STRING_KEYS.BRACKET_ORDER_SL_TITLE }), body: stringGetter({ key: TOOLTIP_STRING_KEYS.BRACKET_ORDER_SL_BODY }), diff --git a/src/views/MarketDetails.tsx b/src/views/MarketDetails.tsx index f9a7a56..86ca8d5 100644 --- a/src/views/MarketDetails.tsx +++ b/src/views/MarketDetails.tsx @@ -29,6 +29,7 @@ export const MarketDetails: React.FC = () => { if (!configs) return null; const { + basePositionNotional, tickSize, stepSize, initialMarginFraction, @@ -113,11 +114,17 @@ export const MarketDetails: React.FC = () => { ), }, { - key: 'initial-margin-fraction', - label: stringGetter({ key: STRING_KEYS.INITIAL_MARGIN_FRACTION }), + key: 'base-initial-margin-fraction', + label: stringGetter({ key: STRING_KEYS.BASE_INITIAL_MARGIN_FRACTION }), tooltip: 'initial-margin-fraction', value: , }, + { + key: 'base-position-notional', + label: stringGetter({ key: STRING_KEYS.BASE_POSITION_NOTIONAL }), + tooltip: 'base-position-notional', + value: , + }, ]; return (