Commit 9743b211 authored by Noah Zinsmeister's avatar Noah Zinsmeister

change migration threshold to 2

fix starting price bug
parent dce187e4
...@@ -412,13 +412,13 @@ export default function AddLiquidity({ ...@@ -412,13 +412,13 @@ export default function AddLiquidity({
<RowBetween> <RowBetween>
<RowFixed> <RowFixed>
<DoubleCurrencyLogo <DoubleCurrencyLogo
currency0={currencyA ?? undefined} currency0={baseCurrency ?? undefined}
currency1={currencyB ?? undefined} currency1={quoteCurrency ?? undefined}
size={24} size={24}
margin={true} margin={true}
/> />
<TYPE.label ml="10px" fontSize="24px"> <TYPE.label ml="10px" fontSize="24px">
{currencyA?.symbol} / {currencyB?.symbol} {quoteCurrency?.symbol} / {baseCurrency?.symbol}
</TYPE.label> </TYPE.label>
</RowFixed> </RowFixed>
<RangeBadge inRange={!outOfRange}>{outOfRange ? 'Out of range' : 'In Range'}</RangeBadge> <RangeBadge inRange={!outOfRange}>{outOfRange ? 'Out of range' : 'In Range'}</RangeBadge>
...@@ -468,7 +468,7 @@ export default function AddLiquidity({ ...@@ -468,7 +468,7 @@ export default function AddLiquidity({
{price ? ( {price ? (
<TYPE.main> <TYPE.main>
{invertPrice ? price?.invert()?.toSignificant(8) : price?.toSignificant(8)}{' '} {invertPrice ? price?.invert()?.toSignificant(8) : price?.toSignificant(8)}{' '}
{currencyB?.symbol} = 1 {currencyA?.symbol} {quoteCurrency?.symbol} = 1 {baseCurrency?.symbol}
</TYPE.main> </TYPE.main>
) : ( ) : (
'-' '-'
......
...@@ -141,7 +141,7 @@ function V2PairMigration({ ...@@ -141,7 +141,7 @@ function V2PairMigration({
priceDifferenceFraction = priceDifferenceFraction.multiply(-1) priceDifferenceFraction = priceDifferenceFraction.multiply(-1)
} }
const largePriceDifference = priceDifferenceFraction && !priceDifferenceFraction?.lessThan(JSBI.BigInt(4)) const largePriceDifference = priceDifferenceFraction && !priceDifferenceFraction?.lessThan(JSBI.BigInt(2))
// the following is a small hack to get access to price range data/input handlers // the following is a small hack to get access to price range data/input handlers
const [baseToken, setBaseToken] = useState(token0) const [baseToken, setBaseToken] = useState(token0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment