What happens if you send funds to a wrong address? Let's create measures to reverse this with `Edfis Pay`.
balqaasem opened this issue · 0 comments
balqaasem commented
Edfis Pay - Transfers
Create these measures as a part of Edfis Pay
so that users can opt-in and out at will.
ensure_account_exists()
: If the account doesn't exist, fail the transaction.ensure-account_has_ed()
: If the account doesn't have ED, fail the transaction.
Provide various types of transfer options to users, each of which must handle both ensure_account_exists()
and account_has_ed()
options (they are optional for users to use, so they should be of type Boolean
).
Transfer Types that Handle this issue:
red_packet_transfer
: toautomatically_unlock
the funds to the sender if the receiver does not opened the red packet withinTransferUnlockPeriod
, therefore reversing the transaction.reclaimable_transfer
: allows the sender toreclaim
(unlock) the funds if the receiver does notclaim
the transfer withinTransferUnlockPeriod
, therefore reversing the transaction.willing_transfer
: allows the receiver toaccept
orreject
the funds.reversible_willing_transfer
: allows the receiver toaccept
orreject
the funds. The transfer will automatically unlock if the receiver does notclaim
the transfer withinTransferUnlockPeriod
, therefore reversing the transaction.protected_transfer
: allows the receiver toclaim
the transfer only if the receiver knows thepassword
to the transfer, else the transfer cannot be claimed therefore theTransferStatus
stays asUnclaimed
.reversible_protected_transfer
: allows the receiver toclaim
the transfer only if the receiver knows thepassword
to the transfer, else the transfer cannot be claimed. The transfer willautomatically_unlock
the funds to the sender if the receiver does not claim the transfer withinTransferUnlockPeriod
.