Change or stop backing
Change a backing's amount or range, or stop backing a market, on the EVM chains or on Solana.
A backing changes with the same call that set it. See Back a pair on both venues for the fields.
Call prepare-set-commitments again with the same strategyId and position. A new amount or range replaces the
old one.
To stop backing a market, send "amount": "0" in both groups. Each venue is its own update, so you can stop one and
keep the other. Then withdraw what you no longer want locked. A withdrawal takes
from the same liquidity, so it lowers what backs both markets.
Call prepare-set-commitments again with the same backings. The new amounts and range replace the old ones, with no
new rent.
To stop backing, send "amounts": ["0", "0"] and list the markets to stop in backings. Each one gets an uncommit
transaction, which you sign and send as when you backed it.
curl -X POST "$AQUA0_API/api/solana/vaults/prepare-set-commitments" \
-H "Content-Type: application/json" \
-d '{
"owner": "<wallet>",
"tokens": ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],
"amounts": ["0", "0"],
"backings": [{ "strategy": "Zm3ZkMbBvvWDa3D3qUicqcDCFoe4giTFsCvZ3YZzRra" }]
}'Each market is its own backing, so you can stop one and keep the other. The backing's rent goes back to the wallet that paid it. Then withdraw what you no longer want locked. A withdrawal takes from the same liquidity, so it lowers what backs both markets.
The errors are the same as when you back a market. See Errors.