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

feat: fiat on ramp integration #7065

Merged
merged 104 commits into from
Jun 22, 2023
Merged

Commits on Jun 6, 2023

  1. update: init push

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    35f2623 View commit details
    Browse the repository at this point in the history
  2. chore: remove btn

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    b678f86 View commit details
    Browse the repository at this point in the history
  3. chore: remove semi-colon

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    8ff070b View commit details
    Browse the repository at this point in the history
  4. chore: fix linit bug

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    17fc356 View commit details
    Browse the repository at this point in the history
  5. chore: temporary quick fixes for build errors

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    384d099 View commit details
    Browse the repository at this point in the history
  6. update: start quote generator

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    b486871 View commit details
    Browse the repository at this point in the history
  7. update: start custom hooks for provider fetch

    BingBong committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    a87a39c View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. update: optimise quote builder to handle bad resp

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    6d0bbb9 View commit details
    Browse the repository at this point in the history
  2. chore:type issue

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    ee13c6f View commit details
    Browse the repository at this point in the history
  3. chore: build

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    9d42e61 View commit details
    Browse the repository at this point in the history
  4. test: test commit for deploy cors error

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    360d1c2 View commit details
    Browse the repository at this point in the history
  5. chore: import

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    8823e0b View commit details
    Browse the repository at this point in the history
  6. fix: mercuryo url

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    6f172a4 View commit details
    Browse the repository at this point in the history
  7. update: optimised provider signature signing

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    06fac57 View commit details
    Browse the repository at this point in the history
  8. update: added ip-adress filtering

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    30ca262 View commit details
    Browse the repository at this point in the history
  9. fix: cleanup some things

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    19c350a View commit details
    Browse the repository at this point in the history
  10. fix: deploy version crash

    BingBong committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    a5dae8f View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. fix: ui changes

    BingBong committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    8ef4e3f View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. update: refactor

    BingBong committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    ac7ab4e View commit details
    Browse the repository at this point in the history
  2. update: refactor

    BingBong committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    8ba2d43 View commit details
    Browse the repository at this point in the history
  3. fix: image issue

    BingBong committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    9867c43 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. fix: translations

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    cb2dc90 View commit details
    Browse the repository at this point in the history
  2. fix transaltions

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    5c8a749 View commit details
    Browse the repository at this point in the history
  3. update buy crypto link on wall page

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    6d4c9ad View commit details
    Browse the repository at this point in the history
  4. update: merc quote api fix

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    cef7455 View commit details
    Browse the repository at this point in the history
  5. chore: api domain

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    06e50a1 View commit details
    Browse the repository at this point in the history
  6. update: fix mercuryo hmax method

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    ae4f330 View commit details
    Browse the repository at this point in the history
  7. Chore: use merc test deployment widget

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    d2c331c View commit details
    Browse the repository at this point in the history
  8. fix: jau widget id change

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    b042849 View commit details
    Browse the repository at this point in the history
  9. update: show providers even no quotes

    BingBong committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    f1e8983 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. mercuryo prod

    BingBong committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    7422883 View commit details
    Browse the repository at this point in the history
  2. pord widget

    BingBong committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    b1ae545 View commit details
    Browse the repository at this point in the history
  3. chore: mercuryo debug prod

    BingBong committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    c0e365e View commit details
    Browse the repository at this point in the history
  4. prod merc iframe creds

    BingBong committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    87029ac View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2023

  1. qa review updates

    BingBong committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    1bfefe6 View commit details
    Browse the repository at this point in the history
  2. chore: deploy issue rename logo files

    BingBong committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    029042e View commit details
    Browse the repository at this point in the history
  3. fix images

    BingBong committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    b1ddddc View commit details
    Browse the repository at this point in the history
  4. chore deploy

    BingBong committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    63ba30f View commit details
    Browse the repository at this point in the history
  5. image deploy bug

    BingBong committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    c40d33f View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. fix: qa updates

    BingBong committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    d8baaef View commit details
    Browse the repository at this point in the history
  2. chore: eth mercuryo

    BingBong committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    0b39362 View commit details
    Browse the repository at this point in the history
  3. chre: mercuryo didnt display

    BingBong committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    c8f9833 View commit details
    Browse the repository at this point in the history
  4. chore: update bsc list

    BingBong committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    29f2953 View commit details
    Browse the repository at this point in the history
  5. chore: remove eth on bnb

    BingBong committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    d394cda View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. qa fixes

    BingBong committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    8a50818 View commit details
    Browse the repository at this point in the history
  2. chore: qa issues and review comments

    BingBong committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    a074324 View commit details
    Browse the repository at this point in the history
  3. fix: only merc provider

    BingBong committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    ca3b1c7 View commit details
    Browse the repository at this point in the history
  4. chore: fix mercy light logo

    BingBong committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    78c8501 View commit details
    Browse the repository at this point in the history
  5. fix: qa feedback (#7180)

    <!--
    Before opening a pull request, please read the [contributing
    guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
    first
    -->
    
    <!--
    copilot:all
    -->
    ### <samp>🤖 Generated by Copilot at 987b958</samp>
    
    ### Summary
    🆕🛠️🎨
    
    <!--
    1.  🆕 for adding a new component
    2.  🛠️ for adding a feature and fixing a bug
    3.  🎨 for improving the UI and layout
    -->
    This pull request implements the on-ramp feature, which allows users to
    buy crypto with fiat using a third-party provider. It adds a new
    `CurrencyInputPanel` component and modifies the `CurrencyList` and
    `CurrencySearch` components to support on-ramp and all currencies. It
    also updates the `pancake-supported-onramp-currency-list.json` file to
    fix some token decimals.
    
    > _Sing, O Muse, of the on-ramp flow, the wondrous work of code_
    > _That lets the mortal users buy the cryptic tokens with their gold_
    > _And how the valiant engineers, with skill and wisdom, wrought_
    > _The `CurrencyInputPanel`, the `CurrencyList`, and the
    `CurrencySearch` that they sought_
    
    ### Walkthrough
    * Add a new component `CurrencyInputPanel` to render a currency input
    field and a modal for selecting a currency for the on-ramp feature
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-41960731c9cdaaa1d6465c8816fb5d667d9cfb85be04b039cc6fe8f8359bad93R117))
    * Add a `mode` prop to the `CurrencyList` component to show only the
    supported on-ramp currencies or all the available currencies depending
    on the input or output field that triggers the modal
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-7502b19bc6412e73ccd1b03e9b3e37f03a80f19424398e5ecc8dd4e5efa6cd07R82))
    * Fix a bug that caused an empty item to appear in the `CurrencyList`
    component when there is a break index between the active and inactive
    currencies by filtering out the undefined item
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-7502b19bc6412e73ccd1b03e9b3e37f03a80f19424398e5ecc8dd4e5efa6cd07L146-R147))
    * Update the logic for showing the native currency (BNB) in the
    `CurrencySearch` component by using a direct comparison of the `mode`
    prop instead of a string slicing method
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-03eab2712b2d9e81c8a0e4b7f299a874d402930077b2288905df7547418d714eL122-R122))
    * Adjust the margin and padding of the `CurrencySearch` component to
    match the design of the on-ramp feature by reducing the vertical margin
    to zero when the mode is `onramp-output` and adding a negative
    horizontal margin to compensate for the parent container's padding
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-03eab2712b2d9e81c8a0e4b7f299a874d402930077b2288905df7547418d714eL212-R212))
    * Remove the BNB and ETH entries from the
    `pancake-supported-onramp-currency-list.json` file, as they are not
    valid options for buying crypto with fiat on the Binance Smart Chain
    network
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-8ea707ca06751b421a94544be240150690bd0f95b045321eaa7477bcfc33584fL14-L23),
    [link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-8ea707ca06751b421a94544be240150690bd0f95b045321eaa7477bcfc33584fL76-L85))
    * Update the decimals of the BUSD and DAI entries in the
    `pancake-supported-onramp-currency-list.json` file, as the on-ramp
    provider uses 18 decimals for these tokens, while the PancakeSwap token
    list uses 6 decimals
    ([link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-8ea707ca06751b421a94544be240150690bd0f95b045321eaa7477bcfc33584fL29-R19),
    [link](https://github.com/pancakeswap/pancake-frontend/pull/7180/files?diff=unified&w=0#diff-8ea707ca06751b421a94544be240150690bd0f95b045321eaa7477bcfc33584fL110-R90))
    
    ---------
    
    Co-authored-by: Philip <[email protected]>
    Co-authored-by: chefilip <[email protected]>
    3 people authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    bb4afd9 View commit details
    Browse the repository at this point in the history
  6. chore: Update currency

    chefilip committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    507c74d View commit details
    Browse the repository at this point in the history
  7. chore: Update VND flag

    chefilip committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    9bd665d View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. chore: Set minimum amount

    chefilip committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3787671 View commit details
    Browse the repository at this point in the history
  2. chore: remove Provider fee

    chefilip committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0105aaf View commit details
    Browse the repository at this point in the history
  3. chore: update maxAmount

    chefilip committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bb73b22 View commit details
    Browse the repository at this point in the history
  4. chore: Update maxAmount

    chefilip committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    99069f2 View commit details
    Browse the repository at this point in the history
  5. chore: Refactor default amoutn calc

    chefilip committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d8ac9de View commit details
    Browse the repository at this point in the history
  6. chore: Update reducer type

    chefilip committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bf1d5c5 View commit details
    Browse the repository at this point in the history
  7. final refactor

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    491cd01 View commit details
    Browse the repository at this point in the history
  8. chore: remove log

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0eee358 View commit details
    Browse the repository at this point in the history
  9. chore: revert back to prod merc

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ce6c958 View commit details
    Browse the repository at this point in the history
  10. chore: update supported token list

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    6b92c69 View commit details
    Browse the repository at this point in the history
  11. fix imports

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0e638e9 View commit details
    Browse the repository at this point in the history
  12. chore: fix theme

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    58ad2e9 View commit details
    Browse the repository at this point in the history
  13. env

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    acedf8a View commit details
    Browse the repository at this point in the history
  14. fix sonarlint code smell

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c5900cb View commit details
    Browse the repository at this point in the history
  15. chore: change buy crypto order

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bb69453 View commit details
    Browse the repository at this point in the history
  16. fix swap page entry point

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2a01c42 View commit details
    Browse the repository at this point in the history
  17. fiat curr

    BingBong committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    971a08b View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. chore: widget id

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    ffdb74f View commit details
    Browse the repository at this point in the history
  2. chore: fiat search input text

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    4a329bb View commit details
    Browse the repository at this point in the history
  3. fix: Prevent crash when no mercuryWidget

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    ca35e2b View commit details
    Browse the repository at this point in the history
  4. chore: fix mercury widget crop issue

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    097c88e View commit details
    Browse the repository at this point in the history
  5. Merge branch 'feat--fiat-on-ramp-integration' of https://github.com/p…

    …ancakeswap/pancake-frontend into feat--fiat-on-ramp-integration
    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    ae4abdb View commit details
    Browse the repository at this point in the history
  6. chore: preload script before open modal

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    09ddcd5 View commit details
    Browse the repository at this point in the history
  7. chore: Update format amount

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    6e2c765 View commit details
    Browse the repository at this point in the history
  8. chore: Update format

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    41c27d4 View commit details
    Browse the repository at this point in the history
  9. chore: Update script loaded

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    a5619bb View commit details
    Browse the repository at this point in the history
  10. chore: Update script

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    44d2c53 View commit details
    Browse the repository at this point in the history
  11. fix: wrong amount

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    d5307b8 View commit details
    Browse the repository at this point in the history
  12. chore: Update minAmount

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    53658c8 View commit details
    Browse the repository at this point in the history
  13. fix: FAQs

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    1fe9eed View commit details
    Browse the repository at this point in the history
  14. Merge branch 'feat--fiat-on-ramp-integration' of https://github.com/p…

    …ancakeswap/pancake-frontend into feat--fiat-on-ramp-integration
    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    4cf23d3 View commit details
    Browse the repository at this point in the history
  15. fix: revert widget dimensions

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    a0bcfe0 View commit details
    Browse the repository at this point in the history
  16. fix: faq

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    91922a1 View commit details
    Browse the repository at this point in the history
  17. chore: Refactor code

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    ffb415e View commit details
    Browse the repository at this point in the history
  18. chore: Update code

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    58a0942 View commit details
    Browse the repository at this point in the history
  19. chore: Update swap ui

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    205aa5e View commit details
    Browse the repository at this point in the history
  20. fix: last few items

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c317cb8 View commit details
    Browse the repository at this point in the history
  21. fix ticket 10

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b597722 View commit details
    Browse the repository at this point in the history
  22. chore: chainid useeffect dep

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    4806bc9 View commit details
    Browse the repository at this point in the history
  23. chore: Revert package json

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    feb3974 View commit details
    Browse the repository at this point in the history
  24. Merge remote-tracking branch 'upstream/develop' into feat--fiat-on-ra…

    …mp-integration
    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    6884868 View commit details
    Browse the repository at this point in the history
  25. chore: Update yaml block

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    155b5f9 View commit details
    Browse the repository at this point in the history
  26. chore: Update check window object

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    cd18dcc View commit details
    Browse the repository at this point in the history
  27. chore: Update eslint

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b2d7b23 View commit details
    Browse the repository at this point in the history
  28. chore: Update menu

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    499edaa View commit details
    Browse the repository at this point in the history
  29. chore: Update line

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    684b5b1 View commit details
    Browse the repository at this point in the history
  30. chore: Update snapshot

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    eefdd4b View commit details
    Browse the repository at this point in the history
  31. fix: only show by-crypto redirect for whitelist

    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    368c9e8 View commit details
    Browse the repository at this point in the history
  32. Merge branch 'feat--fiat-on-ramp-integration' of https://github.com/p…

    …ancakeswap/pancake-frontend into feat--fiat-on-ramp-integration
    BingBong committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    50ae1c2 View commit details
    Browse the repository at this point in the history
  33. chore: Update env

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    47f4df5 View commit details
    Browse the repository at this point in the history
  34. chore: Add trans

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c78d40a View commit details
    Browse the repository at this point in the history
  35. Merge branch 'feat--fiat-on-ramp-integration' of github.com:pancakesw…

    …ap/pancake-frontend into feat--fiat-on-ramp-integration
    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    1ddd82e View commit details
    Browse the repository at this point in the history
  36. chore: Update unit test

    chefilip committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    f9ef8af View commit details
    Browse the repository at this point in the history