Skip to content

Commit

Permalink
algebra-integral
Browse files Browse the repository at this point in the history
  • Loading branch information
furyXsol committed Nov 19, 2024
1 parent 0d8680c commit f955afb
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,62 +564,62 @@ export function PresetRanges({
)}
</Box>
{!isGamma && !isUnipilot && !isDefiedge && !isSteer && (
<>
<Box className='flex justify-between'>
{_risk && !mintInfo.invalidRange && !isStablecoinPair && (
<Box className='preset-range-info'>
<Box px='12px' className='flex items-center justify-between'>
<span>{t('risk')}:</span>
<Box className='flex items-center'>
{[1, 2, 3, 4, 5].map((_, i) => (
<div key={i} className='preset-range-circle'>
<Box
key={i}
left={`calc(-100% + ${_risk[i]}%)`}
className='preset-range-circle-active bg-error'
/>
</div>
))}
</Box>
</Box>
<Box
mt={1}
px='12px'
className='flex items-center justify-between'
>
<span>{t('profit')}:</span>
<Box className='flex items-center'>
{[1, 2, 3, 4, 5].map((_, i) => (
<div key={i} className='preset-range-circle'>
<Box
key={i}
left={`calc(-100% + ${_risk[i]}%)`}
className='preset-range-circle-active bg-success'
/>
</div>
))}
</Box>
<>
<Box className='flex justify-between'>
{_risk && !mintInfo.invalidRange && !isStablecoinPair && (
<Box className='preset-range-info'>
<Box px='12px' className='flex items-center justify-between'>
<span>{t('risk')}:</span>
<Box className='flex items-center'>
{[1, 2, 3, 4, 5].map((_, i) => (
<div key={i} className='preset-range-circle'>
<Box
key={i}
left={`calc(-100% + ${_risk[i]}%)`}
className='preset-range-circle-active bg-error'
/>
</div>
))}
</Box>
</Box>
)}
{baseCurrency && quoteCurrency && (
<Box className='preset-range-info'>
<Box padding='10px 12px'>
<PoolStats
fee={feeString}
apr={aprString}
loading={
mintInfo.poolState === PoolState.LOADING ||
mintInfo.poolState === PoolState.INVALID
}
noLiquidity={mintInfo.noLiquidity}
></PoolStats>
<Box
mt={1}
px='12px'
className='flex items-center justify-between'
>
<span>{t('profit')}:</span>
<Box className='flex items-center'>
{[1, 2, 3, 4, 5].map((_, i) => (
<div key={i} className='preset-range-circle'>
<Box
key={i}
left={`calc(-100% + ${_risk[i]}%)`}
className='preset-range-circle-active bg-success'
/>
</div>
))}
</Box>
</Box>
)}
</Box>
</>
)}
</Box>
)}
{baseCurrency && quoteCurrency && (
<Box className='preset-range-info'>
<Box padding='10px 12px'>
<PoolStats
fee={feeString}
apr={aprString}
loading={
mintInfo.poolState === PoolState.LOADING ||
mintInfo.poolState === PoolState.INVALID
}
noLiquidity={mintInfo.noLiquidity}
></PoolStats>
</Box>
</Box>
)}
</Box>
</>
)}
</Box>
);
}
2 changes: 1 addition & 1 deletion src/pages/PoolsPage/v3/SupplyLiquidityV3/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export function SupplyLiquidityV3() {
quoteCurrency &&
(liquidityRangeType ===
GlobalConst.v3LiquidityRangeType.MANUAL_RANGE ||
liquidityRangeType ===
liquidityRangeType ===
GlobalConst.v3LiquidityRangeType.ALGEBRA_INTEGRAL) && (
<Box mb={2}>
<InitialPrice
Expand Down

0 comments on commit f955afb

Please sign in to comment.