Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

[FEATURE] Add FTX to live swap#1927

Closed
chabroA wants to merge 24 commits into
developfrom
feat/add-ftx-to-swap
Closed

[FEATURE] Add FTX to live swap#1927
chabroA wants to merge 24 commits into
developfrom
feat/add-ftx-to-swap

Conversation

@chabroA

@chabroA chabroA commented May 2, 2022

Copy link
Copy Markdown
Contributor

Context (issues, jira)

Description / Usage

🔗 LedgerHQ/ledger-live-desktop#4959

Add FTX and FTX.US as swap provider with all associated logic

Expectations

  • Test coverage: The changes of this PR are covered by test. Unit test were added with mocks when depending on a backend/device.
  • No impact: The changes of this PR have ZERO impact on the userland. Meaning, we can use these changes without modifying LLD/LLM at all. It will be a "noop" and the maintainers will be able to bump it without changing anything.

@chabroA chabroA requested review from a team May 2, 2022 15:03
@vercel

vercel Bot commented May 2, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ledger-live-common ❌ Failed (Inspect) May 13, 2022 at 0:54AM (UTC)

@chabroA chabroA added the HODL label May 4, 2022
@chabroA chabroA marked this pull request as ready for review May 4, 2022 14:14
@chabroA chabroA requested a review from a team as a code owner May 4, 2022 14:14
revert initSwapErrorResult to initSwapError and add swapId as optional
state variable
To avoid breaking changes
@codecov

codecov Bot commented May 10, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1927 (7723404) into develop (8b92f12) will increase coverage by 0.60%.
The diff coverage is 44.38%.

❗ Current head 7723404 differs from pull request most recent head 0b2c300. Consider uploading reports for the commit 0b2c300 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1927      +/-   ##
===========================================
+ Coverage    58.59%   59.20%   +0.60%     
===========================================
  Files          450      512      +62     
  Lines        20541    21253     +712     
  Branches      5273     5733     +460     
===========================================
+ Hits         12036    12582     +546     
- Misses        8476     8649     +173     
+ Partials        29       22       -7     
Impacted Files Coverage Δ
src/exchange/index.ts 41.66% <ø> (ø)
src/exchange/swap/getProviders.ts 58.33% <0.00%> (ø)
src/families/cosmos/validators.ts 61.15% <ø> (ø)
src/exchange/swap/utils/index.ts 45.45% <15.78%> (ø)
src/exchange/swap/mock.ts 44.00% <26.31%> (ø)
src/exchange/swap/postSwapState.ts 40.00% <40.00%> (ø)
src/exchange/swap/checkQuote.ts 42.85% <42.85%> (ø)
src/exchange/swap/initSwap.ts 15.17% <52.17%> (ø)
src/families/bitcoin/wallet-btc/wallet.ts 88.32% <77.77%> (+8.32%) ⬆️
src/families/cosmos/api/Cosmos.ts 85.41% <81.81%> (-8.97%) ⬇️
... and 374 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b92f12...0b2c300. Read the comment docs.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants