Address Contract Verified
Address
0x108ce14704263c9e2db314E03929D5cf044756D3
Balance
0 ETH
Nonce
1
Code Size
21066 bytes
Creator
0x913dc0f7...eF4E at tx 0xb2918fea...ff393e
Indexed Transactions
0
Contract Bytecode
21066 bytes
0x6080604052600436106102135760003560e01c80635342acb41161011857806395d89b41116100a0578063a9059cbb1161006f578063a9059cbb146107d2578063bc063e1a1461080f578063dd62ed3e1461083a578063ea2f0b3714610877578063f2fde38b146108a05761021a565b806395d89b411461071657806397c44288146107415780639eb942e51461076a578063a457c2d7146107955761021a565b8063796431d0116100e7578063796431d01461063157806388f820201461065a5780638c97ca76146106975780638da5cb5b146106c25780638ee88c53146106ed5761021a565b80635342acb4146105755780636bc87c3a146105b257806370a08231146105dd578063715018a61461061a5761021a565b80633685d4191161019b578063437823ec1161016a578063437823ec146104905780634549b039146104b957806349bd5a5e146104f65780634a74bb021461052157806352390c021461054c5761021a565b80633685d419146103d657806339509351146103ff5780633b124fe71461043c5780633bd5d173146104675761021a565b80631694505e116101e25780631694505e146102db57806318160ddd1461030657806323b872dd146103315780632d8381191461036e578063313ce567146103ab5761021a565b8063061c82d01461021f57806306fdde0314610248578063095ea7b31461027357806313114a9d146102b05761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b50610246600480360381019061024191906141a2565b6108c9565b005b34801561025457600080fd5b5061025d6109be565b60405161026a919061425f565b60405180910390f35b34801561027f57600080fd5b5061029a600480360381019061029591906142df565b610a50565b6040516102a7919061433a565b60405180910390f35b3480156102bc57600080fd5b506102c5610a6e565b6040516102d29190614364565b60405180910390f35b3480156102e757600080fd5b506102f0610a78565b6040516102fd91906143de565b60405180910390f35b34801561031257600080fd5b5061031b610a9e565b6040516103289190614364565b60405180910390f35b34801561033d57600080fd5b50610358600480360381019061035391906143f9565b610aa8565b604051610365919061433a565b60405180910390f35b34801561037a57600080fd5b50610395600480360381019061039091906141a2565b610b81565b6040516103a29190614364565b60405180910390f35b3480156103b757600080fd5b506103c0610bef565b6040516103cd9190614468565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f89190614483565b610c06565b005b34801561040b57600080fd5b50610426600480360381019061042191906142df565b610f3b565b604051610433919061433a565b60405180910390f35b34801561044857600080fd5b50610451610fee565b60405161045e9190614364565b60405180910390f35b34801561047357600080fd5b5061048e600480360381019061048991906141a2565b610ff4565b005b34801561049c57600080fd5b506104b760048036038101906104b29190614483565b611170565b005b3480156104c557600080fd5b506104e060048036038101906104db91906144dc565b6112d4565b6040516104ed9190614364565b60405180910390f35b34801561050257600080fd5b5061050b61135a565b604051610518919061452b565b60405180910390f35b34801561052d57600080fd5b50610536611380565b604051610543919061433a565b60405180910390f35b34801561055857600080fd5b50610573600480360381019061056e9190614483565b611391565b005b34801561058157600080fd5b5061059c60048036038101906105979190614483565b61162c565b6040516105a9919061433a565b60405180910390f35b3480156105be57600080fd5b506105c7611682565b6040516105d49190614364565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190614483565b611688565b6040516106119190614364565b60405180910390f35b34801561062657600080fd5b5061062f611773565b005b34801561063d57600080fd5b50610658600480360381019061065391906141a2565b6117fb565b005b34801561066657600080fd5b50610681600480360381019061067c9190614483565b611929565b60405161068e919061433a565b60405180910390f35b3480156106a357600080fd5b506106ac61197f565b6040516106b9919061452b565b60405180910390f35b3480156106ce57600080fd5b506106d76119a5565b6040516106e4919061452b565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f91906141a2565b6119ce565b005b34801561072257600080fd5b5061072b611ac3565b604051610738919061425f565b60405180910390f35b34801561074d57600080fd5b50610768600480360381019061076391906141a2565b611b55565b005b34801561077657600080fd5b5061077f611c4a565b60405161078c9190614364565b60405180910390f35b3480156107a157600080fd5b506107bc60048036038101906107b791906142df565b611c50565b6040516107c9919061433a565b60405180910390f35b3480156107de57600080fd5b506107f960048036038101906107f491906142df565b611d1d565b604051610806919061433a565b60405180910390f35b34801561081b57600080fd5b50610824611d3b565b6040516108319190614364565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190614546565b611d41565b60405161086e9190614364565b60405180910390f35b34801561088357600080fd5b5061089e60048036038101906108999190614483565b611dc8565b005b3480156108ac57600080fd5b506108c760048036038101906108c29190614483565b611f2b565b005b6108d1612022565b73ffffffffffffffffffffffffffffffffffffffff166108ef6119a5565b73ffffffffffffffffffffffffffffffffffffffff1614610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c906145d2565b60405180910390fd5b80600d819055506109c461097a60115461096c600f54600d5461202a90919063ffffffff16565b61202a90919063ffffffff16565b11156109bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b29061463e565b60405180910390fd5b50565b6060600a80546109cd9061468d565b80601f01602080910402602001604051908101604052809291908181526020018280546109f99061468d565b8015610a465780601f10610a1b57610100808354040283529160200191610a46565b820191906000526020600020905b815481529060010190602001808311610a2957829003601f168201915b5050505050905090565b6000610a64610a5d612022565b8484612040565b6001905092915050565b6000600954905090565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600754905090565b6000610ab5848484612209565b610b7684610ac1612022565b610b71856040518060600160405280602881526020016151c860289139600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b27612022565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124a49092919063ffffffff16565b612040565b600190509392505050565b6000600854821115610bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbf90614730565b60405180910390fd5b6000610bd26124f9565b9050610be7818461252490919063ffffffff16565b915050919050565b6000600c60009054906101000a900460ff16905090565b610c0e612022565b73ffffffffffffffffffffffffffffffffffffffff16610c2c6119a5565b73ffffffffffffffffffffffffffffffffffffffff1614610c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c79906145d2565b60405180910390fd5b600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d059061479c565b60405180910390fd5b60005b600680549050811015610f37578173ffffffffffffffffffffffffffffffffffffffff1660068281548110610d4957610d486147bc565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610f245760066001600680549050610da3919061481a565b81548110610db457610db36147bc565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660068281548110610df357610df26147bc565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506006805480610eea57610ee961484e565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055610f37565b8080610f2f9061487d565b915050610d11565b5050565b6000610fe4610f48612022565b84610fdf8560036000610f59612022565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b612040565b6001905092915050565b600d5481565b6000610ffe612022565b9050600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614937565b60405180910390fd5b60006110988361253a565b50505050505090506110f281600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061114a816008546125a290919063ffffffff16565b6008819055506111658360095461202a90919063ffffffff16565b600981905550505050565b611178612022565b73ffffffffffffffffffffffffffffffffffffffff166111966119a5565b73ffffffffffffffffffffffffffffffffffffffff16146111ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e3906145d2565b60405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611279576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611270906149a3565b60405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600060075483111561131b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131290614a0f565b60405180910390fd5b8161133c57600061132b8461253a565b505050505050905080915050611354565b60006113478461253a565b5050505050915050809150505b92915050565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60158054906101000a900460ff1681565b611399612022565b73ffffffffffffffffffffffffffffffffffffffff166113b76119a5565b73ffffffffffffffffffffffffffffffffffffffff161461140d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611404906145d2565b60405180910390fd5b600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561149a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114919061479c565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561156e5761152a600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610b81565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506006819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600f5481565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561172357600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905061176e565b61176b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610b81565b90505b919050565b61177b612022565b73ffffffffffffffffffffffffffffffffffffffff166117996119a5565b73ffffffffffffffffffffffffffffffffffffffff16146117ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e6906145d2565b60405180910390fd5b6117f960006125b8565b565b611803612022565b73ffffffffffffffffffffffffffffffffffffffff166118216119a5565b73ffffffffffffffffffffffffffffffffffffffff1614611877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186e906145d2565b60405180910390fd5b6118a6612710611898600561188a610a9e565b61267c90919063ffffffff16565b61252490919063ffffffff16565b8110156118e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118df90614aa1565b60405180910390fd5b806016819055507ff7edd1a72d399eb95c56c07c5a26f00a9096735269c96c75caa8fc4e15bcd5d28160405161191e9190614364565b60405180910390a150565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119d6612022565b73ffffffffffffffffffffffffffffffffffffffff166119f46119a5565b73ffffffffffffffffffffffffffffffffffffffff1614611a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a41906145d2565b60405180910390fd5b80600f819055506109c4611a7f601154611a71600f54600d5461202a90919063ffffffff16565b61202a90919063ffffffff16565b1115611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab79061463e565b60405180910390fd5b50565b6060600b8054611ad29061468d565b80601f0160208091040260200160405190810160405280929190818152602001828054611afe9061468d565b8015611b4b5780601f10611b2057610100808354040283529160200191611b4b565b820191906000526020600020905b815481529060010190602001808311611b2e57829003601f168201915b5050505050905090565b611b5d612022565b73ffffffffffffffffffffffffffffffffffffffff16611b7b6119a5565b73ffffffffffffffffffffffffffffffffffffffff1614611bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc8906145d2565b60405180910390fd5b806011819055506109c4611c06601154611bf8600f54600d5461202a90919063ffffffff16565b61202a90919063ffffffff16565b1115611c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3e9061463e565b60405180910390fd5b50565b60115481565b6000611d13611c5d612022565b84611d0e856040518060600160405280602581526020016151f06025913960036000611c87612022565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124a49092919063ffffffff16565b612040565b6001905092915050565b6000611d31611d2a612022565b8484612209565b6001905092915050565b6109c481565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611dd0612022565b73ffffffffffffffffffffffffffffffffffffffff16611dee6119a5565b73ffffffffffffffffffffffffffffffffffffffff1614611e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3b906145d2565b60405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec7906149a3565b60405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611f33612022565b73ffffffffffffffffffffffffffffffffffffffff16611f516119a5565b73ffffffffffffffffffffffffffffffffffffffff1614611fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9e906145d2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200d90614b33565b60405180910390fd5b61201f816125b8565b50565b600033905090565b600081836120389190614b53565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a690614bf9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361211e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211590614c8b565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516121fc9190614364565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226f90614d1d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036122e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122de90614daf565b60405180910390fd5b6000811161232a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232190614e41565b60405180910390fd5b600061233530611688565b90506000601654821015905080801561235b5750601560149054906101000a900460ff16155b80156123b55750601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b80156123cb575060158054906101000a900460ff165b156123df5760165491506123de82612692565b5b600060019050600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806124865750600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561249057600090505b61249c86868684612768565b505050505050565b60008383111582906124ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e3919061425f565b60405180910390fd5b5082840390509392505050565b6000806000612506612a79565b9150915061251d818361252490919063ffffffff16565b9250505090565b600081836125329190614e90565b905092915050565b60008060008060008060008060008060006125548c612d2c565b935093509350935060008060006125758f8787876125706124f9565b612dab565b925092509250828282898989899d509d509d509d509d509d509d5050505050505050919395979092949650565b600081836125b0919061481a565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000818361268a9190614ec1565b905092915050565b6001601560146101000a81548160ff02191690831515021790555060006126c360028361252490919063ffffffff16565b905060006126da82846125a290919063ffffffff16565b905060004790506126ea83612e5f565b60006126ff82476125a290919063ffffffff16565b905061270b83826130a2565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56184828560405161273e93929190614f03565b60405180910390a1505050506000601560146101000a81548160ff02191690831515021790555050565b80612776576127756131a2565b5b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156128195750600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561282e576128298484846131d7565b612a65565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156128d15750600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156128e6576128e1848484613445565b612a64565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615801561298a5750600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561299f5761299a8484846136b3565b612a63565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612a415750600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612a5657612a5184848461388c565b612a62565b612a618484846136b3565b5b5b5b5b80612a7357612a72613b8f565b5b50505050565b600080600060085490506000600754905060005b600680549050811015612cef57826001600060068481548110612ab357612ab26147bc565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541180612ba15750816002600060068481548110612b3957612b386147bc565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15612bb85760085460075494509450505050612d28565b612c486001600060068481548110612bd357612bd26147bc565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054846125a290919063ffffffff16565b9250612cda6002600060068481548110612c6557612c646147bc565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836125a290919063ffffffff16565b91508080612ce79061487d565b915050612a8d565b50612d0760075460085461252490919063ffffffff16565b821015612d1f57600854600754935093505050612d28565b81819350935050505b9091565b6000806000806000612d3d86613bac565b90506000612d4a87613bde565b90506000612d5788613c10565b90506000612d9282612d8485612d76888e6125a290919063ffffffff16565b6125a290919063ffffffff16565b6125a290919063ffffffff16565b9050808484849750975097509750505050509193509193565b600080600080612dc4858a61267c90919063ffffffff16565b90506000612ddb868a61267c90919063ffffffff16565b90506000612df2878a61267c90919063ffffffff16565b90506000612e09888a61267c90919063ffffffff16565b90506000612e4482612e3685612e28888a6125a290919063ffffffff16565b6125a290919063ffffffff16565b6125a290919063ffffffff16565b90508481859750975097505050505050955095509592505050565b6000600267ffffffffffffffff811115612e7c57612e7b614f3a565b5b604051908082528060200260200182016040528015612eaa5781602001602082028036833780820191505090505b5090503081600081518110612ec257612ec16147bc565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8d9190614f7e565b81600181518110612fa157612fa06147bc565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061300830601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612040565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b815260040161306c9594939291906150a4565b600060405180830381600087803b15801561308657600080fd5b505af115801561309a573d6000803e3d6000fd5b505050505050565b6130cf30601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612040565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b8152600401613158969594939291906150fe565b60606040518083038185885af1158015613176573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061319b9190615174565b5050505050565b600d54600e81905550600f546010819055506011546012819055506000600d819055506000600f819055506000601181905550565b60008060008060008060006131eb8861253a565b965096509650965096509650965061324b88600260008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506132e087600160008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061337586600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506133c182613ca1565b6133ca81613e46565b6133d4858461412d565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040516134319190614364565b60405180910390a350505050505050505050565b60008060008060008060006134598861253a565b96509650965096509650965096506134b987600160008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061354e84600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506135e386600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061362f82613ca1565b61363881613e46565b613642858461412d565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161369f9190614364565b60405180910390a350505050505050505050565b60008060008060008060006136c78861253a565b965096509650965096509650965061372787600160008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506137bc86600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061380882613ca1565b61381181613e46565b61381b858461412d565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040516138789190614364565b60405180910390a350505050505050505050565b60008060008060008060006138a08861253a565b965096509650965096509650965061390088600260008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061399587600160008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546125a290919063ffffffff16565b600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613a2a84600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613abf86600160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613b0b82613ca1565b613b1481613e46565b613b1e858461412d565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051613b7b9190614364565b60405180910390a350505050505050505050565b600e54600d81905550601054600f81905550601254601181905550565b6000613bd7612710613bc9600d548561267c90919063ffffffff16565b61252490919063ffffffff16565b9050919050565b6000613c09612710613bfb600f548561267c90919063ffffffff16565b61252490919063ffffffff16565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603613c705760009050613c9c565b613c99612710613c8b6011548561267c90919063ffffffff16565b61252490919063ffffffff16565b90505b919050565b6000613cab6124f9565b90506000613cc2828461267c90919063ffffffff16565b9050613d1681600160003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600160003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600560003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615613e4157613dfd83600260003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b600260003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505050565b600081111561412a576000613e596124f9565b90506000613e70828461267c90919063ffffffff16565b9050613ee68160016000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b60016000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060056000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615614099576140338360026000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461202a90919063ffffffff16565b60026000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166140da612022565b73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161411f9190614364565b60405180910390a350505b50565b614142826008546125a290919063ffffffff16565b60088190555061415d8160095461202a90919063ffffffff16565b6009819055505050565b600080fd5b6000819050919050565b61417f8161416c565b811461418a57600080fd5b50565b60008135905061419c81614176565b92915050565b6000602082840312156141b8576141b7614167565b5b60006141c68482850161418d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156142095780820151818401526020810190506141ee565b60008484015250505050565b6000601f19601f8301169050919050565b6000614231826141cf565b61423b81856141da565b935061424b8185602086016141eb565b61425481614215565b840191505092915050565b600060208201905081810360008301526142798184614226565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006142ac82614281565b9050919050565b6142bc816142a1565b81146142c757600080fd5b50565b6000813590506142d9816142b3565b92915050565b600080604083850312156142f6576142f5614167565b5b6000614304858286016142ca565b92505060206143158582860161418d565b9150509250929050565b60008115159050919050565b6143348161431f565b82525050565b600060208201905061434f600083018461432b565b92915050565b61435e8161416c565b82525050565b60006020820190506143796000830184614355565b92915050565b6000819050919050565b60006143a461439f61439a84614281565b61437f565b614281565b9050919050565b60006143b682614389565b9050919050565b60006143c8826143ab565b9050919050565b6143d8816143bd565b82525050565b60006020820190506143f360008301846143cf565b92915050565b60008060006060848603121561441257614411614167565b5b6000614420868287016142ca565b9350506020614431868287016142ca565b92505060406144428682870161418d565b9150509250925092565b600060ff82169050919050565b6144628161444c565b82525050565b600060208201905061447d6000830184614459565b92915050565b60006020828403121561449957614498614167565b5b60006144a7848285016142ca565b91505092915050565b6144b98161431f565b81146144c457600080fd5b50565b6000813590506144d6816144b0565b92915050565b600080604083850312156144f3576144f2614167565b5b60006145018582860161418d565b9250506020614512858286016144c7565b9150509250929050565b614525816142a1565b82525050565b6000602082019050614540600083018461451c565b92915050565b6000806040838503121561455d5761455c614167565b5b600061456b858286016142ca565b925050602061457c858286016142ca565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145bc6020836141da565b91506145c782614586565b602082019050919050565b600060208201905081810360008301526145eb816145af565b9050919050565b7f546f74616c20666565206973206f766572203235250000000000000000000000600082015250565b60006146286015836141da565b9150614633826145f2565b602082019050919050565b600060208201905081810360008301526146578161461b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146a557607f821691505b6020821081036146b8576146b761465e565b5b50919050565b7f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260008201527f65666c656374696f6e7300000000000000000000000000000000000000000000602082015250565b600061471a602a836141da565b9150614725826146be565b604082019050919050565b600060208201905081810360008301526147498161470d565b9050919050565b7f4163636f756e7420697320616c7265616479206578636c756465640000000000600082015250565b6000614786601b836141da565b915061479182614750565b602082019050919050565b600060208201905081810360008301526147b581614779565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148258261416c565b91506148308361416c565b9250828203905081811115614848576148476147eb565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006148888261416c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036148ba576148b96147eb565b5b600182019050919050565b7f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460008201527f6869732066756e6374696f6e0000000000000000000000000000000000000000602082015250565b6000614921602c836141da565b915061492c826148c5565b604082019050919050565b6000602082019050818103600083015261495081614914565b9050919050565b7f5468652076616c756520616c7265646520736574210000000000000000000000600082015250565b600061498d6015836141da565b915061499882614957565b602082019050919050565b600060208201905081810360008301526149bc81614980565b9050919050565b7f416d6f756e74206d757374206265206c657373207468616e20737570706c7900600082015250565b60006149f9601f836141da565b9150614a04826149c3565b602082019050919050565b60006020820190508181036000830152614a28816149ec565b9050919050565b7f537761706261636b20616d6f756e742073686f756c64206265206174206c656160008201527f737420302e303525206f6620746f74616c20737570706c790000000000000000602082015250565b6000614a8b6038836141da565b9150614a9682614a2f565b604082019050919050565b60006020820190508181036000830152614aba81614a7e565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b1d6026836141da565b9150614b2882614ac1565b604082019050919050565b60006020820190508181036000830152614b4c81614b10565b9050919050565b6000614b5e8261416c565b9150614b698361416c565b9250828201905080821115614b8157614b806147eb565b5b92915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614be36024836141da565b9150614bee82614b87565b604082019050919050565b60006020820190508181036000830152614c1281614bd6565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c756022836141da565b9150614c8082614c19565b604082019050919050565b60006020820190508181036000830152614ca481614c68565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614d076025836141da565b9150614d1282614cab565b604082019050919050565b60006020820190508181036000830152614d3681614cfa565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d996023836141da565b9150614da482614d3d565b604082019050919050565b60006020820190508181036000830152614dc881614d8c565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000614e2b6029836141da565b9150614e3682614dcf565b604082019050919050565b60006020820190508181036000830152614e5a81614e1e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e9b8261416c565b9150614ea68361416c565b925082614eb657614eb5614e61565b5b828204905092915050565b6000614ecc8261416c565b9150614ed78361416c565b9250828202614ee58161416c565b91508282048414831517614efc57614efb6147eb565b5b5092915050565b6000606082019050614f186000830186614355565b614f256020830185614355565b614f326040830184614355565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081519050614f78816142b3565b92915050565b600060208284031215614f9457614f93614167565b5b6000614fa284828501614f69565b91505092915050565b6000819050919050565b6000614fd0614fcb614fc684614fab565b61437f565b61416c565b9050919050565b614fe081614fb5565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61501b816142a1565b82525050565b600061502d8383615012565b60208301905092915050565b6000602082019050919050565b600061505182614fe6565b61505b8185614ff1565b935061506683615002565b8060005b8381101561509757815161507e8882615021565b975061508983615039565b92505060018101905061506a565b5085935050505092915050565b600060a0820190506150b96000830188614355565b6150c66020830187614fd7565b81810360408301526150d88186615046565b90506150e7606083018561451c565b6150f46080830184614355565b9695505050505050565b600060c082019050615113600083018961451c565b6151206020830188614355565b61512d6040830187614fd7565b61513a6060830186614fd7565b615147608083018561451c565b61515460a0830184614355565b979650505050505050565b60008151905061516e81614176565b92915050565b60008060006060848603121561518d5761518c614167565b5b600061519b8682870161515f565b93505060206151ac8682870161515f565b92505060406151bd8682870161515f565b915050925092509256fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220acb8043d2b458ee47998f46c9648aad9b54ca0441dc9b8ff5143c8d6ba1d5b2264736f6c63430008130033
Verified Source Code Full Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: No
LunarSphinx.sol 1164 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
/**
* @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);
}
/**
* @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;
}
}
/**
* @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() {
_setOwner(_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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
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
);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract LunarSphinx is IERC20, Ownable {
using SafeMath for uint256;
uint256 public constant MAX_FEE = 10**4 / 4;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcludedFromFee;
mapping(address => bool) private _isExcluded;
address[] private _excluded;
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal;
uint256 private _rTotal;
uint256 private _tFeeTotal;
string private _name;
string private _symbol;
uint8 private _decimals;
uint256 public _taxFee;
uint256 private _previousTaxFee;
uint256 public _liquidityFee;
uint256 private _previousLiquidityFee;
uint256 public _teamFee;
uint256 private _previousTeamFee;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
address public _teamAddress;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled;
uint256 private numTokensSellToAddToLiquidity;
event SwapAndLiquifyAmountUpdated(uint256 amount);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
modifier lockTheSwap() {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor(
string memory name_,
string memory symbol_,
uint256 totalSupply_,
address router_,
address TeamAddress_,
uint16 taxFeeStart_,
uint16 liquidityFeeStart_,
uint16 TeamFeeStart_
) {
if (TeamAddress_ == address(0)) {
require(
TeamFeeStart_ == 0,
"Cant set both Team address to address 0 and Team percent more than 0"
);
}
require(
taxFeeStart_ + liquidityFeeStart_ + TeamFeeStart_ <= MAX_FEE,
"Total fee is over 25%"
);
_name = name_;
_symbol = symbol_;
_decimals = 18;
_tTotal = totalSupply_;
_rTotal = (MAX - (MAX % _tTotal));
_taxFee = taxFeeStart_;
_previousTaxFee = _taxFee;
_liquidityFee = liquidityFeeStart_;
_previousLiquidityFee = _liquidityFee;
_teamAddress = TeamAddress_;
_teamFee = TeamFeeStart_;
_previousTeamFee = _teamFee;
numTokensSellToAddToLiquidity = totalSupply_.div(10**3); // 0.1%
swapAndLiquifyEnabled = true;
_rOwned[owner()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router_);
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
// set the rest of the contract variables
uniswapV2Router = _uniswapV2Router;
// exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
emit Transfer(address(0), owner(), _tTotal);
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
if (_isExcluded[account]) return _tOwned[account];
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount)
public
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender)
public
view
override
returns (uint256)
{
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount)
public
override
returns (bool)
{
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(
sender,
_msgSender(),
_allowances[sender][_msgSender()].sub(
amount,
"ERC20: transfer amount exceeds allowance"
)
);
return true;
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].sub(
subtractedValue,
"ERC20: decreased allowance below zero"
)
);
return true;
}
function isExcludedFromReward(address account) public view returns (bool) {
return _isExcluded[account];
}
function totalFees() public view returns (uint256) {
return _tFeeTotal;
}
function deliver(uint256 tAmount) public {
address sender = _msgSender();
require(
!_isExcluded[sender],
"Excluded addresses cannot call this function"
);
(uint256 rAmount, , , , , , ) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rTotal = _rTotal.sub(rAmount);
_tFeeTotal = _tFeeTotal.add(tAmount);
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee)
public
view
returns (uint256)
{
require(tAmount <= _tTotal, "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount, , , , , , ) = _getValues(tAmount);
return rAmount;
} else {
(, uint256 rTransferAmount, , , , , ) = _getValues(tAmount);
return rTransferAmount;
}
}
function tokenFromReflection(uint256 rAmount)
public
view
returns (uint256)
{
require(
rAmount <= _rTotal,
"Amount must be less than total reflections"
);
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function excludeFromReward(address account) public onlyOwner {
// require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.');
require(!_isExcluded[account], "Account is already excluded");
if (_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
}
function includeInReward(address account) external onlyOwner {
require(_isExcluded[account], "Account is already excluded");
for (uint256 i = 0; i < _excluded.length; i++) {
if (_excluded[i] == account) {
_excluded[i] = _excluded[_excluded.length - 1];
_tOwned[account] = 0;
_isExcluded[account] = false;
_excluded.pop();
break;
}
}
}
function _transferBothExcluded(
address sender,
address recipient,
uint256 tAmount
) private {
(
uint256 rAmount,
uint256 rTransferAmount,
uint256 rFee,
uint256 tTransferAmount,
uint256 tFee,
uint256 tLiquidity,
uint256 tTeam
) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeTeamFee(tTeam);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function excludeFromFee(address account) public onlyOwner {
require(!_isExcludedFromFee[account], "The value alrede set!");
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) public onlyOwner {
require(_isExcludedFromFee[account], "The value alrede set!");
_isExcludedFromFee[account] = false;
}
function setTaxFeePercent(uint256 taxFeeBps) external onlyOwner {
_taxFee = taxFeeBps;
require(
_taxFee.add(_liquidityFee).add(_teamFee) <= MAX_FEE,
"Total fee is over 25%"
);
}
function setLiquidityFeePercent(uint256 liquidityFeeBps)
external
onlyOwner
{
_liquidityFee = liquidityFeeBps;
require(
_taxFee.add(_liquidityFee).add(_teamFee) <= MAX_FEE,
"Total fee is over 25%"
);
}
function setTeamFeePercent(uint256 TeamFeeBps) external onlyOwner {
_teamFee = TeamFeeBps;
require(
_taxFee.add(_liquidityFee).add(_teamFee) <= MAX_FEE,
"Total fee is over 25%"
);
}
function setSwapBackSettings(uint256 _amount) external onlyOwner {
require(
_amount >= totalSupply().mul(5).div(10**4),
"Swapback amount should be at least 0.05% of total supply"
);
numTokensSellToAddToLiquidity = _amount;
emit SwapAndLiquifyAmountUpdated(_amount);
}
//to recieve ETH from uniswapV2Router when swaping
receive() external payable {}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
}
function _getValues(uint256 tAmount)
private
view
returns (
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256
)
{
(
uint256 tTransferAmount,
uint256 tFee,
uint256 tLiquidity,
uint256 tTeam
) = _getTValues(tAmount);
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(
tAmount,
tFee,
tLiquidity,
tTeam,
_getRate()
);
return (
rAmount,
rTransferAmount,
rFee,
tTransferAmount,
tFee,
tLiquidity,
tTeam
);
}
function _getTValues(uint256 tAmount)
private
view
returns (
uint256,
uint256,
uint256,
uint256
)
{
uint256 tFee = calculateTaxFee(tAmount);
uint256 tLiquidity = calculateLiquidityFee(tAmount);
uint256 tTeamFee = calculateTeamFee(tAmount);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity).sub(
tTeamFee
);
return (tTransferAmount, tFee, tLiquidity, tTeamFee);
}
function _getRValues(
uint256 tAmount,
uint256 tFee,
uint256 tLiquidity,
uint256 tTeam,
uint256 currentRate
)
private
pure
returns (
uint256,
uint256,
uint256
)
{
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rLiquidity = tLiquidity.mul(currentRate);
uint256 rTeam = tTeam.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity).sub(
rTeam
);
return (rAmount, rTransferAmount, rFee);
}
function _getRate() private view returns (uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns (uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
for (uint256 i = 0; i < _excluded.length; i++) {
if (
_rOwned[_excluded[i]] > rSupply ||
_tOwned[_excluded[i]] > tSupply
) return (_rTotal, _tTotal);
rSupply = rSupply.sub(_rOwned[_excluded[i]]);
tSupply = tSupply.sub(_tOwned[_excluded[i]]);
}
if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
return (rSupply, tSupply);
}
function _takeLiquidity(uint256 tLiquidity) private {
uint256 currentRate = _getRate();
uint256 rLiquidity = tLiquidity.mul(currentRate);
_rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
if (_isExcluded[address(this)])
_tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
}
function _takeTeamFee(uint256 tTeam) private {
if (tTeam > 0) {
uint256 currentRate = _getRate();
uint256 rTeam = tTeam.mul(currentRate);
_rOwned[_teamAddress] = _rOwned[_teamAddress].add(rTeam);
if (_isExcluded[_teamAddress])
_tOwned[_teamAddress] = _tOwned[_teamAddress].add(
tTeam
);
emit Transfer(_msgSender(), _teamAddress, tTeam);
}
}
function calculateTaxFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_taxFee).div(10**4);
}
function calculateLiquidityFee(uint256 _amount)
private
view
returns (uint256)
{
return _amount.mul(_liquidityFee).div(10**4);
}
function calculateTeamFee(uint256 _amount)
private
view
returns (uint256)
{
if (_teamAddress == address(0)) return 0;
return _amount.mul(_teamFee).div(10**4);
}
function removeAllFee() private {
_previousTaxFee = _taxFee;
_previousLiquidityFee = _liquidityFee;
_previousTeamFee = _teamFee;
_taxFee = 0;
_liquidityFee = 0;
_teamFee = 0;
}
function restoreAllFee() private {
_taxFee = _previousTaxFee;
_liquidityFee = _previousLiquidityFee;
_teamFee = _previousTeamFee;
}
function isExcludedFromFee(address account) public view returns (bool) {
return _isExcludedFromFee[account];
}
function _approve(
address owner,
address spender,
uint256 amount
) private {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
// is the token balance of this contract address over the min number of
// tokens that we need to initiate a swap + liquidity lock?
// also, don't get caught in a circular liquidity event.
// also, don't swap & liquify if sender is uniswap pair.
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinTokenBalance = contractTokenBalance >=
numTokensSellToAddToLiquidity;
if (
overMinTokenBalance &&
!inSwapAndLiquify &&
from != uniswapV2Pair &&
swapAndLiquifyEnabled
) {
contractTokenBalance = numTokensSellToAddToLiquidity;
//add liquidity
swapAndLiquify(contractTokenBalance);
}
//indicates if fee should be deducted from transfer
bool takeFee = true;
//if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) {
takeFee = false;
}
//transfer amount, it will take tax, burn, liquidity fee
_tokenTransfer(from, to, amount, takeFee);
}
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
// split the contract balance into halves
uint256 half = contractTokenBalance.div(2);
uint256 otherHalf = contractTokenBalance.sub(half);
// capture the contract's current ETH balance.
// this is so that we can capture exactly the amount of ETH that the
// swap creates, and not make the liquidity event include any ETH that
// has been manually sent to the contract
uint256 initialBalance = address(this).balance;
// swap tokens for ETH
swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered
// how much ETH did we just swap into?
uint256 newBalance = address(this).balance.sub(initialBalance);
// add liquidity to uniswap
addLiquidity(otherHalf, newBalance);
emit SwapAndLiquify(half, newBalance, otherHalf);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
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, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
_teamAddress,
block.timestamp
);
}
//this method is responsible for taking all fee, if takeFee is true
function _tokenTransfer(
address sender,
address recipient,
uint256 amount,
bool takeFee
) private {
if (!takeFee) removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded[recipient]) {
_transferToExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && !_isExcluded[recipient]) {
_transferStandard(sender, recipient, amount);
} else if (_isExcluded[sender] && _isExcluded[recipient]) {
_transferBothExcluded(sender, recipient, amount);
} else {
_transferStandard(sender, recipient, amount);
}
if (!takeFee) restoreAllFee();
}
function _transferStandard(
address sender,
address recipient,
uint256 tAmount
) private {
(
uint256 rAmount,
uint256 rTransferAmount,
uint256 rFee,
uint256 tTransferAmount,
uint256 tFee,
uint256 tLiquidity,
uint256 tTeam
) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeTeamFee(tTeam);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferToExcluded(
address sender,
address recipient,
uint256 tAmount
) private {
(
uint256 rAmount,
uint256 rTransferAmount,
uint256 rFee,
uint256 tTransferAmount,
uint256 tFee,
uint256 tLiquidity,
uint256 tTeam
) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeTeamFee(tTeam);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferFromExcluded(
address sender,
address recipient,
uint256 tAmount
) private {
(
uint256 rAmount,
uint256 rTransferAmount,
uint256 rFee,
uint256 tTransferAmount,
uint256 tFee,
uint256 tLiquidity,
uint256 tTeam
) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeTeamFee(tTeam);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
}
Read Contract
MAX_FEE 0xbc063e1a → uint256
_liquidityFee 0x6bc87c3a → uint256
_taxFee 0x3b124fe7 → uint256
_teamAddress 0x8c97ca76 → address
_teamFee 0x9eb942e5 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
deliver 0x3bd5d173
uint256 tAmount
excludeFromFee 0x437823ec
address account
excludeFromReward 0x52390c02
address account
includeInFee 0xea2f0b37
address account
includeInReward 0x3685d419
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setLiquidityFeePercent 0x8ee88c53
uint256 liquidityFeeBps
setSwapBackSettings 0x796431d0
uint256 _amount
setTaxFeePercent 0x061c82d0
uint256 taxFeeBps
setTeamFeePercent 0x97c44288
uint256 TeamFeeBps
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address