General Solidity notes - Treyz81/ProjectSTRATA GitHub Wiki

//Code structured after: https://bscscan.com/address/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3#code

//Line Changes:

1-11

/**

#STRATA

#STRATA features:

5% fee that is automatically added to the liquidity pool to be locked forever when selling

5% fee that is automatically distributed to all holders

Black hole created so #STRATA token will deflate itself in supply with every transaction

50% supply is burned at start...

*/

693 contract STRATA is Context, IERC20, Ownable {

707 uint256 private _tTotal = 1000000 * 106 * 109;

711 string private _name = "Project STRATA";

712 string private _symbol = "STRATA";

727 uint256 public _maxTxAmount = 5000 * 106 * 109;

728 uint256 private numTokensSellToAddToLiquidity = 500 * 106 * 109;

//1000000 * 10^6 * 10^9 = 1,000,000,000,000.000000000 [trillion]

//5000 * 10^6 * 10^9 = 5,000,000,000.000000000 [billion] (0.005)

//500 * 10^6 * 10^9; = 500,000,000.000000000 [million] (0.0005)

//Original totals in Safemoon's contract:

718 uint256 private _tTotal = 1000000000 * 106 * 109;

738 uint256 public _maxTxAmount = 5000000 * 106 * 109;

739 uint256 private numTokensSellToAddToLiquidity = 500000 * 106 * 109;

//STRATA Testnet router address (PancakeSwap V1): https://testnet.bscscan.com/address/0xD99D1c33F9fC3444f8101754aBC46c52416550D1

747 IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0xD99D1c33F9fC3444f8101754aBC46c52416550D1);

//STRATA Mainnet router address (PancakeSwap V2): https://bscscan.com/address/0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F

758 IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);