Cosy ( Building FarFantasy ✨)
@cosy
We need a frame that allows Hero to withdraw fees from a contract. Any framework can be used, but Frog is preferred. Contract Details: --- Address: 0xedd1c688d8e75849d52316237e6634e382b03310 Chain: Base Network Function: withdrawSubjectFees Parameter: FID of the actor Fee Check: The frame should check if there are any fees to withdraw before displaying the withdrawal option. API: Use the provided API (https://farfantasy.com//api/profile/herofees?fid=[FID]) with the contract's FID to check for fees. The API might still show fees after a successful withdrawal. This will be fixed from our end 12000 degen Deadline 16/06/2024 @bountybot
4 replies
2 recasts
15 reactions
0xSpencer
@0xspencer
I can't test E2E since I don't have any fees in hero but I *think* this should work. code here https://github.com/gtspencer/hero-fees https://hero-fees.vercel.app/api
4 replies
0 recast
1 reaction
Agadoo 🎩
@agadoo
Grabbing balance and showing on a frame is easy; issue is going to be testing the transaction (if you aren't a hero, you won't have a balance and the transaction will fail with 'No fees to withdraw').
1 reply
0 recast
1 reaction
alex
@alexgrover.eth
Is it currently possible to withdraw from the website? I don’t see an option
1 reply
0 recast
1 reaction
wake
@wake.eth
cc @saxenasaheb
1 reply
0 recast
3 reactions