Skip to content

feat: add Raiffeisen as full bank asset (EUR + CHF)#3301

Draft
TaprootFreak wants to merge 5 commits intodevelopfrom
feature/add-raiffeisen-bank-assets
Draft

feat: add Raiffeisen as full bank asset (EUR + CHF)#3301
TaprootFreak wants to merge 5 commits intodevelopfrom
feature/add-raiffeisen-bank-assets

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add RAIFFEISEN to Blockchain enum and all required { [b in Blockchain]: ... } mappings
  • Wire up blockchainToBankNameIbanBankName.RAIFFEISEN and extend pendingInputAmount switch
  • Create Raiffeisen/EUR (ID 410) and Raiffeisen/CHF (ID 411) seed assets
  • Fix bank entries 12/13: rename from "Maerki Baumann" to "Raiffeisen" and link correct asset IDs

Test plan

  • yarn lint passes
  • yarn build passes
  • yarn test passes (61/61 suites, 826/826 tests)
  • Verify bank seed data loads correctly on deployment
  • Verify isBankMatching resolves Raiffeisen IBAN correctly

Add RAIFFEISEN to Blockchain enum, wire up blockchainToBankName mapping,
extend pendingInputAmount, create Raiffeisen/EUR and Raiffeisen/CHF seed
assets (IDs 410/411), and fix bank entries 12/13 from misnamed
"Maerki Baumann" to "Raiffeisen" with correct asset references.
BIC OLKILUL1 and IBAN LU11... belong to Olkypay, not Maerki Baumann.
Link to existing Olkypay/EUR asset (ID 269).
Raiffeisen bank transactions were not matched in the pending input
amount calculation, causing buyCrypto inputs via Raiffeisen to be
invisible in the FinancialDataLog. This led to a double-negative
balance impact when outputAmount was set (buyCryptoPass liability
added without corresponding input offset).

Affected: 3 transactions totaling 416,500 EUR since Feb 11.
…ed IDs

- Add Blockchain.RAIFFEISEN to pendingInputAmount in BankTxRepeat and
  BankTxReturn entities (same issue as BuyCrypto)
- Add migration to create Raiffeisen EUR/CHF assets (IDs 420/421) and
  link them to bank records 12/13
- Fix seed CSVs: asset IDs 410/411 were already taken (Citrea), use
  420/421 instead
@@ -0,0 +1,37 @@
const { MigrationInterface, QueryRunner } = require("typeorm");
@@ -0,0 +1,37 @@
const { MigrationInterface, QueryRunner } = require("typeorm");
Bank 14 does not exist in the production database and is a duplicate
of bank 4 (same Olkypay IBAN LU116060002000005040).
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.

1 participant