Add mainnet cW micro-support operator helper
All checks were successful
Deploy to Phoenix / deploy (push) Successful in 10s

This commit is contained in:
defiQUG
2026-04-14 17:42:25 -07:00
parent 43b8942103
commit 2acb6ed877
3 changed files with 87 additions and 0 deletions

View File

@@ -269,6 +269,14 @@ bash scripts/verify/check-mainnet-public-dodo-cw-bootstrap-pools.sh
```
This checks that the eleven recorded Mainnet DODO cW bootstrap pools (USD rails + non-USD Wave 1 + `cWUSDT/cWUSDC`) are still mapped by the integration, have non-zero reserves, and remain dry-run routable through the repeatable swap helper.
**Current micro-support sweep (default dry-run):**
```bash
bash scripts/deployment/run-mainnet-cw-micro-support-round.sh --dry-run
```
This runs the currently validated tiny support swaps for `cwusdt-usdt`, `cwusdc-usdc`, `cwusdt-usdc`, and `cwusdc-usdt` in sequence, then points back to `check-mainnet-pmm-peg-bot-readiness.sh`.
Re-run with `--apply` only when you intentionally want to broadcast the full four-leg support round.
### 15. Mainnet DODO Wave 1 pool deploy helper
Repeatable helper for creating and seeding a first-tier Mainnet DODO PMM Wave 1 `cW* / USDC` pair.

View File

@@ -0,0 +1,76 @@
#!/usr/bin/env bash
set -euo pipefail
# Deterministic micro-support sweep for the four current Mainnet cW/USD public PMM rails.
#
# Purpose:
# - run the current validated tiny support swaps in one sequence
# - default to dry-run for safe operator review
# - preserve explicit pair/direction/amount choices in one place
#
# Usage:
# bash scripts/deployment/run-mainnet-cw-micro-support-round.sh --dry-run
# bash scripts/deployment/run-mainnet-cw-micro-support-round.sh --apply
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROXMOX_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
SWAP_HELPER="${PROXMOX_ROOT}/scripts/deployment/run-mainnet-public-dodo-cw-swap.sh"
DRY_RUN=1
for arg in "$@"; do
case "$arg" in
--dry-run)
DRY_RUN=1
;;
--apply)
DRY_RUN=0
;;
-h|--help)
sed -n '1,20p' "$0"
exit 0
;;
*)
echo "[fail] unknown arg: $arg" >&2
exit 2
;;
esac
done
DRY_FLAG=()
if (( DRY_RUN == 1 )); then
DRY_FLAG=(--dry-run)
else
echo "[warn] --apply will broadcast four Mainnet PMM support swaps in sequence." >&2
fi
run_leg() {
local pair="$1"
local direction="$2"
local amount="$3"
echo
echo "=== $pair $direction amount=$amount dryRun=$DRY_RUN ==="
bash "$SWAP_HELPER" \
--pair="$pair" \
--direction="$direction" \
--amount="$amount" \
"${DRY_FLAG[@]}"
}
echo "=== Mainnet cW micro-support round ==="
echo "Validated support amounts:"
echo "- cwusdt-usdt base-to-quote 8131"
echo "- cwusdc-usdc base-to-quote 575113"
echo "- cwusdt-usdc base-to-quote 7541"
echo "- cwusdc-usdt base-to-quote 5478"
run_leg "cwusdt-usdt" "base-to-quote" "8131"
run_leg "cwusdc-usdc" "base-to-quote" "575113"
run_leg "cwusdt-usdc" "base-to-quote" "7541"
run_leg "cwusdc-usdt" "base-to-quote" "5478"
echo
echo "=== post-check ==="
echo "bash scripts/verify/check-mainnet-pmm-peg-bot-readiness.sh"