Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x8F40F353AD38aE1ef7B653D608D5D670C5E6d672
Balance 0 ETH
Nonce 2
Code Size 19597 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19597 bytes
0x608060405234801561001057600080fd5b50600436106103af5760003560e01c80636c5b2855116101f4578063b9e937001161011a578063d0a39814116100ad578063ea1644d51161007c578063ea1644d514610ace578063ec28438a14610aea578063f2fde38b14610b06578063f8b45b0514610b22576103af565b8063d0a3981414610a44578063dd62ed3e14610a62578063e2f4560514610a92578063e7f444b314610ab0576103af565b8063c5e5d885116100e9578063c5e5d885146109ce578063c8c8ebe4146109ec578063c8f8d62c14610a0a578063ccb6135814610a26576103af565b8063b9e9370014610958578063bdc4d86314610976578063c2bd8f9b14610994578063c49b9a80146109b2576103af565b80638b27306d11610192578063a457c2d711610161578063a457c2d7146108be578063a9059cbb146108ee578063aacebbe31461091e578063ae2308781461093a576103af565b80638b27306d146108485780638c2c6909146108665780638da5cb5b1461088257806395d89b41146108a0576103af565b8063715018a6116101ce578063715018a6146107f85780637ae3ff47146108025780637e761377146108205780638a8c523c1461083e576103af565b80636c5b28551461078e5780636ddd1713146107aa57806370a08231146107c8576103af565b806323b872dd116102d957806349bd5a5e116102775780636402511e116102465780636402511e1461071c57806366650dae1461073857806367243482146107545780636807895214610770576103af565b806349bd5a5e146106a85780634b8ce602146106c6578063590ffdce146106e4578063611bfa3714610700576103af565b8063373bf3b1116102b3578063373bf3b11461060e57806337f2bc141461062a578063395093511461064857806343e968a314610678576103af565b806323b872dd146105a457806329988b04146105d4578063313ce567146105f0576103af565b8063121a6bcb1161035157806318160ddd1161032057806318160ddd1461051c5780631c3909e61461053a5780631cdd3be314610556578063234cee1e14610586576103af565b8063121a6bcb146104aa578063153b0d1e146104c65780631694505e146104e2578063178d9b8e14610500576103af565b8063095ea7b31161038d578063095ea7b31461040e578063099d0d301461043e5780630a702e8d1461045c57806310d5de531461047a576103af565b8063064a59d0146103b457806306fdde03146103d257806308003f78146103f0575b600080fd5b6103bc610b40565b6040516103c99190613b3b565b60405180910390f35b6103da610b53565b6040516103e79190613bef565b60405180910390f35b6103f8610be5565b6040516104059190613c2a565b60405180910390f35b61042860048036038101906104239190613ce3565b610beb565b6040516104359190613b3b565b60405180910390f35b610446610c0e565b6040516104539190613c2a565b60405180910390f35b610464610c14565b6040516104719190613c2a565b60405180910390f35b610494600480360381019061048f9190613d23565b610c1a565b6040516104a19190613b3b565b60405180910390f35b6104c460048036038101906104bf9190613d7c565b610c3a565b005b6104e060048036038101906104db9190613d7c565b610d11565b005b6104ea610de8565b6040516104f79190613e1b565b60405180910390f35b61051a60048036038101906105159190613e36565b610e0e565b005b610524610f16565b6040516105319190613c2a565b60405180910390f35b610554600480360381019061054f9190613d23565b610f20565b005b610570600480360381019061056b9190613d23565b61102c565b60405161057d9190613b3b565b60405180910390f35b61058e61104c565b60405161059b9190613ebe565b60405180910390f35b6105be60048036038101906105b99190613ed9565b611072565b6040516105cb9190613b3b565b60405180910390f35b6105ee60048036038101906105e99190613d23565b6110a1565b005b6105f8611363565b6040516106059190613f48565b60405180910390f35b610628600480360381019061062391906140ab565b61136c565b005b610632611483565b60405161063f9190613c2a565b60405180910390f35b610662600480360381019061065d9190613ce3565b611489565b60405161066f9190613b3b565b60405180910390f35b610692600480360381019061068d9190613d23565b611533565b60405161069f9190613b3b565b60405180910390f35b6106b0611553565b6040516106bd9190614103565b60405180910390f35b6106ce611577565b6040516106db9190613c2a565b60405180910390f35b6106fe60048036038101906106f99190613d7c565b61157d565b005b61071a600480360381019061071591906140ab565b611654565b005b6107366004803603810190610731919061411e565b61176b565b005b610752600480360381019061074d9190613d7c565b6117f1565b005b61076e6004803603810190610769919061420e565b6118c8565b005b6107786119ee565b6040516107859190613c2a565b60405180910390f35b6107a860048036038101906107a39190613e36565b6119f4565b005b6107b2611afc565b6040516107bf9190613b3b565b60405180910390f35b6107e260048036038101906107dd9190613d23565b611b0f565b6040516107ef9190613c2a565b60405180910390f35b610800611b57565b005b61080a611bdf565b6040516108179190613c2a565b60405180910390f35b610828611be5565b6040516108359190613c2a565b60405180910390f35b610846611beb565b005b610850611ccb565b60405161085d9190613c2a565b60405180910390f35b610880600480360381019061087b91906140ab565b611cd1565b005b61088a611de8565b6040516108979190614103565b60405180910390f35b6108a8611e12565b6040516108b59190613bef565b60405180910390f35b6108d860048036038101906108d39190613ce3565b611ea4565b6040516108e59190613b3b565b60405180910390f35b61090860048036038101906109039190613ce3565b611f8e565b6040516109159190613b3b565b60405180910390f35b61093860048036038101906109339190613d23565b611fb1565b005b6109426120bd565b60405161094f9190613c2a565b60405180910390f35b6109606120c3565b60405161096d9190613c2a565b60405180910390f35b61097e6120c9565b60405161098b9190613c2a565b60405180910390f35b61099c6120cf565b6040516109a99190613c2a565b60405180910390f35b6109cc60048036038101906109c79190614286565b6120d5565b005b6109d66121a5565b6040516109e39190613c2a565b60405180910390f35b6109f46121ab565b604051610a019190613c2a565b60405180910390f35b610a246004803603810190610a1f91906142b3565b6121b1565b005b610a2e612247565b604051610a3b9190613c2a565b60405180910390f35b610a4c61224d565b604051610a599190613c2a565b60405180910390f35b610a7c6004803603810190610a779190614306565b612253565b604051610a899190613c2a565b60405180910390f35b610a9a6122da565b604051610aa79190613c2a565b60405180910390f35b610ab86122e0565b604051610ac59190613c2a565b60405180910390f35b610ae86004803603810190610ae3919061411e565b6122e6565b005b610b046004803603810190610aff919061411e565b61236c565b005b610b206004803603810190610b1b9190613d23565b6123f2565b005b610b2a6124ea565b604051610b379190613c2a565b60405180910390f35b600c60169054906101000a900460ff1681565b606060038054610b6290614375565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8e90614375565b8015610bdb5780601f10610bb057610100808354040283529160200191610bdb565b820191906000526020600020905b815481529060010190602001808311610bbe57829003601f168201915b5050505050905090565b60175481565b600080610bf66124f0565b9050610c038185856124f8565b600191505092915050565b60135481565b60205481565b60076020528060005260406000206000915054906101000a900460ff1681565b610c426124f0565b73ffffffffffffffffffffffffffffffffffffffff16610c60611de8565b73ffffffffffffffffffffffffffffffffffffffff1614610cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cad906143f3565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610d196124f0565b73ffffffffffffffffffffffffffffffffffffffff16610d37611de8565b73ffffffffffffffffffffffffffffffffffffffff1614610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d84906143f3565b60405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e166124f0565b73ffffffffffffffffffffffffffffffffffffffff16610e34611de8565b73ffffffffffffffffffffffffffffffffffffffff1614610e8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e81906143f3565b60405180910390fd5b600081838587610e9a9190614442565b610ea49190614442565b610eae9190614442565b90506109c4811115610eec576040517fc52a9bd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84600d8190555083600e8190555082600f8190555081601081905550806011819055505050505050565b6000600254905090565b610f286124f0565b73ffffffffffffffffffffffffffffffffffffffff16610f46611de8565b73ffffffffffffffffffffffffffffffffffffffff1614610f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f93906143f3565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631c3909e6826040518263ffffffff1660e01b8152600401610ff79190614103565b600060405180830381600087803b15801561101157600080fd5b505af1158015611025573d6000803e3d6000fd5b5050505050565b60096020528060005260406000206000915054906101000a900460ff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008061107d6124f0565b905061108a8582856126c3565b61109585858561274f565b60019150509392505050565b6110a96124f0565b73ffffffffffffffffffffffffffffffffffffffff166110c7611de8565b73ffffffffffffffffffffffffffffffffffffffff161461111d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611114906143f3565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111a5576040517fc52a9bd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008190503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561120757600080fd5b505afa15801561121b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123f91906144ad565b73ffffffffffffffffffffffffffffffffffffffff161461128c576040517fc52a9bd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112978160016117f1565b6112a281600161157d565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc6a663dfd3d64dce542f49c3119b9e2ded1311d56c163cc6da28cd0e72d9c24960405160405180910390a35050565b60006012905090565b6113746124f0565b73ffffffffffffffffffffffffffffffffffffffff16611392611de8565b73ffffffffffffffffffffffffffffffffffffffff16146113e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113df906143f3565b60405180910390fd5b60008151905060005b8181101561147e57600160066000858481518110611412576114116144da565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061147690614509565b9150506113f1565b505050565b60195481565b6000806114946124f0565b9050611528818585600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115239190614442565b6124f8565b600191505092915050565b60086020528060005260406000206000915054906101000a900460ff1681565b7f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c81565b60185481565b6115856124f0565b73ffffffffffffffffffffffffffffffffffffffff166115a3611de8565b73ffffffffffffffffffffffffffffffffffffffff16146115f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f0906143f3565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61165c6124f0565b73ffffffffffffffffffffffffffffffffffffffff1661167a611de8565b73ffffffffffffffffffffffffffffffffffffffff16146116d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c7906143f3565b60405180910390fd5b60008151905060005b81811015611766576001600960008584815181106116fa576116f96144da565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061175e90614509565b9150506116d9565b505050565b6117736124f0565b73ffffffffffffffffffffffffffffffffffffffff16611791611de8565b73ffffffffffffffffffffffffffffffffffffffff16146117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de906143f3565b60405180910390fd5b80601c8190555050565b6117f96124f0565b73ffffffffffffffffffffffffffffffffffffffff16611817611de8565b73ffffffffffffffffffffffffffffffffffffffff161461186d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611864906143f3565b60405180910390fd5b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6118d06124f0565b73ffffffffffffffffffffffffffffffffffffffff166118ee611de8565b73ffffffffffffffffffffffffffffffffffffffff1614611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193b906143f3565b60405180910390fd5b60008251905081518114611984576040517fc52a9bd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156119e8576119d561199a6124f0565b8583815181106119ad576119ac6144da565b5b60200260200101518584815181106119c8576119c76144da565b5b60200260200101516135f8565b80806119e090614509565b915050611987565b50505050565b60105481565b6119fc6124f0565b73ffffffffffffffffffffffffffffffffffffffff16611a1a611de8565b73ffffffffffffffffffffffffffffffffffffffff1614611a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a67906143f3565b60405180910390fd5b600081838587611a809190614442565b611a8a9190614442565b611a949190614442565b90506109c4811115611ad2576040517fc52a9bd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84601281905550836013819055508260148190555081601581905550806016819055505050505050565b600c60159054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611b5f6124f0565b73ffffffffffffffffffffffffffffffffffffffff16611b7d611de8565b73ffffffffffffffffffffffffffffffffffffffff1614611bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bca906143f3565b60405180910390fd5b611bdd6000613879565b565b600d5481565b60125481565b611bf36124f0565b73ffffffffffffffffffffffffffffffffffffffff16611c11611de8565b73ffffffffffffffffffffffffffffffffffffffff1614611c67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5e906143f3565b60405180910390fd5b600c60169054906101000a900460ff1615611cae576040517fc52a9bd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c60166101000a81548160ff021916908315150217905550565b601a5481565b611cd96124f0565b73ffffffffffffffffffffffffffffffffffffffff16611cf7611de8565b73ffffffffffffffffffffffffffffffffffffffff1614611d4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d44906143f3565b60405180910390fd5b60008151905060005b81811015611de357600160076000858481518110611d7757611d766144da565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611ddb90614509565b915050611d56565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611e2190614375565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4d90614375565b8015611e9a5780601f10611e6f57610100808354040283529160200191611e9a565b820191906000526020600020905b815481529060010190602001808311611e7d57829003601f168201915b5050505050905090565b600080611eaf6124f0565b90506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6c906145c4565b60405180910390fd5b611f8282868684036124f8565b60019250505092915050565b600080611f996124f0565b9050611fa681858561274f565b600191505092915050565b611fb96124f0565b73ffffffffffffffffffffffffffffffffffffffff16611fd7611de8565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612024906143f3565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aacebbe3826040518263ffffffff1660e01b81526004016120889190614103565b600060405180830381600087803b1580156120a257600080fd5b505af11580156120b6573d6000803e3d6000fd5b5050505050565b601f5481565b60115481565b600f5481565b601e5481565b6120dd6124f0565b73ffffffffffffffffffffffffffffffffffffffff166120fb611de8565b73ffffffffffffffffffffffffffffffffffffffff1614612151576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612148906143f3565b60405180910390fd5b80600c60156101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1598160405161219a9190613b3b565b60405180910390a150565b60145481565b601b5481565b6121b96124f0565b73ffffffffffffffffffffffffffffffffffffffff166121d7611de8565b73ffffffffffffffffffffffffffffffffffffffff161461222d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612224906143f3565b60405180910390fd5b82601e8190555081601f8190555080602081905550505050565b600e5481565b60165481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b601c5481565b60155481565b6122ee6124f0565b73ffffffffffffffffffffffffffffffffffffffff1661230c611de8565b73ffffffffffffffffffffffffffffffffffffffff1614612362576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612359906143f3565b60405180910390fd5b80601d8190555050565b6123746124f0565b73ffffffffffffffffffffffffffffffffffffffff16612392611de8565b73ffffffffffffffffffffffffffffffffffffffff16146123e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123df906143f3565b60405180910390fd5b80601b8190555050565b6123fa6124f0565b73ffffffffffffffffffffffffffffffffffffffff16612418611de8565b73ffffffffffffffffffffffffffffffffffffffff161461246e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612465906143f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156124de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d590614656565b60405180910390fd5b6124e781613879565b50565b601d5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255f906146e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf9061477a565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516126b69190613c2a565b60405180910390a3505050565b60006126cf8484612253565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612749578181101561273b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612732906147e6565b60405180910390fd5b61274884848484036124f8565b5b50505050565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806127f05750600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156128345782826040517f709ac01700000000000000000000000000000000000000000000000000000000815260040161282b929190614806565b60405180910390fd5b600081141561284e57612849838360006135f8565b6135f3565b612856611de8565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156128c45750612894611de8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128fd5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612937575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156129505750600c60149054906101000a900460ff16155b15612f0a57600c60169054906101000a900460ff1661299b576040517f12f1f92300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600a60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a4857601e5481612a419190614442565b9050612b6d565b7f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ab157601f5481612aaa9190614442565b9050612b6c565b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16158015612b555750600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612b6b5760205481612b689190614442565b90505b5b5b43811115612bb45743816040517f4a24f3d2000000000000000000000000000000000000000000000000000000008152600401612bab92919061482f565b60405180910390fd5b43600a60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148015612c9d5750600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612d5657601b54821115612ced5781601b546040517f22a8406a000000000000000000000000000000000000000000000000000000008152600401612ce492919061482f565b60405180910390fd5b6000612cf884611b0f565b83612d039190614442565b9050601d54811115612d505780601d546040517f2194bdde000000000000000000000000000000000000000000000000000000008152600401612d4792919061482f565b60405180910390fd5b50612f08565b7f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148015612dfb5750600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612e5057601b54821115612e4b5781601b546040517f22a8406a000000000000000000000000000000000000000000000000000000008152600401612e4292919061482f565b60405180910390fd5b612f07565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612f06576000612eac84611b0f565b83612eb79190614442565b9050601d54811115612f045780601d546040517f2194bdde000000000000000000000000000000000000000000000000000000008152600401612efb92919061482f565b60405180910390fd5b505b5b5b505b6000601c54612f3a600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b0f565b10159050808015612f585750600c60149054906101000a900460ff16155b8015612f705750600c60159054906101000a900460ff165b8015612fc857507f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b801561301e5750600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156130745750600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561320e576001600c60146101000a81548160ff0219169083151502179055506000601a546019546018546130a99190614442565b6130b39190614442565b9050600081601854601c546130c89190614858565b6130d291906148e1565b9050600082601954601c546130e79190614858565b6130f191906148e1565b9050600083601a54601c546131069190614858565b61311091906148e1565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394adc0d08484846040518463ffffffff1660e01b815260040161317193929190614912565b600060405180830381600087803b15801561318b57600080fd5b505af115801561319f573d6000803e3d6000fd5b5050505082601860008282546131b59190614949565b9250508190555080601a60008282546131ce9190614949565b9250508190555081601960008282546131e79190614949565b925050819055506000600c60146101000a81548160ff021916908315150217905550505050505b600c60149054906101000a900460ff161580156132755750600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156132cb5750600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156135e65760007f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480156133305750600060165414155b1561342357612710601654846133469190614858565b61335091906148e1565b9050601654601254826133639190614858565b61336d91906148e1565b6017600082825461337e9190614442565b92505081905550601654601354826133969190614858565b6133a091906148e1565b601860008282546133b19190614442565b92505081905550601654601454826133c99190614858565b6133d391906148e1565b601960008282546133e49190614442565b92505081905550601654601554826133fc9190614858565b61340691906148e1565b601a60008282546134179190614442565b92505081905550613571565b7f000000000000000000000000b3baddf5e7fcbee82bde7af36180c0696436bb2c73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480156134815750600060115414155b1561357057612710601154846134979190614858565b6134a191906148e1565b9050601154600d54826134b49190614858565b6134be91906148e1565b601760008282546134cf9190614442565b92505081905550601154600e54826134e79190614858565b6134f191906148e1565b601860008282546135029190614442565b92505081905550601154600f548261351a9190614858565b61352491906148e1565b601960008282546135359190614442565b925050819055506011546010548261354d9190614858565b61355791906148e1565b601a60008282546135689190614442565b925050819055505b5b60008111156135e45780836135869190614949565b92506135b585600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836135f8565b6135e3600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660175461393f565b5b505b6135f18484846135f8565b505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365f906149ef565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136cf90614a81565b60405180910390fd5b6136e3838383613b16565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376090614b13565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546137fc9190614442565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516138609190613c2a565b60405180910390a3613873848484613b1b565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a690614ba5565b60405180910390fd5b6139bb82600083613b16565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3890614c37565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254613a989190614949565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613afd9190613c2a565b60405180910390a3613b1183600084613b1b565b505050565b505050565b505050565b60008115159050919050565b613b3581613b20565b82525050565b6000602082019050613b506000830184613b2c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b90578082015181840152602081019050613b75565b83811115613b9f576000848401525b50505050565b6000601f19601f8301169050919050565b6000613bc182613b56565b613bcb8185613b61565b9350613bdb818560208601613b72565b613be481613ba5565b840191505092915050565b60006020820190508181036000830152613c098184613bb6565b905092915050565b6000819050919050565b613c2481613c11565b82525050565b6000602082019050613c3f6000830184613c1b565b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c8482613c59565b9050919050565b613c9481613c79565b8114613c9f57600080fd5b50565b600081359050613cb181613c8b565b92915050565b613cc081613c11565b8114613ccb57600080fd5b50565b600081359050613cdd81613cb7565b92915050565b60008060408385031215613cfa57613cf9613c4f565b5b6000613d0885828601613ca2565b9250506020613d1985828601613cce565b9150509250929050565b600060208284031215613d3957613d38613c4f565b5b6000613d4784828501613ca2565b91505092915050565b613d5981613b20565b8114613d6457600080fd5b50565b600081359050613d7681613d50565b92915050565b60008060408385031215613d9357613d92613c4f565b5b6000613da185828601613ca2565b9250506020613db285828601613d67565b9150509250929050565b6000819050919050565b6000613de1613ddc613dd784613c59565b613dbc565b613c59565b9050919050565b6000613df382613dc6565b9050919050565b6000613e0582613de8565b9050919050565b613e1581613dfa565b82525050565b6000602082019050613e306000830184613e0c565b92915050565b60008060008060808587031215613e5057613e4f613c4f565b5b6000613e5e87828801613cce565b9450506020613e6f87828801613cce565b9350506040613e8087828801613cce565b9250506060613e9187828801613cce565b91505092959194509250565b6000613ea882613de8565b9050919050565b613eb881613e9d565b82525050565b6000602082019050613ed36000830184613eaf565b92915050565b600080600060608486031215613ef257613ef1613c4f565b5b6000613f0086828701613ca2565b9350506020613f1186828701613ca2565b9250506040613f2286828701613cce565b9150509250925092565b600060ff82169050919050565b613f4281613f2c565b82525050565b6000602082019050613f5d6000830184613f39565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fa082613ba5565b810181811067ffffffffffffffff82111715613fbf57613fbe613f68565b5b80604052505050565b6000613fd2613c45565b9050613fde8282613f97565b919050565b600067ffffffffffffffff821115613ffe57613ffd613f68565b5b602082029050602081019050919050565b600080fd5b600061402761402284613fe3565b613fc8565b9050808382526020820190506020840283018581111561404a5761404961400f565b5b835b81811015614073578061405f8882613ca2565b84526020840193505060208101905061404c565b5050509392505050565b600082601f83011261409257614091613f63565b5b81356140a2848260208601614014565b91505092915050565b6000602082840312156140c1576140c0613c4f565b5b600082013567ffffffffffffffff8111156140df576140de613c54565b5b6140eb8482850161407d565b91505092915050565b6140fd81613c79565b82525050565b600060208201905061411860008301846140f4565b92915050565b60006020828403121561413457614133613c4f565b5b600061414284828501613cce565b91505092915050565b600067ffffffffffffffff82111561416657614165613f68565b5b602082029050602081019050919050565b600061418a6141858461414b565b613fc8565b905080838252602082019050602084028301858111156141ad576141ac61400f565b5b835b818110156141d657806141c28882613cce565b8452602084019350506020810190506141af565b5050509392505050565b600082601f8301126141f5576141f4613f63565b5b8135614205848260208601614177565b91505092915050565b6000806040838503121561422557614224613c4f565b5b600083013567ffffffffffffffff81111561424357614242613c54565b5b61424f8582860161407d565b925050602083013567ffffffffffffffff8111156142705761426f613c54565b5b61427c858286016141e0565b9150509250929050565b60006020828403121561429c5761429b613c4f565b5b60006142aa84828501613d67565b91505092915050565b6000806000606084860312156142cc576142cb613c4f565b5b60006142da86828701613cce565b93505060206142eb86828701613cce565b92505060406142fc86828701613cce565b9150509250925092565b6000806040838503121561431d5761431c613c4f565b5b600061432b85828601613ca2565b925050602061433c85828601613ca2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061438d57607f821691505b602082108114156143a1576143a0614346565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143dd602083613b61565b91506143e8826143a7565b602082019050919050565b6000602082019050818103600083015261440c816143d0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061444d82613c11565b915061445883613c11565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561448d5761448c614413565b5b828201905092915050565b6000815190506144a781613c8b565b92915050565b6000602082840312156144c3576144c2613c4f565b5b60006144d184828501614498565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061451482613c11565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561454757614546614413565b5b600182019050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006145ae602583613b61565b91506145b982614552565b604082019050919050565b600060208201905081810360008301526145dd816145a1565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614640602683613b61565b915061464b826145e4565b604082019050919050565b6000602082019050818103600083015261466f81614633565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006146d2602483613b61565b91506146dd82614676565b604082019050919050565b60006020820190508181036000830152614701816146c5565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614764602283613b61565b915061476f82614708565b604082019050919050565b6000602082019050818103600083015261479381614757565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006147d0601d83613b61565b91506147db8261479a565b602082019050919050565b600060208201905081810360008301526147ff816147c3565b9050919050565b600060408201905061481b60008301856140f4565b61482860208301846140f4565b9392505050565b60006040820190506148446000830185613c1b565b6148516020830184613c1b565b9392505050565b600061486382613c11565b915061486e83613c11565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148a7576148a6614413565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148ec82613c11565b91506148f783613c11565b925082614907576149066148b2565b5b828204905092915050565b60006060820190506149276000830186613c1b565b6149346020830185613c1b565b6149416040830184613c1b565b949350505050565b600061495482613c11565b915061495f83613c11565b92508282101561497257614971614413565b5b828203905092915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006149d9602583613b61565b91506149e48261497d565b604082019050919050565b60006020820190508181036000830152614a08816149cc565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614a6b602383613b61565b9150614a7682614a0f565b604082019050919050565b60006020820190508181036000830152614a9a81614a5e565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614afd602683613b61565b9150614b0882614aa1565b604082019050919050565b60006020820190508181036000830152614b2c81614af0565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b8f602183613b61565b9150614b9a82614b33565b604082019050919050565b60006020820190508181036000830152614bbe81614b82565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c21602283613b61565b9150614c2c82614bc5565b604082019050919050565b60006020820190508181036000830152614c5081614c14565b905091905056fea26469706673582212200a58562ed952d10445f1473dba3d36ef7ccb75d00f3aefb8d6655fb810559c4764736f6c63430008090033

Verified Source Code Partial Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: No
BullRunV2.sol 1191 lines
// SPDX-License-Identifier: Unlicensed

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol

pragma solidity >=0.6.2;

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

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol

pragma solidity >=0.6.2;


interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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/issues/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);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        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);
    }

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: BRLv2.sol



pragma solidity ^0.8.9;





contract BullRunFeeHandler is Ownable {

    IUniswapV2Router02 public immutable uniswapV2Router;
    IERC20 public usdc;
    IERC20 public brlToken;

    address public marketingWallet;
    address public opsWallet;

    uint256 residualTokens;

    event SwapAndLiquify(uint256 tokensSwapped,uint256 ethReceived,uint256 tokensIntoLiqudity);

    constructor(address _brlToken, address _marketingWallet, address _opsWallet) {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

        uniswapV2Router = _uniswapV2Router;

        brlToken = IERC20(_brlToken);
        marketingWallet = _marketingWallet;
        opsWallet = _opsWallet;

        usdc = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
        IERC20(usdc).approve(address(_uniswapV2Router), type(uint256).max);

    }

    function processFees(uint256 liquidityTokens, uint256 opsTokens, uint256 marketingTokens) external onlyOwner {

        liquidityTokens += residualTokens;
        uint256 half = liquidityTokens / 2;
        uint256 otherHalf = liquidityTokens - half;

        uint256 total = half + opsTokens + marketingTokens;

        IERC20(brlToken).approve(address(uniswapV2Router), total + otherHalf);

        address[] memory path = new address[](2);
        path[0] = address(brlToken);
        path[1] = address(usdc);

        // make the swap
        uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            total,
            0, // accept any amount of USDC
            path,
            address(this),
            block.timestamp
        );

        uint256 usdcBalance = IERC20(usdc).balanceOf(address(this));
        uint256 liquidity = usdcBalance * half / total;
        uint256 marketing = usdcBalance * marketingTokens / total;
        uint256 ops = usdcBalance - liquidity - marketing;

        (uint256 amountA,,) = uniswapV2Router.addLiquidity(
            address(brlToken),
            address(usdc),
            otherHalf,
            liquidity,
            0,
            0,
            address(0xdead),
            block.timestamp
        );
        residualTokens += (otherHalf - amountA);

        emit SwapAndLiquify(half, liquidity, otherHalf);

        usdc.transfer(marketingWallet, marketing);
        usdc.transfer(opsWallet, ops);

    }

    function updateMarketingWallet(address newWallet) external onlyOwner {
        marketingWallet = newWallet;
    }

    function updateOpsWallet(address newWallet) external onlyOwner {
        opsWallet = newWallet;
    }

}

error InvalidTransfer(address from, address to);
error TransferDelayEnabled(uint256 currentBlock, uint256 enabledBlock);
error ExceedsMaxTxAmount(uint256 attempt, uint256 max);
error ExceedsMaxWalletAmount(uint256 attempt, uint256 max);
error InvalidConfiguration();
error TradingNotEnabled();

contract BullRunV2 is ERC20, Ownable {

    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;
    mapping (address => bool) public _isExcludedFromDelay;
    mapping (address => bool) public _isBlacklisted;
    mapping (address => uint256) private _holderLastTxBlock;

    IUniswapV2Router02 public uniswapV2Router;
    address public immutable uniswapV2Pair;

    BullRunFeeHandler public brlFeeHandler;

    bool private swapping;
    bool public swapEnabled = true;
    bool public isTradingEnabled;

    uint256 public burnBuyFee = 100;
    uint256 public liquidityBuyFee = 400;
    uint256 public opsBuyFee = 300;
    uint256 public marketingBuyFee = 200;
    uint256 public totalBuyFees = 1000;

    uint256 public burnSellFee = 100;
    uint256 public liquiditySellFee = 500;
    uint256 public opsSellFee = 300;
    uint256 public marketingSellFee = 300;
    uint256 public totalSellFees = 1200;

    uint256 public burnTokens;
    uint256 public liquidityTokens;
    uint256 public opsTokens;
    uint256 public marketingTokens;

    uint256 public maxTransactionAmount = 5000 * 10**18; //0.5% of total supply
    uint256 public swapTokensAtAmount = 500 * 10**18; //0.05% of total supply
    uint256 public maxWallet = 10000 * 10**18; //1% of total supply

    uint256 public buyDelay = 2;
    uint256 public sellDelay = 5;
    uint256 public transferDelay = 1;

    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event UpdateFeeHandler(address indexed newAddress, address indexed oldAddress);

    constructor(address _marketingWallet, address _opsWallet) ERC20("BullRunV2", "BRLV2") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

        uniswapV2Router = _uniswapV2Router;

        address usdc = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), usdc);

        brlFeeHandler = new BullRunFeeHandler(address(this), _marketingWallet, _opsWallet);

        _isBlacklisted[address(0)] = true;

        _isExcludedFromFees[owner()] = true;
        _isExcludedFromFees[address(this)] = true;
        _isExcludedFromFees[address(brlFeeHandler)] = true;
        _isExcludedFromFees[address(0xdead)] = true;

        _isExcludedMaxTransactionAmount[owner()] = true;
        _isExcludedMaxTransactionAmount[address(this)] = true;
        _isExcludedMaxTransactionAmount[address(brlFeeHandler)] = true;
        _isExcludedMaxTransactionAmount[address(0xdead)] = true;

        _isExcludedMaxTransactionAmount[address(_uniswapV2Router)] = true;
        _isExcludedMaxTransactionAmount[address(uniswapV2Pair)] = true;

        _mint(owner(), 10**6 * 10**18);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        if (_isBlacklisted[from] || _isBlacklisted[to]) {
            revert InvalidTransfer(from, to);
        }

        if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (
            from != owner() &&
            to != owner() &&
            to != address(0) &&
            to != address(0xdead) &&
            !swapping
        ){

            if (!isTradingEnabled) {
               revert TradingNotEnabled();
            }

            uint256 delayedUntil = _holderLastTxBlock[tx.origin];
            if (from == uniswapV2Pair) {
                delayedUntil += buyDelay;
            } else if (to == uniswapV2Pair) {
                delayedUntil += sellDelay;
            } else if (!_isExcludedFromDelay[from] && !_isExcludedFromDelay[to]) {
                delayedUntil += transferDelay;
            }

            if (delayedUntil > block.number) {
                revert TransferDelayEnabled(block.number, delayedUntil);
            }
            _holderLastTxBlock[tx.origin] = block.number;

            if (from == uniswapV2Pair && !_isExcludedMaxTransactionAmount[to]) { //buys
                if (amount > maxTransactionAmount) {
                    revert ExceedsMaxTxAmount(amount, maxTransactionAmount);
                }
                uint256 potentialBalance = amount + balanceOf(to);
                if (potentialBalance > maxWallet) {
                    revert ExceedsMaxWalletAmount(potentialBalance, maxWallet);
                }

            } else if (to == uniswapV2Pair && !_isExcludedMaxTransactionAmount[from]) { //sells
                if (amount > maxTransactionAmount) {
                    revert ExceedsMaxTxAmount(amount, maxTransactionAmount);
                }
            } else if(!_isExcludedMaxTransactionAmount[to]){
                uint256 potentialBalance = amount + balanceOf(to);
                if (potentialBalance > maxWallet) {
                    revert ExceedsMaxWalletAmount(potentialBalance, maxWallet);
                }
            }
        }

		    bool canSwap = balanceOf(address(brlFeeHandler)) >= swapTokensAtAmount;

        if (
            canSwap &&
            !swapping &&
            swapEnabled &&
            from != uniswapV2Pair &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;

            uint256 total = liquidityTokens + opsTokens + marketingTokens;
            uint256 liqToSwap = swapTokensAtAmount * liquidityTokens / total;
            uint256 opsToSwap = swapTokensAtAmount * opsTokens / total;
            uint256 marToSwap = swapTokensAtAmount * marketingTokens / total;

            brlFeeHandler.processFees(liqToSwap, opsToSwap, marToSwap);

            liquidityTokens -= liqToSwap;
            marketingTokens -= marToSwap;
            opsTokens -= opsToSwap;

            swapping = false;
        }

        if(!swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            uint256 fees;
            if (to == uniswapV2Pair && totalSellFees != 0) { //sell
                fees = amount * totalSellFees / 10000;
                burnTokens += fees * burnSellFee / totalSellFees;
                liquidityTokens += fees * liquiditySellFee / totalSellFees;
                opsTokens += fees * opsSellFee / totalSellFees;
                marketingTokens += fees * marketingSellFee / totalSellFees;
            } else if (from == uniswapV2Pair && totalBuyFees != 0) { //buy
                fees = amount * totalBuyFees / 10000;
                burnTokens += fees * burnBuyFee / totalBuyFees;
                liquidityTokens += fees * liquidityBuyFee / totalBuyFees;
                opsTokens += fees * opsBuyFee / totalBuyFees;
                marketingTokens += fees * marketingBuyFee / totalBuyFees;
            }
            if (fees > 0) {
                amount -= fees;
                super._transfer(from, address(brlFeeHandler), fees);
                super._burn(address(brlFeeHandler), burnTokens);
            }

        }

        super._transfer(from, to, amount);

    }

    function setBlacklist(address account, bool value) external onlyOwner {
        _isBlacklisted[account] = value;
    }

    function blacklistMany(address[] memory accounts) external onlyOwner {
        uint256 len = accounts.length;
        for (uint256 i = 0; i < len; i++) {
            _isBlacklisted[accounts[i]] = true;
        }
    }

    function updateDelayBlocks(uint256 _buy, uint256 _sell, uint256 _tx) external onlyOwner {
        buyDelay = _buy;
        sellDelay = _sell;
        transferDelay = _tx;
    }

    function setExcludedFromMaxTransaction(address account, bool value) public onlyOwner {
        _isExcludedMaxTransactionAmount[account] = value;
    }

    function excludeManyFromMaxTransaction(address[] memory accounts) public onlyOwner {
        uint256 len = accounts.length;
        for (uint256 i = 0; i < len; i++) {
            _isExcludedMaxTransactionAmount[accounts[i]] = true;
        }
    }

    function setExcludedFromFees(address account, bool value) public onlyOwner {
        _isExcludedFromFees[account] = value;
    }

    function excludeManyFromFees(address[] memory accounts) public onlyOwner {
        uint256 len = accounts.length;
        for (uint256 i = 0; i < len; i++) {
            _isExcludedFromFees[accounts[i]] = true;
        }
    }

    function setExcludedFromDelay(address account, bool value) public onlyOwner {
        _isExcludedFromDelay[account] = value;
    }

    function setSellFees(uint256 burn, uint256 liquidity, uint256 ops, uint256 marketing) external onlyOwner {
        uint256 total = burn + liquidity + ops + marketing;
        if (total > 2500) {
            revert InvalidConfiguration();
        }
        burnSellFee = burn;
        liquiditySellFee = liquidity;
        opsSellFee = ops;
        marketingSellFee = marketing;
        totalSellFees = total;
    }

    function setBuyFees(uint256 burn, uint256 liquidity, uint256 ops, uint256 marketing) external onlyOwner {
        uint256 total = burn + liquidity + ops + marketing;
        if (total > 2500) {
            revert InvalidConfiguration();
        }
        burnBuyFee = burn;
        liquidityBuyFee = liquidity;
        opsBuyFee = ops;
        marketingBuyFee = marketing;
        totalBuyFees = total;
    }

    function airdrop(address[] memory _user, uint256[] memory _amount) external onlyOwner {
        uint256 len = _user.length;
        if (len != _amount.length) {
            revert InvalidConfiguration();
        }
        for (uint256 i = 0; i < len; i++) {
            super._transfer(_msgSender(), _user[i], _amount[i]);
        }
    }

    function setSwapAtAmount(uint256 amount) external onlyOwner {
        swapTokensAtAmount = amount;
    }

    function setMaxTxAmount(uint256 _maxTxAmt) external onlyOwner() {
        maxTransactionAmount = _maxTxAmt;
    }

    function setMaxWalletSize(uint256 _maxWalletSize) external onlyOwner() {
        maxWallet = _maxWalletSize;
    }

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

    function updateMarketingWallet(address newWallet) external onlyOwner {
        brlFeeHandler.updateMarketingWallet(newWallet);
    }

    function updateOpsWallet(address newWallet) external onlyOwner {
        brlFeeHandler.updateOpsWallet(newWallet);
    }

    function enableTrading() external onlyOwner {
        if (isTradingEnabled) {
            revert InvalidConfiguration();
        }
        isTradingEnabled = true;
    }

    function updateFeeHandler(address newAddress) public onlyOwner {
        if (newAddress == address(brlFeeHandler)) {
            revert InvalidConfiguration();
        }

        BullRunFeeHandler newFeeHandler = BullRunFeeHandler(newAddress);

        if (newFeeHandler.owner() != address(this)) {
            revert InvalidConfiguration();
        }

        setExcludedFromMaxTransaction(address(newFeeHandler), true);
        setExcludedFromFees(address(newFeeHandler), true);

        brlFeeHandler = newFeeHandler;

        emit UpdateFeeHandler(newAddress, address(brlFeeHandler));
    }

}

Read Contract

_isBlacklisted 0x1cdd3be3 → bool
_isExcludedFromDelay 0x43e968a3 → bool
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
brlFeeHandler 0x234cee1e → address
burnBuyFee 0x7ae3ff47 → uint256
burnSellFee 0x7e761377 → uint256
burnTokens 0x08003f78 → uint256
buyDelay 0xc2bd8f9b → uint256
decimals 0x313ce567 → uint8
isTradingEnabled 0x064a59d0 → bool
liquidityBuyFee 0xccb61358 → uint256
liquiditySellFee 0x099d0d30 → uint256
liquidityTokens 0x4b8ce602 → uint256
marketingBuyFee 0x68078952 → uint256
marketingSellFee 0xe7f444b3 → uint256
marketingTokens 0x8b27306d → uint256
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
opsBuyFee 0xbdc4d863 → uint256
opsSellFee 0xc5e5d885 → uint256
opsTokens 0x37f2bc14 → uint256
owner 0x8da5cb5b → address
sellDelay 0xae230878 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalBuyFees 0xb9e93700 → uint256
totalSellFees 0xd0a39814 → uint256
totalSupply 0x18160ddd → uint256
transferDelay 0x0a702e8d → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 26 functions

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

airdrop 0x67243482
address[] _user
uint256[] _amount
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistMany 0x611bfa37
address[] accounts
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeManyFromFees 0x373bf3b1
address[] accounts
excludeManyFromMaxTransaction 0x8c2c6909
address[] accounts
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setBlacklist 0x153b0d1e
address account
bool value
setBuyFees 0x178d9b8e
uint256 burn
uint256 liquidity
uint256 ops
uint256 marketing
setExcludedFromDelay 0x121a6bcb
address account
bool value
setExcludedFromFees 0x590ffdce
address account
bool value
setExcludedFromMaxTransaction 0x66650dae
address account
bool value
setMaxTxAmount 0xec28438a
uint256 _maxTxAmt
setMaxWalletSize 0xea1644d5
uint256 _maxWalletSize
setSellFees 0x6c5b2855
uint256 burn
uint256 liquidity
uint256 ops
uint256 marketing
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setSwapAtAmount 0x6402511e
uint256 amount
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateDelayBlocks 0xc8f8d62c
uint256 _buy
uint256 _sell
uint256 _tx
updateFeeHandler 0x29988b04
address newAddress
updateMarketingWallet 0xaacebbe3
address newWallet
updateOpsWallet 0x1c3909e6
address newWallet

Recent Transactions

No transactions found for this address