@@ -201,8 +201,8 @@ class BlocktankRepo @Inject constructor(
201201 description : String = Env .DEFAULT_INVOICE_MESSAGE ,
202202 ): Result <IcJitEntry > = withContext(bgDispatcher) {
203203 try {
204- if (coreService.isGeoBlocked()) throw ServiceError .GeoBlocked
205- val nodeId = lightningService.nodeId ? : throw ServiceError .NodeNotStarted
204+ if (coreService.isGeoBlocked()) throw ServiceError .GeoBlocked ()
205+ val nodeId = lightningService.nodeId ? : throw ServiceError .NodeNotStarted ()
206206 val lspBalance = getDefaultLspBalance(clientBalance = amountSats)
207207 val channelSizeSat = amountSats + lspBalance
208208
@@ -230,7 +230,7 @@ class BlocktankRepo @Inject constructor(
230230 channelExpiryWeeks : UInt = DEFAULT_CHANNEL_EXPIRY_WEEKS ,
231231 ): Result <IBtOrder > = withContext(bgDispatcher) {
232232 try {
233- if (coreService.isGeoBlocked()) throw ServiceError .GeoBlocked
233+ if (coreService.isGeoBlocked()) throw ServiceError .GeoBlocked ()
234234
235235 val options = defaultCreateOrderOptions(clientBalanceSat = spendingBalanceSats)
236236
@@ -323,7 +323,7 @@ class BlocktankRepo @Inject constructor(
323323 }
324324
325325 private suspend fun defaultCreateOrderOptions (clientBalanceSat : ULong ): CreateOrderOptions {
326- val nodeId = lightningService.nodeId ? : throw ServiceError .NodeNotStarted
326+ val nodeId = lightningService.nodeId ? : throw ServiceError .NodeNotStarted ()
327327 val timestamp = nowTimestamp().toString()
328328 val signature = lightningService.sign(" channelOpen-$timestamp " )
329329
@@ -350,7 +350,7 @@ class BlocktankRepo @Inject constructor(
350350 }
351351
352352 val satsPerEur = getSatsPerEur()
353- ? : throw ServiceError .CurrencyRateUnavailable
353+ ? : throw ServiceError .CurrencyRateUnavailable ()
354354
355355 val params = DefaultLspBalanceParams (
356356 clientBalanceSat = clientBalance,
@@ -363,10 +363,10 @@ class BlocktankRepo @Inject constructor(
363363
364364 fun calculateLiquidityOptions (clientBalanceSat : ULong ): Result <ChannelLiquidityOptions > {
365365 val blocktankInfo = blocktankState.value.info
366- ? : return Result .failure(ServiceError .BlocktankInfoUnavailable )
366+ ? : return Result .failure(ServiceError .BlocktankInfoUnavailable () )
367367
368368 val satsPerEur = getSatsPerEur()
369- ? : return Result .failure(ServiceError .CurrencyRateUnavailable )
369+ ? : return Result .failure(ServiceError .CurrencyRateUnavailable () )
370370
371371 val existingChannelsTotalSat = totalBtChannelsValueSats(blocktankInfo)
372372
@@ -466,7 +466,7 @@ class BlocktankRepo @Inject constructor(
466466 }
467467
468468 private suspend fun claimGiftCodeWithoutLiquidity (code : String , amount : ULong ): GiftClaimResult {
469- val nodeId = lightningService.nodeId ? : throw ServiceError .NodeNotStarted
469+ val nodeId = lightningService.nodeId ? : throw ServiceError .NodeNotStarted ()
470470
471471 val order = ServiceQueue .CORE .background {
472472 giftOrder(clientNodeId = nodeId, code = " blocktank-gift-code:$code " )
0 commit comments