Closed cuteolaf closed 1 year ago
Is it right to understand that this storage will simplify things for the front-end??
Yeah so I talked to @cuteolaf it's indeed to simplify things on the front-end. This will be taken along in the UI when a council/sudo/server will approve the roles of pending new members.
Motivation
We need to update the logic for managing the approval waiting list.
Currently, we have 4 storage items -
SellerApprovalList
,ServicerApprovalList
,NotaryApprovalList
andRepApprovalList
.If we want to check if a user has already requested a role, we need to see all of the 4 storage items - which is currently implemented in
check_role_approval_list
. This is not good enough both for back-end and front-end.Suggested Solution We need to have a storage item that maps the accounts to their requested roles.
Something like