This repository has been archived by the owner on May 28, 2021. It is now read-only.
Pre-Collateralization #1405
Labels
Enhancement
New feature or request
p1 Bugs/Tests/Blockers
Bugs that break things but no loss of funds + Test improvements + PRIORITY blockers for customers.
Is your feature request related to a problem? Please describe.
Mainnet usage has shown, that "on-the-fly" collateralization is not a great long-term approach since it relies on getting a transaction into the next block. Not only is accurate gas estimation for the next block difficult, but also very expensive. In practice we are experiencing confirmation times of several minutes and timeouts as a result. Further, we'd need to be able to set the desired amount for the collateralization since the current default of e.g. 20 USDT triggers a live collateralization (and hence a swap timeout) for all trades of greater 20 USDT
Describe the solution you'd like
We think pre-collateralizing a channel with an estimated amount is the better way. Since the indra node doesn't know anything about trades/estimated amounts as of now, we think it makes sense for the client to provide this information and pass it in the collateralization request.
( export type PostRequestCollateralRequestParams = MultiClientRequestParams & { assetId: string };
), this allows xud to request collateral for the required amount via the client before/when an order is entering the order book based on the order amountThe text was updated successfully, but these errors were encountered: