Skip to content

Commit

Permalink
update: revert price impact note (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh authored Nov 9, 2023
1 parent 93cb63d commit 4209648
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/components/SwapForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import AddressInputPanel from 'components/AddressInputPanel'
import { Clock } from 'components/Icons'
import { AutoRow } from 'components/Row'
import SlippageWarningNote from 'components/SlippageWarningNote'
import GasFeeAndPriceImpactNote from 'components/SwapForm/GasPriceNote'
import InputCurrencyPanel from 'components/SwapForm/InputCurrencyPanel'
import OutputCurrencyPanel from 'components/SwapForm/OutputCurrencyPanel'
import PriceImpactNote from 'components/SwapForm/PriceImpactNote'
import SlippageSettingGroup from 'components/SwapForm/SlippageSettingGroup'
import { SwapFormContextProvider } from 'components/SwapForm/SwapFormContext'
import useBuildRoute from 'components/SwapForm/hooks/useBuildRoute'
Expand Down Expand Up @@ -264,11 +264,7 @@ const SwapForm: React.FC<SwapFormProps> = props => {

{!isWrapOrUnwrap && <SlippageWarningNote rawSlippage={slippage} isStablePairSwap={isStablePairSwap} />}

<GasFeeAndPriceImpactNote
gasUsd={routeSummary?.gasUsd}
priceImpact={routeSummary?.priceImpact}
isDegenMode={isDegenMode}
/>
<PriceImpactNote priceImpact={routeSummary?.priceImpact} isDegenMode={isDegenMode} />
<MultichainKNCNote currencyIn={currencyIn} currencyOut={currencyOut} />

<SwapActionButton
Expand Down
4 changes: 2 additions & 2 deletions src/constants/networks/avax-testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const avaxTestnetInfo: EVMNetworkInfo = {
aggregatorRoute: 'avalanche',
poolFarmRoute: EMPTY,
name: 'Avalanche Testnet',
icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/31645e2e-9c40-4fdf-9ddf-50d24e5399e4.svg',
icon: 'https://storage.googleapis.com/ks-setting-1d682dca/e72081b5-cb5f-4fb6-b771-ac189bdfd7c81699420213175.png',

iconSelected: NOT_SUPPORT,

Expand All @@ -25,7 +25,7 @@ const avaxTestnetInfo: EVMNetworkInfo = {
nativeToken: {
symbol: 'AVAX',
name: 'AVAX',
logo: 'https://storage.googleapis.com/ks-setting-a3aa20b7/31645e2e-9c40-4fdf-9ddf-50d24e5399e4.svg',
logo: 'https://storage.googleapis.com/ks-setting-1d682dca/e72081b5-cb5f-4fb6-b771-ac189bdfd7c81699420213175.png',
decimal: 18,
minForGas: 10 ** 16,
},
Expand Down
2 changes: 1 addition & 1 deletion src/constants/networks/bnb-testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const bnbTestnetInfo: EVMNetworkInfo = {
poolFarmRoute: EMPTY,
aggregatorRoute: 'bsc',
name: 'BNB Testnet',
icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/a44a3dbc-9150-4278-8354-7b5953f9a1ab.svg',
icon: 'https://storage.googleapis.com/ks-setting-1d682dca/14c1b7c4-b66e-4169-b82e-ea6237f15b461699420601184.png',

iconSelected: NOT_SUPPORT,

Expand Down
4 changes: 2 additions & 2 deletions src/constants/networks/mumbai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const mumbaiInfo: EVMNetworkInfo = {
poolFarmRoute: EMPTY,
aggregatorRoute: 'mumbai',
name: 'Mumbai',
icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/78dfb4fb-089b-431d-8725-b5de2cea0bfc.svg',
icon: 'https://storage.googleapis.com/ks-setting-1d682dca/8a936cf9-3e8f-4518-9fb2-8579c14fb8cd1699420035633.png',

iconSelected: NOT_SUPPORT,

Expand All @@ -25,7 +25,7 @@ const mumbaiInfo: EVMNetworkInfo = {
nativeToken: {
symbol: 'MATIC',
name: 'Polygon',
logo: 'https://storage.googleapis.com/ks-setting-a3aa20b7/78dfb4fb-089b-431d-8725-b5de2cea0bfc.svg',
logo: 'https://storage.googleapis.com/ks-setting-1d682dca/8a936cf9-3e8f-4518-9fb2-8579c14fb8cd1699420035633.png',
decimal: 18,
minForGas: 10 ** 16,
},
Expand Down

0 comments on commit 4209648

Please sign in to comment.