Skip to content

SafeBagDev/SBAG-Token-Contract

Repository files navigation

SBAG Token Contract

SafeBag Logo

SBAG is a DeFi smart contract for the SafeBag Project with the following characteristics:

  • Name: SafeBag
  • Symbol: SBAG
  • Decimals: 9

Tokenomics:

  • 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:

  • yarn here
  • ganache-cli here
  • BscScan API Key here
  • A wallet with some BSC

Ready? let's go.

  1. Clone this repo and cd to the directory

git clone git@github.com:SafeBagDev/SBAG-Token-Contract.git && cd SBAG-Token-Contract

  1. Install dependencies

yarn

  1. Make changes to secrets-EXAMPLE.json

  2. Rename secrets-EXAMPLE.json to secrets.json

  3. Make changes to SBAGToken.sol (we've added comments for you there, so you don't have to think...)

  4. Compile the contract

hardhat compile

  1. Start a local BSC node with ganache-cli

ganache-cli -f https://bsc-dataseed.binance.org/

  1. Deploy the contract to the local network

npx hardhat run --network ganache scripts/deploy.js

  1. Test it's working... here you'll have to think a bit.

All good? ok.

  1. 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)

  1. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published