diff --git a/typescript/src/services/redemptions/redemptions-service.ts b/typescript/src/services/redemptions/redemptions-service.ts index 1480328dc..42d01e790 100644 --- a/typescript/src/services/redemptions/redemptions-service.ts +++ b/typescript/src/services/redemptions/redemptions-service.ts @@ -283,7 +283,9 @@ export class RedemptionsService { if (!walletData) throw new Error( - `Could not find a wallet with enough funds. Maximum redemption amount is ${maxAmount} Satoshi.` + `Could not find a wallet with enough funds. Maximum redemption amount is ${maxAmount} Satoshi ( ${maxAmount.div( + BigNumber.from(1e8) + )} BTC ) .` ) return walletData diff --git a/typescript/test/services/redemptions.test.ts b/typescript/test/services/redemptions.test.ts index 84204fd29..18e2bfcfc 100644 --- a/typescript/test/services/redemptions.test.ts +++ b/typescript/test/services/redemptions.test.ts @@ -361,7 +361,9 @@ describe("Redemptions", () => { amount ) ).to.be.rejectedWith( - `Could not find a wallet with enough funds. Maximum redemption amount is ${expectedMaxAmount.toString()} Satoshi.` + `Could not find a wallet with enough funds. Maximum redemption amount is ${expectedMaxAmount.toString()} Satoshi ( ${expectedMaxAmount.div( + BigNumber.from(1e8) + )} BTC ) ` ) }) }