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

Remove ancestors hash and royalty context requirement from royalty LAP policy #4

Merged
merged 8 commits into from
Mar 18, 2024

Conversation

Spablob
Copy link

@Spablob Spablob commented Mar 14, 2024

This pr:

  • Removes ancestors hash from LAP royalty policy
  • Removes the requirement royalty context from LAP royalty policy

The goal of the changes is to greatly improve integrability as external projects no longer need to request the SDK to obtain the royaltyContext input when setting up a royalty policy. Gas increased by around 50% as previously discussed for initPolicy. Developer experience and ease of setup are greatly improved as there is no need to retrieve and understand the previously existing royalty context data struct.

@Spablob Spablob marked this pull request as ready for review March 14, 2024 22:31
@Spablob Spablob requested a review from jdubpark March 18, 2024 05:57
Copy link

@jdubpark jdubpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments left.

Also, can you write the tradeoff of this change, ie. gas cost increase, in this PR? Thanks!

contracts/modules/royalty/policies/RoyaltyPolicyLAP.sol Outdated Show resolved Hide resolved
Copy link

@jdubpark jdubpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jdubpark jdubpark merged commit 691994e into storyprotocol:main Mar 18, 2024
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