Skip to content

Commit

Permalink
fix: change ibbtc-wbtc from half lp to full lp and fix incorrect price
Browse files Browse the repository at this point in the history
ratio calculation
  • Loading branch information
Darruma committed May 21, 2021
1 parent 71fa5bf commit 957340d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assistant/rewards/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def convert_balances_to_usd(sett, userBalances):
price_ratio = 0.5
else:
price_ratio = 1
user.balance = (price * user.balance) / (pow(10, decimals) * price_ratio)
user.balance = (price_ratio * price * user.balance) / (pow(10, decimals))

return userBalances

Expand Down
2 changes: 1 addition & 1 deletion assistant/rewards/rewards_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def calculate_sett_balances(badger, name, currentBlock):
settType = ["", ""]
if "uni" in name or "sushi" in name:
settType[0] = "halfLP"
elif "crv" in name:
if "crv" in name or name == "experimental.sushiIBbtcWbtc":
settType[0] = "fullLP"
if "badger" in name.lower() or "digg" in name.lower() or "eth" in name.lower():
settType[1] = "nonNative"
Expand Down

0 comments on commit 957340d

Please sign in to comment.