Learn how to retrieve assets from a budget or incentive
clawback
clawback
with 0n
will reclaim all available funds for the given asset.0x0000000000000000000000000000000000000000
) to clawback native assets (ie. ETH).writeContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.disburse
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.writeContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.disburseBatch
writeContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.clawbackFromTarget
reclaimAmount + calculatedProtocolFee > incentiveBalance
will revert with an InsufficientFunds
error.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.clawbackFromTarget
will modify the amount of the asset marked as distributed via the budget.clawback
, typically the Boost Core contract address.incentive.buildClawbackData(amount)
.writeContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.