Open olanod opened 7 months ago
NOTE: We use request_refund
to cancel from the sender perspective and cancel
for beneficiaries to return funds immediately, with the updated release strategy the semantics of "request refund" change, for simplicity I think we can deprecate request_refund
and have only cancel
for both sender and beneficiary.
I propose generalizing the way how payments are released to the beneficiary.
The core feature of payments pallet is being able to hold funds until the sender is satisfied with an event happening off-chain(e.g. when receiving goods). To support more use cases, like when there is more trust between paying parties that conduct businesses regularly, an automated way to release funds progressively becomes very useful.
We can add a parameter to
pay
that accepts the "release strategy" represented as an enum.