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

fix(frontend): correct price for BURN token #3745

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Conversation

AntonioVentilii
Copy link
Collaborator

@AntonioVentilii AntonioVentilii commented Nov 25, 2024

Motivation

The commits in this branch were already reviewed and are used for the hotfix released with v0.9.5

Reviews:

# Motivation

IcrcData from the json is wrongly mapped with an exchangeCoinId
hardcoded to internet-computer. This is wrong and causes the fallback
logic of exchange balance to default to the ICP price.

# Changes

remove hardcoded value

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@AntonioVentilii AntonioVentilii changed the title fix(frontend): fix hardcoded exchangecoinid (#3743) fix(frontend): correct price for BURN token Nov 25, 2024
loki344 and others added 2 commits November 25, 2024 15:16
…ledger canister id (#3744)

# Motivation

The original intention of the list ICRC_TOKENS_LEDGER_CANISTER_IDS
implied by its only usage in enabledIcrcTokensNoCk was to filter out Ck
canister ids. By adding additional ICRC tokens to ICRC_TOKENS and the
following mapping of the canister ids to the list, causes a bug:
There will be no usd exchange rates for these tokens as they are not
included in the enabledIcrcTokensNoCk store.
This bug, combined with the wrong fallback logic corrected in
#3740 led to a false usd
value of additional ICRC tokens.
# Changes

Rename the variable ICRC_TOKENS_LEDGER_CANISTER_IDS to reflect its only
usage of holding CK token ledger canister ids
Fix the content of this list to include CK tokens.

# Tests


![image](https://github.com/user-attachments/assets/d29ba59a-ecb7-4f98-b483-0d7596866348)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
# Motivation

Bumping version for hotfix.
@AntonioVentilii AntonioVentilii marked this pull request as ready for review November 25, 2024 15:54
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner November 25, 2024 15:54
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx

@AntonioVentilii AntonioVentilii enabled auto-merge (squash) November 26, 2024 07:49
@AntonioVentilii AntonioVentilii merged commit c5374e0 into main Nov 26, 2024
17 checks passed
@AntonioVentilii AntonioVentilii deleted the hotfix/v0.9.4/1 branch November 26, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants