Skip to content

Commit

Permalink
chore: changed some mock limits
Browse files Browse the repository at this point in the history
  • Loading branch information
aum-deriv committed Sep 18, 2023
1 parent 42541f6 commit bd5aa37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,11 @@ const WalletTransferMessages = ({ from_account, to_account }: TWalletTransferMes
style={{
position: 'absolute',
bottom: '210px',
width: '180px',
height: '150px',
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-evenly',

border: '1px solid black',
borderRadius: '8px',
padding: '10px',
}}
>
<div
id='mock-limit-values'
style={{
fontSize: 'medium',
}}
/>
<button
onClick={() => setIsAllowedEqualToAvailable(true)}
style={{
Expand Down
6 changes: 3 additions & 3 deletions packages/hooks/src/useTransferMessageList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ const mock_unequal_get_limits_response = {
},
mt5: {
allowed: '10000.00',
available: '10000.00',
available: '9000.00',
minimum: '0.01',
},
derivez: {
allowed: '200.00',
available: '200.00',
available: '147.00',
minimum: '0.01',
},
dxtrade: {
Expand All @@ -107,7 +107,7 @@ const mock_unequal_get_limits_response = {
},
virtual: {
allowed: '10000.00',
available: '10000.00',
available: '2000.00',
minimum: '0.01',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ const useTransferMessageListBetweenWalletAndTradingApp = (
}
}
}
document.getElementById(
'mock-limit-values'
).innerHTML = `Allowed = ${limits?.allowed}<br>Available = ${limits?.available}`;
}
return message_list;
};
Expand Down

0 comments on commit bd5aa37

Please sign in to comment.