Advertisement
Guest User

Untitled

a guest
May 19th, 2021
1,466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.37 KB | None | 0 0
  1. pragma solidity ^0.8.0;
  2. // SPDX-License-Identifier: Unlicensed
  3. interface IERC20 {
  4.  
  5. function totalSupply() external view returns (uint256);
  6.  
  7. /**
  8. * @dev Returns the amount of tokens owned by `account`.
  9. */
  10. function balanceOf(address account) external view returns (uint256);
  11.  
  12. /**
  13. * @dev Moves `amount` tokens from the caller's account to `recipient`.
  14. *
  15. * Returns a boolean value indicating whETHer the operation succeeded.
  16. *
  17. * Emits a {Transfer} event.
  18. */
  19. function transfer(address recipient, uint256 amount) external returns (bool);
  20.  
  21. /**
  22. * @dev Returns the remaining number of tokens that `spender` will be
  23. * allowed to spend on behalf of `owner` through {transferFrom}. This is
  24. * zero by default.
  25. *
  26. * This value changes when {approve} or {transferFrom} are called.
  27. */
  28. function allowance(address owner, address spender) external view returns (uint256);
  29.  
  30. /**
  31. * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
  32. *
  33. * Returns a boolean value indicating whETHer the operation succeeded.
  34. *
  35. * IMPORTANT: Beware that changing an allowance with this mETHod brings the risk
  36. * that someone may use both the old and the new allowance by unfortunate
  37. * transaction ordering. One possible solution to mitigate this race
  38. * condition is to first reduce the spender's allowance to 0 and set the
  39. * desired value afterwards:
  40. * https://github.com/ETHereum/EIPs/issues/20#issuecomment-263524729
  41. *
  42. * Emits an {Approval} event.
  43. */
  44. function approve(address spender, uint256 amount) external returns (bool);
  45.  
  46. /**
  47. * @dev Moves `amount` tokens from `sender` to `recipient` using the
  48. * allowance mechanism. `amount` is then deducted from the caller's
  49. * allowance.
  50. *
  51. * Returns a boolean value indicating whETHer the operation succeeded.
  52. *
  53. * Emits a {Transfer} event.
  54. */
  55. function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
  56.  
  57. /**
  58. * @dev Emitted when `value` tokens are moved from one account (`from`) to
  59. * another (`to`).
  60. *
  61. * Note that `value` may be zero.
  62. */
  63. event Transfer(address indexed from, address indexed to, uint256 value);
  64.  
  65. /**
  66. * @dev Emitted when the allowance of a `spender` for an `owner` is set by
  67. * a call to {approve}. `value` is the new allowance.
  68. */
  69. event Approval(address indexed owner, address indexed spender, uint256 value);
  70. }
  71.  
  72.  
  73.  
  74. /**
  75. * @dev Wrappers over Solidity's arithmetic operations with added overflow
  76. * checks.
  77. *
  78. * Arithmetic operations in Solidity wrap on overflow. This can easily result
  79. * in bugs, because programmers usually assume that an overflow raises an
  80. * error, which is the standard behavior in high level programming languages.
  81. * `SafeMath` restores this intuition by reverting the transaction when an
  82. * operation overflows.
  83. *
  84. * Using this library instead of the unchecked operations eliminates an entire
  85. * class of bugs, so it's recommended to use it always.
  86. */
  87.  
  88. library SafeMath {
  89. /**
  90. * @dev Returns the addition of two unsigned integers, reverting on
  91. * overflow.
  92. *
  93. * Counterpart to Solidity's `+` operator.
  94. *
  95. * Requirements:
  96. *
  97. * - Addition cannot overflow.
  98. */
  99. function add(uint256 a, uint256 b) internal pure returns (uint256) {
  100. uint256 c = a + b;
  101. require(c >= a, "SafeMath: addition overflow");
  102.  
  103. return c;
  104. }
  105.  
  106. /**
  107. * @dev Returns the subtraction of two unsigned integers, reverting on
  108. * overflow (when the result is negative).
  109. *
  110. * Counterpart to Solidity's `-` operator.
  111. *
  112. * Requirements:
  113. *
  114. * - Subtraction cannot overflow.
  115. */
  116. function sub(uint256 a, uint256 b) internal pure returns (uint256) {
  117. return sub(a, b, "SafeMath: subtraction overflow");
  118. }
  119.  
  120. /**
  121. * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
  122. * overflow (when the result is negative).
  123. *
  124. * Counterpart to Solidity's `-` operator.
  125. *
  126. * Requirements:
  127. *
  128. * - Subtraction cannot overflow.
  129. */
  130. function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
  131. require(b <= a, errorMessage);
  132. uint256 c = a - b;
  133.  
  134. return c;
  135. }
  136.  
  137. /**
  138. * @dev Returns the multiplication of two unsigned integers, reverting on
  139. * overflow.
  140. *
  141. * Counterpart to Solidity's `*` operator.
  142. *
  143. * Requirements:
  144. *
  145. * - Multiplication cannot overflow.
  146. */
  147. function mul(uint256 a, uint256 b) internal pure returns (uint256) {
  148. // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
  149. // benefit is lost if 'b' is also tested.
  150. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
  151. if (a == 0) {
  152. return 0;
  153. }
  154.  
  155. uint256 c = a * b;
  156. require(c / a == b, "SafeMath: multiplication overflow");
  157.  
  158. return c;
  159. }
  160.  
  161. /**
  162. * @dev Returns the integer division of two unsigned integers. Reverts on
  163. * division by zero. The result is rounded towards zero.
  164. *
  165. * Counterpart to Solidity's `/` operator. Note: this function uses a
  166. * `revert` opcode (which leaves remaining gas untouched) while Solidity
  167. * uses an invalid opcode to revert (consuming all remaining gas).
  168. *
  169. * Requirements:
  170. *
  171. * - The divisor cannot be zero.
  172. */
  173. function div(uint256 a, uint256 b) internal pure returns (uint256) {
  174. return div(a, b, "SafeMath: division by zero");
  175. }
  176.  
  177. /**
  178. * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
  179. * division by zero. The result is rounded towards zero.
  180. *
  181. * Counterpart to Solidity's `/` operator. Note: this function uses a
  182. * `revert` opcode (which leaves remaining gas untouched) while Solidity
  183. * uses an invalid opcode to revert (consuming all remaining gas).
  184. *
  185. * Requirements:
  186. *
  187. * - The divisor cannot be zero.
  188. */
  189. function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
  190. require(b > 0, errorMessage);
  191. uint256 c = a / b;
  192. // assert(a == b * c + a % b); // There is no case in which this doesn't hold
  193.  
  194. return c;
  195. }
  196.  
  197. /**
  198. * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
  199. * Reverts when dividing by zero.
  200. *
  201. * Counterpart to Solidity's `%` operator. This function uses a `revert`
  202. * opcode (which leaves remaining gas untouched) while Solidity uses an
  203. * invalid opcode to revert (consuming all remaining gas).
  204. *
  205. * Requirements:
  206. *
  207. * - The divisor cannot be zero.
  208. */
  209. function mod(uint256 a, uint256 b) internal pure returns (uint256) {
  210. return mod(a, b, "SafeMath: modulo by zero");
  211. }
  212.  
  213. /**
  214. * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
  215. * Reverts with custom message when dividing by zero.
  216. *
  217. * Counterpart to Solidity's `%` operator. This function uses a `revert`
  218. * opcode (which leaves remaining gas untouched) while Solidity uses an
  219. * invalid opcode to revert (consuming all remaining gas).
  220. *
  221. * Requirements:
  222. *
  223. * - The divisor cannot be zero.
  224. */
  225. function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
  226. require(b != 0, errorMessage);
  227. return a % b;
  228. }
  229. }
  230.  
  231. abstract contract Context {
  232. function _msgSender() internal view virtual returns (address) {
  233. return msg.sender;
  234. }
  235.  
  236. function _msgData() internal view virtual returns (bytes memory) {
  237. this; // silence state mutability warning without generating bytecode - see https://github.com/ETHereum/solidity/issues/2691
  238. return msg.data;
  239. }
  240. }
  241.  
  242.  
  243. /**
  244. * @dev Collection of functions related to the address type
  245. */
  246. library Address {
  247. /**
  248. * @dev Returns true if `account` is a contract.
  249. *
  250. * [IMPORTANT]
  251. * ====
  252. * It is unsafe to assume that an address for which this function returns
  253. * false is an externally-owned account (EOA) and not a contract.
  254. *
  255. * Among others, `isContract` will return false for the following
  256. * types of addresses:
  257. *
  258. * - an externally-owned account
  259. * - a contract in construction
  260. * - an address where a contract will be created
  261. * - an address where a contract lived, but was destroyed
  262. * ====
  263. */
  264. function isContract(address account) internal view returns (bool) {
  265. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
  266. // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
  267. // for accounts without code, i.e. `keccak256('')`
  268. bytes32 codehash;
  269. bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
  270. // solhint-disable-next-line no-inline-assembly
  271. assembly { codehash := extcodehash(account) }
  272. return (codehash != accountHash && codehash != 0x0);
  273. }
  274.  
  275. /**
  276. * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
  277. * `recipient`, forwarding all available gas and reverting on errors.
  278. *
  279. * https://eips.ETHereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
  280. * of certain opcodes, possibly making contracts go over the 2300 gas limit
  281. * imposed by `transfer`, making them unable to receive funds via
  282. * `transfer`. {sendValue} removes this limitation.
  283. *
  284. * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
  285. *
  286. * IMPORTANT: because control is transferred to `recipient`, care must be
  287. * taken to not create reentrancy vulnerabilities. Consider using
  288. * {ReentrancyGuard} or the
  289. * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
  290. */
  291. function sendValue(address payable recipient, uint256 amount) internal {
  292. require(address(this).balance >= amount, "Address: insufficient balance");
  293.  
  294. // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
  295. (bool success, ) = recipient.call{ value: amount }("");
  296. require(success, "Address: unable to send value, recipient may have reverted");
  297. }
  298.  
  299. /**
  300. * @dev Performs a Solidity function call using a low level `call`. A
  301. * plain`call` is an unsafe replacement for a function call: use this
  302. * function instead.
  303. *
  304. * If `target` reverts with a revert reason, it is bubbled up by this
  305. * function (like regular Solidity function calls).
  306. *
  307. * Returns the raw returned data. To convert to the expected return value,
  308. * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
  309. *
  310. * Requirements:
  311. *
  312. * - `target` must be a contract.
  313. * - calling `target` with `data` must not revert.
  314. *
  315. * _Available since v3.1._
  316. */
  317. function functionCall(address target, bytes memory data) internal returns (bytes memory) {
  318. return functionCall(target, data, "Address: low-level call failed");
  319. }
  320.  
  321. /**
  322. * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
  323. * `errorMessage` as a fallback revert reason when `target` reverts.
  324. *
  325. * _Available since v3.1._
  326. */
  327. function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
  328. return _functionCallWithValue(target, data, 0, errorMessage);
  329. }
  330.  
  331. /**
  332. * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
  333. * but also transferring `value` wei to `target`.
  334. *
  335. * Requirements:
  336. *
  337. * - the calling contract must have an ETH balance of at least `value`.
  338. * - the called Solidity function must be `payable`.
  339. *
  340. * _Available since v3.1._
  341. */
  342. function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
  343. return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
  344. }
  345.  
  346. /**
  347. * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
  348. * with `errorMessage` as a fallback revert reason when `target` reverts.
  349. *
  350. * _Available since v3.1._
  351. */
  352. function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
  353. require(address(this).balance >= value, "Address: insufficient balance for call");
  354. return _functionCallWithValue(target, data, value, errorMessage);
  355. }
  356.  
  357. function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
  358. require(isContract(target), "Address: call to non-contract");
  359.  
  360. // solhint-disable-next-line avoid-low-level-calls
  361. (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
  362. if (success) {
  363. return returndata;
  364. } else {
  365. // Look for revert reason and bubble it up if present
  366. if (returndata.length > 0) {
  367. // The easiest way to bubble the revert reason is using memory via assembly
  368.  
  369. // solhint-disable-next-line no-inline-assembly
  370. assembly {
  371. let returndata_size := mload(returndata)
  372. revert(add(32, returndata), returndata_size)
  373. }
  374. } else {
  375. revert(errorMessage);
  376. }
  377. }
  378. }
  379. }
  380.  
  381. /**
  382. * @dev Contract module which provides a basic access control mechanism, where
  383. * there is an account (an owner) that can be granted exclusive access to
  384. * specific functions.
  385. *
  386. * By default, the owner account will be the one that deploys the contract. This
  387. * can later be changed with {transferOwnership}.
  388. *
  389. * This module is used through inheritance. It will make available the modifier
  390. * `onlyOwner`, which can be applied to your functions to restrict their use to
  391. * the owner.
  392. */
  393. contract Ownable is Context {
  394. address public _owner;
  395. address private _previousOwner;
  396. uint256 private _lockTime;
  397.  
  398. event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  399.  
  400.  
  401.  
  402. /**
  403. * @dev Returns the address of the current owner.
  404. */
  405. function owner() public view returns (address) {
  406. return _owner;
  407. }
  408.  
  409. /**
  410. * @dev Throws if called by any account other than the owner.
  411. */
  412. modifier onlyOwner() {
  413. require(_owner == _msgSender(), "Ownable: caller is not the owner");
  414. _;
  415. }
  416.  
  417. /**
  418. * @dev Leaves the contract without owner. It will not be possible to call
  419. * `onlyOwner` functions anymore. Can only be called by the current owner.
  420. *
  421. * NOTE: Renouncing ownership will leave the contract without an owner,
  422. * thereby removing any functionality that is only available to the owner.
  423. */
  424. function renounceOwnership() public virtual onlyOwner {
  425. emit OwnershipTransferred(_owner, address(0));
  426. _owner = address(0);
  427. }
  428.  
  429. /**
  430. * @dev Transfers ownership of the contract to a new account (`newOwner`).
  431. * Can only be called by the current owner.
  432. */
  433. function transferOwnership(address newOwner) public virtual onlyOwner {
  434. require(newOwner != address(0), "Ownable: new owner is the zero address");
  435. emit OwnershipTransferred(_owner, newOwner);
  436. _owner = newOwner;
  437. }
  438.  
  439. function geUnlockTime() public view returns (uint256) {
  440. return _lockTime;
  441. }
  442.  
  443. //Locks the contract for owner for the amount of time provided
  444. function lock(uint256 time) public virtual onlyOwner {
  445. _previousOwner = _owner;
  446. _owner = address(0);
  447. _lockTime = block.timestamp + time;
  448. emit OwnershipTransferred(_owner, address(0));
  449. }
  450.  
  451. //Unlocks the contract for owner when _lockTime is exceeds
  452. function unlock() public virtual {
  453. require(_previousOwner == msg.sender, "You don't have permission to unlock");
  454. require(block.timestamp > _lockTime , "Contract is locked until 7 days");
  455. emit OwnershipTransferred(_owner, _previousOwner);
  456. _owner = _previousOwner;
  457. }
  458. }
  459.  
  460.  
  461.  
  462. // pragma solidity >=0.5.0;
  463.  
  464. interface IUniswapV2Factory {
  465. event PairCreated(address indexed token0, address indexed token1, address pair, uint);
  466.  
  467. function feeTo() external view returns (address);
  468. function feeToSetter() external view returns (address);
  469.  
  470. function getPair(address tokenA, address tokenB) external view returns (address pair);
  471. function allPairs(uint) external view returns (address pair);
  472. function allPairsLength() external view returns (uint);
  473.  
  474. function createPair(address tokenA, address tokenB) external returns (address pair);
  475.  
  476. function setFeeTo(address) external;
  477. function setFeeToSetter(address) external;
  478. }
  479.  
  480.  
  481. // pragma solidity >=0.5.0;
  482.  
  483. interface IUniswapV2Pair {
  484. event Approval(address indexed owner, address indexed spender, uint value);
  485. event Transfer(address indexed from, address indexed to, uint value);
  486.  
  487. function name() external pure returns (string memory);
  488. function symbol() external pure returns (string memory);
  489. function decimals() external pure returns (uint8);
  490. function totalSupply() external view returns (uint);
  491. function balanceOf(address owner) external view returns (uint);
  492. function allowance(address owner, address spender) external view returns (uint);
  493.  
  494. function approve(address spender, uint value) external returns (bool);
  495. function transfer(address to, uint value) external returns (bool);
  496. function transferFrom(address from, address to, uint value) external returns (bool);
  497.  
  498. function DOMAIN_SEPARATOR() external view returns (bytes32);
  499. function PERMIT_TYPEHASH() external pure returns (bytes32);
  500. function nonces(address owner) external view returns (uint);
  501.  
  502. function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
  503.  
  504. event Mint(address indexed sender, uint amount0, uint amount1);
  505. event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
  506. event Swap(
  507. address indexed sender,
  508. uint amount0In,
  509. uint amount1In,
  510. uint amount0Out,
  511. uint amount1Out,
  512. address indexed to
  513. );
  514. event Sync(uint112 reserve0, uint112 reserve1);
  515.  
  516. function MINIMUM_LIQUIDITY() external pure returns (uint);
  517. function factory() external view returns (address);
  518. function token0() external view returns (address);
  519. function token1() external view returns (address);
  520. function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
  521. function price0CumulativeLast() external view returns (uint);
  522. function price1CumulativeLast() external view returns (uint);
  523. function kLast() external view returns (uint);
  524.  
  525. function mint(address to) external returns (uint liquidity);
  526. function burn(address to) external returns (uint amount0, uint amount1);
  527. function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
  528. function skim(address to) external;
  529. function sync() external;
  530.  
  531. function initialize(address, address) external;
  532. }
  533.  
  534. // pragma solidity >=0.6.2;
  535.  
  536. interface IUniswapV2Router01 {
  537. function factory() external pure returns (address);
  538. function WETH() external pure returns (address);
  539.  
  540. function addLiquidity(
  541. address tokenA,
  542. address tokenB,
  543. uint amountADesired,
  544. uint amountBDesired,
  545. uint amountAMin,
  546. uint amountBMin,
  547. address to,
  548. uint deadline
  549. ) external returns (uint amountA, uint amountB, uint liquidity);
  550. function addLiquidityETH(
  551. address token,
  552. uint amountTokenDesired,
  553. uint amountTokenMin,
  554. uint amountETHMin,
  555. address to,
  556. uint deadline
  557. ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
  558. function removeLiquidity(
  559. address tokenA,
  560. address tokenB,
  561. uint liquidity,
  562. uint amountAMin,
  563. uint amountBMin,
  564. address to,
  565. uint deadline
  566. ) external returns (uint amountA, uint amountB);
  567. function removeLiquidityETH(
  568. address token,
  569. uint liquidity,
  570. uint amountTokenMin,
  571. uint amountETHMin,
  572. address to,
  573. uint deadline
  574. ) external returns (uint amountToken, uint amountETH);
  575. function removeLiquidityWithPermit(
  576. address tokenA,
  577. address tokenB,
  578. uint liquidity,
  579. uint amountAMin,
  580. uint amountBMin,
  581. address to,
  582. uint deadline,
  583. bool approveMax, uint8 v, bytes32 r, bytes32 s
  584. ) external returns (uint amountA, uint amountB);
  585. function removeLiquidityETHWithPermit(
  586. address token,
  587. uint liquidity,
  588. uint amountTokenMin,
  589. uint amountETHMin,
  590. address to,
  591. uint deadline,
  592. bool approveMax, uint8 v, bytes32 r, bytes32 s
  593. ) external returns (uint amountToken, uint amountETH);
  594. function swapExactTokensForTokens(
  595. uint amountIn,
  596. uint amountOutMin,
  597. address[] calldata path,
  598. address to,
  599. uint deadline
  600. ) external returns (uint[] memory amounts);
  601. function swapTokensForExactTokens(
  602. uint amountOut,
  603. uint amountInMax,
  604. address[] calldata path,
  605. address to,
  606. uint deadline
  607. ) external returns (uint[] memory amounts);
  608. function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
  609. external
  610. payable
  611. returns (uint[] memory amounts);
  612. function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
  613. external
  614. returns (uint[] memory amounts);
  615. function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
  616. external
  617. returns (uint[] memory amounts);
  618. function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
  619. external
  620. payable
  621. returns (uint[] memory amounts);
  622.  
  623. function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
  624. function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
  625. function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
  626. function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
  627. function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
  628. }
  629.  
  630.  
  631.  
  632. // pragma solidity >=0.6.2;
  633.  
  634. interface IUniswapV2Router02 is IUniswapV2Router01 {
  635. function removeLiquidityETHSupportingFeeOnTransferTokens(
  636. address token,
  637. uint liquidity,
  638. uint amountTokenMin,
  639. uint amountETHMin,
  640. address to,
  641. uint deadline
  642. ) external returns (uint amountETH);
  643. function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
  644. address token,
  645. uint liquidity,
  646. uint amountTokenMin,
  647. uint amountETHMin,
  648. address to,
  649. uint deadline,
  650. bool approveMax, uint8 v, bytes32 r, bytes32 s
  651. ) external returns (uint amountETH);
  652.  
  653. function swapExactTokensForTokensSupportingFeeOnTransferTokens(
  654. uint amountIn,
  655. uint amountOutMin,
  656. address[] calldata path,
  657. address to,
  658. uint deadline
  659. ) external;
  660. function swapExactETHForTokensSupportingFeeOnTransferTokens(
  661. uint amountOutMin,
  662. address[] calldata path,
  663. address to,
  664. uint deadline
  665. ) external payable;
  666. function swapExactTokensForETHSupportingFeeOnTransferTokens(
  667. uint amountIn,
  668. uint amountOutMin,
  669. address[] calldata path,
  670. address to,
  671. uint deadline
  672. ) external;
  673. }
  674.  
  675.  
  676. contract TOKEN is Context, IERC20, Ownable {
  677. using SafeMath for uint256;
  678. using Address for address;
  679.  
  680. mapping (address => uint256) private _rOwned;
  681. mapping (address => uint256) private _tOwned;
  682. mapping (address => mapping (address => uint256)) private _allowances;
  683.  
  684. mapping (address => bool) private _isExcludedFromFee;
  685.  
  686. mapping (address => bool) private _isExcluded;
  687. address[] private _excluded;
  688.  
  689. uint256 private constant MAX = ~uint256(0);
  690. uint256 private _tTotal = 200000000* 10**9;
  691. uint256 private _rTotal = (MAX - (MAX % _tTotal));
  692. uint256 private _tFeeTotal;
  693.  
  694. string private _name = "Token";
  695. string private _symbol = "TKN";
  696. uint8 private _decimals = 9;
  697.  
  698. uint256 public _taxFee = 2;
  699. uint256 private _previousTaxFee = _taxFee;
  700.  
  701. uint256 public _burnFee = 2;
  702. uint256 private _previousBurnFee = _burnFee;
  703. address public burnAdd = address(0);
  704.  
  705. uint256 public _liquidityFee = 3;
  706. uint256 private _previousLiquidityFee = _liquidityFee;
  707.  
  708. uint256 public _communityFee = 2;
  709. uint256 private _previousCommunityFee = _communityFee;
  710. address public communityAdd = 0xf192Af570db1A58350b3a37326f22c683dbEAA1A;
  711.  
  712. IUniswapV2Router02 public uniswapV2Router;
  713. address public uniswapV2Pair;
  714. uint256 private numTokensSellToAddToLiquidity = 5000000 * 10**9;
  715. bool inSwapAndLiquify;
  716. bool public swapAndLiquifyEnabled = true;
  717. event Purchase(address indexed to, uint256 amount);
  718. event SwapAndLiquifyEnabledUpdated(bool enabled);
  719. event SwapAndLiquify(
  720. uint256 tokensSwapped,
  721. uint256 ETHReceived,
  722. uint256 tokensIntoLiqudity
  723. );
  724.  
  725. modifier lockTheSwap {
  726. inSwapAndLiquify = true;
  727. _;
  728. inSwapAndLiquify = false;
  729. }
  730.  
  731. constructor () {
  732. _owner = _msgSender();
  733. _rOwned[_owner] = _rTotal;
  734.  
  735. //For MAINNET: 0x10ED43C718714eb63d5aA57B78B54704E256024E
  736. //For TESTNET: 0xD99D1c33F9fC3444f8101754aBC46c52416550D1
  737. IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0xD99D1c33F9fC3444f8101754aBC46c52416550D1);
  738. // Create a uniswap pair for this new token
  739. uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
  740. .createPair(address(this), _uniswapV2Router.WETH());
  741.  
  742. // set the rest of the contract variables
  743. uniswapV2Router = _uniswapV2Router;
  744.  
  745. //exclude owner, and this contract from fee
  746. _isExcludedFromFee[_owner] = true;
  747. _isExcludedFromFee[address(this)] = true;
  748.  
  749. emit Transfer(address(0),_owner , _tTotal);
  750. }
  751.  
  752. function name() public view returns (string memory) {
  753. return _name;
  754. }
  755.  
  756. function symbol() public view returns (string memory) {
  757. return _symbol;
  758. }
  759.  
  760. function decimals() public view returns (uint8) {
  761. return _decimals;
  762. }
  763.  
  764. function totalSupply() public view override returns (uint256) {
  765. return _tTotal;
  766. }
  767.  
  768. function balanceOf(address account) public view override returns (uint256) {
  769. if (_isExcluded[account]) return _tOwned[account];
  770. return tokenFromReflection(_rOwned[account]);
  771. }
  772.  
  773. function transfer(address recipient, uint256 amount) public override returns (bool) {
  774. _transfer(_msgSender(), recipient, amount);
  775. return true;
  776. }
  777.  
  778. function allowance(address owner, address spender) public view override returns (uint256) {
  779. return _allowances[owner][spender];
  780. }
  781.  
  782. function approve(address spender, uint256 amount) public override returns (bool) {
  783. _approve(_msgSender(), spender, amount);
  784. return true;
  785. }
  786.  
  787. function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
  788. _transfer(sender, recipient, amount);
  789. _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
  790. return true;
  791. }
  792.  
  793. function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
  794. _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
  795. return true;
  796. }
  797.  
  798. function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
  799. _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
  800. return true;
  801. }
  802.  
  803. function isExcludedFromReward(address account) public view returns (bool) {
  804. return _isExcluded[account];
  805. }
  806.  
  807. function totalFees() public view returns (uint256) {
  808. return _tFeeTotal;
  809. }
  810.  
  811.  
  812. function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
  813. require(tAmount <= _tTotal, "Amount must be less than supply");
  814. if (!deductTransferFee) {
  815. (uint256 rAmount,,,,,,) = _getValues(tAmount);
  816. return rAmount;
  817. } else {
  818. (,uint256 rTransferAmount,,,,,) = _getValues(tAmount);
  819. return rTransferAmount;
  820. }
  821. }
  822.  
  823. function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
  824. require(rAmount <= _rTotal, "Amount must be less than total reflections");
  825. uint256 currentRate = _getRate();
  826. return rAmount.div(currentRate);
  827. }
  828.  
  829. function excludeFromReward(address account) public onlyOwner() {
  830. // require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.');
  831. require(!_isExcluded[account], "Account is already excluded");
  832. if(_rOwned[account] > 0) {
  833. _tOwned[account] = tokenFromReflection(_rOwned[account]);
  834. }
  835. _isExcluded[account] = true;
  836. _excluded.push(account);
  837. }
  838.  
  839. function includeInReward(address account) external onlyOwner() {
  840. require(_isExcluded[account], "Account is already excluded");
  841. for (uint256 i = 0; i < _excluded.length; i++) {
  842. if (_excluded[i] == account) {
  843. _excluded[i] = _excluded[_excluded.length - 1];
  844. _tOwned[account] = 0;
  845. _isExcluded[account] = false;
  846. _excluded.pop();
  847. break;
  848. }
  849. }
  850. }
  851.  
  852. function excludeFromFee(address account) public onlyOwner {
  853. _isExcludedFromFee[account] = true;
  854. }
  855.  
  856. function includeInFee(address account) public onlyOwner {
  857. _isExcludedFromFee[account] = false;
  858. }
  859.  
  860. function setTaxFeePercent(uint256 taxFee) external onlyOwner() {
  861. _taxFee = taxFee;
  862. }
  863.  
  864. function setBurnAdd(address addr) external onlyOwner() {
  865. burnAdd = addr;
  866. }
  867.  
  868. function setBurnFeePercent(uint256 Burn) external onlyOwner() {
  869. _burnFee = Burn;
  870. }
  871.  
  872. function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
  873. _liquidityFee = liquidityFee;
  874. }
  875.  
  876. function setCommunityAdd(address addr) external onlyOwner() {
  877. communityAdd = addr;
  878. }
  879.  
  880. function setCommunityFeePercent(uint256 communityFee) external onlyOwner() {
  881. _communityFee = communityFee;
  882. }
  883.  
  884. function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
  885. swapAndLiquifyEnabled = _enabled;
  886. emit SwapAndLiquifyEnabledUpdated(_enabled);
  887. }
  888.  
  889. //to recieve ETH from uniswapV2Router when swaping
  890.  
  891. receive() external payable {
  892. }
  893.  
  894. function _reflectFee(uint256 rFee, uint256 tFee) private {
  895. _rTotal = _rTotal.sub(rFee);
  896. _tFeeTotal = _tFeeTotal.add(tFee);
  897. }
  898.  
  899. function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256) {
  900. (uint256 tTransferAmount, uint256 tFee, uint256 tburn, uint256 tLiquidity) = _getTValues(tAmount);
  901. (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tburn, _getRate());
  902. return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tburn, tLiquidity);
  903. }
  904.  
  905. function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256) {
  906. uint256 tFee = calculateTaxFee(tAmount);
  907. uint256 burn = calculateBurnFee(tAmount);
  908. uint256 tLiquidity = calculateLiquidityFee(tAmount);
  909. uint256 tTransferAmount = tAmount.sub(tFee).sub(burn).sub(tLiquidity);
  910. return (tTransferAmount, tFee, burn, tLiquidity);
  911. }
  912.  
  913. function _getRValues(uint256 tAmount, uint256 tFee, uint256 burn, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
  914. uint256 rAmount = tAmount.mul(currentRate);
  915. uint256 rFee = tFee.mul(currentRate);
  916. uint256 rBurn = burn.mul(currentRate);
  917. uint256 rTransferAmount = rAmount.sub(rFee).sub(rBurn);
  918. return (rAmount, rTransferAmount, rFee);
  919. }
  920.  
  921. function _getRate() private view returns(uint256) {
  922. (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
  923. return rSupply.div(tSupply);
  924. }
  925.  
  926. function _getCurrentSupply() private view returns(uint256, uint256) {
  927. uint256 rSupply = _rTotal;
  928. uint256 tSupply = _tTotal;
  929. for (uint256 i = 0; i < _excluded.length; i++) {
  930. if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
  931. rSupply = rSupply.sub(_rOwned[_excluded[i]]);
  932. tSupply = tSupply.sub(_tOwned[_excluded[i]]);
  933. }
  934. if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
  935. return (rSupply, tSupply);
  936. }
  937.  
  938. function _takeLiquidity(uint256 tLiquidity) private {
  939. uint256 currentRate = _getRate();
  940. uint256 rLiquidity = tLiquidity.mul(currentRate);
  941. _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
  942. if(_isExcluded[address(this)])
  943. _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
  944. }
  945.  
  946. function _burn(uint256 burn) private {
  947. uint256 currentRate = _getRate();
  948. uint256 rBurn = burn.mul(currentRate);
  949. _rOwned[burnAdd] = _rOwned[burnAdd].add(rBurn);
  950. }
  951.  
  952. function calculateTaxFee(uint256 _amount) private view returns (uint256) {
  953. return _amount.mul(_taxFee).div(
  954. 10**2
  955. );
  956. }
  957.  
  958. function calculateBurnFee(uint256 _amount) private view returns (uint256) {
  959. return _amount.mul(_burnFee).div(
  960. 10**2
  961. );
  962. }
  963.  
  964. function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
  965. return _amount.mul(_liquidityFee).div(
  966. 10**2
  967. );
  968. }
  969.  
  970. function calculateCommunityFee(uint256 _amount) private view returns (uint256) {
  971. return _amount.mul(_communityFee).div(
  972. 10**2
  973. );
  974. }
  975.  
  976. function removeAllFee() private {
  977. if(_taxFee == 0 && _burnFee == 0 && _liquidityFee == 0) return;
  978.  
  979. _previousTaxFee = _taxFee;
  980. _previousBurnFee = _burnFee;
  981. _previousLiquidityFee = _liquidityFee;
  982.  
  983. _taxFee = 0;
  984. _burnFee = 0;
  985. _liquidityFee = 0;
  986. }
  987.  
  988. function restoreAllFee() private {
  989. _taxFee = _previousTaxFee;
  990. _burnFee = _previousBurnFee;
  991. _liquidityFee = _previousLiquidityFee;
  992. }
  993.  
  994. function isExcludedFromFee(address account) public view returns(bool) {
  995. return _isExcludedFromFee[account];
  996. }
  997.  
  998. function _approve(address owner, address spender, uint256 amount) private {
  999. require(owner != address(0), "ERC20: approve from the zero address");
  1000. require(spender != address(0), "ERC20: approve to the zero address");
  1001.  
  1002. _allowances[owner][spender] = amount;
  1003. emit Approval(owner, spender, amount);
  1004. }
  1005.  
  1006. function _transfer(
  1007. address from,
  1008. address to,
  1009. uint256 amount
  1010. ) private {
  1011. require(from != address(0), "ERC20: transfer from the zero address");
  1012. require(to != address(0), "ERC20: transfer to the zero address");
  1013. require(amount > 0, "Transfer amount must be greater than zero");
  1014.  
  1015. // is the token balance of this contract address over the min number of
  1016. // tokens that we need to initiate a swap + liquidity lock?
  1017. // also, don't get caught in a circular liquidity event.
  1018. // also, don't swap & liquify if sender is uniswap pair.
  1019. uint256 contractTokenBalance = balanceOf(address(this));
  1020.  
  1021.  
  1022. bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;
  1023. if (
  1024. overMinTokenBalance &&
  1025. !inSwapAndLiquify &&
  1026. from != uniswapV2Pair &&
  1027. swapAndLiquifyEnabled
  1028. ) {
  1029. contractTokenBalance = numTokensSellToAddToLiquidity;
  1030. //add liquidity
  1031. swapAndLiquify(contractTokenBalance);
  1032. }
  1033.  
  1034. //indicates if fee should be deducted from transfer
  1035. bool takeFee = true;
  1036.  
  1037. //if any account belongs to _isExcludedFromFee account then remove the fee
  1038. if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
  1039. takeFee = false;
  1040. }
  1041.  
  1042. //transfer amount, it will take tax, burn, liquidity fee
  1043. _tokenTransfer(from,to,amount,takeFee);
  1044. }
  1045.  
  1046. function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
  1047. // split the contract balance into halves
  1048. uint256 half = contractTokenBalance.div(2);
  1049. uint256 otherHalf = contractTokenBalance.sub(half);
  1050.  
  1051. // capture the contract's current ETH balance.
  1052. // this is so that we can capture exactly the amount of ETH that the
  1053. // swap creates, and not make the liquidity event include any ETH that
  1054. // has been manually sent to the contract
  1055. uint256 initialBalance = address(this).balance;
  1056.  
  1057. // swap tokens for ETH
  1058. swapTokensForETH(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered
  1059.  
  1060. // how much ETH did we just swap into?
  1061. uint256 newBalance = address(this).balance.sub(initialBalance);
  1062.  
  1063. // add liquidity to uniswap
  1064. addLiquidity(otherHalf, newBalance);
  1065.  
  1066. emit SwapAndLiquify(half, newBalance, otherHalf);
  1067. }
  1068.  
  1069. function swapTokensForETH(uint256 tokenAmount) private {
  1070. // generate the uniswap pair path of token -> wETH
  1071. address[] memory path = new address[](2);
  1072. path[0] = address(this);
  1073. path[1] = uniswapV2Router.WETH();
  1074.  
  1075. _approve(address(this), address(uniswapV2Router), tokenAmount);
  1076.  
  1077. // make the swap
  1078. uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
  1079. tokenAmount,
  1080. 0, // accept any amount of ETH
  1081. path,
  1082. address(this),
  1083. block.timestamp
  1084. );
  1085. }
  1086.  
  1087. function addLiquidity(uint256 tokenAmount, uint256 ETHAmount) private {
  1088. // approve token transfer to cover all possible scenarios
  1089. _approve(address(this), address(uniswapV2Router), tokenAmount);
  1090.  
  1091. // add the liquidity
  1092. uniswapV2Router.addLiquidityETH{value: ETHAmount}(
  1093. address(this),
  1094. tokenAmount,
  1095. 0, // slippage is unavoidable
  1096. 0, // slippage is unavoidable
  1097. owner(),
  1098. block.timestamp
  1099. );
  1100. }
  1101.  
  1102. //this mETHod is responsible for taking all fee, if takeFee is true
  1103. function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
  1104. if(!takeFee)
  1105. removeAllFee();
  1106. if (_isExcluded[sender] && !_isExcluded[recipient]) {
  1107. _transferFromExcluded(sender, recipient, amount);
  1108. } else if (!_isExcluded[sender] && _isExcluded[recipient]) {
  1109. _transferToExcluded(sender, recipient, amount);
  1110. } else if (_isExcluded[sender] && _isExcluded[recipient]) {
  1111. _transferBothExcluded(sender, recipient, amount);
  1112. } else {
  1113. _transferStandard(sender, recipient, amount);
  1114. }
  1115.  
  1116. if(!takeFee)
  1117. restoreAllFee();
  1118. }
  1119.  
  1120. //Futureproofing Pancakeswap router changes
  1121. function setRouterAddress(address newRouter) public onlyOwner() {
  1122. //Thank you FreezyEx
  1123. IUniswapV2Router02 _newPancakeRouter = IUniswapV2Router02(newRouter);
  1124. uniswapV2Pair = IUniswapV2Factory(_newPancakeRouter.factory()).createPair(address(this), _newPancakeRouter.WETH());
  1125. uniswapV2Router = _newPancakeRouter;
  1126. }
  1127.  
  1128. //Call this function after finalizing the presale
  1129. function enableAllFees() external onlyOwner() {
  1130. _taxFee = 1;
  1131. _previousTaxFee = _taxFee;
  1132. _liquidityFee = 1;
  1133. _previousLiquidityFee = _liquidityFee;
  1134. _burnFee = 1;
  1135. _previousBurnFee = _taxFee;
  1136. _communityFee = 1;
  1137. _previousCommunityFee = _communityFee;
  1138. inSwapAndLiquify = true;
  1139. emit SwapAndLiquifyEnabledUpdated(true);
  1140. }
  1141.  
  1142. //Call this function before initializing the presale
  1143. function disableAllFees() external onlyOwner() {
  1144. _taxFee = 0;
  1145. _previousTaxFee = _taxFee;
  1146. _liquidityFee = 0;
  1147. _previousLiquidityFee = _liquidityFee;
  1148. _burnFee = 0;
  1149. _previousBurnFee = _taxFee;
  1150. _communityFee = 0;
  1151. _previousCommunityFee = _communityFee;
  1152. inSwapAndLiquify = false;
  1153. emit SwapAndLiquifyEnabledUpdated(false);
  1154. }
  1155.  
  1156. function manual_burn(uint256 amount) external onlyOwner(){
  1157. _burn(amount);
  1158. }
  1159.  
  1160. function _transferStandard(address sender, address recipient, uint256 tAmount) private {
  1161. (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 burn, uint256 tLiquidity) = _getValues(tAmount);
  1162. uint256 _communityAmount = calculateCommunityFee(tAmount);
  1163. rAmount = rAmount.sub(_communityAmount);
  1164. _rOwned[sender] = _rOwned[sender].sub(rAmount);
  1165. _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
  1166. _rOwned[communityAdd] = _rOwned[communityAdd].add(_communityAmount);
  1167. _takeLiquidity(tLiquidity);
  1168. _reflectFee(rFee, tFee);
  1169. _burn(burn);
  1170.  
  1171. if(balanceOf(address(0)) < 7 * 10**9 * 10**9){
  1172. emit Transfer(sender, burnAdd, burn);
  1173. }
  1174. emit Transfer(sender, recipient, tTransferAmount);
  1175. emit Transfer(sender, communityAdd, _communityAmount);
  1176. }
  1177.  
  1178. function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
  1179. (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 burn, uint256 tLiquidity) = _getValues(tAmount);
  1180. _rOwned[sender] = _rOwned[sender].sub(rAmount);
  1181. _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
  1182. _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
  1183. _takeLiquidity(tLiquidity);
  1184. _reflectFee(rFee, tFee);
  1185. _burn(burn);
  1186.  
  1187. if(balanceOf(address(0)) < 7 * 10**9 * 10**9){
  1188. emit Transfer(sender, burnAdd, burn);
  1189. }
  1190. emit Transfer(sender, recipient, tTransferAmount);
  1191. }
  1192.  
  1193. function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
  1194. (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 burn, uint256 tLiquidity) = _getValues(tAmount);
  1195. _tOwned[sender] = _tOwned[sender].sub(tAmount);
  1196. _rOwned[sender] = _rOwned[sender].sub(rAmount);
  1197. _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
  1198. _takeLiquidity(tLiquidity);
  1199. _reflectFee(rFee, tFee);
  1200. _burn(burn);
  1201.  
  1202. if(balanceOf(address(0)) < 7 * 10**9 * 10**9){
  1203. emit Transfer(sender, burnAdd, burn);
  1204. }
  1205. emit Transfer(sender, recipient, tTransferAmount);
  1206. }
  1207.  
  1208. function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
  1209. (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 burn, uint256 tLiquidity) = _getValues(tAmount);
  1210. _tOwned[sender] = _tOwned[sender].sub(tAmount);
  1211. _rOwned[sender] = _rOwned[sender].sub(rAmount);
  1212. _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
  1213. _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
  1214. _takeLiquidity(tLiquidity);
  1215. _reflectFee(rFee, tFee);
  1216. _burn(burn);
  1217.  
  1218. if(balanceOf(address(0)) < 7 * 10**9 * 10**9){
  1219. emit Transfer(sender, burnAdd, burn);
  1220. }
  1221. emit Transfer(sender, recipient, tTransferAmount);
  1222. }
  1223.  
  1224. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement