Skip to content

Commit

Permalink
add error for min amount (#554)
Browse files Browse the repository at this point in the history
* add key

* 1.1.136
  • Loading branch information
moo-onthelawn authored Jun 24, 2024
1 parent 32db20a commit ee46f92
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,7 @@
"WITHDRAW_MUST_SPECIFY_CHAIN": "Please select a source chain to withdraw to."
},
"TRANSFER_MODAL": {
"AMOUNT_MINIMUM_ERROR": "Amount must be greater than {NUMBER} {TOKEN}",
"TRANSFER_INVALID_DYDX_ADDRESS": "Invalid dYdX Chain address.",
"TRANSFER_INVALID_ETH_ADDRESS": "We could not find an account associated with this wallet address.",
"TRANSFER_MORE_THAN_FREE": "You cannot transfer more than your free collateral.",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxprotocol/v4-localization",
"version": "1.1.135",
"version": "1.1.136",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ export const APP_STRING_KEYS = {
MARGIN: 'APP.GENERAL.MARGIN',
MARGIN_MODE: 'APP.GENERAL.MARGIN_MODE',
MARGIN_USAGE: 'APP.GENERAL.MARGIN_USAGE',
MARGIN_WITH_MODE: 'APP.GENERAL.MARGIN_WITH_MODE',
MARKET: 'APP.GENERAL.MARKET',
MARKETS: 'APP.GENERAL.MARKETS',
MARKET_NAME: 'APP.GENERAL.MARKET_NAME',
Expand Down Expand Up @@ -1383,6 +1384,7 @@ export const APP_STRING_KEYS = {
CURRENT_RATE_1H: 'APP.TRADE.CURRENT_RATE_1H',
CURRENT_RATE_8H: 'APP.TRADE.CURRENT_RATE_8H',
DELEVERAGED: 'APP.TRADE.DELEVERAGED',
EDIT_MARGIN: 'APP.TRADE.EDIT_MARGIN',
EDIT_STOP_LOSS: 'APP.TRADE.EDIT_STOP_LOSS',
EDIT_TAKE_PROFIT: 'APP.TRADE.EDIT_TAKE_PROFIT',
EDIT_TAKE_PROFIT_STOP_LOSS_TRIGGERS: 'APP.TRADE.EDIT_TAKE_PROFIT_STOP_LOSS_TRIGGERS',
Expand Down Expand Up @@ -1857,6 +1859,7 @@ export const ERRORS_STRING_KEYS = {

// TRANSFER_MODAL

AMOUNT_MINIMUM_ERROR: 'ERRORS.TRANSFER_MODAL.AMOUNT_MINIMUM_ERROR',
TRANSFER_INSUFFICIENT_GAS: 'ERRORS.TRANSFER_MODAL.TRANSFER_INSUFFICIENT_GAS',
TRANSFER_INVALID_DYDX_ADDRESS: 'ERRORS.TRANSFER_MODAL.TRANSFER_INVALID_DYDX_ADDRESS',
TRANSFER_INVALID_ETH_ADDRESS: 'ERRORS.TRANSFER_MODAL.TRANSFER_INVALID_ETH_ADDRESS',
Expand Down

0 comments on commit ee46f92

Please sign in to comment.