Created
September 27, 2021 21:46
-
-
Save fakenickels/b7396d3e3a1e864209c848dbacc54490 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.3; | |
contract FakeWormProfitSplitter { | |
address payable public fake = payable(0xE592783bF90e5C875dfaF4582575cFc864b5fB6c); | |
address payable public worms = payable(0x5b87102358a61BC9a6D32b20B121bbfd2A535C8d); | |
receive() external payable { | |
fake.transfer(msg.value / 2); | |
worms.transfer(msg.value / 2); | |
} | |
fallback() external payable { | |
fake.transfer(msg.value / 2); | |
worms.transfer(msg.value / 2); | |
} | |
function getBalance() public view returns (uint) { | |
return address(this).balance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment