Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unite Investment and ForeignInvestment traits #1554

Open
wischli opened this issue Sep 18, 2023 · 3 comments
Open

Unite Investment and ForeignInvestment traits #1554

wischli opened this issue Sep 18, 2023 · 3 comments
Labels
I6-refactoring Code needs refactoring. Q3-medium Can be done with good experience in the language, but little knowledge of the codebase.

Comments

@wischli
Copy link
Contributor

wischli commented Sep 18, 2023

Description

  • Existing Investment and ForeignInvestment traits are mainly overlapping, should be merged
  • Outcome should incorporate InvestmentCollector as well

Research/based on

How will this affect the code base

  • More boilerplate for pallet-investments impl of Investment
  • Less complexity and noise overall

What are foreseen obstacles or hurdles to overcome?

  • Introduce more errors to pallet-investments impl for mismatching currencies
@wischli wischli added I6-refactoring Code needs refactoring. Q3-medium Can be done with good experience in the language, but little knowledge of the codebase. labels Sep 18, 2023
@lemunozm
Copy link
Contributor

What's the idea of getting this merged too? Is implementing the foreign trait for pallet-investment using the same currency for foreign and pool?

@wischli
Copy link
Contributor Author

wischli commented Sep 19, 2023

I envision this to based on your proposal and focused on supporting foreign and pool currency whereas the pallet-investment impl of the trait uses the same currency.

@lemunozm
Copy link
Contributor

Ok, then what I said in my previous message I think, makes no sense. I thought the issue was referred to another thing 😅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I6-refactoring Code needs refactoring. Q3-medium Can be done with good experience in the language, but little knowledge of the codebase.
Projects
None yet
Development

No branches or pull requests

2 participants