Merge pull request #42 from mastercoin-MSC/master

Sync to master
Fix DEx ppc calculation
Merge pull request #757 from achamely/master

Fix DEx ppc calculation