Skip to content

Commit

Permalink
[protected events] possible to print epr not only commission
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Aug 16, 2024
1 parent 28a7f12 commit b251106
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/generate-discord-public-report.bash
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ do
CommissionSamIncrease)
past_inflation_commission=$(<<<"$protected_event_attributes" jq '.past_inflation_commission')
actual_inflation_commission=$(<<<"$protected_event_attributes" jq '.actual_inflation_commission')
reason="Commission $(bc <<<"scale=2; $past_inflation_commission*100")% -> $(bc <<<"scale=2; $actual_inflation_commission*100")%"
if [[ $past_inflation_commission != $actual_inflation_commission ]]; then
reason="Commission $(bc <<<"scale=2; $past_inflation_commission*100")% -> $(bc <<<"scale=2; $actual_inflation_commission*100")%"
else
expected_epr=$(<<<"$protected_event_attributes" jq '.expected_epr')
actual_epr=$(<<<"$protected_event_attributes" jq '.actual_epr')
reason="EPR $(bc <<<"scale=6; $expected_epr/1") -> $(bc <<<"scale=6; $actual_epr/1")"
fi
;;

DowntimeRevenueImpact)
Expand Down

0 comments on commit b251106

Please sign in to comment.