Skip to content
Verified contractExactGPL-3.0

HoneyPot

Address0xecaa67e0aa322cc2f53a44a8698f1a6da68dc31b
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.7.4

 

Same code

Only this contract

 

Details

Compiler
solc 0.7.4+commit.3f05b770
Language
solidity
Optimization
No
EVM version
istanbul
License
GPL-3.0
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
11,333,249
Creation transaction
0xa876efb381…00285e887e

browser/FRSlayer.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;

interface IGST2 {
    function mint(uint) external;
    function transfer(address to, uint value) external returns (bool);
    function balanceOf(address user) external returns (uint);
}

contract HoneyPot {
    address payable public owner;
    IGST2 public GST2 = IGST2(0x0000000000b3F879cb30FE243b4Dfee438691c04);
    
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
    
    constructor() payable {
        owner = msg.sender;
    }
    
    receive() external payable {}
    
    function withdrawETH(uint value) public onlyOwner {
        owner.transfer(value);
    }
    
    function withdrawAllETH() public {
        withdrawETH(address(this).balance);
    }
    
    function withdrawGST2(uint value) public onlyOwner {
        GST2.transfer(owner, value);
    }
    
    function withdrawAllGST2() public {
        withdrawGST2(GST2.balanceOf(address(this)));
    }
    
    function freeMoney(uint currentBlockNumber, uint mintedTokens) public {
        GST2.mint(mintedTokens);
        if(block.number == currentBlockNumber) msg.sender.transfer(address(this).balance);
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.