anon
anon copied to clipboard
Design linking mechanism to link fixed/reward/variable trees together.
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.
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:
- Proving to know a
fixed amountleaf and inserting anothervariable amountleaf into the same tree - Proving to know a
variable amountleaf and adding another 2variable amountleaves into the same tree (or combining 2 leaves into one) -- (can be any number, not just 2) - Proving to know a
variable amountleaf and withdrawing into some account