Skip to content

feat: implement automatic royalty payment enforcement on NFT transfers#64

Open
ReinaMaze wants to merge 4 commits intoANYTECHS:mainfrom
ReinaMaze:feature/automatic-royalty-enforcement
Open

feat: implement automatic royalty payment enforcement on NFT transfers#64
ReinaMaze wants to merge 4 commits intoANYTECHS:mainfrom
ReinaMaze:feature/automatic-royalty-enforcement

Conversation

@ReinaMaze
Copy link
Copy Markdown

  • Override transfer function to require sale_price parameter
  • Automatically calculate and enforce royalty payments during transfer
  • For custom assets: automatically transfer royalty from seller to recipients
  • For XLM: emit RoyaltyPaid events (marketplace handles actual payment)
  • Support multi-recipient royalty splits with accurate calculation
  • Add comprehensive tests for automatic enforcement
  • Add validation for zero/negative sale prices
  • Add overflow protection for royalty calculations
  • Update all existing transfer calls with sale_price parameter

All 45 tests passing successfully.

close #6

- Override transfer function to require sale_price parameter
- Automatically calculate and enforce royalty payments during transfer
- For custom assets: automatically transfer royalty from seller to recipients
- For XLM: emit RoyaltyPaid events (marketplace handles actual payment)
- Support multi-recipient royalty splits with accurate calculation
- Add comprehensive tests for automatic enforcement
- Add validation for zero/negative sale prices
- Add overflow protection for royalty calculations
- Update all existing transfer calls with sale_price parameter

All 45 tests passing successfully.
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 24, 2026

@ReinaMaze Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Eniola3321 Eniola3321 closed this Apr 25, 2026
@Eniola3321 Eniola3321 reopened this Apr 26, 2026
- Confirms successful merge of automatic royalty enforcement feature
- Documents all changes and acceptance criteria met
- All 45 tests passing
@ReinaMaze ReinaMaze force-pushed the feature/automatic-royalty-enforcement branch from 18e060c to 23059b3 Compare April 28, 2026 11:37
- Override transfer function to require sale_price parameter
- Automatically calculate and enforce royalty payments during transfer
- For custom assets: automatically transfer royalty from seller to recipients
- For XLM: emit RoyaltyPaid events (marketplace handles actual payment)
- Support multi-recipient royalty splits with accurate calculation
- Add comprehensive tests for automatic enforcement
- Add validation for zero/negative sale prices
- Add overflow protection for royalty calculations

Acceptance Criteria:
 Override transfer function to calculate and handle royalty
 Emit RoyaltyPaid event
 Support native XLM and custom asset payments

All 45 tests passing successfully.
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.

[Soroban] Implement transfer with royalty enforcement

3 participants