https://blog.decred.org/images/posts/dex-practical-considerations.png