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({
<RowBetween>
<RowFixed>
<DoubleCurrencyLogo
currency0={currencyA ?? undefined}
currency1={currencyB ?? undefined}
currency0={baseCurrency ?? undefined}
currency1={quoteCurrency ?? undefined}
size={24}
margin={true}
/>
<TYPE.label ml="10px" fontSize="24px">
{currencyA?.symbol} / {currencyB?.symbol}
{quoteCurrency?.symbol} / {baseCurrency?.symbol}
</TYPE.label>
</RowFixed>
<RangeBadge inRange={!outOfRange}>{outOfRange ? 'Out of range' : 'In Range'}</RangeBadge>
......@@ -468,7 +468,7 @@ export default function AddLiquidity({
{price ? (
<TYPE.main>
{invertPrice ? price?.invert()?.toSignificant(8) : price?.toSignificant(8)}{' '}
{currencyB?.symbol} = 1 {currencyA?.symbol}
{quoteCurrency?.symbol} = 1 {baseCurrency?.symbol}
</TYPE.main>
) : (
'-'
......
......@@ -141,7 +141,7 @@ function V2PairMigration({
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
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