Skip to content

Commit

Permalink
Update auto_rewards.sh to add fees config
Browse files Browse the repository at this point in the history
  • Loading branch information
anilcse authored Oct 12, 2023
1 parent 9c1b8ab commit b0d40c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/auto_rewards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ do
chain_id=$(echo "$network" | jq -r '.chainId')
node=$(echo "$network" | jq -r '.node')
feepayer=$(echo "$network" | jq -r '.feepayer')
fees=$(echo "$network" | jq -r '.fees')

echo "About to withdraw commission and reward for network: $chain_id"

# Withdraw rewards and execute on the network
$binary tx distribution withdraw-rewards $validator --from $granter --chain-id $chain_id -y --generate-only > rewards.json
$binary tx authz exec rewards.json --chain-id $chain_id --node $node --fees 200uatom --fee-account $feepayer --from $grantee -y
$binary tx authz exec rewards.json --chain-id $chain_id --node $node --fees $fees --fee-account $feepayer --from $grantee -y

# Add sleep if needed before processing the next network
# sleep 60
Expand Down

0 comments on commit b0d40c8

Please sign in to comment.