Retrieve from Budget
clawback
The clawback function is used to reclaim available funds from the budget. Can only be called by owner or admin.
Parameters
Optional parameters to pass to the underlying
writeContract method. Checkout wagmi’s documentation for more information. address, args, functionName, abi are handled for you under the hood.Returns
Returns true if the clawback was successful.
disburse
Transfers available funds from the budget to a specified recipient. You must have the manager, admin or owner role to call this function.
Parameters
Optional parameters to pass to the underlying
writeContract method. Checkout wagmi’s documentation for more information. address, args, functionName, abi are handled for you under the hood.Returns
Returns true if the disbursement was successful.
disburseBatch
Transfers available funds from the budget to a list of specified recipients. You must have the manager, admin or owner role to call this function. This method is more gas-efficient for multiple transfers.
Parameters
Optional parameters to pass to the underlying
writeContract method. Checkout wagmi’s documentation for more information. address, args, functionName, abi are handled for you under the hood.Returns
Returns true if the disbursement was successful.
Retrieve from Incentive
clawbackFromTarget
The clawback function allows authorized users (admin or manager) to reclaim assets from a Boost’s incentive back to its associated budget.
The amount reclaimed will be subject to protocol fee collection, so attempting to reclaim an amount where
reclaimAmount + calculatedProtocolFee > incentiveBalance will revert with an InsufficientFunds error.- ERC20Incentive
- Variable Incentives
Parameters
The address of the contract implementing
clawback, typically the Boost Core contract address.The encoded clawback data payload. Generate this using
incentive.buildClawbackData(amount).The ID of the Boost containing the target incentive.
The index of the incentive to clawback from.
Optional parameters to pass to the underlying
writeContract method. Checkout wagmi’s documentation for more information. address, args, functionName, abi are handled for you under the hood.Returns
Returns a tuple containing:
- The amount that was successfully clawed back
- The address of the token that was retrieved