Address Contract Partially Verified
Address
0x0A8f4C4F23D72857745e26695DCD8deDf8E349B9
Balance
0 ETH
Nonce
1
Code Size
20492 bytes
Creator
0x9B919Ff2...3da3 at tx 0x66fd136d...5ec6fe
Indexed Transactions
0
Contract Bytecode
20492 bytes
0x60806040526004361061024a5760003560e01c80638da5cb5b11610139578063cea74130116100b6578063e1c7392a1161007a578063e1c7392a146108a1578063e2f45605146108b8578063e37ba8f9146108e3578063f2fde38b1461090c578063f5648a4f14610935578063f8b45b051461094c57610251565b8063cea74130146107a6578063d257b34f146107d1578063d46980161461080e578063d85ba06314610839578063dd62ed3e1461086457610251565b8063bbc0c742116100fd578063bbc0c742146106d5578063c024666814610700578063c17b5b8c14610729578063c8c8ebe414610752578063cb9637281461077d57610251565b80638da5cb5b146105dc57806395d89b41146106075780639618839914610632578063a457c2d71461065b578063a9059cbb1461069857610251565b80634f2ddca1116101c757806370a082311161018b57806370a082311461051f578063715018a61461055c578063751039fc146105735780637571336a1461058a5780638095d564146105b357610251565b80634f2ddca1146104385780634fbee193146104615780636a486a8e1461049e5780636c81c229146104c95780636ddd1713146104f457610251565b806327c8f8351161020e57806327c8f83514610351578063313ce5671461037c57806339509351146103a757806342966c68146103e457806349bd5a5e1461040d57610251565b806306fdde0314610256578063095ea7b3146102815780631694505e146102be57806318160ddd146102e957806323b872dd1461031457610251565b3661025157005b600080fd5b34801561026257600080fd5b5061026b610977565b6040516102789190613862565b60405180910390f35b34801561028d57600080fd5b506102a860048036038101906102a3919061391d565b610a09565b6040516102b59190613978565b60405180910390f35b3480156102ca57600080fd5b506102d3610a2c565b6040516102e091906139f2565b60405180910390f35b3480156102f557600080fd5b506102fe610a50565b60405161030b9190613a1c565b60405180910390f35b34801561032057600080fd5b5061033b60048036038101906103369190613a37565b610a5a565b6040516103489190613978565b60405180910390f35b34801561035d57600080fd5b50610366610a89565b6040516103739190613a99565b60405180910390f35b34801561038857600080fd5b50610391610a8f565b60405161039e9190613ad0565b60405180910390f35b3480156103b357600080fd5b506103ce60048036038101906103c9919061391d565b610a98565b6040516103db9190613978565b60405180910390f35b3480156103f057600080fd5b5061040b60048036038101906104069190613aeb565b610acf565b005b34801561041957600080fd5b50610422610adc565b60405161042f9190613a99565b60405180910390f35b34801561044457600080fd5b5061045f600480360381019061045a9190613b18565b610b02565b005b34801561046d57600080fd5b5061048860048036038101906104839190613b58565b610db8565b6040516104959190613978565b60405180910390f35b3480156104aa57600080fd5b506104b3610e0e565b6040516104c09190613a1c565b60405180910390f35b3480156104d557600080fd5b506104de610e14565b6040516104eb9190613a99565b60405180910390f35b34801561050057600080fd5b50610509610e3a565b6040516105169190613978565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190613b58565b610e4d565b6040516105539190613a1c565b60405180910390f35b34801561056857600080fd5b50610571610e95565b005b34801561057f57600080fd5b50610588610ea9565b005b34801561059657600080fd5b506105b160048036038101906105ac9190613bb1565b610ecf565b005b3480156105bf57600080fd5b506105da60048036038101906105d59190613bf1565b610f32565b005b3480156105e857600080fd5b506105f1610fbd565b6040516105fe9190613a99565b60405180910390f35b34801561061357600080fd5b5061061c610fe7565b6040516106299190613862565b60405180910390f35b34801561063e57600080fd5b5061065960048036038101906106549190613c44565b611079565b005b34801561066757600080fd5b50610682600480360381019061067d919061391d565b611159565b60405161068f9190613978565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba919061391d565b6111d0565b6040516106cc9190613978565b60405180910390f35b3480156106e157600080fd5b506106ea6111f3565b6040516106f79190613978565b60405180910390f35b34801561070c57600080fd5b5061072760048036038101906107229190613bb1565b611206565b005b34801561073557600080fd5b50610750600480360381019061074b9190613bf1565b6112b7565b005b34801561075e57600080fd5b5061076761134b565b6040516107749190613a1c565b60405180910390f35b34801561078957600080fd5b506107a4600480360381019061079f9190613b58565b611351565b005b3480156107b257600080fd5b506107bb611543565b6040516107c89190613a99565b60405180910390f35b3480156107dd57600080fd5b506107f860048036038101906107f39190613aeb565b611569565b6040516108059190613978565b60405180910390f35b34801561081a57600080fd5b5061082361164a565b6040516108309190613a99565b60405180910390f35b34801561084557600080fd5b5061084e611670565b60405161085b9190613a1c565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190613b18565b611676565b6040516108989190613a1c565b60405180910390f35b3480156108ad57600080fd5b506108b66116fd565b005b3480156108c457600080fd5b506108cd611c0f565b6040516108da9190613a1c565b60405180910390f35b3480156108ef57600080fd5b5061090a60048036038101906109059190613b58565b611c15565b005b34801561091857600080fd5b50610933600480360381019061092e9190613b58565b611d75565b005b34801561094157600080fd5b5061094a611df9565b005b34801561095857600080fd5b50610961611e72565b60405161096e9190613a1c565b60405180910390f35b60606003805461098690613cb3565b80601f01602080910402602001604051908101604052809291908181526020018280546109b290613cb3565b80156109ff5780601f106109d4576101008083540402835291602001916109ff565b820191906000526020600020905b8154815290600101906020018083116109e257829003601f168201915b5050505050905090565b600080610a14611e78565b9050610a21818585611e80565b600191505092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b600080610a65611e78565b9050610a7285828561204b565b610a7d8585856120d7565b60019150509392505050565b61dead81565b60006012905090565b600080610aa3611e78565b9050610ac4818585610ab58589611676565b610abf9190613d14565b611e80565b600191505092915050565b610ad93382612b80565b50565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b0a612d4e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7190613ddc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be190613e6e565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ffaf1b77ed79f6e898c44dd8ab36b330c7b2fd39bcaab05ed6362480df870396560405160405180910390a38073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ffaf1b77ed79f6e898c44dd8ab36b330c7b2fd39bcaab05ed6362480df870396560405160405180910390a350505050565b6000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60125481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60019054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e9d612d4e565b610ea76000612dcc565b565b610eb1612d4e565b610eb9610a50565b600c81905550610ec7610a50565b600a81905550565b610ed7612d4e565b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610f3a612d4e565b82600f819055508160108190555080601181905550601154601054600f54610f629190613d14565b610f6c9190613d14565b600e81905550600f600e541115610fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faf90613f00565b60405180910390fd5b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610ff690613cb3565b80601f016020809104026020016040519081016040528092919081815260200182805461102290613cb3565b801561106f5780601f106110445761010080835404028352916020019161106f565b820191906000526020600020905b81548152906001019060200180831161105257829003601f168201915b5050505050905090565b611081612d4e565b6103e8600561108e610a50565b6110989190613f20565b6110a29190613fa9565b8210156110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db9061404c565b60405180910390fd5b6103e860056110f1610a50565b6110fb9190613f20565b6111059190613fa9565b811015611147576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113e906140de565b60405180910390fd5b80600c8190555081600a819055505050565b600080611164611e78565b905060006111728286611676565b9050838110156111b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ae90614170565b60405180910390fd5b6111c48286868403611e80565b60019250505092915050565b6000806111db611e78565b90506111e88185856120d7565b600191505092915050565b600d60009054906101000a900460ff1681565b61120e612d4e565b80601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516112ab9190613978565b60405180910390a25050565b6112bf612d4e565b8260138190555081601481905550806015819055506015546014546013546112e79190613d14565b6112f19190613d14565b601281905550601254601981905550600f6012541115611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90613f00565b60405180910390fd5b505050565b600a5481565b611359612d4e565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113949190613a99565b60206040518083038186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e491906141a5565b11611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b90614244565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161145f9190613a99565b60206040518083038186803b15801561147757600080fd5b505afa15801561148b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114af91906141a5565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114ec929190614264565b602060405180830381600087803b15801561150657600080fd5b505af115801561151a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153e91906142a2565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611573612d4e565b620186a06001611581610a50565b61158b9190613f20565b6115959190613fa9565b8210156115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce90614341565b60405180910390fd5b6103e860056115e4610a50565b6115ee9190613f20565b6115f89190613fa9565b82111561163a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611631906143d3565b60405180910390fd5b81600b8190555060019050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611705612d4e565b600d60009054906101000a900460ff1615611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c9061443f565b60405180910390fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156117bb57600080fd5b505afa1580156117cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f39190614474565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561187557600080fd5b505afa158015611889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ad9190614474565b6040518363ffffffff1660e01b81526004016118ca9291906144a1565b602060405180830381600087803b1580156118e457600080fd5b505af11580156118f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191c9190614474565b600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506119a930600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611e80565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611a46929190614264565b602060405180830381600087803b158015611a6057600080fd5b505af1158015611a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9891906142a2565b50611ac6600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001612e92565b611af3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001610ecf565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730611b3a30610e4d565b600080600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b8152600401611b8296959493929190614505565b6060604051808303818588803b158015611b9b57600080fd5b505af1158015611baf573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611bd49190614566565b5050506001600d60006101000a81548160ff0219169083151502179055506001600d60016101000a81548160ff021916908315150217905550565b600b5481565b611c1d612d4e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c849061462b565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f3e0ea4f8339b6050ff814971a9814aa39176c149fcf185975c219f33db2342db60405160405180910390a35050565b611d7d612d4e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ded576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de4906146bd565b60405180910390fd5b611df681612dcc565b50565b611e01612d4e565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611e279061470e565b60006040518083038185875af1925050503d8060008114611e64576040519150601f19603f3d011682016040523d82523d6000602084013e611e69565b606091505b50508091505050565b600c5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee790614795565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5790614827565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161203e9190613a1c565b60405180910390a3505050565b60006120578484611676565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146120d157818110156120c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ba90614893565b60405180910390fd5b6120d08484848403611e80565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612147576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213e90614925565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ae906149b7565b60405180910390fd5b60008114156121d1576121cc83836000612f33565b612b7b565b6121d9610fbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156122475750612217610fbd565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156122805750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156122ba575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156122d35750600660149054906101000a900460ff16155b156126b657600d60009054906101000a900460ff166123cd57601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061238d5750601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6123cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c390614a23565b60405180910390fd5b5b601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156124705750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561251757600a548111156124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190614ab5565b60405180910390fd5b600c546124c683610e4d565b826124d19190613d14565b1115612512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250990614b21565b60405180910390fd5b6126b5565b601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156125ba5750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561260957600a54811115612604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fb90614bb3565b60405180910390fd5b6126b4565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166126b357600c5461266683610e4d565b826126719190613d14565b11156126b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a990614b21565b60405180910390fd5b5b5b5b5b60006126c130610e4d565b90506000600b5482101590508080156126e65750600d60019054906101000a900460ff165b80156126ff5750600660149054906101000a900460ff16155b80156127555750601c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156127ab5750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156128015750601a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612845576001600660146101000a81548160ff0219169083151502179055506128296131ab565b6000600660146101000a81548160ff0219169083151502179055505b6000600660149054906101000a900460ff16159050601a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806128fb5750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561290557600090505b60008115612b6257601c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561296857506000601254115b15612a275760646012548661297d9190613f20565b6129879190613fa9565b90506012546015548261299a9190613f20565b6129a49190613fa9565b601860008282546129b59190613d14565b92505081905550601254601354826129cd9190613f20565b6129d79190613fa9565b601660008282546129e89190613d14565b9250508190555060125460145482612a009190613f20565b612a0a9190613fa9565b60176000828254612a1b9190613d14565b92505081905550612b3e565b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612a8257506000600e54115b15612b3d576064600e5486612a979190613f20565b612aa19190613fa9565b9050600e5460115482612ab49190613f20565b612abe9190613fa9565b60186000828254612acf9190613d14565b92505081905550600e54600f5482612ae79190613f20565b612af19190613fa9565b60166000828254612b029190613d14565b92505081905550600e5460105482612b1a9190613f20565b612b249190613fa9565b60176000828254612b359190613d14565b925050819055505b5b6000811115612b5357612b52873083612f33565b5b8085612b5f9190614bd3565b94505b612b6d878787612f33565b601954601281905550505050505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be790614c79565b60405180910390fd5b612bfc82600083613468565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7990614d0b565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d359190613a1c565b60405180910390a3612d498360008461346d565b505050565b612d56611e78565b73ffffffffffffffffffffffffffffffffffffffff16612d74610fbd565b73ffffffffffffffffffffffffffffffffffffffff1614612dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc190614d77565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f9a90614925565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300a906149b7565b60405180910390fd5b61301e838383613468565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156130a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309b90614e09565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131929190613a1c565b60405180910390a36131a584848461346d565b50505050565b60006131b630610e4d565b905060006017546016546018546131cd9190613d14565b6131d79190613d14565b90506000808314806131e95750600082145b156131f657505050613466565b6014600b546132059190613f20565b83111561321e576014600b5461321b9190613f20565b92505b6000600283601854866132319190613f20565b61323b9190613fa9565b6132459190613fa9565b9050600081856132559190614bd3565b9050600047905061326582613472565b600081476132739190614bd3565b9050600086601654836132869190613f20565b6132909190613fa9565b9050600087601754846132a39190613f20565b6132ad9190613fa9565b905060008183856132be9190614bd3565b6132c89190614bd3565b90506000601881905550600060168190555060006017819055506000871180156132f25750600081115b1561333f5761330187826136be565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561868260185460405161333693929190614e29565b60405180910390a15b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516133859061470e565b60006040518083038185875af1925050503d80600081146133c2576040519150601f19603f3d011682016040523d82523d6000602084013e6133c7565b606091505b505080985050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516134139061470e565b60006040518083038185875af1925050503d8060008114613450576040519150601f19603f3d011682016040523d82523d6000602084013e613455565b606091505b505080985050505050505050505050505b565b505050565b505050565b6000600267ffffffffffffffff81111561348f5761348e614e60565b5b6040519080825280602002602001820160405280156134bd5781602001602082028036833780820191505090505b50905030816000815181106134d5576134d4614e8f565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561357557600080fd5b505afa158015613589573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ad9190614474565b816001815181106135c1576135c0614e8f565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613626307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611e80565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613688959493929190614f7c565b600060405180830381600087803b1580156136a257600080fd5b505af11580156136b6573d6000803e3d6000fd5b505050505050565b6136e9307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611e80565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b815260040161377096959493929190614505565b6060604051808303818588803b15801561378957600080fd5b505af115801561379d573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906137c29190614566565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138035780820151818401526020810190506137e8565b83811115613812576000848401525b50505050565b6000601f19601f8301169050919050565b6000613834826137c9565b61383e81856137d4565b935061384e8185602086016137e5565b61385781613818565b840191505092915050565b6000602082019050818103600083015261387c8184613829565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138b482613889565b9050919050565b6138c4816138a9565b81146138cf57600080fd5b50565b6000813590506138e1816138bb565b92915050565b6000819050919050565b6138fa816138e7565b811461390557600080fd5b50565b600081359050613917816138f1565b92915050565b6000806040838503121561393457613933613884565b5b6000613942858286016138d2565b925050602061395385828601613908565b9150509250929050565b60008115159050919050565b6139728161395d565b82525050565b600060208201905061398d6000830184613969565b92915050565b6000819050919050565b60006139b86139b36139ae84613889565b613993565b613889565b9050919050565b60006139ca8261399d565b9050919050565b60006139dc826139bf565b9050919050565b6139ec816139d1565b82525050565b6000602082019050613a0760008301846139e3565b92915050565b613a16816138e7565b82525050565b6000602082019050613a316000830184613a0d565b92915050565b600080600060608486031215613a5057613a4f613884565b5b6000613a5e868287016138d2565b9350506020613a6f868287016138d2565b9250506040613a8086828701613908565b9150509250925092565b613a93816138a9565b82525050565b6000602082019050613aae6000830184613a8a565b92915050565b600060ff82169050919050565b613aca81613ab4565b82525050565b6000602082019050613ae56000830184613ac1565b92915050565b600060208284031215613b0157613b00613884565b5b6000613b0f84828501613908565b91505092915050565b60008060408385031215613b2f57613b2e613884565b5b6000613b3d858286016138d2565b9250506020613b4e858286016138d2565b9150509250929050565b600060208284031215613b6e57613b6d613884565b5b6000613b7c848285016138d2565b91505092915050565b613b8e8161395d565b8114613b9957600080fd5b50565b600081359050613bab81613b85565b92915050565b60008060408385031215613bc857613bc7613884565b5b6000613bd6858286016138d2565b9250506020613be785828601613b9c565b9150509250929050565b600080600060608486031215613c0a57613c09613884565b5b6000613c1886828701613908565b9350506020613c2986828701613908565b9250506040613c3a86828701613908565b9150509250925092565b60008060408385031215613c5b57613c5a613884565b5b6000613c6985828601613908565b9250506020613c7a85828601613908565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ccb57607f821691505b60208210811415613cdf57613cde613c84565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613d1f826138e7565b9150613d2a836138e7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d5f57613d5e613ce5565b5b828201905092915050565b7f45524332303a2043616e6e6f7420736574203120746f207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613dc66023836137d4565b9150613dd182613d6a565b604082019050919050565b60006020820190508181036000830152613df581613db9565b9050919050565b7f45524332303a2043616e6e6f7420736574203220746f207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613e586023836137d4565b9150613e6382613dfc565b604082019050919050565b60006020820190508181036000830152613e8781613e4b565b9050919050565b7f45524332303a204d757374206b656570206665657320617420313525206f722060008201527f6c65737300000000000000000000000000000000000000000000000000000000602082015250565b6000613eea6024836137d4565b9150613ef582613e8e565b604082019050919050565b60006020820190508181036000830152613f1981613edd565b9050919050565b6000613f2b826138e7565b9150613f36836138e7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f6f57613f6e613ce5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613fb4826138e7565b9150613fbf836138e7565b925082613fcf57613fce613f7a565b5b828204905092915050565b7f45524332303a2043616e6e6f7420736574206d617854786e206c6f776572207460008201527f68616e20302e3525000000000000000000000000000000000000000000000000602082015250565b60006140366028836137d4565b915061404182613fda565b604082019050919050565b6000602082019050818103600083015261406581614029565b9050919050565b7f45524332303a2043616e6e6f7420736574206d617857616c6c6574206c6f776560008201527f72207468616e20302e3525000000000000000000000000000000000000000000602082015250565b60006140c8602b836137d4565b91506140d38261406c565b604082019050919050565b600060208201905081810360008301526140f7816140bb565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061415a6025836137d4565b9150614165826140fe565b604082019050919050565b600060208201905081810360008301526141898161414d565b9050919050565b60008151905061419f816138f1565b92915050565b6000602082840312156141bb576141ba613884565b5b60006141c984828501614190565b91505092915050565b7f5468697320746f6b656e20646f6573206e6f7420657869737420696e2074686560008201527f20636f6e74726163740000000000000000000000000000000000000000000000602082015250565b600061422e6029836137d4565b9150614239826141d2565b604082019050919050565b6000602082019050818103600083015261425d81614221565b9050919050565b60006040820190506142796000830185613a8a565b6142866020830184613a0d565b9392505050565b60008151905061429c81613b85565b92915050565b6000602082840312156142b8576142b7613884565b5b60006142c68482850161428d565b91505092915050565b7f45524332303a205377617020616d6f756e742063616e6e6f74206265206c6f7760008201527f6572207468616e20302e3030312520746f74616c20737570706c792e00000000602082015250565b600061432b603c836137d4565b9150614336826142cf565b604082019050919050565b6000602082019050818103600083015261435a8161431e565b9050919050565b7f45524332303a205377617020616d6f756e742063616e6e6f742062652068696760008201527f686572207468616e20302e352520746f74616c20737570706c792e0000000000602082015250565b60006143bd603b836137d4565b91506143c882614361565b604082019050919050565b600060208201905081810360008301526143ec816143b0565b9050919050565b7f54726164696e6720616c7265616479206163746976652e000000000000000000600082015250565b60006144296017836137d4565b9150614434826143f3565b602082019050919050565b600060208201905081810360008301526144588161441c565b9050919050565b60008151905061446e816138bb565b92915050565b60006020828403121561448a57614489613884565b5b60006144988482850161445f565b91505092915050565b60006040820190506144b66000830185613a8a565b6144c36020830184613a8a565b9392505050565b6000819050919050565b60006144ef6144ea6144e5846144ca565b613993565b6138e7565b9050919050565b6144ff816144d4565b82525050565b600060c08201905061451a6000830189613a8a565b6145276020830188613a0d565b61453460408301876144f6565b61454160608301866144f6565b61454e6080830185613a8a565b61455b60a0830184613a0d565b979650505050505050565b60008060006060848603121561457f5761457e613884565b5b600061458d86828701614190565b935050602061459e86828701614190565b92505060406145af86828701614190565b9150509250925092565b7f45524332303a2043616e6e6f742073657420746f207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006146156021836137d4565b9150614620826145b9565b604082019050919050565b6000602082019050818103600083015261464481614608565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146a76026836137d4565b91506146b28261464b565b604082019050919050565b600060208201905081810360008301526146d68161469a565b9050919050565b600081905092915050565b50565b60006146f86000836146dd565b9150614703826146e8565b600082019050919050565b6000614719826146eb565b9150819050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061477f6024836137d4565b915061478a82614723565b604082019050919050565b600060208201905081810360008301526147ae81614772565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006148116022836137d4565b915061481c826147b5565b604082019050919050565b6000602082019050818103600083015261484081614804565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b600061487d601d836137d4565b915061488882614847565b602082019050919050565b600060208201905081810360008301526148ac81614870565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061490f6025836137d4565b915061491a826148b3565b604082019050919050565b6000602082019050818103600083015261493e81614902565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006149a16023836137d4565b91506149ac82614945565b604082019050919050565b600060208201905081810360008301526149d081614994565b9050919050565b7f45524332303a2054726164696e67206973206e6f74206163746976652e000000600082015250565b6000614a0d601d836137d4565b9150614a18826149d7565b602082019050919050565b60006020820190508181036000830152614a3c81614a00565b9050919050565b7f45524332303a20427579207472616e7366657220616d6f756e7420657863656560008201527f647320746865206d61785472616e73616374696f6e416d6f756e742e00000000602082015250565b6000614a9f603c836137d4565b9150614aaa82614a43565b604082019050919050565b60006020820190508181036000830152614ace81614a92565b9050919050565b7f45524332303a204d61782077616c6c6574206578636565646564000000000000600082015250565b6000614b0b601a836137d4565b9150614b1682614ad5565b602082019050919050565b60006020820190508181036000830152614b3a81614afe565b9050919050565b7f45524332303a2053656c6c207472616e7366657220616d6f756e74206578636560008201527f65647320746865206d61785472616e73616374696f6e416d6f756e742e000000602082015250565b6000614b9d603d836137d4565b9150614ba882614b41565b604082019050919050565b60006020820190508181036000830152614bcc81614b90565b9050919050565b6000614bde826138e7565b9150614be9836138e7565b925082821015614bfc57614bfb613ce5565b5b828203905092915050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c636021836137d4565b9150614c6e82614c07565b604082019050919050565b60006020820190508181036000830152614c9281614c56565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614cf56022836137d4565b9150614d0082614c99565b604082019050919050565b60006020820190508181036000830152614d2481614ce8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d616020836137d4565b9150614d6c82614d2b565b602082019050919050565b60006020820190508181036000830152614d9081614d54565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614df36026836137d4565b9150614dfe82614d97565b604082019050919050565b60006020820190508181036000830152614e2281614de6565b9050919050565b6000606082019050614e3e6000830186613a0d565b614e4b6020830185613a0d565b614e586040830184613a0d565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614ef3816138a9565b82525050565b6000614f058383614eea565b60208301905092915050565b6000602082019050919050565b6000614f2982614ebe565b614f338185614ec9565b9350614f3e83614eda565b8060005b83811015614f6f578151614f568882614ef9565b9750614f6183614f11565b925050600181019050614f42565b5085935050505092915050565b600060a082019050614f916000830188613a0d565b614f9e60208301876144f6565b8181036040830152614fb08186614f1e565b9050614fbf6060830185613a8a565b614fcc6080830184613a0d565b969550505050505056fea2646970667358221220856a9d4a995a2f6f2d9015ab3c8d9c1d91bd83f41c73655019a3dbb9838302c964736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
MarksmanToken.sol 1320 lines
/*
Marksman is a single-stop block-chain alpha aggregator and toolkit that
enables you to watch and track contracts as they hit the block-chain,
see their health and trust metrics, view live charts, and our AI scores
them based on these metrics.
Website: https://marksman.app/
Telegram: https://t.me/MarksmanPortal
Twitter: https://twitter.com/MarksmanTools
Gitbooks: https://marksman-app.gitbook.io/marksman/
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @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;
}
}
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
/**
* @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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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);
}
}
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
/**
* @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);
}
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
/**
* @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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* 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}.
*
* 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 default value returned by this function, unless
* it's 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, allowance(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 = allowance(owner, spender);
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* 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;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_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;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_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;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_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 Updates `owner` s allowance for `spender` based on spent `amount`.
*
* 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 {}
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
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(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(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 MarksmanToken is ERC20, Ownable {
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public devWallet1;
address public devWallet2;
address public liquidityWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 private buyDev1Fee;
uint256 private buyDev2Fee;
uint256 private buyLiquidityFee;
uint256 public sellTotalFees;
uint256 private sellDev1Fee;
uint256 private sellDev2Fee;
uint256 private sellLiquidityFee;
uint256 private tokensForDevelopment1;
uint256 private tokensForDevelopment2;
uint256 private tokensForLiquidity;
uint256 private previousFee;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event developmentWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event liquidityWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("Marksman AI", "MARKS") {
devWallet1 = address(msg.sender);
devWallet2 = 0x83ecE396edAAc188effA3554B0Fb7992F517b84D;
liquidityWallet = address(msg.sender);
uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
uint256 totalSupply = 1_000_000 ether;
maxTransactionAmount = (totalSupply * 10) / 1000; // 1.0%
maxWallet = (totalSupply * 20) / 1000; // 2.0%
swapTokensAtAmount = (totalSupply * 1) / 1000;
buyDev1Fee = 17;
buyDev2Fee = 18;
buyLiquidityFee = 0;
buyTotalFees = buyDev1Fee + buyDev2Fee + buyLiquidityFee;
sellDev1Fee = 17;
sellDev2Fee = 18;
sellLiquidityFee = 0;
sellTotalFees = sellDev1Fee + sellDev2Fee + sellLiquidityFee;
previousFee = sellTotalFees;
excludeFromFees(address(this), true);
excludeFromFees(deadAddress, true);
excludeFromFees(devWallet1, true);
excludeFromFees(devWallet2, true);
excludeFromFees(liquidityWallet, true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(deadAddress, true);
excludeFromMaxTransaction(address(uniswapV2Router), true);
excludeFromMaxTransaction(devWallet1, true);
excludeFromMaxTransaction(devWallet2, true);
excludeFromMaxTransaction(liquidityWallet, true);
_mint(address(this), (totalSupply * 16) / 100);
_mint(devWallet1, (totalSupply * 84) / 100);
}
receive() external payable {}
function burn(uint256 amount) external {
_burn(msg.sender, amount);
}
function init() external onlyOwner {
require(!tradingActive, "Trading already active.");
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_approve(address(this), address(uniswapV2Pair), type(uint256).max);
IERC20(uniswapV2Pair).approve(
address(uniswapV2Router),
type(uint256).max
);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
excludeFromMaxTransaction(address(uniswapV2Pair), true);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
devWallet1,
block.timestamp
);
tradingActive = true;
swapEnabled = true;
}
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) {
require(
newAmount >= (totalSupply() * 1) / 100000,
"ERC20: Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"ERC20: Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxWalletAndTxnAmount(
uint256 newTxnNum,
uint256 newMaxWalletNum
) external onlyOwner {
require(
newTxnNum >= ((totalSupply() * 5) / 1000),
"ERC20: Cannot set maxTxn lower than 0.5%"
);
require(
newMaxWalletNum >= ((totalSupply() * 5) / 1000),
"ERC20: Cannot set maxWallet lower than 0.5%"
);
maxWallet = newMaxWalletNum;
maxTransactionAmount = newTxnNum;
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function removeLimits() external onlyOwner {
maxWallet = totalSupply();
maxTransactionAmount = totalSupply();
}
function updateBuyFees(uint256 _buyDev1Fee, uint256 _buyDev2Fee, uint256 _buyLiquidityFee) external onlyOwner {
buyDev1Fee = _buyDev1Fee;
buyDev2Fee = _buyDev2Fee;
buyLiquidityFee = _buyLiquidityFee;
buyTotalFees = buyDev1Fee + buyDev2Fee + buyLiquidityFee;
require(buyTotalFees <= 15, "ERC20: Must keep fees at 15% or less");
}
function updateSellFees(uint256 _sellDev1Fee, uint256 _sellDev2Fee, uint256 _sellLiquidityFee) external onlyOwner {
sellDev1Fee = _sellDev1Fee;
sellDev2Fee = _sellDev2Fee;
sellLiquidityFee = _sellLiquidityFee;
sellTotalFees = sellDev1Fee + sellDev2Fee + sellLiquidityFee;
previousFee = sellTotalFees;
require(sellTotalFees <= 15, "ERC20: Must keep fees at 15% or less");
}
function updateDevelopmentWallets(address _developmentWallet1, address _developmentWallet2) external onlyOwner {
require(_developmentWallet1 != address(0), "ERC20: Cannot set 1 to zero address");
require(_developmentWallet2 != address(0), "ERC20: Cannot set 2 to zero address");
address oldWallet1 = devWallet1;
address oldWallet2 = devWallet2;
devWallet1 = _developmentWallet1;
devWallet2 = _developmentWallet2;
emit developmentWalletUpdated(devWallet1, oldWallet1);
emit developmentWalletUpdated(devWallet2, oldWallet2);
}
function updateLiquidityWallet(address _liquidityWallet) external onlyOwner {
require(_liquidityWallet != address(0), "ERC20: Cannot set to zero address");
address oldWallet = liquidityWallet;
liquidityWallet = _liquidityWallet;
emit liquidityWalletUpdated(liquidityWallet, oldWallet);
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function withdrawStuckETH() public onlyOwner {
bool success;
(success, ) = address(msg.sender).call{
value: address(this).balance
}("");
}
function withdrawStuckTokens(address tkn) public onlyOwner {
require(IERC20(tkn).balanceOf(address(this)) > 0, "This token does not exist in the contract");
uint256 amount = IERC20(tkn).balanceOf(address(this));
IERC20(tkn).transfer(msg.sender, amount);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != deadAddress &&
!swapping
) {
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"ERC20: Trading is not active."
);
}
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"ERC20: Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"ERC20: Max wallet exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransactionAmount,
"ERC20: Sell transfer amount exceeds the maxTransactionAmount."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"ERC20: Max wallet exceeded"
);
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount * sellTotalFees / 100;
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForDevelopment1 += (fees * sellDev1Fee) / sellTotalFees;
tokensForDevelopment2 += (fees * sellDev2Fee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees / 100;
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForDevelopment1 += (fees * buyDev1Fee) / buyTotalFees;
tokensForDevelopment2 += (fees * buyDev2Fee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
sellTotalFees = previousFee;
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
liquidityWallet,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForDevelopment1 + tokensForDevelopment2;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance - liquidityTokens;
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance - initialETHBalance;
uint256 ethForDevelopment1 = ethBalance * tokensForDevelopment1 / totalTokensToSwap;
uint256 ethForDevelopment2 = ethBalance * tokensForDevelopment2 / totalTokensToSwap;
uint256 ethForLiquidity = ethBalance - ethForDevelopment1 - ethForDevelopment2;
tokensForLiquidity = 0;
tokensForDevelopment1 = 0;
tokensForDevelopment2 = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success, ) = address(devWallet1).call{
value: ethForDevelopment1
}("");
(success, ) = address(devWallet2).call{
value: address(this).balance
}("");
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet1 0x6c81c229 → address
devWallet2 0xcea74130 → address
isExcludedFromFees 0x4fbee193 → bool
liquidityWallet 0xd4698016 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
init 0xe1c7392a
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _buyDev1Fee
uint256 _buyDev2Fee
uint256 _buyLiquidityFee
updateDevelopmentWallets 0x4f2ddca1
address _developmentWallet1
address _developmentWallet2
updateLiquidityWallet 0xe37ba8f9
address _liquidityWallet
updateMaxWalletAndTxnAmount 0x96188399
uint256 newTxnNum
uint256 newMaxWalletNum
updateSellFees 0xc17b5b8c
uint256 _sellDev1Fee
uint256 _sellDev2Fee
uint256 _sellLiquidityFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
withdrawStuckETH 0xf5648a4f
No parameters
withdrawStuckTokens 0xcb963728
address tkn
Recent Transactions
No transactions found for this address