Skip to content

fix: resolve circular dependency between BuyCryptoModule and LiquidityManagementModule#3520

Merged
TaprootFreak merged 1 commit intodevelopfrom
fix/circular-dependency-liquidity-buycrypto
Mar 27, 2026
Merged

fix: resolve circular dependency between BuyCryptoModule and LiquidityManagementModule#3520
TaprootFreak merged 1 commit intodevelopfrom
fix/circular-dependency-liquidity-buycrypto

Conversation

@TaprootFreak
Copy link
Copy Markdown
Collaborator

Summary

Problem

PR #3474 added BuyCryptoModule import to LiquidityManagementModule with forwardRef, but BuyCryptoModule was importing LiquidityManagementModule without it. NestJS requires both sides to use forwardRef to resolve circular dependencies.

Test plan

  • DEV deployment succeeds
  • API starts without module resolution errors

…yManagementModule

LiquidityManagementModule now imports BuyCryptoModule with forwardRef,
but BuyCryptoModule was importing LiquidityManagementModule without it.
Both sides need forwardRef for NestJS to resolve circular dependencies.
@TaprootFreak TaprootFreak marked this pull request as ready for review March 27, 2026 15:32
@TaprootFreak TaprootFreak merged commit 9e79cd1 into develop Mar 27, 2026
7 checks passed
@TaprootFreak TaprootFreak deleted the fix/circular-dependency-liquidity-buycrypto branch March 27, 2026 15:32
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