Skip to content

Instantly share code, notes, and snippets.

@fakenickels
Created September 27, 2021 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakenickels/b7396d3e3a1e864209c848dbacc54490 to your computer and use it in GitHub Desktop.
Save fakenickels/b7396d3e3a1e864209c848dbacc54490 to your computer and use it in GitHub Desktop.
// 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