Merge pull request 'fix: $FLOOR_BEFORE/$FLOOR_AFTER unquoted inside python3 -c string (#531)' (#666) from fix/issue-531 into master

This commit is contained in:
johba 2026-03-13 09:57:01 +01:00
commit 5127e96ab3

View file

@ -747,12 +747,12 @@ log " lm_eth_after : $LM_ETH_AFTER wei"
log ""
BROKE=false
if python3 -c "import sys; sys.exit(0 if int('$LM_ETH_AFTER') < int('$LM_ETH_BEFORE') else 1)"; then
if python3 -c "import sys; sys.exit(0 if int('${LM_ETH_AFTER:-0}') < int('${LM_ETH_BEFORE:-0}') else 1)"; then
BROKE=true
fi
if [[ "$BROKE" == "true" ]]; then
DELTA=$(python3 -c "print($LM_ETH_BEFORE - $LM_ETH_AFTER)")
DELTA=$(python3 -c "print(int('${LM_ETH_BEFORE:-0}') - int('${LM_ETH_AFTER:-0}'))")
log " RESULT: ETH EXTRACTED ❌"
log " Decrease: $DELTA wei"
log ""