-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refund user tickets functionality #91
Refund user tickets functionality #91
Conversation
Coverage SummaryTotals
FilesExpand
|
@@ -95,6 +95,11 @@ pub trait LaunchpadGuaranteedTickets: | |||
self.deposit_launchpad_tokens(total_tickets); | |||
} | |||
|
|||
#[endpoint(refundUserTickets)] | |||
fn refund_user_tickets(&self, users_list: MultiValueEncoded<ManagedAddress>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
admin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later add_users_to_blacklist
call seems to call require_extended_permissions
. Should it be enough or should it be better reinforced here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it later checks the caller. I don't think we need a new check here also.
Covered in PR #92 |
Uses the blacklist mechanism