Skip to content

Commit a1aab86

Browse files
Remove unnecesary error handling
1 parent 50730d5 commit a1aab86

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

alerts/sender_with_alert.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ wei_to_eth_division_factor=$((10**18))
182182
spent_amount=$(echo "scale=30; $total_fee_in_wei / (10^18)" | bc -l | awk '{printf "%.15f", $0}')
183183

184184
eth_usd=$(curl -s --connect-timeout 10 --max-time 30 https://cryptoprices.cc/ETH/ 2>/dev/null)
185-
if [[ -z "$eth_usd" ]] || ! [[ "$eth_usd" =~ ^[0-9]+\.?[0-9]*$ ]]; then
186-
echo "Warning: Could not fetch ETH price, using fallback value of 4000"
187-
eth_usd=4000
188-
fi
189185

190186
spent_amount_usd=$(echo "$spent_amount * $eth_usd" | bc | awk '{printf "%.2f", $1}')
191187

0 commit comments

Comments
 (0)