Cosy pfp
Cosy
@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
8 replies
6 recasts
15 reactions

0xSpencer pfp
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

0xSpencer pfp
0xSpencer
@0xspencer
@wake sorry to bother you brother but would you mind checking if the wallet modal opens on mobile when you hit claim? I don’t need you to transact or anything, just want to test if the wallet modal is working as expected, we’re having some issues with it. 🙏 cc @farkeysdev @cosy
2 replies
0 recast
2 reactions

0xSpencer pfp
0xSpencer
@0xspencer
lmk if there are any changes you'd like. I can make it so anyone can claim for any fid. And I can make it so 0 fees doesn't prompt a transaction (currently does for my testing purposes but super easy to filter out) Im also not a designer by any stretch of the imagination, so feel free to slap some branding on it🙏
2 replies
0 recast
1 reaction

Agadoo 🎩 pfp
Agadoo 🎩
@agadoo
I noticed in the contract there's a function subjectFees which looks like it takes the FID. Might be easier to just grab the total from there as looks like the website API is slightly behind the contract (unless I've got the wrong end of the stick - am having to use Wake's fid to test as not a hero myself!)
1 reply
0 recast
1 reaction

Cosy pfp
Cosy
@cosy
Checking right now
0 reply
0 recast
1 reaction