Post by @davekim • Hey
Is it possible to open this feature up so that a user can pick any token for the collect feature?
Stats
Actions: 0
Comments: 6
Likes: 30
Mirrors: 2
Quotes: 3
Comments
I'm working on a "Pay What You Want" Collect Module right now! You'll optionally be able to restrict to a specific currency and set a minimum price. Already tested an early version of it on testnet. Should be ready for verification review in a few days. https://mumbai.polygonscan.com/address/0x923A66c4F9c7468E38324434C2E2ac18Cf807cD7#code cc @lens/paris (no LIP needed 👷)
Yeah I think it's possible for apps to support this today with no extra steps or changes to the protocol. When a fee collect (https://polygonscan.deth.net/address/0x060f5448ae8aCF0Bc06D040400c6A89F45b488bb) is created, it calls _validateBaseInitData -> _verifyErc20Currency to register the token with the LensHub, so it should be possible for apps to allow users to input any token address and it'll work at the contract level. cc @lens/donosonaumczuk to double-check if that's correct.
Write an LIP! cc: @lens/defispartan @lens/cesare
👀👀👀