Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply changes for Thor planet #333

Merged
merged 11 commits into from
Nov 14, 2024
Prev Previous commit
Next Next commit
5 times reward for thor chain
  • Loading branch information
U-lis committed Nov 12, 2024
commit 1762deeb85b17f7b4c40283d511b7e2f198f702b
7 changes: 7 additions & 0 deletions iap/api/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ def product_list(agent_addr: str,
else: # Product with no limitation
schema.buyable = True

# Thor chain has 5 times of rewards
if planet_id in (PlanetID.THOR, PlanetID.THOR_INTERNAL):
for item in schema.fungible_item_list:
item.amount *= 5
for fav in schema.fav_list:
fav.amount *= 5

schema_dict[product.id] = schema

cat_schema.product_list = list(schema_dict.values())
Expand Down