-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
U-lis
commented
Nov 12, 2024
- Give 5 times more items
- Give 5 times more mileage
- No mileage products
- Images has special name for Thor chain
- github actions vars - CDK stack env. variables - Planet list - GQL URL list - Genesis hash list
@@ -44,6 +44,10 @@ def product_list(agent_addr: str, | |||
category_schema_list = [] | |||
purchase_history = get_purchase_history(sess, planet_id, agent_addr) | |||
for category in all_category_list: | |||
# Do not show Mileage category for thor chain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 왜 가림처리하는건가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
토르 체인에서는 마일리지를 5배 쌓고, 이걸 체인이 종료된 후에 다른 체인으로 이동해주는 기획이 있습니다.
마일리지를 5배 주는 대신 여기에서 마일리지 상품을 못 사게 하자는 기획에 따라 Mileage category 를 가립니다.
for x in product.fav_list]) | ||
claim_list = [ | ||
{"ticker": x.fungible_item_id, | ||
"amount": x.amount * (5 if receipt.planet_id in (PlanetID.THOR, PlanetID.THOR_INTERNAL) else 1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
토르쪽 보정(*5)가 들어가는 코드가 많은데 아예 모델에 메서드를 만들고 그걸 쓰면 어떨까요.