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

Design linking mechanism to link fixed/reward/variable trees together. #51

Open
drewstone opened this issue Jan 25, 2021 · 1 comment
Open

Comments

@drewstone
Copy link
Collaborator

When people move between the various fixed and variable trees, we still want some way of linking them up, so that the underlying asset remains the same inside the trees linked together.

I should have a design for how we should link these together so that we ensure no mixing of asset types occurs.

@lazovicff
Copy link
Contributor

lazovicff commented Jan 25, 2021

Since the difference between these trees is just their leaves, we could use the same tree for fixed deposits, rewards, and variable deposits and expose different functions for each leaf type as:

  1. Proving to know a fixed amount leaf and inserting another variable amount leaf into the same tree
  2. Proving to know a variable amount leaf and adding another 2 variable amount leaves into the same tree (or combining 2 leaves into one) -- (can be any number, not just 2)
  3. Proving to know a variable amount leaf and withdrawing into some account

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

No branches or pull requests

2 participants