Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the max leverage button to 25 #1119

Merged
merged 5 commits into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sections/futures/LeverageInput/LeverageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const LeverageInput: FC<LeverageInputProps> = ({ onLeverageChange }) => {

const truncateMaxLeverage = maxLeverage.gte(0)
? truncateNumbers(maxLeverage, DEFAULT_FIAT_DECIMALS)
: 10;
: 25;
const truncateLeverage = truncateNumbers(leverage, DEFAULT_FIAT_DECIMALS);

return (
Expand Down Expand Up @@ -96,7 +96,7 @@ const LeverageInput: FC<LeverageInputProps> = ({ onLeverageChange }) => {
}}
disabled={isDisabled}
/>
{['2', '5', '10'].map((l) => (
{['2', '5', '10', '25'].map((l) => (
<LeverageButton
key={l}
mono
Expand Down Expand Up @@ -143,7 +143,7 @@ const SliderRow = styled(FlexDivRow)`

const LeverageInputContainer = styled.div`
display: grid;
grid-template-columns: 1fr 43px 43px 43px;
grid-template-columns: 1fr 43px 43px 43px 43px;
Tburm marked this conversation as resolved.
Show resolved Hide resolved
grid-gap: 15px;
align-items: center;
`;
Expand Down
2 changes: 1 addition & 1 deletion store/futures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { zeroBN } from 'utils/formatters/number';
import { Synths, CurrencyKey } from 'constants/currency';
import { DEFAULT_NP_LEVERAGE_ADJUSTMENT } from 'constants/defaults';

const DEFAULT_MAX_LEVERAGE = wei(10);
const DEFAULT_MAX_LEVERAGE = wei(25);
Tburm marked this conversation as resolved.
Show resolved Hide resolved

export const currentMarketState = atom<CurrencyKey>({
key: getFuturesKey('currentMarket'),
Expand Down