Skip to content

Commit

Permalink
release(wallet-mobile): 4.25.0-rc.6
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored and stackchain committed Feb 1, 2024
1 parent 65ff68c commit 86e1044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ export const TransactionSummary = () => {
label: strings.swapMinReceivedTitle,
value: (
<View style={styles.flex}>
{priceImpactRisk === 'high' && <Icon.Warning size={24} color={priceImpactRiskTextColor} />}

<Text style={[styles.text, {color: priceImpactRiskTextColor}, styles.alignRight]}>
{minReceivedInfoValue}
</Text>
<Text style={[styles.text, styles.alignRight]}>{minReceivedInfoValue}</Text>
</View>
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {useSelectedWallet} from '../../../../../../SelectedWallet'
import {COLORS} from '../../../../../../theme'
import {useTokenInfo} from '../../../../../../yoroi-wallets/hooks'
import {Quantities} from '../../../../../../yoroi-wallets/utils'
import {getPriceImpactRisk, usePriceImpactRiskTheme} from '../../../../common/helpers'
import {useNavigateTo} from '../../../../common/navigation'
import {PoolIcon} from '../../../../common/PoolIcon/PoolIcon'
import {useStrings} from '../../../../common/strings'
Expand Down Expand Up @@ -176,11 +175,6 @@ const ShowMarketOrderFeeBreakdown = ({totalFees}: {totalFees: string}) => {
const sellTokenInfo = useTokenInfo({wallet, tokenId: amounts.sell.tokenId})
const buyTokenName = buyTokenInfo.ticker ?? buyTokenInfo.name
const sellTokenName = sellTokenInfo.ticker ?? sellTokenInfo.name
const priceImpact = calculation?.prices.priceImpact

const priceImpactRisk = getPriceImpactRisk(Number(priceImpact))
const priceImpactRiskTheme = usePriceImpactRiskTheme(priceImpactRisk)
const priceImpactRiskTextColor = priceImpactRiskTheme.text

// should not happen
if (!calculation) return <></>
Expand Down Expand Up @@ -211,7 +205,7 @@ const ShowMarketOrderFeeBreakdown = ({totalFees}: {totalFees: string}) => {
},
{
label: strings.swapMinReceivedTitle,
value: <Text style={[styles.text, {color: priceImpactRiskTextColor}]}>{minReceivedFormatted}</Text>,
value: minReceivedFormatted,
info: strings.swapMinReceived,
},
{
Expand Down

0 comments on commit 86e1044

Please sign in to comment.