Updated on 2026-08-14

This commit is contained in:
Tangem 2025-03-11 10:02:52 +03:00
parent f9cc3decfb
commit 08d3e18b3e
3 changed files with 16 additions and 13 deletions

View file

@ -77,10 +77,6 @@ internal class DefaultRampManager(
catch = { raise(ScenarioUnavailabilityReason.NotSupportedBySellService(status.currency.name)) },
)
ensure(condition = sellSupportedByService) {
ScenarioUnavailabilityReason.NotSupportedBySellService(status.currency.name)
}
val reason = getSendUnavailabilityReason(userWalletId, status)
ensure(condition = reason is ScenarioUnavailabilityReason.None) {
@ -95,6 +91,10 @@ internal class DefaultRampManager(
}
}
ensure(condition = sellSupportedByService) {
ScenarioUnavailabilityReason.NotSupportedBySellService(status.currency.name)
}
Unit.right()
}
}