Toady Hawk pfp
Toady Hawk
@toadyhawk.eth
is anyone else actively gating a Farcaster chat with an ERC-20 token like we are for $BETR / @betrmint? Curious if we’re the only ones or if others have hacked up solutions too.
4 replies
2 recasts
22 reactions

Toady Hawk pfp
Toady Hawk
@toadyhawk.eth
This is how @netnose solved it for us btw, since chats can only be gated by NFTs natively: We set the BETR Believers chat to be joinable by private link only, and then added a token check in the mini app that makes the link to join appear magically on the Leaderboard page if you hold 50M $BETR in a Farcaster-connected wallet. Downside to this solution is that it’s not dynamic; we have to run a script and purge the list every few days. And it’s a bit funny / sad when you have to give people an unintentional “walk of shame” if they sell because removal events show in the chat 😂 But otherwise, it works pretty well!
4 replies
1 recast
12 reactions

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Couldn't you create a ERC721 contract where balanceOf() checks the coin balance and replies with 1 if balance > X? Would this work?
1 reply
0 recast
0 reaction

Mirko 🔵🟡 .⌐◨-◨ pfp
Mirko 🔵🟡 .⌐◨-◨
@netnose
Interesting idea, probably chat changes are triggered by Transfer events tho. It probably needs to be triggered manually.
1 reply
0 recast
1 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Still, it would feel smoother to trigger the transfer event generation using a script. For example, have a checkBalances() function that checks all balances and emits the events, or something similar. Depends on how Farcaster implements the gating, if are they checking NFT balance every time, or wait for transfer events.
1 reply
0 recast
1 reaction

Mirko 🔵🟡 .⌐◨-◨ pfp
Mirko 🔵🟡 .⌐◨-◨
@netnose
Yes, thanks for the good idea
0 reply
0 recast
2 reactions