From f8bec0fb3d542dbe12556a6016978e16bf8a8937 Mon Sep 17 00:00:00 2001 From: Jared Vu Date: Tue, 19 Dec 2023 09:49:37 -0800 Subject: [PATCH 1/2] Update Withdraw form receipt (#200) --- .../DepositForm/DepositButtonAndReceipt.tsx | 2 +- .../WithdrawForm/WithdrawButtonAndReceipt.tsx | 94 +++++++++---------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx b/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx index 5cd5815..4edf5f6 100644 --- a/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx +++ b/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx @@ -165,7 +165,7 @@ export const DepositButtonAndReceipt = ({ }, { key: 'slippage', - label: {stringGetter({ key: STRING_KEYS.SLIPPAGE })}, + label: {stringGetter({ key: STRING_KEYS.MAX_SLIPPAGE })}, value: ( , subitems: feeSubitems, }, + { + key: 'slippage', + label: {stringGetter({ key: STRING_KEYS.MAX_SLIPPAGE })}, + value: ( + + ), + }, + { + key: 'exchange-rate', + label: {stringGetter({ key: STRING_KEYS.EXCHANGE_RATE })}, + value: withdrawToken && typeof summary?.exchangeRate === 'number' && ( + + + = + + + ), + }, + { + key: 'estimatedRouteDuration', + label: {stringGetter({ key: STRING_KEYS.ESTIMATED_TIME })}, + value: typeof summary?.estimatedRouteDuration === 'number' && ( + + ), + }, { key: 'wallet', label: ( - {stringGetter({ key: STRING_KEYS.AMOUNT_RECEIVED })}{' '} + {stringGetter({ key: STRING_KEYS.MINIMUM_AMOUNT_RECEIVED })}{' '} {withdrawToken && {withdrawToken?.symbol}} ), @@ -130,51 +175,6 @@ export const WithdrawButtonAndReceipt = ({ /> ), }, - { - key: 'exchange-rate', - label: {stringGetter({ key: STRING_KEYS.EXCHANGE_RATE })}, - value: withdrawToken && typeof summary?.exchangeRate === 'number' && ( - - - = - - - ), - }, - { - key: 'slippage', - label: {stringGetter({ key: STRING_KEYS.SLIPPAGE })}, - value: ( - - ), - }, - { - key: 'estimatedRouteDuration', - label: {stringGetter({ key: STRING_KEYS.ESTIMATED_TIME })}, - value: typeof summary?.estimatedRouteDuration === 'number' && ( - - ), - }, ]; const isFormValid = !isDisabled && !isEditingSlippage; From f8db5e1ba0493b630e9843ed1f8c29fde67ec3a5 Mon Sep 17 00:00:00 2001 From: Jared Vu Date: Tue, 19 Dec 2023 09:49:51 -0800 Subject: [PATCH 2/2] Update abacus to 1.1.25: Good til time fix (#199) --- package.json | 2 +- pnpm-lock.yaml | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index dc1d676..cbc4caa 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@cosmjs/proto-signing": "^0.31.0", "@cosmjs/stargate": "^0.31.0", "@cosmjs/tendermint-rpc": "^0.31.0", - "@dydxprotocol/v4-abacus": "^1.1.24", + "@dydxprotocol/v4-abacus": "^1.1.25", "@dydxprotocol/v4-client-js": "^1.0.11", "@dydxprotocol/v4-localization": "^1.0.18", "@ethersproject/providers": "^5.7.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 23f663f..eff06db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ dependencies: specifier: ^0.31.0 version: 0.31.0 '@dydxprotocol/v4-abacus': - specifier: ^1.1.24 - version: 1.1.24 + specifier: ^1.1.25 + version: 1.1.25 '@dydxprotocol/v4-client-js': specifier: ^1.0.11 version: 1.0.11 @@ -988,8 +988,8 @@ packages: resolution: {integrity: sha512-RpfLEtTlyIxeNPGKcokS+p3BZII/Q3bYxryFRglh5H3A3T8q9fsLYm72VYAMEOOIBLEa8o93kFLiBDUWKrwXZA==} dev: true - /@dydxprotocol/v4-abacus@1.1.24: - resolution: {integrity: sha512-TO4TMQGEX6Qy3UVDJmlIHAn+YgQG/cWmhmqAnvy8e2vnQPGUUxXYPExgDqmld+/b/rYIz80xq4N5ssKpoLandQ==} + /@dydxprotocol/v4-abacus@1.1.25: + resolution: {integrity: sha512-gaRaSUF1wb1R8/GUBwl4ObgiVTaJyDZFxq/55HJ8YxdkOxwFK4JR1tKNxKPStXalPUVWNCZibGJp+VrIvEmhTA==} dev: false /@dydxprotocol/v4-client-js@1.0.11: @@ -2190,6 +2190,7 @@ packages: dependencies: is-glob: 4.0.3 micromatch: 4.0.5 + napi-wasm: 1.1.0 dev: false bundledDependencies: - napi-wasm @@ -11685,6 +11686,10 @@ packages: hasBin: true dev: true + /napi-wasm@1.1.0: + resolution: {integrity: sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==} + dev: false + /native-abort-controller@1.0.4(abort-controller@3.0.0): resolution: {integrity: sha512-zp8yev7nxczDJMoP6pDxyD20IU0T22eX8VwN2ztDccKvSZhRaV33yP1BGwKSZfXuqWUzsXopVFjBdau9OOAwMQ==} peerDependencies: