chore: update submodule references and enhance deployment script logic
- Bumped submodule references for cross-chain-pmm-lps, explorer-monorepo, gru-docs, and smom-dbis-138. - Improved logic in run-mainnet-aave-quote-push-keeper.sh to handle various conditions for quote distribution and wallet LP tranche application. - Updated check-and-fix-explorer-lag.sh to utilize a new stats URL and refined data parsing for better accuracy. Made-with: Cursor
This commit is contained in:
@@ -273,13 +273,51 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$MODE" == "dry-run" && -n "$MANAGER" ]]; then
|
||||
if [[ -n "$MANAGER" && "$SKIP_FLASH" != "1" && "$SKIP_RECYCLE" != "1" ]]; then
|
||||
export QUOTE_PUSH_TREASURY_HARVEST=1
|
||||
export QUOTE_PUSH_TREASURY_GAS_HOLDBACK_TARGET_RAW="$KEEPER_GAS_SHORTFALL_QUOTE_RAW"
|
||||
bash "${PROXMOX_ROOT}/scripts/deployment/run-mainnet-aave-quote-push-managed-cycle.sh" --dry-run
|
||||
bash "${PROXMOX_ROOT}/scripts/deployment/run-mainnet-aave-quote-push-managed-cycle.sh" "--${MODE}"
|
||||
|
||||
if [[ "${KEEPER_RECYCLE_RECIPIENT,,}" == "${DEPLOYER,,}" ]]; then
|
||||
echo "[plan] A live managed cycle would route recycle quote back to the deployer, after which the wallet LP helper can be attempted."
|
||||
if [[ "$MODE" == "dry-run" ]]; then
|
||||
if [[ "${KEEPER_RECYCLE_RECIPIENT,,}" == "${DEPLOYER,,}" ]]; then
|
||||
echo "[plan] A live managed cycle would route recycle quote back to the deployer, after which the wallet LP helper can be attempted."
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "=== Post-execution accounting ==="
|
||||
bash "${PROXMOX_ROOT}/scripts/verify/report-mainnet-aave-quote-push-surplus-accounting.sh"
|
||||
|
||||
deployer_eth="$(cast balance "$DEPLOYER" --ether --rpc-url "$ETHEREUM_MAINNET_RPC")"
|
||||
compute_keeper_plan "$MANAGER" "$deployer_eth" "$TOKEN" "$RECEIVER" "$RECEIVER_RESERVE_RAW" "$GAS_FLOOR_ETH" "$OP_BUFFER_ETH" "$NATIVE_TOKEN_PRICE"
|
||||
|
||||
if python3 - "$KEEPER_GAS_SHORTFALL_ETH" <<'PY'
|
||||
import sys
|
||||
sys.exit(0 if float(sys.argv[1]) > 0 else 1)
|
||||
PY
|
||||
then
|
||||
echo "[stop] quote was distributed, but deployer ETH is still below the recycle floor; skipping wallet LP tranche"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if (( KEEPER_RECYCLE_DISTRIBUTION_RAW == 0 )); then
|
||||
echo "[stop] no recycle allocation remains after gas holdback"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ -z "${KEEPER_RECYCLE_RECIPIENT:-}" || "${KEEPER_RECYCLE_RECIPIENT,,}" != "${DEPLOYER,,}" ]]; then
|
||||
echo "[stop] recycle recipient is not the deployer wallet, so the wallet LP helper is intentionally skipped"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! bash "${PROXMOX_ROOT}/scripts/deployment/apply-mainnet-cwusdc-usdc-peg-tranche-from-wallet.sh" --apply; then
|
||||
status=$?
|
||||
if [[ "$status" == "3" ]]; then
|
||||
echo "[stop] recycle distribution completed, but no wallet-funded LP tranche is currently affordable"
|
||||
exit 0
|
||||
fi
|
||||
exit "$status"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user