Skip to content

Commit

Permalink
Will have a different notification if totalFilled is not 0.0 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnqh authored Oct 24, 2023
1 parent 0e003b7 commit 2c3383b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/localization_notifications/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"TITLE": "Order Canceled",
"BODY": "Your order to {SIDE} {AMOUNT} {MARKET} has been canceled."
},
"ORDER_CANCEL_WITH_PARTIAL_FILL": {
"TITLE": "Order Canceled with Partial Fill",
"BODY": "Your order to {SIDE} {AMOUNT} {MARKET} has been canceled with {TOTAL_FILLED} partially filled."
},
"LIQUIDATION": {
"TITLE": "Position Liquidated",
"BODY": "Your {SIDE} position on {MARKET} has been liquidated."
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": "0.1.35",
"version": "0.1.36",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/generated/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const NOTIFICATIONS_STRING_KEYS = {
LIQUIDATION_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.LIQUIDATION.TITLE',
ORDER_CANCEL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL.BODY',
ORDER_CANCEL_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL.TITLE',
ORDER_CANCEL_WITH_PARTIAL_FILL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL_WITH_PARTIAL_FILL.BODY',
ORDER_CANCEL_WITH_PARTIAL_FILL_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL_WITH_PARTIAL_FILL.TITLE',
ORDER_FILL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_FILL.BODY',
ORDER_FILL_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_FILL.TITLE',
ORDER_PARTIAL_FILL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_PARTIAL_FILL.BODY',
Expand Down

0 comments on commit 2c3383b

Please sign in to comment.