Merged
Conversation
* 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
Yannick1712
reviewed
Feb 16, 2026
src/integration/blockchain/realunit/realunit-blockchain.service.ts
Outdated
Show resolved
Hide resolved
src/integration/blockchain/realunit/realunit-blockchain.service.ts
Outdated
Show resolved
Hide resolved
src/subdomains/supporting/payment/services/transaction.service.ts
Outdated
Show resolved
Hide resolved
src/subdomains/supporting/payment/services/transaction.service.ts
Outdated
Show resolved
Hide resolved
src/subdomains/supporting/pricing/services/integration/pricing-realunit.service.ts
Outdated
Show resolved
Hide resolved
davidleomay
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automatic Release PR
This PR was automatically created after changes were pushed to develop.
Commits: 1 new commit(s)
Checklist