Quote a provision resize
/dex/provisions/{boxId}/resize/checkQuote changing a provision's size without closing it. A resize also flushes pending fees.
Path parameters
boxIdstringrequiredUTXO id of the provision box
Request body
LDResizeRequest · application/jsonnewSharesstringrequiredSize the provision should become. Must be positive — a resize to zero is a redemption. Decimal string.
maxAmountXstringMost you will contribute on the ERG side, when increasing. Decimal string.
maxAmountYstringMost you will contribute on the token side, when increasing. Decimal string.
minAmountXstringLeast you will take back on the ERG side, when decreasing. Decimal string.
minAmountYstringLeast you will take back on the token side, when decreasing. Decimal string.
expectedPoolBoxIdstringThe pool box this was quoted against
expectedVaultBoxIdstringVault box the quote was made against. A resize also flushes.
expectedProvisionBoxIdstringThe provision box this was quoted against
Responses
200Quote for the requested resizeLDResizeQuote▶
oldSharesstringrequirednewSharesstringrequireddeltastringrequiredChange in shares; positive adds liquidity, negative removes it. Decimal string.
increasingbooleanrequiredTrue when adding liquidity. Decides which bounds apply on execute.
amountXstringrequirednanoERG the pool takes when increasing, or returns when decreasing. Decimal string.
amountYstringrequiredToken side of the same. Decimal string.
nextEntryXstringrequiredEntry the resized provision must carry, chosen so nothing already earned is lost. Decimal string.
nextEntryYstringrequiredwithinMinSupplybooleanrequired
400Malformed body, or `newShares` is not a different positive size.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No live provision with that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409The provision moved. Re-read to find its current box id.LDStateChangedResponse▶
errorintegerrequiredreasonstringrequireddetailstringrequiredWhat moved, and what it moved to
poolBoxIdstringCurrent pool box id
vaultBoxIdstringCurrent vault box id
provisionBoxIdstringCurrent provision box id
503Node unavailable. Retry.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description