SBAG is a DeFi smart contract for the SafeBag Project with the following characteristics:
- Name: SafeBag
- Symbol: SBAG
- Decimals: 9
- Total Supply: 100 Million
- 2% Reflection
- 3% Auto Liquidity
- Whale Protection: 2%
- Liquidity Amount: 200k
The live contract can be seen on BscScan Here.
The contract has been audited by Solidity Finance, which can be found here.
For more information about the SafeBag Project, check out our website and follow us on Twitter.
--
We realize that nowadays most token "devs" are just copy-pasting code without even understanding what it means, here's a step-by-step to launch your own safe token.
Please note that this code is offered as is and no support is provided by the team.
First, you'll need:
Ready? let's go.
- Clone this repo and cd to the directory
git clone git@github.com:SafeBagDev/SBAG-Token-Contract.git && cd SBAG-Token-Contract
- Install dependencies
yarn
-
Make changes to secrets-EXAMPLE.json
-
Rename secrets-EXAMPLE.json to secrets.json
-
Make changes to SBAGToken.sol (we've added comments for you there, so you don't have to think...)
-
Compile the contract
hardhat compile
- Start a local BSC node with ganache-cli
ganache-cli -f https://bsc-dataseed.binance.org/
- Deploy the contract to the local network
npx hardhat run --network ganache scripts/deploy.js
- Test it's working... here you'll have to think a bit.
All good? ok.
- Deploy your contract to the mainnet
npx hardhat run --network mainnet scripts/deploy.js
(If this doesn't work, you may need to adjust gasLimit on line 22)
- Finally, verify your contract on BscScan
npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "PANCAKESWAP_ROUTER_ADDRESS"
Replace DEPLOYED_CONTRACT_ADDRESS with your deployed contract address and "PANCAKESWAP_ROUTER_ADDRESS" with the pancakeswap address from secrets.json it if that's what you used.
That's it, now you have your own token.
Remember with great power comes great responsibilities, yes, even if it's on the BSC blockchain.