Skip to content

add-exchange-rate#3397

Open
konstantinullrich wants to merge 3 commits into
devfrom
add-exchange-rate
Open

add-exchange-rate#3397
konstantinullrich wants to merge 3 commits into
devfrom
add-exchange-rate

Conversation

@konstantinullrich

Copy link
Copy Markdown
Contributor

Description

This adds an exchange rate class for future use in Swap flow and the fiat api

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

Comment thread cw_core/lib/amount/exchange_rate.dart Outdated

@OmarHatem28 OmarHatem28 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@konstantinullrich fix the tests parameter name and add tests for USDTerc20 from CryptoCurrency class and from ERC20 token. probably it will fail.
so either need to modify the condition and make it explicit or make sure that this is only used in swaps, where we only get the currencies from CryptoCurrency.all
I would prefer the first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants