PROOF OF WORK

by 3doc

A friend told you about this weird DAO, folks raving all the time about vampires and darkness. They even created a DRK token. In one of their latest deliriums, they ended up claiming to have invented the concept of proof of work...

While randomly browsing their activity on a block explorer, you noticed this strange contract: it's an open challenge. In your face, just like that. They sure have a hand for naming things.

WINNING CONDITION

Steal at least half of the supply of DRK tokens.

src
DarkToken.sol
ProofOfWork.sol
interfaces
script
pragma solidity 0.8.21;

import {ERC20} from "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";

contract DarkToken is ERC20 {
    constructor(
        string memory name,
        string memory symbol,
        uint256 supply
    ) ERC20(name, symbol) {
        _mint(msg.sender, supply);
    }
}