0

我正在研究一个可靠的代码,它有以下摘录。一次最多可以购买 5 个 Tri。为了增加一次可以购买的价值,我应该更改函数“numTokensSellToAddToLiquidity”的值吗?

换句话说:我想有一个高于5tri的购买限额,甚至取消它。

address[] private _excluded;
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal = 1000000000 * 10**6 * 10**9;
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;
string private _name = "NAME";
string private _symbol = "NAME";
uint8 private _decimals = 9;
uint256 public _taxFee = 2;
uint256 private _previousTaxFee = _taxFee;
uint256 public _liquidityFee = 3;
uint256 private _previousLiquidityFee = _liquidityFee;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
uint256 public _maxTxAmount = 5000000 * 10**6 * 10**9;
uint256 private numTokensSellToAddToLiquidity = 500000 * 10**6 * 10**9;
4

1 回答 1

0

numTokensSellToAddToLiquidity只是告诉合约何时交换和液化(该auto-liquidity功能)。在您的情况下,每 5 tril 交易,该合约会将其持有的一半出售给 BNB,并将两半作为流动性添加。这与最大交易金额无关。您可以将其更改为您想要的任何内容。如果您不希望对交易施加限制,您也可以将其设置为您的供应量(一万亿)。

于 2021-05-24T19:27:43.417 回答