Agent
Agents are entities that enable greater visibility of the sellers and are compensated for their service. A common example could be a marketplace that shows the seller's offers.
Agents set their fee in percentage points, and if the seller adds them to an offer and the offer is succesfuly fullfiled, the agent is compensated for its service.
Agent's funds management is described in Deposit and withdraw.
Solidity
Creates a marketplace agent.
IBosonAccountHandler bosonProtocol = IBosonAccountHandler(_bosonProtocolAddress);
BosonTypes.Agent memory agent = BosonTypes.Agent({
id: 0, // will be ignored and auto-assigned
feePercentage: 500, // 5%
wallet: payable(agentWalletAddress),
active: true
});
bosonProtocol.createAgent(agent);
Last updated