Skip to content
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

Add protocol fee variable in claim and clawback functions #219

Closed
wants to merge 1 commit into from

Conversation

andreivladbrg
Copy link
Member

Note: this scenario was not going to happen, as it would have been super bad to our business.

The idea behind this is to add one more layer of security for users in case the protocol fee is changed after an airstream campaign is created.

This would have been an issue if the expiration were set to 0, resulting in all funds being permanently locked and unable to be clawed back. Effectively, this would have allowed us to take a percentage of any airstream campaign that is created.

feat: allow clawbacks when protocol fee greater than zero and campaign not expired
test: update tests accordingly
@andreivladbrg andreivladbrg changed the base branch from main to staging November 20, 2023 14:24
@andreivladbrg
Copy link
Member Author

Closing this PR because I used a wrong branch name

@andreivladbrg andreivladbrg deleted the feat/add-expected-fee branch November 20, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant