I have changed the difficulty adjustment algorithm of EarthBucks to (almost) the simplest possible algorithm. The new algorithm is as follows:
If not for the cap, this would be the simplest difficulty adjustment algorithm. The cap is necessary to prevent the difficulty from adjusting too quickly. The 4x figure is chosen to be the same as the cap in Bitcoin (albeit per block rather than per 2016 blocks).
This replaces the previous algorithm. I have made this change because in testing the old algorithm didn’t adjust quickly enough as the mining power changed. The new algorithm adjusts much more quickly, so it should be more tolerant of large numbers of users coming or going.