Skip to content

Commit 4166b53

Browse files
authored
Merge pull request #3505 from hollaex/develop
Develop
2 parents d3efdc0 + 813c6cf commit 4166b53

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

server/api/swagger/admin.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4252,7 +4252,7 @@ paths:
42524252
/admin/announcements:
42534253
x-swagger-router-controller: admin
42544254
get:
4255-
description: Get announcements by admin
4255+
description: Get the list of announcements by the operator in a table
42564256
operationId: fetchAnnouncements
42574257
tags:
42584258
- Admin
@@ -4322,7 +4322,7 @@ paths:
43224322
- bearer
43234323
- hmac
43244324
post:
4325-
description: Create announcement by admin
4325+
description: Create a new announcement by the operator
43264326
operationId: createAnnouncement
43274327
tags:
43284328
- Admin
@@ -4366,7 +4366,7 @@ paths:
43664366
- bearer
43674367
- hmac
43684368
put:
4369-
description: Update announcement by admin
4369+
description: Update an exisiting announcement by the operator
43704370
operationId: updateAnnouncement
43714371
tags:
43724372
- Admin
@@ -4412,7 +4412,7 @@ paths:
44124412
- bearer
44134413
- hmac
44144414
delete:
4415-
description: Delete announcement
4415+
description: Remove an exisiting announcement by the operator
44164416
operationId: deleteAnnouncement
44174417
tags:
44184418
- Admin
@@ -4443,7 +4443,7 @@ paths:
44434443
/admin/role:
44444444
x-swagger-router-controller: admin
44454445
get:
4446-
description: Get roles by admin
4446+
description: Get the list of all exisiting role names by the operator
44474447
operationId: getExchangeUserRoles
44484448
tags:
44494449
- Admin
@@ -4462,7 +4462,7 @@ paths:
44624462
- bearer
44634463
- hmac
44644464
post:
4465-
description: Create role by admin
4465+
description: Create new role by the operator
44664466
operationId: createExchangeUserRole
44674467
tags:
44684468
- Admin
@@ -4509,7 +4509,7 @@ paths:
45094509
- bearer
45104510
- hmac
45114511
put:
4512-
description: Update role by admin
4512+
description: Update the configuration and permissions of an exisintg role by the operator
45134513
operationId: updateExchangeUserRole
45144514
tags:
45154515
- Admin
@@ -4556,7 +4556,7 @@ paths:
45564556
- bearer
45574557
- hmac
45584558
delete:
4559-
description: Delete role
4559+
description: Remove an exisiting role name (Only works if you detach the role from all operators)
45604560
operationId: deleteExchangeUserRole
45614561
tags:
45624562
- Admin
@@ -4593,7 +4593,7 @@ paths:
45934593
/admin/endpoints:
45944594
x-swagger-router-controller: admin
45954595
get:
4596-
description: Get endpoints by admin
4596+
description: Get the list of all API endpoints by the operator
45974597
operationId: getExchangeEndpoints
45984598
tags:
45994599
- Admin

web/src/containers/Admin/General/General.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ class GeneralContent extends Component {
16211621
</div>
16221622
</div>
16231623
<div className="divider"></div>
1624-
<div className="general-wrapper mb-5">
1624+
{/* <div className="general-wrapper mb-5">
16251625
<div className="sub-title">Test Environment Key</div>
16261626
<div className="description">
16271627
<div>
@@ -1678,8 +1678,8 @@ class GeneralContent extends Component {
16781678
</Button>
16791679
</div>
16801680
</div>
1681-
</div>
1682-
<div className="divider"></div>
1681+
</div> */}
1682+
{/* <div className="divider"></div> */}
16831683
<div className="general-wrapper mb-5">
16841684
<div className="sub-title">API keys</div>
16851685
<div className="description d-flex flex-column">

web/src/containers/Deposit/Deposit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,10 @@ const DepositComponent = ({
351351
const feeMarkup =
352352
defaultCurrency &&
353353
coin_customizations?.[defaultCurrency]?.fee_markups?.[
354-
renderNetworkField(networkData)
354+
renderNetworkField(networkData) || network
355355
]?.deposit?.symbol === defaultCurrency &&
356356
coin_customizations?.[defaultCurrency]?.fee_markups?.[
357-
renderNetworkField(networkData)
357+
renderNetworkField(networkData) || network
358358
]?.deposit?.value;
359359

360360
return feeMarkup || 0;

web/src/containers/Withdraw/Withdraw.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,21 @@ const RenderWithdraw = ({
151151
const feeMarkup =
152152
selectedAsset?.selectedCurrency &&
153153
coin_customizations?.[selectedAsset?.selectedCurrency]?.fee_markups?.[
154-
getWithdrawNetworkOptions
154+
getWithdrawNetworkOptions || network
155155
]?.withdrawal?.value;
156156
if (
157157
feeMarkup &&
158158
coin_customizations?.[selectedAsset?.selectedCurrency]?.fee_markups?.[
159-
getWithdrawNetworkOptions
159+
getWithdrawNetworkOptions || network
160160
]?.withdrawal?.symbol ===
161161
coins?.[selectedAsset?.selectedCurrency]?.withdrawal_fees?.[
162-
getWithdrawNetworkOptions
162+
getWithdrawNetworkOptions || network
163163
]?.symbol
164164
) {
165165
const incrementUnit =
166166
coins?.[
167167
coins?.[selectedAsset?.selectedCurrency]?.withdrawal_fees?.[
168-
getWithdrawNetworkOptions
168+
getWithdrawNetworkOptions || network
169169
]?.symbol
170170
]?.increment_unit || 0.0001;
171171
const decimalPoint = new BigNumber(incrementUnit).dp();
@@ -1096,10 +1096,11 @@ const RenderWithdraw = ({
10961096
<span className="ml-1 secondary-text">
10971097
(
10981098
<span>
1099-
{calculateFee(
1099+
{calculateFeeMarkup(
11001100
selectedAsset?.selectedCurrency,
11011101
network,
1102-
coins
1102+
coins,
1103+
coin_customizations
11031104
)}
11041105
</span>
11051106
<span className="ml-1">

0 commit comments

Comments
 (0)