Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions components/ExaCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ export default function EXACard() {
<Close fontSize={'small'} />
</Button>
<Typography fontSize={16} fontWeight={700} color="white">
{t('The first onchain debit & credit card.')}
{t('The first onchain credit card.')}
</Typography>
<Link href="https://exactly.app" target="_blank">
<Box display="flex" alignItems="center" color="#12A594" fontSize={14} fontWeight={500}>
{t('Join the waitlist')}
{t('Download the app.')}
<ChevronRight />
</Box>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/Leverager/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function LeveragerModal({ isOpen, close }: Props) {
? input.secondaryOperation === 'deposit'
? t('Leverage')
: t('Deleverage')
: t('Leverage & Deleverage')}
: t('Deleverage')}
</Typography>
<Typography sx={{ my: 4 }} fontSize={14} fontWeight={400}>
{t(
Expand Down
6 changes: 1 addition & 5 deletions components/Leverager/MultiplierSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const MultiplierSlider = () => {
setLeverageRatio,
currentLeverageRatio,
minLeverageRatio,
maxLeverageRatio,
newHealthFactor,
getHealthFactorColor,
netPosition,
Expand All @@ -33,10 +32,7 @@ const MultiplierSlider = () => {
[blockModal, input.borrowSymbol, input.collateralSymbol, netPosition],
);

const max = useMemo(
() => Math.floor(Math.max(currentLeverageRatio, maxLeverageRatio) * 1e10) / 1e10,
[currentLeverageRatio, maxLeverageRatio],
);
const max = currentLeverageRatio;

return (
<Box display="flex" flexDirection="column" gap={2} sx={{ opacity: disabled ? 0.5 : 1 }}>
Expand Down
2 changes: 1 addition & 1 deletion components/Leverager/Operation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Operation = () => {
)}
{disabledSubmit ? (
<Button fullWidth variant="contained" disabled data-testid="leverage-modal-continue">
{t('Leverage')}
{t('Deleverage')}
</Button>
) : (
<Button
Expand Down
4 changes: 2 additions & 2 deletions i18n/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@
"Total": "Total",
" In {{installments}} installments": "En {{installments}} cuotas",
"Repay Amount": "Monto a Pagar",
"Join the waitlist": "Únete a la lista de espera",
"The first onchain debit & credit card.": "La primer tarjeta de débito y crédito onchain.",
"Download the app.": "Descarga la app.",
"The first onchain credit card.": "La primer tarjeta de crédito onchain.",
"Please set this asset as collateral in your dashboard": "Por favor, establece este activo como colateral en tu panel de control",
"Total deposited: ": "Total depositado",
"Total borrowed: ": "Total prestado",
Expand Down
4 changes: 2 additions & 2 deletions pages/strategies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const Strategies: NextPage = () => {
}}
data-testid="leverage"
>
{t('Leverage')}
{t('Deleverage')}
</Button>
),
source: 'exactly' as const,
Expand Down Expand Up @@ -361,7 +361,7 @@ const Strategies: NextPage = () => {
});
}}
>
{t('Leverage')}
{t('Deleverage')}
</Button>
),
},
Expand Down
Loading