Skip to content

Release: develop -> main#3187

Merged
davidleomay merged 12 commits intomainfrom
develop
Feb 16, 2026
Merged

Release: develop -> main#3187
davidleomay merged 12 commits intomainfrom
develop

Conversation

@github-actions
Copy link

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

TaprootFreak and others added 10 commits February 13, 2026 13:40
* feat: migrate RealUnit price from Brokerbot contract to Aktionariat API

Replace direct smart contract reads (getPrice, getBuyPrice, getShares, settings)
with the Aktionariat REST API endpoint for price and share data. Add 30s
AsyncCache with fallback for resilience. Expose availableShares in all broker
DTOs and remove raw wei fields (pricePerShareRaw, totalPriceRaw).

* feat: use EUR price directly from Aktionariat API

The API returns priceInEUR directly, so use it for the /realunit/price
endpoint instead of deriving EUR from CHF via exchange rate conversion.

* feat: use Aktionariat EUR price consistently across pricing system

Add getDirectEurPrice() to PricingRealUnitService that returns the EUR
price from the Aktionariat API for REALU<->EUR pairs. PricingService
checks for this direct price before falling back to the rule chain,
ensuring buy/sell and display endpoints use the same EUR rate.

* feat: call Aktionariat requestPaymentInstructions on REALU buy confirm

When a REALU buy quote is confirmed, call the Aktionariat
requestPaymentInstructions endpoint to register the order and store the
response in a new aktionariatResponse column on transaction_request.

* fix: use JSDoc typedef pattern in migration file

* refactor: move REALU buy-confirm logic into RealUnitService

- Add PaymentInstructionsResponse DTO to replace Promise<any>
- Move Aktionariat order submission from TransactionRequestService
  into RealUnitService.confirmBuy()
- Add PUT /realunit/buy/:id/confirm endpoint
- Remove RealUnitBlockchainService dependency from TransactionRequestService
- Make confirmTransactionRequest accept optional aktionariatResponse param
* feat: add admin quotes and transactions endpoints for RealUnit

Add GET /realunit/admin/quotes and GET /realunit/admin/transactions
endpoints to display pending quotes and completed transactions
on the RealUnit admin page. Includes getByAssetId query methods
in TransactionRequestService and TransactionService.

* doc: add swagger tags.

---------

Co-authored-by: TuanLamNguyen <xnguyen.lam@gmail.com>
* [NOTASK] Refactoring

* [NOTASK] Refactoring 2

* [NOTASK] Refactoring 3

* [NOTASK] add async declaration to method

* [NOTASK] Refactoring 2
* feat: add confirm payment endpoint for RealUnit admin

Add admin endpoint to manually confirm payment receipt for RealUnit
buy transactions. In DEV/LOC environments, simulates bank transaction;
in PROD, calls Aktionariat payAndAllocate API.

Also removes automatic cron-based payment simulation in favor of
manual confirmation, and fixes IBAN to use RealUnit config bank
instead of Yapeal/DFX.

* fix: regenerate QR code with RealUnit IBAN and convert EUR to CHF

- Regenerate paymentRequest (QR/GiroCode) using RealUnit bank config
  instead of passing through the Yapeal/DFX QR code from BuyService
- Convert EUR amounts to CHF Rappen for Aktionariat payAndAllocate API
  since request.amount can be EUR when user pays in EUR

* style: fix prettier formatting

* test: update dev service tests after cron removal

Remove simulateRealuPayments tests (cron was removed) and update
remaining tests to call simulatePaymentForRequest directly.
Remove unused AssetService mock and environment toggling.

* chore: realunit url and swagger tags.

---------

Co-authored-by: TuanLamNguyen <xnguyen.lam@gmail.com>
* fix: always require KYC Level 30 for RealUnit purchases

Remove the amount-based KYC Level 50 requirement for REALU buys.
All RealUnit purchases now consistently require only KYC Level 30,
regardless of the purchase amount.

* fix: update API docs to reflect KYC Level 30 for RealUnit buy
* [NOTASK] AutoResponder Refactoring

* [NOTASK] Refactoring

* [NOTASK] Refactoring 2
* fix: add Cardano to payment request broadcast hint

* fix: format payment-request mapper
* [NOTASK] fix refundAmount bug

* [NOTASK] Fix different currency refund bug

* [NOTASK] Refactoring

* [NOTASK] Fix refundAmount for different refundAsset

* [NOTASK] Refactoring 2

* [NOTASK] Refactoring 3

* [NOTASK] fix format
@davidleomay davidleomay merged commit 720c35b into main Feb 16, 2026
12 checks passed
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.

5 participants