Skip to content

Commit

Permalink
TRCL-3074 strings for equity tier error (#212)
Browse files Browse the repository at this point in the history
* TRCL-3074 strings for equity tier error

* Use new keys to make integration easier
  • Loading branch information
johnqh authored Dec 22, 2023
1 parent 6cac4f0 commit 022ea4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,8 @@
"TRIGGER_TOO_CLOSE_TO_LIQUIDATION_PRICE": "Your trigger price is too close to your liquidation price - this order may not execute fully before you get liquidated. Please update your trigger price or use a stop limit order.",
"USER_MAX_ORDERS": "This order would put you above the max limit of 20 open orders per market, per side.",
"USER_MAX_ORDERS_FOR_EQUITY_TIER": "This order would put you above the equity tier limit of {LIMIT} open orders",
"USER_MAX_ORDERS_FOR_CURRENT_EQUITY_TIER": "This order would put you over the limit of {LIMIT} open orders for your equity tier. The next equity tier is at {EQUITY}.",
"USER_MAX_ORDERS_FOR_TOP_EQUITY_TIER": "This order would put you over the limit of {LIMIT} open orders.",
"WOULD_NOT_REDUCE": "Your position would not be reduced if order is filled.",
"WOULD_NOT_REDUCE_UNCHECK": "Your position would not be reduced with this order. Please uncheck Reduce-Only if you would like to place your order.",
"INVALID_GOOD_TIL_MAX_90_DAYS": "Good Til exceeds the maximum 90 days."
Expand Down
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.2",
"version": "1.1.3",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,9 @@ export const ERRORS_STRING_KEYS = {
TRIGGER_MUST_BELOW_INDEX_PRICE: 'ERRORS.TRADE_BOX.TRIGGER_MUST_BELOW_INDEX_PRICE',
TRIGGER_TOO_CLOSE_TO_LIQUIDATION_PRICE: 'ERRORS.TRADE_BOX.TRIGGER_TOO_CLOSE_TO_LIQUIDATION_PRICE',
USER_MAX_ORDERS: 'ERRORS.TRADE_BOX.USER_MAX_ORDERS',
USER_MAX_ORDERS_FOR_CURRENT_EQUITY_TIER: 'ERRORS.TRADE_BOX.USER_MAX_ORDERS_FOR_CURRENT_EQUITY_TIER',
USER_MAX_ORDERS_FOR_EQUITY_TIER: 'ERRORS.TRADE_BOX.USER_MAX_ORDERS_FOR_EQUITY_TIER',
USER_MAX_ORDERS_FOR_TOP_EQUITY_TIER: 'ERRORS.TRADE_BOX.USER_MAX_ORDERS_FOR_TOP_EQUITY_TIER',
WOULD_NOT_REDUCE: 'ERRORS.TRADE_BOX.WOULD_NOT_REDUCE',
WOULD_NOT_REDUCE_UNCHECK: 'ERRORS.TRADE_BOX.WOULD_NOT_REDUCE_UNCHECK',

Expand Down

0 comments on commit 022ea4d

Please sign in to comment.