Skip to content

Commit

Permalink
chore: fix logic for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Aug 13, 2024
1 parent acc78b6 commit 751885e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions icon_governance/workers/crons/prep_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
def run_prep_attributes(session):
logger.info(f"Starting {__name__} cron")

network_info = get_network_info()
bond_requirement_rate = int(network_info["bondRequirementRate"], 0) / 10_000
if settings.NETWORK_NAME in ["lisbon", "berlin"]:
network_info = get_network_info()
bond_requirement_rate = int(network_info["bondRequirementRate"], 0) / 10_000

preps_rpc = post_rpc_json(getPReps())
if preps_rpc is None:
Expand Down

0 comments on commit 751885e

Please sign in to comment.