Projects

Papaya supports project separation, as the protocol was originally designed for platforms rather than individual users.

To utilize this functionality, call the claimProjectId method to assign a unique identifier to your wallet. This ID is necessary for users of your platform and for configuring both general and specific settings for individual users.

function claimProjectId() external

Invoke this method from the wallet where the commission should be directed.

Settings

The Settings structure defines whether settings are applied and specifies the fee amount. It is formatted as follows:

struct Settings {
  bool initialized;
  uint16 projectFee; // of 10k shares
}

setDefaultSettings

Set the default fee settings for all users within your project.

function setDefaultSettings(Settings calldata settings, uint256 projectId)

setSettingsForUser

Allows precise configuration of fees for a specific user, useful for scenarios such as collaborating with key opinion leaders.

function setSettingsForUser(address user, Settings calldata settings, uint256 projectId)

Last updated