Skip to content

UPDATE : Development to Master #2338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Oct 14, 2014
Merged

UPDATE : Development to Master #2338

merged 31 commits into from
Oct 14, 2014

Conversation

TheSerapher
Copy link
Contributor

Future merge from Development to Master. Find a detailed changelog here and hints and tips on upgrading this specific release.

Changelog

  • [FIX] Base SQL structure was missing the 0.0.14 updates, thanks @xisi
  • [FIX] Allow payout thresholds below 1
  • [ADDED] Mobile detection in PHP to serve a different template for mobile devices
  • [ADDED] Coin rounding precision in coin classes

Mobile Detection

We always had mobile detection in Bootstrap but decided to re-add the ability for admins to specific different templates for desktop and mobile devices. This will allow you to setup your own theme for desktop but keep the existing bootstrap one for mobile systems. You can focus on Desktop development while keeping the functionality supplied by our default bootstrap theme.

Long time users that have been running MPOS prior to the bootstrap merge may have to save their settings in the Admin Panel once again to save the new default value for the mobile template. Otherwise you will get a 'could not load master.tpl' error when browsing to the site with a mobile device.

Coin Rounding Precision

You can now adjust the precision for each coins pay calculations! Before this change, all payouts were fixed to 8 digits after the decimal point. From now on, the default setting is 8 digits as before, but as a first adjustment we have added a precision of 20 to all sha256d coins. Many of these have very high difficulties and often users only get paid a fraction of the total blocks value. This is especially true when running PPS (not recommended) for high difficulty coins.

You don't need to change anything on your end for this to work, but you can adjust the precision by changing the coin class of your choice and adding this (sample from SHA256d): https://github.com/MPOS/php-mpos/blob/development/include/classes/coins/coin_sha256d.class.php#L11

This will update all payout processing and display values on the website to use that precision instead.

MPOS123 and others added 30 commits June 30, 2014 07:59
* [UPDATED] Cronjobs to store real values, display with coin precision
* [UPDATED] Templates to use new coin precision setting in dashboard
* [UPDATED] JS API calls to use new precision setting too
* [UPDATED] PPS Value is displayed as coin precision + 8

This should help with #2216 and address issues with coins where rounding
of 12 was not enough.
* [ADDED] New option to coin class to change coin value precision
* [UPDATE] SQL Transactions table from double to decimal(50,30)
* [REMOVED] Admin setting for coin value precision
* [UPDATE] JS files to honor coin precision
* Allow users to define a seperate mobile template
* Defaults to bootstrap
* Disconnects desktop sites from mobile sites

Fixes #2329 once merged
TheSerapher added a commit that referenced this pull request Oct 14, 2014
UPDATE : Development to Master
@TheSerapher TheSerapher merged commit b10c328 into master Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants