I'm working on something exactly like this. Testing it with 2 friends at the moment, pushed nearly a billion tokens through it in the past 4 days. Going to open source it soon.