I'm looking to make a smart contract that does the following:
If account X receives Y amount of Eth or tokens, it will send 50% of those coins back to the address that sent it.
How can this be done? Or does this have to be a centralized service? Doesn't this require a 3rd party to monitor this address and then fire the smart contract when it detects activity? Also wouldn't this contract require access to my private keys in order to send those funds back to the sender?
How can this be done in a decentralized way without the need of a 3rd party monitoring service?