@dydxprotocol/v4-localization 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,8 @@
47
47
  "AVAILABLE": "Available",
48
48
  "BACK": "Back",
49
49
  "BALANCE": "Balance",
50
+ "BASE_INITIAL_MARGIN_FRACTION": "Base Initial Margin Fraction",
51
+ "BASE_POSITION_NOTIONAL": "Base Position Notional",
50
52
  "BLOCK_HEIGHT": "Block Height",
51
53
  "BUY": "Buy",
52
54
  "BUYING_POWER": "Buying Power",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "INITIAL_MARGIN_FRACTION": {
75
75
  "TITLE": "Initial Margin Fraction",
76
- "BODY": "Margin fraction is calculated as your position notional value divided by equity. If your margin fraction exceeds the initial margin fraction, you will no longer be allowed to increase your position. To limit risk, the initial margin fraction increases linearly with position size after a certain threshold."
76
+ "BODY": "Margin fraction is calculated as your position notional value divided by equity. If your margin fraction exceeds the initial margin fraction, you will no longer be allowed to increase your position. To limit risk, the initial margin fraction increases by the square root of position size divided by Base Positional Notional multiplied by Base Initial Margin Fraction."
77
77
  },
78
78
  "INITIAL_STOP": {
79
79
  "TITLE": "Initial Stop",
@@ -199,7 +199,7 @@
199
199
  "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app",
200
200
  "configs":"https://dydx-v4-shared-resources.vercel.app",
201
201
  "statusPageUrl": "https://status.v4testnet.dydx.exchange/",
202
- "marketImageUrl": "https://trader-fe.vercel.app/currencies/{asset}.png",
202
+ "marketImageUrl": "https://v4.testnet.dydx.exchange/currencies/{asset}.png",
203
203
  "tosUrl": "https://dydx.exchange/v4-terms",
204
204
  "privacyPolicyUrl": "https://dydx.exchange/privacy",
205
205
  "mintscanUrl": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}"
@@ -141,7 +141,7 @@
141
141
  "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app",
142
142
  "configs":"https://dydx-v4-shared-resources.vercel.app",
143
143
  "statusPageUrl": "https://status.v4testnet.dydx.exchange/",
144
- "marketImageUrl": "https://trader-fe.vercel.app/currencies/{asset}.png",
144
+ "marketImageUrl": "https://v4.testnet.dydx.exchange/currencies/{asset}.png",
145
145
  "tosUrl": "https://dydx.exchange/v4-terms",
146
146
  "privacyPolicyUrl": "https://dydx.exchange/privacy",
147
147
  "mintscanUrl": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-localization",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "v4 localization",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -1,3 +1,16 @@
1
+ <p align="center"><img src="https://dydx.exchange/icon.svg?" width="256" /></p>
2
+
3
+ <h1 align="center">v4 Localization</h1>
4
+
5
+ <div align="center">
6
+ <a href='https://www.npmjs.com/package/@dydxprotocol/v4-localization'>
7
+ <img src='https://img.shields.io/npm/v/@dydxprotocol/v4-localization.svg' alt='NPM'/>
8
+ </a>
9
+ <a href='https://github.com/dydxprotocol/v4-localization/blob/main/LICENSE'>
10
+ <img src='https://img.shields.io/badge/License-BSL_1.1-blue' alt='License' />
11
+ </a>
12
+ </div>
13
+
1
14
  # Translation structures
2
15
 
3
16
  There are four folders for translations.
@@ -317,6 +317,8 @@ export const APP_STRING_KEYS = {
317
317
  AVAILABLE: 'APP.GENERAL.AVAILABLE',
318
318
  BACK: 'APP.GENERAL.BACK',
319
319
  BALANCE: 'APP.GENERAL.BALANCE',
320
+ BASE_INITIAL_MARGIN_FRACTION: 'APP.GENERAL.BASE_INITIAL_MARGIN_FRACTION',
321
+ BASE_POSITION_NOTIONAL: 'APP.GENERAL.BASE_POSITION_NOTIONAL',
320
322
  BLOCK_HEIGHT: 'APP.GENERAL.BLOCK_HEIGHT',
321
323
  BUY: 'APP.GENERAL.BUY',
322
324
  BUYING_POWER: 'APP.GENERAL.BUYING_POWER',