Withdrawing from Boosts
Learn how to withdraw remaining rewards from a boost using the UI or SDK
You can withdraw remaining rewards from a boost either through the Boost UI or programmatically using the SDK.
Using Boost UI
You can withdraw the remaining tokens from your boost by visiting your budget account dashboard on the Boost App. Navigate to the “Boosts” tab to see a list of boosts you have deployed. Once rewards have been withdrawn, the Boost will be considered ended/inactive.
Using the Boost SDK
To withdraw programmatically, use the clawbackFromTarget method on the budget.
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.
SDK Reference
Learn more about the clawback method and its parameters