We are pleased to present Peatio Open Source 2.3.0.
This release concentrated on new Admin API module, new features and enhancements:
1. Refactoring to maker-taker fee model. Major Trade model rework.
2. Admin API module for tower.
3. Trading Fee Schedule based on Member group.
4. Introduce adjustments.
5. Beneficiaries model and fiat withdrawal.
This release notes is must-read for migrating from older versions.
#2278: Market & Currency admin forms corrections & improvements
#2292: Switch to maker-taker fee model. Major Trade model rework
This patch replaces side-related (buy or sell) with maker-taker fee model. Its basic structure gives a fee discount to market makers providing liquidity (the makers); and charges higher fee to customers who take liquidity out of the market (the takers). Fee could be configured per market. Next changes were produced by switching to maker-taker fee model:
ask_fee and bid_fee with maker_fee and taker_fee in Market model;fee with maker_fee and taker_fee in Order model;Trade model rework consist of next changes:
#2264: Admin API module for tower (mod)
Feature admin panel api for:
Unify API doc files structure and naming.
#2321: Trading Fee Schedule based on Member group (ysv)
#2310: Use Vault transit engine for storing Wallet & PaymentAddress sensitive data (dnfd)
#2325: Integrate ability to create accounting Adjustments (dnfd)
Co-authored-by: mnaichuk [email protected] Co-authored-by: dnfd [email protected]
#2347 Beneficiaries model with ability to manage via user API (mod)
Add Beneficiary model which can store both fiat crypto beneficiary data. Custom beneficiary fields like country, account_number, bank_swift_code are stored in JSON format. Also beneficiary contains name, description & currency_id in string format.
On beneficiary creation pin generated and saved in DB user needs to activate beneficiary with pin sent by email. Create & update actions are published to RabbitMQ by Event API.
There are 3 states of beneficiary:
Beneficiary account API consists of 5 endpoints:
Co-authored-by: ysv [email protected] Co-authored-by: mod [email protected]
#2355: Integrate ability to withdraw both fiat & crypto with Beneficiary model (ysv)
Since we can store Beneficiaries in peatio starting from #2347 now we can
implement user withdraw API for both fiat & crypto currencies. Itmeans that in
this patch we have replaced POST accounts/withdraw rid param with
beneficiary_id. This change gives ability to use active beneficiaries for
both fiat & crypto withdrawals.
Beneficiary is now exposed in Admin API as field of Withdraw so admin can
validate it directly.
beneficiary_id foreign key was added to Withdraw model so now it has
optional belongs_to association with Beneficiary.
Also this patch improves Withdraw sum & amount precision logic. Instead
of rounding attributes on creation now attributes precision is validated on
Withdraw creation.
This patch also adds additional validation for Beneficiary data attribute