Files
proxmox/scripts/verify/check-mainnet-quote-push-prediction-tolerance.sh
defiQUG dbd517b279 Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains
- Omit embedded publish git dirs and empty placeholders from index

Made-with: Cursor
2026-04-12 06:12:20 -07:00

26 lines
906 B
Bash
Executable File

#!/usr/bin/env bash
# Verify that the quote-push calculator and the mainnet fork receiver stay
# within a 1% tolerance on deterministic execution outputs.
#
# This is the strongest honest repo-side guarantee we can make: deterministic
# PMM + mocked unwind execution must match the calculator closely. It does not
# claim live market venues, gas, or async bridge settlement will stay within 1%.
#
# Usage:
# bash scripts/verify/check-mainnet-quote-push-prediction-tolerance.sh
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
source "$PROJECT_ROOT/scripts/lib/load-project-env.sh" >/dev/null 2>&1
if [ -z "${ETHEREUM_MAINNET_RPC:-}" ]; then
echo "[FAIL] ETHEREUM_MAINNET_RPC is required" >&2
exit 1
fi
cd "$PROJECT_ROOT/smom-dbis-138/forkproof"
forge test -vv --match-contract AaveQuotePushFlashReceiverMainnetForkTest