How to claim from your FuulProject contract
This article shows how to claim rewards from your FuulProject contract.
For information about how to get unclaimed rewards please check this other guide.
Building claim function argument
The claim
function argument is an array of claimCheck
struct elements.
For example, to claim 10 ETH from a deployed FuulContract on Base, this will have to. be called:
Your claimChecks
array can contain multiple elements, belonging to different projects and currencies.
Making the transaction
To perform a claim, the transaction must always be directed to the FuulManager
contract.
The address is always 0xC38E3A10B5818601b29c83F195E8b5854AAE45aF
on the networks we are deployed (Polygon, Arbitrum One, Optimism, Base, Mode).
So, the complete code, using ethers.js, would be the following:
PreviousGetting program onchain budgets using Fuul contracts subgraphsNextGetting project information using Fuul SDK
Last updated