WNENG Dev Updates and Thoughts@Sefia Sefia posted two youtube guide on how to create BSC token (or BEP20 token). There are other youtube guide too. The method of steps are quite similar, setup Metamask wallet, connect to BSC. copy and paste smart contract, a software code of Solidity like this:
https://github.com/jklepatch/eattheblocks/blob/master/screencast/308-create-bep20-token-bsc/Token.solor this:
https://github.com/CEO-Token/token/blob/main/token.solcreate token, mint, done a token created in a few minutes for a USD dollars of BNB cost. The key question I believe that we need for WNENG or WCHTA on BSC as BEP20 token is that, we want a fixed supply. Just toss out some idea, 500 million NENG as total and maximum supply for WNENG using pre-mine as 1:1 as back up. We want this supply fixed, capped, no more. There are two ways of doing this
(1) disable minting capability in the smart contract. No new minting, therefore no more supply after the initial mint of 500 million NENG.
(2) or set a maximum cap in the smart contract source code so that more minting is OK, but no more than this supply.
I think other options are fine for our WNENG or WCHTA wrapped coin need. But cap is key requirement.
Need for a Supply Cap for Wrapped Coin"cap" is something we must have on our WNENG or WCHTA. I do not believe the code on two github link has a "cap". They allow the owner to mint more tokens down the road later. I do not believe we want a token wrapped coin with such control by the creator or owner.
This is also a security risk too. What if the owner lost the key, and some hacker created unlimited supply on minting more tokens? no good. I think "cap" is only thing that is in need. Others are no big deal. burn it, sure, yes or no.
Possible SolutionsTrust Wallet has this "Token Create"
ound a new way of creating BEP20 token for our need, really easy, with option of "disable mint", this looks like a free API:
How to Create Your Own BEP20 Token on Binance Smart Chain Today
https://trustwallet.com/blog/how-to-create-your-own-bep20It calls "Token Create". Looks like a free method, allows wallet connection to Metamask
another method I found to do a "cap", inserting two lines of code in solidity contract code, by this link:
https://forum.openzeppelin.com/t/how-to-create-a-capped-bep20-token/7754/2require(totSupply < 10000000, 'Maximum supply Reached');
mintFunction(..);
Actually just one line of code, saying that total supply must be smaller than this number. In our case, I can insert of one line code, say that total supply must be smaller than 501 million for WNENG. that solves the cap issue.
This of course needs to be tested. Say I want to mint 600 million WNENG, it should fail, because this code say no more than 501 million supply. This could be really easy one line fix. Everything else on the one of github source code is fine. We just need a cap on the supply no matter who is the owner of the contract.
More on discord "dev-chat" channel:
Sefia — Yesterday at 1:10 AM
Just focus on the generated smart contracts
that is the most important
creating token is super easy
Smart contract is the crucial one
honglu69 — Yesterday at 4:04 PM
yes, creating token is truly easy, no big deal. The key is the smart contract source code, mainly the issue of "cap" on supply. I have found multiple web sites and services available for doing a service on fee payment for a "cap", mostly half BNB to 1 BNB fee. That sounds too much. A cap, could be just one line of code. We could figure it out ourselves without paying any real dollars there for this.