0%
    Verified
  • Verified, Token, Router
  • Fungible Token
  • ERC-20
  • Router
  • DAO

The following smart contract is called WaifuAI and is an ERC20 token with a total supply of 1 million. It includes a fee on transfers, with a portion going towards liquidity and marketing. The contract also has a maximum wallet amount and the ability to swap tokens for ETH. The purpose of the contract is to create a community-driven token with a focus on anime and manga.

0xa789b5b2d4dc60c6334dd3d165fd9c5455404c4b
Copied
Copied
WaifuAI Source Code
/* Website: waifucoin.io Telegram: t.me/waifuerc Twitter: twitter.com/waifueth ������������������������������������������������������ ������������������ ������������������ ������������������ ������������������ ������������������������������������������������������ ������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������ ������������������������������������������������������ ������������������������������������������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������������������������������������������������������������������������������ ������������������������������������ ������������������������������������������������������������������������ ������������������������������������������������������ ������������������������������������������������������������������������������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������������������������������������������������������������������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������ ������������������������������������������������������ ������������������ ������������������ ������������������ ������������������������������������������������������ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.5; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; return c; } } interface ERC20 { function totalSupply() external view returns (uint256); function decimals() external view returns (uint8); function symbol() external view returns (string memory); function name() external view returns (string memory); function getOwner() external view returns (address); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address _owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } abstract contract Ownable { address internal owner; constructor(address _owner) { owner = _owner; } modifier onlyOwner() { require(isOwner(msg.sender), "!OWNER"); _; } function isOwner(address account) public view returns (bool) { return account == owner; } function renounceOwnership() public onlyOwner { owner = address(0); emit OwnershipTransferred(address(0)); } event OwnershipTransferred(address owner); } interface IDEXFactory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface IDEXRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } contract WaifuAI is ERC20, Ownable { using SafeMath for uint256; address routerAdress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address DEAD = 0x000000000000000000000000000000000000dEaD; string constant _name = "WAIFU AI"; string constant _symbol = "WAIFU"; uint8 constant _decimals = 9; uint256 _totalSupply = 1000000 * (10 ** _decimals); uint256 public _maxWalletAmount = (_totalSupply * 2) / 100; mapping (address => uint256) _balances; mapping (address => mapping (address => uint256)) _allowances; mapping (address => bool) isFeeExempt; mapping (address => bool) isTxLimitExempt; uint256 liquidityFee = 0; uint256 marketingFee = 4; uint256 totalFee = liquidityFee + marketingFee; uint256 feeDenominator = 100; address internal marketingFeeReceiver = 0xa7a61c4F1A9977DE63e3A3449BB103111c408435; IDEXRouter public router; address public pair; bool public swapEnabled = true; uint256 public swapThreshold = _totalSupply / 1000 * 2; // 0.5% bool inSwap; modifier swapping() { inSwap = true; _; inSwap = false; } constructor () Ownable(msg.sender) { router = IDEXRouter(routerAdress); pair = IDEXFactory(router.factory()).createPair(router.WETH(), address(this)); _allowances[address(this)][address(router)] = type(uint256).max; address _owner = owner; isFeeExempt[0xa7a61c4F1A9977DE63e3A3449BB103111c408435] = true; isTxLimitExempt[_owner] = true; isTxLimitExempt[0xa7a61c4F1A9977DE63e3A3449BB103111c408435] = true; isTxLimitExempt[DEAD] = true; _balances[_owner] = _totalSupply; emit Transfer(address(0), _owner, _totalSupply); } receive() external payable { } function totalSupply() external view override returns (uint256) { return _totalSupply; } function decimals() external pure override returns (uint8) { return _decimals; } function symbol() external pure override returns (string memory) { return _symbol; } function name() external pure override returns (string memory) { return _name; } function getOwner() external view override returns (address) { return owner; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function allowance(address holder, address spender) external view override returns (uint256) { return _allowances[holder][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _allowances[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function approveMax(address spender) external returns (bool) { return approve(spender, type(uint256).max); } function transfer(address recipient, uint256 amount) external override returns (bool) { return _transferFrom(msg.sender, recipient, amount); } function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { if(_allowances[sender][msg.sender] != type(uint256).max){ _allowances[sender][msg.sender] = _allowances[sender][msg.sender].sub(amount, "Insufficient Allowance"); } return _transferFrom(sender, recipient, amount); } function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) { if(inSwap){ return _basicTransfer(sender, recipient, amount); } if (recipient != pair &amp;&amp; recipient != DEAD) { require(isTxLimitExempt[recipient] || _balances[recipient] + amount <= _maxWalletAmount, "Transfer amount exceeds the bag size."); } if(shouldSwapBack()){ swapBack(); } _balances[sender] = _balances[sender].sub(amount, "Insufficient Balance"); uint256 amountReceived = shouldTakeFee(sender) ? takeFee(sender, amount) : amount; _balances[recipient] = _balances[recipient].add(amountReceived); emit Transfer(sender, recipient, amountReceived); return true; } function _basicTransfer(address sender, address recipient, uint256 amount) internal returns (bool) { _balances[sender] = _balances[sender].sub(amount, "Insufficient Balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); return true; } function shouldTakeFee(address sender) internal view returns (bool) { return !isFeeExempt[sender]; } function takeFee(address sender, uint256 amount) internal returns (uint256) { uint256 feeAmount = amount.mul(totalFee).div(feeDenominator); _balances[address(this)] = _balances[address(this)].add(feeAmount); emit Transfer(sender, address(this), feeAmount); return amount.sub(feeAmount); } function shouldSwapBack() internal view returns (bool) { return msg.sender != pair &amp;&amp; !inSwap &amp;&amp; swapEnabled &amp;&amp; _balances[address(this)] >= swapThreshold; } function swapBack() internal swapping { uint256 contractTokenBalance = swapThreshold; uint256 amountToLiquify = contractTokenBalance.mul(liquidityFee).div(totalFee).div(2); uint256 amountToSwap = contractTokenBalance.sub(amountToLiquify); address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); uint256 balanceBefore = address(this).balance; router.swapExactTokensForETHSupportingFeeOnTransferTokens( amountToSwap, 0, path, address(this), block.timestamp ); uint256 amountETH = address(this).balance.sub(balanceBefore); uint256 totalETHFee = totalFee.sub(liquidityFee.div(2)); uint256 amountETHLiquidity = amountETH.mul(liquidityFee).div(totalETHFee).div(2); uint256 amountETHMarketing = amountETH.mul(marketingFee).div(totalETHFee); (bool MarketingSuccess, /* bytes memory data */) = payable(marketingFeeReceiver).call{value: amountETHMarketing, gas: 30000}(""); require(MarketingSuccess, "receiver rejected ETH transfer"); if(amountToLiquify > 0){ router.addLiquidityETH{value: amountETHLiquidity}( address(this), amountToLiquify, 0, 0, 0xa7a61c4F1A9977DE63e3A3449BB103111c408435, block.timestamp ); emit AutoLiquify(amountETHLiquidity, amountToLiquify); } } function buyTokens(uint256 amount, address to) internal swapping { address[] memory path = new address[](2); path[0] = router.WETH(); path[1] = address(this); router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}( 0, path, to, block.timestamp ); } function clearStuckBalance() external { payable(marketingFeeReceiver).transfer(address(this).balance); } function setWalletLimit(uint256 amountPercent) external onlyOwner { _maxWalletAmount = (_totalSupply * amountPercent ) / 1000; } function setFee(uint256 _liquidityFee, uint256 _marketingFee) external onlyOwner { liquidityFee = _liquidityFee; marketingFee = _marketingFee; totalFee = liquidityFee + marketingFee; } event AutoLiquify(uint256 amountETH, uint256 amountBOG); }
WaifuAI ABI
Copied
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountBOG","type":"uint256"}],"name":"AutoLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"approveMax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearStuckBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IDEXRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_marketingFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountPercent","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
WaifuAI Bytecode
Copied
6080604052737a250d5630b4cf539739df2c5dacb4c659f2488d600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061dead600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506009600a620000ac919062000918565b620f4240620000bc919062000969565b60035560646002600354620000d2919062000969565b620000de9190620009e3565b60045560006009556004600a55600a54600954620000fd919062000a1b565b600b556064600c5573a7a61c4f1a9977de63e3a3449bb103111c408435600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600f60146101000a81548160ff02191690831515021790555060026103e8600354620001899190620009e3565b62000195919062000969565b601055348015620001a557600080fd5b5033806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002df919062000ac0565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000368573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200038e919062000ac0565b306040518363ffffffff1660e01b8152600401620003ae92919062000b03565b6020604051808303816000875af1158015620003ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003f4919062000ac0565b600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600660003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060016007600073a7a61c4f1a9977de63e3a3449bb103111c40843573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016008600073a7a61c4f1a9977de63e3a3449bb103111c40843573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600354600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6003546040516200076f919062000b41565b60405180910390a35062000b5e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b60018511156200080c57808604811115620007e457620007e36200077e565b5b6001851615620007f45780820291505b80810290506200080485620007ad565b9450620007c4565b94509492505050565b600082620008275760019050620008fa565b81620008375760009050620008fa565b81600181146200085057600281146200085b5762000891565b6001915050620008fa565b60ff84111562000870576200086f6200077e565b5b8360020a9150848211156200088a57620008896200077e565b5b50620008fa565b5060208310610133831016604e8410600b8410161715620008cb5782820a905083811115620008c557620008c46200077e565b5b620008fa565b620008da8484846001620007ba565b92509050818404811115620008f457620008f36200077e565b5b81810290505b9392505050565b6000819050919050565b600060ff82169050919050565b6000620009258262000901565b915062000932836200090b565b9250620009617fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000815565b905092915050565b6000620009768262000901565b9150620009838362000901565b9250828202620009938162000901565b91508282048414831517620009ad57620009ac6200077e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000620009f08262000901565b9150620009fd8362000901565b92508262000a105762000a0f620009b4565b5b828204905092915050565b600062000a288262000901565b915062000a358362000901565b925082820190508082111562000a505762000a4f6200077e565b5b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a888262000a5b565b9050919050565b62000a9a8162000a7b565b811462000aa657600080fd5b50565b60008151905062000aba8162000a8f565b92915050565b60006020828403121562000ad95762000ad862000a56565b5b600062000ae98482850162000aa9565b91505092915050565b62000afd8162000a7b565b82525050565b600060408201905062000b1a600083018562000af2565b62000b29602083018462000af2565b9392505050565b62000b3b8162000901565b82525050565b600060208201905062000b58600083018462000b30565b92915050565b6127138062000b6e6000396000f3fe60806040526004361061012e5760003560e01c80636c0a24eb116100ab57806395d89b411161006f57806395d89b41146103ef578063a8aa1b311461041a578063a9059cbb14610445578063dd62ed3e14610482578063f1d5f517146104bf578063f887ea40146104e857610135565b80636c0a24eb1461031a5780636ddd17131461034557806370a0823114610370578063715018a6146103ad578063893d20e8146103c457610135565b80632f54bf6e116100f25780632f54bf6e14610235578063313ce56714610272578063364333f41461029d57806352f7c988146102b4578063571ac8b0146102dd57610135565b80630445b6671461013a57806306fdde0314610165578063095ea7b31461019057806318160ddd146101cd57806323b872dd146101f857610135565b3661013557005b600080fd5b34801561014657600080fd5b5061014f610513565b60405161015c9190611c37565b60405180910390f35b34801561017157600080fd5b5061017a610519565b6040516101879190611ce2565b60405180910390f35b34801561019c57600080fd5b506101b760048036038101906101b29190611d93565b610556565b6040516101c49190611dee565b60405180910390f35b3480156101d957600080fd5b506101e2610648565b6040516101ef9190611c37565b60405180910390f35b34801561020457600080fd5b5061021f600480360381019061021a9190611e09565b610652565b60405161022c9190611dee565b60405180910390f35b34801561024157600080fd5b5061025c60048036038101906102579190611e5c565b610852565b6040516102699190611dee565b60405180910390f35b34801561027e57600080fd5b506102876108ab565b6040516102949190611ea5565b60405180910390f35b3480156102a957600080fd5b506102b26108b4565b005b3480156102c057600080fd5b506102db60048036038101906102d69190611ec0565b61091f565b005b3480156102e957600080fd5b5061030460048036038101906102ff9190611e5c565b61098f565b6040516103119190611dee565b60405180910390f35b34801561032657600080fd5b5061032f6109c2565b60405161033c9190611c37565b60405180910390f35b34801561035157600080fd5b5061035a6109c8565b6040516103679190611dee565b60405180910390f35b34801561037c57600080fd5b5061039760048036038101906103929190611e5c565b6109db565b6040516103a49190611c37565b60405180910390f35b3480156103b957600080fd5b506103c2610a24565b005b3480156103d057600080fd5b506103d9610ae7565b6040516103e69190611f0f565b60405180910390f35b3480156103fb57600080fd5b50610404610b10565b6040516104119190611ce2565b60405180910390f35b34801561042657600080fd5b5061042f610b4d565b60405161043c9190611f0f565b60405180910390f35b34801561045157600080fd5b5061046c60048036038101906104679190611d93565b610b73565b6040516104799190611dee565b60405180910390f35b34801561048e57600080fd5b506104a960048036038101906104a49190611f2a565b610b88565b6040516104b69190611c37565b60405180910390f35b3480156104cb57600080fd5b506104e660048036038101906104e19190611f6a565b610c0f565b005b3480156104f457600080fd5b506104fd610c7b565b60405161050a9190611ff6565b60405180910390f35b60105481565b60606040518060400160405280600881526020017f5741494655204149000000000000000000000000000000000000000000000000815250905090565b600081600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516106369190611c37565b60405180910390a36001905092915050565b6000600354905090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541461083e576107bd826040518060400160405280601681526020017f496e73756666696369656e7420416c6c6f77616e636500000000000000000000815250600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ca19092919063ffffffff16565b600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b610849848484610d05565b90509392505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b60006009905090565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561091c573d6000803e3d6000fd5b50565b61092833610852565b610967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095e9061205d565b60405180910390fd5b8160098190555080600a81905550600a5460095461098591906120ac565b600b819055505050565b60006109bb827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610556565b9050919050565b60045481565b600f60149054906101000a900460ff1681565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610a2d33610852565b610a6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a639061205d565b60405180910390fd5b60008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f04dba622d284ed0014ee4b9a6a68386be1a4c08a4913ae272de89199cc6861636000604051610add9190611f0f565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606040518060400160405280600581526020017f5741494655000000000000000000000000000000000000000000000000000000815250905090565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610b80338484610d05565b905092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c1833610852565b610c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4e9061205d565b60405180910390fd5b6103e881600354610c6891906120e0565b610c729190612151565b60048190555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000838311158290610ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce09190611ce2565b60405180910390fd5b5060008385610cf89190612182565b9050809150509392505050565b6000601160009054906101000a900460ff1615610d2e57610d278484846110ce565b90506110c7565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610dda5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15610ec357600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610e83575060045482600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e8091906120ac565b11155b610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990612228565b60405180910390fd5b5b610ecb6112a1565b15610ed957610ed8611378565b5b610f62826040518060400160405280601481526020017f496e73756666696369656e742042616c616e6365000000000000000000000000815250600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ca19092919063ffffffff16565b600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000610fb0856118b4565b610fba5782610fc5565b610fc4858461190b565b5b905061101981600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a4f90919063ffffffff16565b600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110b99190611c37565b60405180910390a360019150505b9392505050565b6000611159826040518060400160405280601481526020017f496e73756666696369656e742042616c616e6365000000000000000000000000815250600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ca19092919063ffffffff16565b600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111ee82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a4f90919063ffffffff16565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161128e9190611c37565b60405180910390a3600190509392505050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801561130e5750601160009054906101000a900460ff16155b80156113265750600f60149054906101000a900460ff165b80156113735750601054600560003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410155b905090565b6001601160006101000a81548160ff0219169083151502179055506000601054905060006113d860026113ca600b546113bc60095487611aad90919063ffffffff16565b611b2790919063ffffffff16565b611b2790919063ffffffff16565b905060006113ef8284611b7190919063ffffffff16565b90506000600267ffffffffffffffff81111561140e5761140d612248565b5b60405190808252806020026020018201604052801561143c5781602001602082028036833780820191505090505b509050308160008151811061145457611453612277565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151f91906122bb565b8160018151811061153357611532612277565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000479050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478460008530426040518663ffffffff1660e01b81526004016115d69594939291906123e1565b600060405180830381600087803b1580156115f057600080fd5b505af1158015611604573d6000803e3d6000fd5b50505050600061161d8247611b7190919063ffffffff16565b9050600061164b61163a6002600954611b2790919063ffffffff16565b600b54611b7190919063ffffffff16565b90506000611689600261167b8461166d60095488611aad90919063ffffffff16565b611b2790919063ffffffff16565b611b2790919063ffffffff16565b905060006116b4836116a6600a5487611aad90919063ffffffff16565b611b2790919063ffffffff16565b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682617530906040516117029061246c565b600060405180830381858888f193505050503d8060008114611740576040519150601f19603f3d011682016040523d82523d6000602084013e611745565b606091505b5050905080611789576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611780906124cd565b60405180910390fd5b600089111561188d57600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d71984308c60008073a7a61c4f1a9977de63e3a3449bb103111c408435426040518863ffffffff1660e01b815260040161180d969594939291906124ed565b60606040518083038185885af115801561182b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906118509190612563565b5050507f424db2872186fa7e7afa7a5e902ed3b49a2ef19c2f5431e672462495dd6b4506838a6040516118849291906125b6565b60405180910390a15b505050505050505050506000601160006101000a81548160ff021916908315150217905550565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16159050919050565b600080611937600c54611929600b5486611aad90919063ffffffff16565b611b2790919063ffffffff16565b905061198b81600560003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a4f90919063ffffffff16565b600560003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611a2b9190611c37565b60405180910390a3611a468184611b7190919063ffffffff16565b91505092915050565b6000808284611a5e91906120ac565b905083811015611aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9a9061262b565b60405180910390fd5b8091505092915050565b6000808303611abf5760009050611b21565b60008284611acd91906120e0565b9050828482611adc9190612151565b14611b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b13906126bd565b60405180910390fd5b809150505b92915050565b6000611b6983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611bbb565b905092915050565b6000611bb383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ca1565b905092915050565b60008083118290611c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf99190611ce2565b60405180910390fd5b5060008385611c119190612151565b9050809150509392505050565b6000819050919050565b611c3181611c1e565b82525050565b6000602082019050611c4c6000830184611c28565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611c8c578082015181840152602081019050611c71565b60008484015250505050565b6000601f19601f8301169050919050565b6000611cb482611c52565b611cbe8185611c5d565b9350611cce818560208601611c6e565b611cd781611c98565b840191505092915050565b60006020820190508181036000830152611cfc8184611ca9565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611d3482611d09565b9050919050565b611d4481611d29565b8114611d4f57600080fd5b50565b600081359050611d6181611d3b565b92915050565b611d7081611c1e565b8114611d7b57600080fd5b50565b600081359050611d8d81611d67565b92915050565b60008060408385031215611daa57611da9611d04565b5b6000611db885828601611d52565b9250506020611dc985828601611d7e565b9150509250929050565b60008115159050919050565b611de881611dd3565b82525050565b6000602082019050611e036000830184611ddf565b92915050565b600080600060608486031215611e2257611e21611d04565b5b6000611e3086828701611d52565b9350506020611e4186828701611d52565b9250506040611e5286828701611d7e565b9150509250925092565b600060208284031215611e7257611e71611d04565b5b6000611e8084828501611d52565b91505092915050565b600060ff82169050919050565b611e9f81611e89565b82525050565b6000602082019050611eba6000830184611e96565b92915050565b60008060408385031215611ed757611ed6611d04565b5b6000611ee585828601611d7e565b9250506020611ef685828601611d7e565b9150509250929050565b611f0981611d29565b82525050565b6000602082019050611f246000830184611f00565b92915050565b60008060408385031215611f4157611f40611d04565b5b6000611f4f85828601611d52565b9250506020611f6085828601611d52565b9150509250929050565b600060208284031215611f8057611f7f611d04565b5b6000611f8e84828501611d7e565b91505092915050565b6000819050919050565b6000611fbc611fb7611fb284611d09565b611f97565b611d09565b9050919050565b6000611fce82611fa1565b9050919050565b6000611fe082611fc3565b9050919050565b611ff081611fd5565b82525050565b600060208201905061200b6000830184611fe7565b92915050565b7f214f574e45520000000000000000000000000000000000000000000000000000600082015250565b6000612047600683611c5d565b915061205282612011565b602082019050919050565b600060208201905081810360008301526120768161203a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120b782611c1e565b91506120c283611c1e565b92508282019050808211156120da576120d961207d565b5b92915050565b60006120eb82611c1e565b91506120f683611c1e565b925082820261210481611c1e565b9150828204841483151761211b5761211a61207d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061215c82611c1e565b915061216783611c1e565b92508261217757612176612122565b5b828204905092915050565b600061218d82611c1e565b915061219883611c1e565b92508282039050818111156121b0576121af61207d565b5b92915050565b7f5472616e7366657220616d6f756e74206578636565647320746865206261672060008201527f73697a652e000000000000000000000000000000000000000000000000000000602082015250565b6000612212602583611c5d565b915061221d826121b6565b604082019050919050565b6000602082019050818103600083015261224181612205565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506122b581611d3b565b92915050565b6000602082840312156122d1576122d0611d04565b5b60006122df848285016122a6565b91505092915050565b6000819050919050565b600061230d612308612303846122e8565b611f97565b611c1e565b9050919050565b61231d816122f2565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61235881611d29565b82525050565b600061236a838361234f565b60208301905092915050565b6000602082019050919050565b600061238e82612323565b612398818561232e565b93506123a38361233f565b8060005b838110156123d45781516123bb888261235e565b97506123c683612376565b9250506001810190506123a7565b5085935050505092915050565b600060a0820190506123f66000830188611c28565b6124036020830187612314565b81810360408301526124158186612383565b90506124246060830185611f00565b6124316080830184611c28565b9695505050505050565b600081905092915050565b50565b600061245660008361243b565b915061246182612446565b600082019050919050565b600061247782612449565b9150819050919050565b7f72656365697665722072656a656374656420455448207472616e736665720000600082015250565b60006124b7601e83611c5d565b91506124c282612481565b602082019050919050565b600060208201905081810360008301526124e6816124aa565b9050919050565b600060c0820190506125026000830189611f00565b61250f6020830188611c28565b61251c6040830187612314565b6125296060830186612314565b6125366080830185611f00565b61254360a0830184611c28565b979650505050505050565b60008151905061255d81611d67565b92915050565b60008060006060848603121561257c5761257b611d04565b5b600061258a8682870161254e565b935050602061259b8682870161254e565b92505060406125ac8682870161254e565b9150509250925092565b60006040820190506125cb6000830185611c28565b6125d86020830184611c28565b9392505050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b6000612615601b83611c5d565b9150612620826125df565b602082019050919050565b6000602082019050818103600083015261264481612608565b9050919050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b60006126a7602183611c5d565b91506126b28261264b565b604082019050919050565b600060208201905081810360008301526126d68161269a565b905091905056fea26469706673582212205ed9d7dc487ecb91d7ccb0f7a15c9aed0aed9c6b8b8b20a3e97947eff19aa83864736f6c63430008120033
Smart Contracts contract page background

Checkout more smart contracts

    Ethereum  logo

    LidoExecutionLayerRewardsVault

    Verified

    The following smart contract is called LidoExecutionLayerRewardsVault. It is used to manage rewards for the Lido protocol. The contract allows Lido to withdraw rewards, recover ERC20 and ERC721 tokens, and receive ETH. The contract uses the SafeERC20 library to ensure safe transfers of ERC20 tokens. The purpose of this contract is to provide a secure and efficient way to manage rewards for the Lido protocol.

    0x388c818ca8b9251b393131c08a736a67ccb19297
    Copied
    • Lido
    • Proposer Fee Recipient
    • Router
    Ethereum  logo

    SHILAINU

    Verified

    The following smart contract is the SHILAINU token contract, which is an ERC20 token with a total supply of 1 trillion. It includes features such as transaction limits, fees, and automatic liquidity provision. The contract also has a blacklist mode and the ability to set fee and transaction exemptions for specific addresses. The purpose of the contract is to provide a decentralized currency for the Shiba Inu community.

    0x20c3fa331a385b63ee39137e99d0cf2db142fce1
    Copied
    • Verified
    • Fungible Token
    • ERC20
    Ethereum  logo

    LooksRareAirdrop

    Verified

    The following smart contract is a LooksRareAirdrop contract that allows users to claim airdrop rewards in the form of ERC20 tokens. Users must provide a valid merkle proof and meet certain requirements, including having a signed maker order and approval for the collection. The contract is pausable and has a maximum amount that can be claimed. The owner can set the merkle root, update the end timestamp, and withdraw token rewards.

    0xa35dce3e0e6ceb67a30b8d7f4aee721c949b5970
    Copied
    • Verified, Token
    • LooksRare
    • Fungible Token
    • ERC-20
Section background image

Build blockchain magic

Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.

Get your API key