Skip to content

Conversation

peachbits
Copy link
Contributor

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

tokenIdStr = `_${tokenIdStr}`
}
const key = `${pair.asset.pluginId}${tokenIdStr}_${pair.targetFiat}${dateStr}`
cryptoPairMap.set(key, pair)
Copy link

Choose a reason for hiding this comment

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

Bug: Crypto Pair Token ID Construction Error

In addCryptoPair, the tokenIdStr is incorrectly constructed. It assigns tokenIdStr = '_${tokenIdStr}' when tokenIdStr is empty, resulting in just _ instead of including pair.asset.tokenId. This generates incorrect rate keys, which can cause exchange rate lookups for token assets to fail.

Additional Locations (1)
Fix in Cursor Fix in Web

const RATES_SERVERS = ['https://rates1.edge.app', 'https://rates2.edge.app']
// const RATES_SERVERS = ['https://rates3.edge.app', 'https://rates4.edge.app']
// const RATES_SERVERS = ['http://10.0.2.2:8087']
const RATES_SERVERS = ['http://127.0.0.1:8087']
Copy link

Choose a reason for hiding this comment

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

Bug: Localhost URL in Production Code

The RATES_SERVERS constant is set to a localhost development URL (http://127.0.0.1:8087). This configuration was likely committed by mistake, as the production servers are commented out, and will cause the app to fail in production.

Fix in Cursor Fix in Web

cryptoCurrencyCode
wallet.currencyInfo.pluginId,
tokenId,
defaultIsoFiat
Copy link

Choose a reason for hiding this comment

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

Bug: Fiat-to-Crypto Conversion Error

The convertFromFiat function in SwapInput.tsx and ExchangedFlipInput2.tsx misuses convertCurrency. This function is designed for crypto-to-fiat conversions, but it's called for fiat-to-crypto, leading to incorrect exchange amounts when users input fiat values.

Additional Locations (1)
Fix in Cursor Fix in Web

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.

1 participant