Loanyee / app

Interface for Loanyee
https://app.loanyee.xyz
0 stars 0 forks source link

Integrate ACL for employers only need to approve one time and our contract can change the destination of the flow / update "employer approval" process #13

Open yukiwaki opened 1 year ago

yukiwaki commented 1 year ago

ACL : Recommended by Fran "Update" access is needed https://docs.superfluid.finance/superfluid/developers/constant-flow-agreement-cfa/cfa-access-control-list-acl/acl-features

By using that, employers only need to approve once, and after that our contract can change the destination of the stream (I think this will improve UX a lot better)

This is the implementation for ACL https://www.notion.so/loanyee532215/ACL-features-4f289af7643d4335b4e84ae49873f197

[Current implementation]

  1. Borrower creates a loan
  2. Loan contract address is generated
  3. Borrower needs to send it to employer
  4. Employer needs to change the destination

[Better implementation with ACL]

  1. Employer approve ACL one time only ↓
  2. Borrower creates a loan → Destination will be automatically changed to the loan contract
yukiwaki commented 1 year ago