Updated on 2026-08-14
This commit is contained in:
parent
5603059bb8
commit
cb92db9b08
1 changed files with 3 additions and 1 deletions
|
|
@ -403,6 +403,7 @@ internal class StateBuilder(
|
|||
warnings.add(
|
||||
SwapWarning.ReduceAmount(
|
||||
notificationConfig = createReduceAmountNotificationConfig(
|
||||
currencyName = quoteModel.fromTokenInfo.cryptoCurrencyStatus.currency.name,
|
||||
amount = it.tezosFeeThreshold.toPlainString(),
|
||||
onConfirmClick = {
|
||||
val fromAmount = quoteModel.fromTokenInfo.tokenAmount
|
||||
|
|
@ -1375,13 +1376,14 @@ internal class StateBuilder(
|
|||
}
|
||||
|
||||
private fun createReduceAmountNotificationConfig(
|
||||
currencyName: String,
|
||||
amount: String,
|
||||
onConfirmClick: () -> Unit,
|
||||
onDismissClick: () -> Unit,
|
||||
): NotificationConfig {
|
||||
return NotificationConfig(
|
||||
title = resourceReference(R.string.send_notification_high_fee_title),
|
||||
subtitle = resourceReference(R.string.send_notification_high_fee_text, wrappedList(amount)),
|
||||
subtitle = resourceReference(R.string.send_notification_high_fee_text, wrappedList(currencyName, amount)),
|
||||
iconResId = R.drawable.img_attention_20,
|
||||
buttonsState = NotificationConfig.ButtonsState.PairButtonsConfig(
|
||||
primaryText = resourceReference(R.string.xtz_withdrawal_message_reduce, wrappedList(amount)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue