Skip to content

feat: add contract setters, apply loyalty discounts, allow channel to… - #510

Merged
fati-Onchain merged 1 commit into
Facil-Pay:mainfrom
ussyalfaks:feat/admin-setters-loyalty-discount-channel-topup-voucher-redemption
Jul 30, 2026
Merged

feat: add contract setters, apply loyalty discounts, allow channel to…#510
fati-Onchain merged 1 commit into
Facil-Pay:mainfrom
ussyalfaks:feat/admin-setters-loyalty-discount-channel-topup-voucher-redemption

Conversation

@ussyalfaks

Copy link
Copy Markdown
Contributor

…p-ups, pay out vouchers

[Enhancement] No way to update payment_contract/escrow_contract/refund_contract addresses after initialize — a redeployed child contract can never be repointed without redeploying the coordinator Fixes #486

[Enhancement] Loyalty point redemption computes a discount but never deducts it from the payment — customers who redeem points still pay full price Fixes #490

[Enhancement] Payment channels cannot be topped up — a customer must close and reopen a new channel once the deposit is spent down Fixes #491

[Enhancement] redeem_refund_voucher marks a voucher as redeemed but never transfers funds or applies credit to a payment Fixes #493

Summary

  • What changed?
  • Why is this needed?
  • Any relevant context or linked issues?

Test Plan

  • I ran cargo test --workspace
  • I reviewed the diff for unintended changes
  • I added or updated tests where appropriate

Reminder: please run cargo test --workspace before submitting this PR.

…p-ups, pay out vouchers

[Enhancement] No way to update payment_contract/escrow_contract/refund_contract addresses after initialize — a redeployed child contract can never be repointed without redeploying the coordinator
Fixes Facil-Pay#486

[Enhancement] Loyalty point redemption computes a discount but never deducts it from the payment — customers who redeem points still pay full price
Fixes Facil-Pay#490

[Enhancement] Payment channels cannot be topped up — a customer must close and reopen a new channel once the deposit is spent down
Fixes Facil-Pay#491

[Enhancement] redeem_refund_voucher marks a voucher as redeemed but never transfers funds or applies credit to a payment
Fixes Facil-Pay#493
@fati-Onchain
fati-Onchain merged commit 739599a into Facil-Pay:main Jul 30, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment