-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing unit information to amounts
* Use singular unit where possible * Remove unused AccountState.onChainFeeRate * Fix typos on PaymentError's * Add 'is' prefix to 'fixedAmount' to better clarify it's a bool
- Loading branch information
1 parent
995dc48
commit d3fc7bd
Showing
50 changed files
with
413 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,41 @@ | ||
class PaymentExceededLimitError implements Exception { | ||
final int limitSat; | ||
|
||
const PaymentExceededLimitError( | ||
this.limitSat, | ||
); | ||
const PaymentExceededLimitError(this.limitSat); | ||
} | ||
|
||
class PaymentBelowLimitError implements Exception { | ||
final int limitSat; | ||
|
||
const PaymentBelowLimitError( | ||
this.limitSat, | ||
); | ||
const PaymentBelowLimitError(this.limitSat); | ||
} | ||
|
||
class PaymentBelowReserveError implements Exception { | ||
final int reserveAmount; | ||
final int reserveAmountSat; | ||
|
||
const PaymentBelowReserveError( | ||
this.reserveAmount, | ||
); | ||
const PaymentBelowReserveError(this.reserveAmountSat); | ||
} | ||
|
||
class InsufficientLocalBalanceError implements Exception { | ||
const InsufficientLocalBalanceError(); | ||
} | ||
|
||
class PaymentBelowSetupFeesError implements Exception { | ||
final int setupFees; | ||
final int setupFeesSat; | ||
|
||
const PaymentBelowSetupFeesError( | ||
this.setupFees, | ||
); | ||
const PaymentBelowSetupFeesError(this.setupFeesSat); | ||
} | ||
|
||
class PaymentExceedLiquidityError implements Exception { | ||
class PaymentExceededLiquidityError implements Exception { | ||
final int limitSat; | ||
|
||
const PaymentExceedLiquidityError( | ||
this.limitSat, | ||
); | ||
const PaymentExceededLiquidityError(this.limitSat); | ||
} | ||
|
||
class PaymentExcededLiqudityChannelCreationNotPossibleError implements Exception { | ||
class PaymentExceededLiquidityChannelCreationNotPossibleError implements Exception { | ||
final int limitSat; | ||
|
||
const PaymentExcededLiqudityChannelCreationNotPossibleError( | ||
this.limitSat, | ||
); | ||
const PaymentExceededLiquidityChannelCreationNotPossibleError(this.limitSat); | ||
} | ||
|
||
class NoChannelCreationZeroLiqudityError implements Exception {} | ||
class NoChannelCreationZeroLiquidityError implements Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.