Client App Fees Functions
Apps can consume wav3s service and start promoted posts from their clients.
setAppFee()
Parameter
Type
Description
appFee
uint256
The fee in percentage that the client app will charge on top of the protocol fee.
Apps must choose an address to call this function with the percentage of the total budget that will be a fee for the app. For charging 5%, input 5.
withdrawAppFees()
Parameter
Type
Description
currency
address
The address of the ERC20 token fees that will be withdrawn.
By calling this function with the same address that set the AppFee, stored fees of the ERC20 token "currency" earned by the app will be transfered to the sender.
Last updated