Feat: pallet-pool-system
- Decouple Cash-Inflow from Epoch-Execution
#1911
Labels
I3-annoyance
The code behaves as expected, but "expected" is an issue.
P5-soon
Issue should be addressed soon.
Description
Some pools in system have a cash flow issue with the current epoch design.
Why
A pool invests into other assets. Those assets have a monthly liquidity. Meaning, redeeming and investing into such assets is only possible once per month. Also, correct pricing for said assets is also only given at said moment. In our system a pool needs to know the correct prices for assets first, close an epoch and afterwards it receives the new investments. I.e. receiving of investments happens at the same time as pricing of assets - from an epoch perspective.
Problem
The above would have a cash-drag of one month for all new investments, because it would be necessary to transfer the new investments to another party BEFORE receiving the prices for the assets, which is technically not possible at the moment.
Solution
withdraw()
from pool, adaptEpochExecutionInfo
to not contain the pool state but rather all relevant information to execute the epoch on the most recent stateclose()
andexecute()
APPS
Research/based on
How will this affect the code base
What are foreseen obstacles or hurdles to overcome?
The text was updated successfully, but these errors were encountered: