Updated on 2026-08-14
This commit is contained in:
parent
f9cc3decfb
commit
08d3e18b3e
3 changed files with 16 additions and 13 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue