Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 589c884

Browse files
authored
Merge pull request #211 from hubert-deriv/markupvalue2
2 parents 469e975 + e470ef2 commit 589c884

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

config/v3/app_register/send.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"enum": [1]
1515
},
1616
"app_markup_percentage": {
17-
"description": "[Optional] Markup to be added to contract prices (as a percentage of contract payout).",
17+
"description": "[Optional] Markup to be added to contract prices (as a percentage of contract payout). Max markup: 3%.",
1818
"type": "number",
19-
"maximum": 5,
19+
"maximum": 3,
2020
"minimum": 0
2121
},
2222
"appstore": {

config/v3/app_update/send.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"type": "integer"
1414
},
1515
"app_markup_percentage": {
16-
"description": "[Optional] Markup to be added to contract prices (as a percentage of contract payout).",
16+
"description": "[Optional] Markup to be added to contract prices (as a percentage of contract payout). Max markup: 3%.",
1717
"type": "number",
18-
"maximum": 5,
18+
"maximum": 3,
1919
"minimum": 0
2020
},
2121
"appstore": {

docs/guides/markup-calculation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ description: How is markup calculated?
2121

2222
## Markup
2323

24-
Increase your earnings by charging markups on each contract purchased through the trading app you've created with the Deriv API. The markup is defined by you and can be up to 5%.
24+
Increase your earnings by charging markups on each contract purchased through the trading app you've created with the Deriv API. The markup is defined by you and can be up to 3%.
2525

2626
Below is an example of how the markup is calculated.
2727

src/features/dashboard/components/AppForm/__tests__/app-form.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ describe('App Form', () => {
274274
await userEvent.click(submitButton);
275275

276276
const appMarkupPercentageError = await screen.findByText(
277-
'Your markup value must be equal to or above 0.00 and no more than 5.00.',
277+
'Your markup value must be equal to or above 0.00 and no more than 3.00.',
278278
);
279279

280280
expect(appMarkupPercentageError).toBeInTheDocument();

src/features/dashboard/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as yup from 'yup';
22

3-
const markupPercentageRegex = /^((([0-4]\.([0-9]([0-9])?)?))||([5]\.([0]([0])?)?)||([0-5]))$/;
3+
const markupPercentageRegex = /^((([0-2]\.([0-9]([0-9])?)?))||([3]\.([0]([0])?)?)||([0-3]))$/;
44
const urlRegex = /^[a-z][a-z0-9.+-]*:\/\/[0-9a-zA-Z.-]+[%/\w .-]*$/;
55

66
const base_schema = {
@@ -46,7 +46,7 @@ const base_schema = {
4646
.max(4, 'Your markup value cannot be more than 4 characters.')
4747
.matches(
4848
markupPercentageRegex,
49-
'Your markup value must be equal to or above 0.00 and no more than 5.00.',
49+
'Your markup value must be equal to or above 0.00 and no more than 3.00.',
5050
),
5151
app_id: yup.number(),
5252
};

0 commit comments

Comments
 (0)