This project was built using Foundry. Refer to installation instructions here.
git clone git@github.com:molecule-protocol/molecule-examples.git
cd molecule-examples
forge install
yarn build
forge test -vvvvvHere are common use cases for Molecule Protocol:
Allow list (whitelist) is a common use case for NFT minting. By using Molecule Protocol in the NFT smart contract, the allow list can be added and managed easily. After the mint, the Molecule Protocol smart contract can be set to bypass entirely.
AML: Most DeFi protocols enforce AML (Anti-Money-Laundering) at the UI level only. Molecule Protocol enables AML checks at the smart contract level, ensuring no unauthorized counterparties at any time.
KYC: Molecule Protocol is composable with KYC projects like KYC Dao and Quadrata.
A soulbound token refers to an NFT token that cannot be transferred. For example, for KYC tokens, the identity token is tied to each wallet address, and transfer is prohibited.
Many Web3 loyalty programs or GameFi projects prevent transfer to avoid "farming." However, transfer should be conditionally allowed during redemption. Tokens should either be burned or transferred to the treasury.
Implementing these with Molecule Protocol is trivial and more flexible than hardcoding.
Proof of payment can be implemented with adding an allowlist logic. By adding this payment check, proof of payment and even subscription payment can be verified before allowing smart contract executions. By decoupling the payment at the smart contract level, it enables subscriptions, installments, and many other payment options for DeFi projects.
Can you think of more use cases that Molecule Protocol can support? Please describe your idea, or demo your idea, or submit a PR (pull request) to us so we can share it with the entire community!
Send us questions on Twitter: @moleculepro
Or join our Discord: https://discord.gg/J8dqFK8ufA