Skip to content

Commit

Permalink
Add risk/safety strings, update triggerPrice tooltip (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu authored Dec 22, 2023
1 parent f8c22d1 commit 49676f6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
6 changes: 6 additions & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@
"SKIP_FOR_NOW": "Skip for now",
"START_TRADING_BLURB": "Start trading on the world's most powerful open exchange.",
"SWITCH_NETWORK": "Switch network",
"TRANSFERS_PAUSED": "Transfers temporarily paused",
"TRY_AGAIN": "Try again",
"TWO_SIGNATURE_REQUESTS": "You will receive two signature requests. Signing is free and will not send a transaction.",
"UNDERSTAND_RISKS": "You understand the risks associated with entering into perpetual contracts and using leverage.",
Expand All @@ -640,6 +641,8 @@
"WITHDRAW_STATUS_SHORTLY": "Your withdrawal of {AMOUNT_USD} will be available shortly.",
"WITHDRAW_COMPLETE": "Your withdrawal of {AMOUNT_USD} is now available.",
"WITHDRAW_OF": "Withdraw of {AMOUNT_USD}",
"WITHDRAWALS_PAUSED": "Withdrawals temporarily paused",
"WITHDRAWALS_PAUSED_DESC": "Please try again in {ESTIMATED_DURATION}.",
"WRONG_NETWORK_EXPLANATION_PRODUCTION": "To complete dYdX onboarding, set your wallet network to 'Ethereum Mainnet'.",
"WRONG_NETWORK_EXPLANATION_STAGING": "To complete dYdX onboarding, set your wallet network to 'Goerli Test Network'.",
"WRONG_NETWORK": "Wrong network",
Expand Down Expand Up @@ -1739,6 +1742,9 @@
}
},
"WARNINGS": {
"ACCOUNT_FUND_MANAGEMENT": {
"WITHDRAWAL_LIMIT_OVER": "Please enter a smaller amount. The maximum withdrawal limit from dYdX Chain is currently {USDC_LIMIT}."
},
"ONBOARDING": {
"ALWAYS_VERIFY_URL": "Always check and verify you are on https://trade.dydx.exchange when recovering your keys."
},
Expand Down
4 changes: 2 additions & 2 deletions config/localization/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
},
"TRIGGER_PRICE": {
"TITLE": "Trigger Price",
"BODY": "When the oracle price or last trade price of this market crosses your trigger price, your stop/take profit order will either convert to a limit order or execute as a market order."
"BODY": "When the oracle price of this market crosses your trigger price, your stop/take profit order will either convert to a limit order or execute as a market order."
},
"UNREALIZED_PNL": {
"TITLE": "Unrealized Profit / Loss",
Expand Down Expand Up @@ -250,4 +250,4 @@
"BODY": "To ensure the security of the protocol, dYdX Chain validators delay the settlement of dYdX Chain DYDX."
}
}
}
}
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.0",
"version": "1.1.1",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ export const APP_STRING_KEYS = {
TOS_TRANSLATION_DISCLAIMER: 'APP.ONBOARDING.TOS_TRANSLATION_DISCLAIMER',
TRANSFEROUT_ALERT_SUBTITLE: 'APP.ONBOARDING.TRANSFEROUT_ALERT_SUBTITLE',
TRANSFEROUT_ALERT_TITLE: 'APP.ONBOARDING.TRANSFEROUT_ALERT_TITLE',
TRANSFERS_PAUSED: 'APP.ONBOARDING.TRANSFERS_PAUSED',
TRY_AGAIN: 'APP.ONBOARDING.TRY_AGAIN',
TWO_SIGNATURE_REQUESTS: 'APP.ONBOARDING.TWO_SIGNATURE_REQUESTS',
UNDERSTAND_RISKS: 'APP.ONBOARDING.UNDERSTAND_RISKS',
Expand All @@ -806,6 +807,8 @@ export const APP_STRING_KEYS = {
WANT_TO_LEARN: 'APP.ONBOARDING.WANT_TO_LEARN',
WELCOME: 'APP.ONBOARDING.WELCOME',
WELCOME_DYDX: 'APP.ONBOARDING.WELCOME_DYDX',
WITHDRAWALS_PAUSED: 'APP.ONBOARDING.WITHDRAWALS_PAUSED',
WITHDRAWALS_PAUSED_DESC: 'APP.ONBOARDING.WITHDRAWALS_PAUSED_DESC',
WITHDRAWAL_ALERT_SUBTITLE: 'APP.ONBOARDING.WITHDRAWAL_ALERT_SUBTITLE',
WITHDRAWAL_ALERT_TITLE: 'APP.ONBOARDING.WITHDRAWAL_ALERT_TITLE',
WITHDRAW_COMPLETE: 'APP.ONBOARDING.WITHDRAW_COMPLETE',
Expand Down Expand Up @@ -1529,6 +1532,10 @@ export const TOKEN_MIGRATION_STRING_KEYS = {

export const WARNINGS_STRING_KEYS = {

// ACCOUNT_FUND_MANAGEMENT

WITHDRAWAL_LIMIT_OVER: 'WARNINGS.ACCOUNT_FUND_MANAGEMENT.WITHDRAWAL_LIMIT_OVER',

// ONBOARDING

ALWAYS_VERIFY_URL: 'WARNINGS.ONBOARDING.ALWAYS_VERIFY_URL',
Expand Down

0 comments on commit 49676f6

Please sign in to comment.