Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: isolated margin strings #645

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@
"ASSET_BALANCE": "{ASSET} Balance",
"ASSET": "Asset",
"AVAILABLE": "Available",
"AVAILABLE_BALANCE": "Available Balance",
"AVAILABLE_IN": "Available in {DURATION}",
"AVAILABLE_ON_SHORT": "Avail. {ON_DATE}",
"AVAILABLE_TO_REMOVE": "Available to Remove",
"BACK": "Back",
"BALANCE": "Balance",
"BASE_INITIAL_MARGIN_FRACTION": "Base Initial Margin Fraction",
Expand Down Expand Up @@ -2390,7 +2392,7 @@
"TRANSFER_WITHOUT_MEMO": "Transferring to a centralized exchange without the memo they have provided you can result in a loss of funds."
},
"ADJUST_ISOLATED_MARGIN": {
"ISOLATED_MARGIN_ADJUSTMENT_MORE_THAN_FREE": "You cannot transfer more than your free collateral.",
"ISOLATED_MARGIN_ADJUSTMENT_MORE_THAN_FREE": "Transferring this collateral would put you above the market's max leverage. Please input a lower amount.",
"ISOLATED_MARGIN_ADJUSTMENT_INVALID_AMOUNT": "Please enter a valid amount."
},
"NEW_MARKET_WIDGET": {
Expand Down
4 changes: 4 additions & 0 deletions config/localization/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"TITLE": "Account Leverage",
"BODY": "Leverage of your account based on all your open positions. Because your account is cross-margined, each open position has its own leverage while also affecting your overall account leverage."
},
"AVAILABLE_BALANCE": {
"TITLE": "Available Balance",
"BODY": "Percentage of your total cross margin used by open positions."
},
"BASE_POSITION_NOTIONAL": {
"TITLE": "Base Position Notional",
"BODY": "The maximum position size at which the margin requirements are not increased."
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.170",
"version": "1.1.171",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion scripts/generated/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// !! GENERATED FILE - DO NOT EDIT

// Generated from ../config/localization/en/app.json using codegen_localization_app.swift
// Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift

export const APP_STRING_KEYS = {

Expand Down Expand Up @@ -291,8 +291,10 @@ export const APP_STRING_KEYS = {
ASSET: 'APP.GENERAL.ASSET',
ASSET_BALANCE: 'APP.GENERAL.ASSET_BALANCE',
AVAILABLE: 'APP.GENERAL.AVAILABLE',
AVAILABLE_BALANCE: 'APP.GENERAL.AVAILABLE_BALANCE',
AVAILABLE_IN: 'APP.GENERAL.AVAILABLE_IN',
AVAILABLE_ON_SHORT: 'APP.GENERAL.AVAILABLE_ON_SHORT',
AVAILABLE_TO_REMOVE: 'APP.GENERAL.AVAILABLE_TO_REMOVE',
BACK: 'APP.GENERAL.BACK',
BALANCE: 'APP.GENERAL.BALANCE',
BASE_INITIAL_MARGIN_FRACTION: 'APP.GENERAL.BASE_INITIAL_MARGIN_FRACTION',
Expand Down
2 changes: 2 additions & 0 deletions scripts/generated/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export const TOOLTIP_STRING_KEYS = {

ACCOUNT_LEVERAGE_BODY: 'TOOLTIPS.TRADE.ACCOUNT_LEVERAGE.BODY',
ACCOUNT_LEVERAGE_TITLE: 'TOOLTIPS.TRADE.ACCOUNT_LEVERAGE.TITLE',
AVAILABLE_BALANCE_BODY: 'TOOLTIPS.TRADE.AVAILABLE_BALANCE.BODY',
AVAILABLE_BALANCE_TITLE: 'TOOLTIPS.TRADE.AVAILABLE_BALANCE.TITLE',
BASE_POSITION_NOTIONAL_BODY: 'TOOLTIPS.TRADE.BASE_POSITION_NOTIONAL.BODY',
BASE_POSITION_NOTIONAL_TITLE: 'TOOLTIPS.TRADE.BASE_POSITION_NOTIONAL.TITLE',
BRACKET_ORDER_SL_BODY: 'TOOLTIPS.TRADE.BRACKET_ORDER_SL.BODY',
Expand Down
Loading