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

fix: prevent unintended license disablement during royalty vault deployment #184

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

sebsadface
Copy link
Member

@sebsadface sebsadface commented Feb 11, 2025

Description

This PR enhances the license handling logic in the royalty vault deployment workflow by modifying the _deployRoyaltyVault function to first check if license terms are already attached to an IP before attempting to attach them.

The update prevents unnecessary license disabling during royalty vault deployment by only disabling temporary licenses when they weren't previously attached. This improvement is validated through a new test case test_RoyaltyTokenDistributionWorkflows_deployRoyaltyVault_LicenseShouldNotBeDisabled that verifies licenses are not incorrectly disabled. Additionally, the PR includes a update from LAP (Liquid Absolute Percentage) to LRP (Liquid Relative Percentage) as the default royalty policy to be used in RoyaltyTokenDistributionWorkflows

This PR removes two backward compatibility functions from RoyaltyTokenDistributionWorkflows to make space for other changes.

@sebsadface sebsadface changed the title fix(royalty-token-distribution): prevent unintended license disablement during royalty vault deployment fix: prevent unintended license disablement during royalty vault deployment Feb 12, 2025
@sebsadface sebsadface merged commit 8a88fe4 into storyprotocol:main Feb 13, 2025
10 checks passed
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.

2 participants