Skip to content

Instantly share code, notes, and snippets.

@Hebilicious
Last active April 21, 2021 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hebilicious/3af7969bcf8939bc551e8307ca6e4596 to your computer and use it in GitHub Desktop.
Save Hebilicious/3af7969bcf8939bc551e8307ca6e4596 to your computer and use it in GitHub Desktop.
constructor () public {
_rOwned[_msgSender()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
// set the rest of the contract variables
uniswapV2Router = _uniswapV2Router;
//exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment