pmiklos / obyte-crypto-fund

Decentralized Cryptocurrency Fund
MIT License
0 stars 0 forks source link

Add mechanism for rebalancing the managed asset allocation #2

Open pmiklos opened 1 year ago

pmiklos commented 1 year ago

Assuming the fund is set up with fixed or dynamic asset allocations, as the market changes the asset allocation might diverge from the target. There is a need for a mechanism that helps rebalance the fund portfolio towards the target allocation. Few ideas:

Asset Allocation:

Rebalancing:

pmiklos commented 1 year ago

Rebalancing the fund by exchanging one managed asset to another can be vulnerable to price oracle bugs or hacks. Even if a non-malicious glitch happens and let's say the price of one asset drops, someone could potentially exploit that:

Note, that similar exploit may happen when purchasing shares from the fund as well. In that case, if the price of the asset used to purchase shares is misreported by the oracle by let's say 10 fold, the user would receive disproportionate amount of shares that could be used to drain big chunk of the fund.