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

[T22] Libreplex royalty enforcement support #91

Merged
merged 10 commits into from
Apr 17, 2024

Conversation

solonk8
Copy link
Contributor

@solonk8 solonk8 commented Apr 9, 2024

Support libreplex royalty standard for both legacy and latest royalty structure https://libreplex-1.gitbook.io/libreplex/royalty-enforcement

  1. royalty is added to this two entry points:
  • sol_ext_fulfill_buy
  • sol_ext_fulfill_sell
  1. sdk integration to support:
  • royalty enforcement
  • shared escrow remaining account

tested for buy/sell/both sides as well as shared escrow

integration test screenshot
deposit sell:
deposit-sell

withdraw sell:
withdraw-sell

fulfill buy:
fulfill-buy

fulfill buy with shared escrow:
fulfill-buy-shared-escrow

fulfill sell:
fulfill-sell

@solonk8 solonk8 changed the title [WIP][mmm] Libreplex royalty enforcement for T22 [T22] Libreplex royalty enforcement support Apr 11, 2024
[[test.validator.clone]]
address = "99jtJwGDfaBKXtc7kxQneAGbERGK8F5XyJWHv7qTbj9G" # global deny list for libreplex royalty enforcement

[[test.validator.clone]]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@madergaser I was wrong before that cloning does not work... I guess I messed up with my local somehow

@solonk8 solonk8 merged commit bda2e77 into main Apr 17, 2024
1 check passed
@solonk8 solonk8 deleted the mmm-libreplex-royalty-enforcement branch April 17, 2024 03:45
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.

3 participants