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.
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.
For ERC20Incentive, the amount specified in the clawback data must be an exact multiple of the reward value set in the incentive. Otherwise, the transaction will fail.
Depending on the type of incentive, calculating the clawback amount will be different.
Transfers available funds from the budget to a specified recipient. You must have the manager, admin or owner role to call this function.
The disburse method is authorized for the MANAGER role. Be aware that this allows a manager to disburse funds from the budget at will. Make sure you trust the manager before giving them authorization.
Copy
Ask AI
import { parseUnits } from "viem";await budget.disburse({ amount: parseUnits('1', 18), asset: '0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D', target: account.address, // Address to receive the funds});
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.
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.
Copy
Ask AI
import { parseUnits } from "viem";await budget.disburseBatch([ { amount: parseUnits('1', 18), asset: '0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D', target: recipient1.address, // Address to receive the funds }, { amount: parseUnits('1', 18), asset: '0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D', target: recipient2.address, // Address to receive the funds },]);
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.