Bicrypto 5.7.1
26 November 2024
This release has upgrade notes. Read them before updating — they describe behaviour changes that need your attention.
BUG FIXESBINARY OPTIONSP2P TRADING
Core v5.7.1
Release Date: November 26, 2024 Tags: BUG FIXES, BINARY OPTIONS, P2P TRADING
Upgrade Notes
Database migration required
IMPORTANT: This update requires dropping and recreating the p2p_trades table due to schema changes.
Steps to perform migration:
- Backup your database before proceeding
- Run the following SQL commands (or use phpMyAdmin):
SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `p2p_trades`; SET FOREIGN_KEY_CHECKS = 1; - Alternative (phpMyAdmin):
- Open phpMyAdmin and select your database
- Find the
p2p_tradestable in the table list and click "Drop" - When the confirmation dialog appears, uncheck the "Enable foreign key checks" checkbox
- Click "Yes" to confirm the drop operation
- Repeat for
p2p_disputesandp2p_reviewstables
- Restart your backend application
- The tables will be recreated automatically with the correct schema
Fixed
Binary options trading
- Fixed a winning trade returning only the profit and not the original investment, so customers lost their stake on every win. A $100 investment at 87% profit returned $87 where it should have returned $187. Balances now return investment plus profit, in both demo and real modes.
- Fixed a hardcoded 88% profit being paid in place of the configured duration-specific percentages, so every duration paid 88% regardless of what an admin had set. Percentages are now read per duration and stored with each order for historical accuracy, and can be customised for each time duration (1min, 5min, 15min and so on).
P2P trading
- Fixed the "Can't create table p2p_trades (errno: 150 'Foreign key constraint is incorrectly formed')" error, caused by a type mismatch between the stored payment method and the payment method it referenced. Trades and payment methods now relate correctly.
- Fixed every P2P trade displaying US dollars regardless of the currency actually being traded. Trade listings, trade details, escrow information and payment instructions all show the correct symbol.
- Fixed a mismatch between the statuses the backend uses and the ones the interface checked for, which stopped buttons appearing or working. Buttons now appear and function according to the state of the trade, and status displays are consistent everywhere.
- Fixed the trade chat window flickering while it polled for messages, and the input field losing focus after typing or sending. Polling now updates only when a new message has actually arrived.
- Fixed the trade chat having no way to send a payment receipt or screenshot — documents and images can now be attached.
- Fixed 404 errors when an admin opened trade details, and the breadcrumb navigation on that page.
- Fixed the missing offer actions in the admin, so an offer can now be rejected, flagged, disabled and removed. Every admin action is written to the audit trail.