Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrovska-petro committed Dec 20, 2023
1 parent 3e68d6c commit 0514b0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/badger/bribe_ecosystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def bribe_balancer(gauge, mantissa):
liquis_rate = Decimal(
cg.get_price(ids="liquis", vs_currencies="usd")["liquis"]["usd"]
)

print("liquis_rate", liquis_rate)
if liquis_incentive_in_paladin:
rate = badger_rate if is_governance_incentive_token else liquis_rate
mantissa = int(bribes["liquis"] / rate * Decimal(1e18))
Expand All @@ -241,6 +241,8 @@ def bribe_balancer(gauge, mantissa):
badger if is_governance_incentive_token else liquis
)

print("min_reward_per_vote", min_reward_per_vote)

reward_per_vote_liquis = reward_per_vote_liquis * 1e18
objective = (Decimal(mantissa) * Decimal(1e18)) / Decimal(
reward_per_vote_liquis
Expand All @@ -253,7 +255,7 @@ def bribe_balancer(gauge, mantissa):
# approve incentive token conditional based on flag
if is_governance_incentive_token:
badger.approve(palading_quest_board_veliq, mantissa + platform_fee)
else:
else:
liquis.approve(palading_quest_board_veliq, mantissa + platform_fee)

# create incentive quest
Expand Down

0 comments on commit 0514b0a

Please sign in to comment.