Cosy ( Building FarFantasy ✨) pfp
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
8 replies
2 recasts
8 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

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

0xSpencer pfp
0xSpencer
@0xspencer
ya would probably be more up to date, but then I need to mess with providers whereas api is much simpler. plus the bounty cast said to use their api 🤷 totally down to use fees from contract if Cosy requests it, wouldn't be hard to do at all
1 reply
0 recast
1 reaction