I will give you solidity based BSC chain crypto token contract. Make it…
- User
I will give you solidity based BSC chain crypto token contract. Make it upgradable(proxy) and add all possible features to it, but keep the code I gave you. Preserve imports and use them in newly generated code. Generate full contract code in response. Contract is: pragma solidity ^0.8.0;
import “@openzeppelin/contracts/token/ERC20/ERC20.sol”; import “@openzeppelin/contracts/access/Ownable.sol”; import “@openzeppelin/contracts/utils/math/SafeMath.sol”; import “@openzeppelin/contracts/utils/Address.sol”; import “@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol”; import “@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol”; import “@pancakeswap/pancake-swap-lib/contracts/token/BEP20/extensions/IBEP20Metadata.sol”; import “@pancakeswap/pancake-swap-lib/contracts/token/BEP20/utils/SafeBEP20.sol”; import “@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol”; import “@pancakeswap/pancake-swap-lib/contracts/utils/Context.sol”; import “@pancakeswap/pancake-swap-lib/contracts/utils/math/SafeMath.sol”; import “@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol”; import “@pancakeswap/pancake-swap-lib/contracts/utils/Arrays.sol”; import “@pancakeswap/pancake-swap-lib/contracts/interfaces/IPancakeFactory.sol”; import “@pancakeswap/pancake-swap-lib/contracts/interfaces/IPancakePair.sol”; import “@pancakeswap/pancake-swap-lib/contracts/interfaces/IPancakeRouter01.sol”; import “@pancakeswap/pancake-swap-lib/contracts/interfaces/IPancakeRouter02.sol”;
contract Ukraine is Context, IBEP20, Ownable, ERC1967Proxy { using SafeMath for uint256; using Address for address; using SafeBEP20 for IBEP20;
mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcludedFromFee; mapping (address => bool) private _isExcluded; address[] private _excluded;
uint256 private constant MAX = ~uint256(0); uint256 private _tTotal = 1000000000 * 109; uint256 private _rTotal = (MAX - (MAX % _tTotal)); uint256 private _tFeeTotal;
string private _name = “Ukraine”; string private _symbol = “SFM”; uint8 private _decimals = 9;
uint256 public _taxFee = 5; uint256 private _previousTaxFee = _taxFee;
uint256 public _liquidityFee = 5; uint256 private _previousLiquidityFee = _liquidityFee;
IPancakeRouter02 public immutable pancakeRouter; address public immutable pancakePair;
bool inSwapAndLiquify; bool public swapAndLiquifyEnabled = true;
uint256 public maxTxAmount = 5000000 * 106 * 109; uint256 private numTokensSellToAddToLiquidity = 500000 * 106 * 10**9;
event SwapAndLiquifyEnabledUpdated(bool enabled); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiquidity );
modifier lockTheSwap { inSwapAndLiquify = true; ; swapAndLiquifyEnabled = false; }
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), “BEP20: transfer from the zero address”); require(to != address(0), “BEP20: transfer to the zero address”); require(amount > 0, “Transfer amount must be greater than zero”);
- Assistant
- User
Create full programming code for BNB crypto token coin contract. It has to have upgradability(proxy), owner, be mintable, have pancakeswap liquidity feature, have initializer, take fee from every transaction to owner and liquidity pool, be modifiable by owner, coin can be bought by holders, but cant be sold, have all possible features and and imports from openzeppelin. Give me full coin contract code.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.