diff --git a/src/subdomains/core/liquidity-management/adapters/actions/layerzero-bridge.adapter.ts b/src/subdomains/core/liquidity-management/adapters/actions/layerzero-bridge.adapter.ts index 1c3aec7f39..b067a0e40b 100644 --- a/src/subdomains/core/liquidity-management/adapters/actions/layerzero-bridge.adapter.ts +++ b/src/subdomains/core/liquidity-management/adapters/actions/layerzero-bridge.adapter.ts @@ -39,7 +39,7 @@ const LAYERZERO_OFT_ADAPTERS: Record Citrea diff --git a/src/subdomains/core/payment-link/services/payment-quote.service.ts b/src/subdomains/core/payment-link/services/payment-quote.service.ts index 43628a73f1..8104037d5b 100644 --- a/src/subdomains/core/payment-link/services/payment-quote.service.ts +++ b/src/subdomains/core/payment-link/services/payment-quote.service.ts @@ -602,8 +602,8 @@ export class PaymentQuoteService { canisterId, activation.asset.decimals, ); - if (result.allowance < transferInfo.amount) { - throw new Error(`Insufficient allowance: ${result.allowance}, need ${transferInfo.amount}`); + if (result.allowance < activation.amount) { + throw new Error(`Insufficient allowance: ${result.allowance}, need ${activation.amount}`); } }, 3, @@ -614,14 +614,14 @@ export class PaymentQuoteService { paymentAccount, userPrincipal, paymentAddress, - transferInfo.amount, + activation.amount, canisterId, activation.asset.decimals, ); quote.txInBlockchain(txId); } catch (e) { - quote.txFailed(e.message); + quote.txFailed(e.errorType ? Object.keys(e.errorType)[0] : e.message); } }