-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Issue
The WEN Royalties Distribution is handling both royalty payout and enforcement.
The program is unable to payout creators in the sell flow and instead requires escrow accounts that need to be claimed by the creator.
Additional Metadata Fields Spec
royaltyBasisPoints: u16
`{creator_1}`: share
...
`{creator_n}`: share
Goal
Payout creators in the same transaction fulfilling the sale while still doing an enforcment check that the cpi program is respecting royalties via transfer.
No need for additional accounts on state to serve as escrow or approvals. The system works off of only the WNS mint account.
Strategy
- Update mint_royalty to either configure transfer guard or WNS as the token transfer extension.
- transfer_hook_program: program id add extra account for the transfer hook program
- extra account meta list either the approve pda or transfer guard address
https://github.com/wen-community/wen-program-library/blob/main/programs/wen_new_standard/src/instructions/mint/royalties/add.rs#L95 - Utility functions for performing royalty lookup and payout. Rust lib called wen-royalties-interface.
- Parse creator info off of the mint
- Determine shares to payout
- Export cpi instructions for paying out creators in the caller program
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress