me-foundation / magicdrop

MagicDrop is a collection of EVM minting protocols that enable the multi stage minting, per stage WL management, per stage supply limit, and crossmint support.
MIT License
51 stars 37 forks source link

Question about converting minted nft into minted cryptotokens #99

Open ghost opened 8 months ago

ghost commented 8 months ago

Hello. I was wondering if there's any possibility to replace ERC721 with ERC20. I would like it to work on specific cryptocurrency. Thank you in advance.

channing-magiceden commented 8 months ago

Hi @EnRiKeBaMbO ! Do you mean to host a minting event but instead of 721 tokens, minter got ERC20 tokens?

If so, I think you can extend ERC20 then customize _mint function. https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.7/contracts/token/ERC20/ERC20.sol

ghost commented 8 months ago

Hi @EnRiKeBaMbO ! Do you mean to host a minting event but instead of 721 tokens, minter got ERC20 tokens?

If so, I think you can extend ERC20 then customize _mint function. https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.7/contracts/token/ERC20/ERC20.sol

Thank you for advice. Btw is there any chance to get UI for the webpage where could be this code implemented?

channing-magiceden commented 6 months ago

Unfortunately we don't have UI code available.