Prerequisite: request if Acala Foundation is willing to loan assets to help rebalance DeX and return assets. โ Acala Foundation has confirmed willingness ๐
Firstly, choose to use Option#1 or Option#2 to deal with the individual accounts.
Option #1: return gained tokens e.g. aUSD error mints to honzon, and return used tokens e.g. LCDOT to the address. If only partially gained tokens can be returned to honzon, then partially used tokens are returned to the address.
Execution: immediately executable.
Option #2: If only partially gained tokens can be returned to honzon, then move all remaining assets to a special vault that is claimable by the address owner by returning all gained tokens to the vault.
Execution: may take at least a few weeks to complete code development and test to enable this feature.
Secondly, if you selected Option #1, then choose either market value or oracle value that shall be used in the calculation of aUSD & other assets.
Details of the two options are here