Copy from glider import *
def query ():
func = Contracts (). non_interface_contracts (). functions (). with_arg_count ( 1 ). exec ( 1 ) [ 0 ]
arg = func . arguments (). list () [ 0 ]
results = [func]
for (f , arg_index) in arg . df_reaches_from_functions_arguments ():
results . append (f)
print (f. source_code () + '\n\n' + str (arg_index))
return results
Copy function balanceOf ( address account) public view override returns ( uint256 ) {
return _balances[account];
}
Copy "root" :{3 items
"contract" : string "0xd705c24267ed3c55458160104994c55c6492dfcf"
"contract_name" :string "Token"
"sol_function" :solidity
function balanceOf(address account) public view override returns (uint 256 ) {
return _balances[account];
}
}
"root" :{3 items
"contract" : string "0xd705c24267ed3c55458160104994c55c6492dfcf"
"contract_name" :string "Token"
"sol_function" :solidity
function _transfer(address from , address to, uint256 amount) private {
uint256 taxAmount=0;
if (!_isExcludedFromFee[from] && !_isExcludedFromFee[to]) {
require(tradeOpen, "Trading not open" );
taxAmount = amount.mul((_buyCount>_reduceBuyTaxAt)?_finalBuyTax : _initialBuyTax).div( 100 );
if (from == uniswapV 2 Pair && to != address(uniswapV 2 Router)) {
require(balanceOf(to) + amount <= _maxWalletSize, "Exceeds the limit" );
_buyCount++;
}
if (to != uniswapV 2 Pair) {
require(balanceOf(to) + amount <= _maxWalletSize, "Exceeds the limit" );
}
if(to == uniswapV 2 Pair && from!= address(this) ){
taxAmount = amount.mul((_buyCount>_reduceSellTaxAt)?_finalSellTax : _initialSellTax).div( 100 );
}
uint 256 contractTokenBalance = balanceOf(address(this));
if (!inSwap && to == uniswapV 2 Pair && swapEnabled && contractTokenBalance>_taxSwapThreshold) {
swapTokensForEth(min(amount,min(contractTokenBalance,_maxTaxSwap)));
uint256 contractETHBalance = address(this).balance;
if(contractETHBalance > 0) {
sendETHToFee(address(this).balance);
}
}
}
if(taxAmount> 0 ){
_balances[address(this)]=_balances[address(this)].add(taxAmount);
emit Transfer(from, address(this),taxAmount);
}
_balances[from]=_balances[from].sub(amount);
_balances[to]=_balances[to].add(amount.sub(taxAmount));
emit Transfer(from, to, amount.sub(taxAmount));
}
}
...
Copy require ( balanceOf (to) + amount <= _maxWalletSize , "Exceeds the limit" );