-
Notifications
You must be signed in to change notification settings - Fork 1
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
Phase 6b #44
Phase 6b #44
Conversation
</> | ||
)} | ||
</div> | ||
<div className="justify-between items-center mt-1 dark:text-neutral-400 text-neutral-500"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just changed the rendering of the flex box here to get better spacing between the 50% and MAX buttons.
by importing a preset that enhances transpiling vite code
✅ Deploy Preview for pendulum-pay ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I got an error when trying to offramp BRL. This happened after clicking on the 'Enter bank details' button which afterwards changed to 'Start offramping'. In case we get an error when trying to enter bank details, we should prevent the user from continuing. Clicking on the 'Start offramping' button after receiving the error, will log the following errors into the console. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good overall, great idea to reduce the 20 basis points by simply defining it as the slippage during the calculation of the out amount.
I was not able to test/run the changes locally though because of the errors I shared in my previous comments.
…1' of github.com:pendulum-chain/pendulum-pay into 36-phase-6b-start-anchor-flow-before-nabla-transaction-1
@ebma It seems that also your second screenshot is an nTokens offramp, not a Mykobo offramp. I just tested again and confirm that Mykobo works. For nTokens the reason for the failure is that they changed their minimum offramp amount from 1 BRL to 200 BRL, must have happened just in the last few days. I changed the min amount in the configuration accordingly. Additionally I fixed two unrelated problems I found while testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For nTokens the reason for the failure is that they changed their minimum offramp amount from 1 BRL to 200 BRL, must have happened just in the last few days.
Right, thanks. This was my issue for both nTokens and Mykobo because for testing purposes I commented out the code that prevented me from proceeding with amounts lower than the minimum defined by the anchor. Didn't expect the error to be related to that.
@gianfra-t do you have a chance to also do some review of this PR? |
@@ -57,18 +57,12 @@ export function AmountSelector<FormFieldValues extends FieldValues, TFieldName e | |||
if (maxBalance === undefined) return; | |||
// If we don't want to show the quote result if the balance is lower that the selected at from, | |||
// we can do so uncommenting this line. | |||
//if (amountBigDecimal.gt(maxBalance.preciseBigDecimal)) return 'Amount exceeds maximum'; | |||
if (amountBigDecimal.gt(maxBalance.preciseBigDecimal)) return 'Amount exceeds maximum'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure we don't want the user to check the swap options even if they don't have the balance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user can still check the swap options.
I understand that the only result here is that the UX will show an error message and will not process the offramp. So I think it has only upsides, no downsides.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't finished to check completely all the changes but so far seems good. Thanks for simplifying so much the operations and check with BigNumber
.
Since many times the swap will be higher than the minimum accepted to off-ramp, those funds will remain on the user's account. Is this acceptable for this version? It will essentially mean the user got a worse exchange rate than what would obtained normally.
@TorstenStueber will there be any more changes to this one? I was planning to merge it into 6A (working locally) since there are many overlapping changes. |
@gianfra-t Yes, this is exactly the agreed on behavior for this version. No more changes planned. I will merge this now. |
* Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: bogdanS98 <[email protected]>
* Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]>
* implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]>
* Add evm wallet support to polygon prototype (#51) * Install `rainbowkit` wallet provider * Configure rainbowkit settings * Replace connect button * Define custom connectors * Update typescript * Remove unused wallet component * Create example showcase of wagmi hooks * Simplify global state * Amend merge * Add quick-fixes * Only define 'polygon' for supported chains * Remove useless hooks * added autodeploy (#64) Co-authored-by: zoltansatoshipay <[email protected]> * 42 integrate axelar bridge to polygon prototype (#60) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: bogdanS98 <[email protected]> * Use custom rpc endpoint to connect to polygon (#76) * Add `alchemyApiKey` to config * Simplify wagmiConfig and connect to custom polygon RPC * Implement New Vortex UI (#66) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]> * Vortex UI Screens (Mocked Flow) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * add progress screen * add beforeunload confirmation prompt * implement base version of SuccessDialog * Progress screen * add progress screen * add beforeunload confirmation prompt * implement Successful and Unsuccessful pages, imitate vortex flow * extract reusable components for success and failure screens * remove DropdownSelector --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> * Fix tests * 80 connect failure and success screens to logic (#82) * Link failure and success screens to execution logic * Incorporate PR comment * Add USDC and USDC.e support to the vortex pmf (#72) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Amend merge * Fix squidrouter tests * Configure icon for usdce * Configure happy-dom to make browser based tests work * Remove NumericInput.test.tsx because it doesn't work with vitest * Fix type error * Replace polyfill plugin (#85) * 46 integrate google analytics query into the prototype (#86) * Add basic event tracking * Add tracked events * Signing dialog box (#87) * add basic dialogbox component * implement styles for signing dialog * show SignerPopup when txs are pending * fix imports * improve signingPhase logic * remove console log * Sign transactions early and dump them to spreadsheet (#79) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Add spreadsheet packages * Add env variables for google credentials * Implement spreadsheet storage * Upgrade vite version * Increase vite test timeout * Refactor tests * Add small changes * Improve handling for missing credentials in unit tests * Refactor code * Amend merge * Update api-solang package * Create GlobalSpreadsheet * Add phase 'prepareTransactions' * Split nabla extrinsic creation and submission * Bump api-solang package * Fix spreadsheet creation * Split functions for transactions into creation and submission * Add phase to prepare transactions * Fix tests * Fix some lint errors * Move storage logic to backend * Remove mutex * Increase timebounds of Stellar transactions * Move nabla code before swap again * Remove unused vars and config * Turn off mockSep24 * Changes for EUR offramp * redirect to failure after 15 minutes * remove brl * change redirect from progress page * Change name in package.json * Change default production signing service URL * Use proper hard coded gas limits (#100) * Rebasing * Update comment * Refactor ephemeral funding * Comment testnet Horizon url * More refactor * Remove unused imports * Update imports * Prettier * Update yarn.lock * Remove code used for testing * UI fixes for the vortex app (#96) * update benefits list * update navbar urls * implement validation of user's USDC polygon balance * Hide 'Select Chain' button * show available usdc/usdc.e balance * update yarnlock file * Make naming more generic --------- Co-authored-by: Torsten Stüber <[email protected]> * Update the EUR icon and name on Vortex UI (#95) * add EUR icon * show fiat icons in pool selector modal * improve code readability of SelectionModal * implement showing FIAT * simplify useGetIcon hook * Simplify and streamline icon definition * Fix bug for invalid token storage items --------- Co-authored-by: Torsten Stüber <[email protected]> * Disable the offramping button after flow start (#108) --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: zoveress <[email protected]> Co-authored-by: zoltansatoshipay <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]>
* Add evm wallet support to polygon prototype (#51) * Install `rainbowkit` wallet provider * Configure rainbowkit settings * Replace connect button * Define custom connectors * Update typescript * Remove unused wallet component * Create example showcase of wagmi hooks * Simplify global state * Amend merge * Add quick-fixes * Only define 'polygon' for supported chains * Remove useless hooks * added autodeploy (#64) Co-authored-by: zoltansatoshipay <[email protected]> * 42 integrate axelar bridge to polygon prototype (#60) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: bogdanS98 <[email protected]> * Use custom rpc endpoint to connect to polygon (#76) * Add `alchemyApiKey` to config * Simplify wagmiConfig and connect to custom polygon RPC * Implement New Vortex UI (#66) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]> * Vortex UI Screens (Mocked Flow) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * add progress screen * add beforeunload confirmation prompt * implement base version of SuccessDialog * Progress screen * add progress screen * add beforeunload confirmation prompt * implement Successful and Unsuccessful pages, imitate vortex flow * extract reusable components for success and failure screens * remove DropdownSelector --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> * Fix tests * 80 connect failure and success screens to logic (#82) * Link failure and success screens to execution logic * Incorporate PR comment * Add USDC and USDC.e support to the vortex pmf (#72) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Amend merge * Fix squidrouter tests * Configure icon for usdce * Configure happy-dom to make browser based tests work * Remove NumericInput.test.tsx because it doesn't work with vitest * Fix type error * Replace polyfill plugin (#85) * 46 integrate google analytics query into the prototype (#86) * Add basic event tracking * Add tracked events * Signing dialog box (#87) * add basic dialogbox component * implement styles for signing dialog * show SignerPopup when txs are pending * fix imports * improve signingPhase logic * remove console log * Sign transactions early and dump them to spreadsheet (#79) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Add spreadsheet packages * Add env variables for google credentials * Implement spreadsheet storage * Upgrade vite version * Increase vite test timeout * Refactor tests * Add small changes * Improve handling for missing credentials in unit tests * Refactor code * Amend merge * Update api-solang package * Create GlobalSpreadsheet * Add phase 'prepareTransactions' * Split nabla extrinsic creation and submission * Bump api-solang package * Fix spreadsheet creation * Split functions for transactions into creation and submission * Add phase to prepare transactions * Fix tests * Fix some lint errors * Move storage logic to backend * Remove mutex * Increase timebounds of Stellar transactions * Move nabla code before swap again * Remove unused vars and config * Turn off mockSep24 * Changes for EUR offramp * redirect to failure after 15 minutes * remove brl * change redirect from progress page * Change name in package.json * Change default production signing service URL * Use proper hard coded gas limits (#100) * UI fixes for the vortex app (#96) * update benefits list * update navbar urls * implement validation of user's USDC polygon balance * Hide 'Select Chain' button * show available usdc/usdc.e balance * update yarnlock file * Make naming more generic --------- Co-authored-by: Torsten Stüber <[email protected]> * Update the EUR icon and name on Vortex UI (#95) * add EUR icon * show fiat icons in pool selector modal * improve code readability of SelectionModal * implement showing FIAT * simplify useGetIcon hook * Simplify and streamline icon definition * Fix bug for invalid token storage items --------- Co-authored-by: Torsten Stüber <[email protected]> * Disable the offramping button after flow start (#108) --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: zoveress <[email protected]> Co-authored-by: zoltansatoshipay <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]>
* Add evm wallet support to polygon prototype (#51) * Install `rainbowkit` wallet provider * Configure rainbowkit settings * Replace connect button * Define custom connectors * Update typescript * Remove unused wallet component * Create example showcase of wagmi hooks * Simplify global state * Amend merge * Add quick-fixes * Only define 'polygon' for supported chains * Remove useless hooks * added autodeploy (#64) Co-authored-by: zoltansatoshipay <[email protected]> * 42 integrate axelar bridge to polygon prototype (#60) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: bogdanS98 <[email protected]> * Use custom rpc endpoint to connect to polygon (#76) * Add `alchemyApiKey` to config * Simplify wagmiConfig and connect to custom polygon RPC * Implement New Vortex UI (#66) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <[email protected]> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]> --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> Co-authored-by: gianfra-t <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]> * Vortex UI Screens (Mocked Flow) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * add progress screen * add beforeunload confirmation prompt * implement base version of SuccessDialog * Progress screen * add progress screen * add beforeunload confirmation prompt * implement Successful and Unsuccessful pages, imitate vortex flow * extract reusable components for success and failure screens * remove DropdownSelector --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: Gianfranco <[email protected]> * Fix tests * 80 connect failure and success screens to logic (#82) * Link failure and success screens to execution logic * Incorporate PR comment * Add USDC and USDC.e support to the vortex pmf (#72) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Amend merge * Fix squidrouter tests * Configure icon for usdce * Configure happy-dom to make browser based tests work * Remove NumericInput.test.tsx because it doesn't work with vitest * Fix type error * Replace polyfill plugin (#85) * 46 integrate google analytics query into the prototype (#86) * Add basic event tracking * Add tracked events * Signing dialog box (#87) * add basic dialogbox component * implement styles for signing dialog * show SignerPopup when txs are pending * fix imports * improve signingPhase logic * remove console log * Sign transactions early and dump them to spreadsheet (#79) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Add spreadsheet packages * Add env variables for google credentials * Implement spreadsheet storage * Upgrade vite version * Increase vite test timeout * Refactor tests * Add small changes * Improve handling for missing credentials in unit tests * Refactor code * Amend merge * Update api-solang package * Create GlobalSpreadsheet * Add phase 'prepareTransactions' * Split nabla extrinsic creation and submission * Bump api-solang package * Fix spreadsheet creation * Split functions for transactions into creation and submission * Add phase to prepare transactions * Fix tests * Fix some lint errors * Move storage logic to backend * Remove mutex * Increase timebounds of Stellar transactions * Move nabla code before swap again * Remove unused vars and config * Turn off mockSep24 * Changes for EUR offramp * redirect to failure after 15 minutes * remove brl * change redirect from progress page * Change name in package.json * Change default production signing service URL * Use proper hard coded gas limits (#100) * UI fixes for the vortex app (#96) * update benefits list * update navbar urls * implement validation of user's USDC polygon balance * Hide 'Select Chain' button * show available usdc/usdc.e balance * update yarnlock file * Make naming more generic --------- Co-authored-by: Torsten Stüber <[email protected]> * Update the EUR icon and name on Vortex UI (#95) * add EUR icon * show fiat icons in pool selector modal * improve code readability of SelectionModal * implement showing FIAT * simplify useGetIcon hook * Simplify and streamline icon definition * Fix bug for invalid token storage items --------- Co-authored-by: Torsten Stüber <[email protected]> * Disable the offramping button after flow start (#108) * Move ephemeral account funding logic to backend (#89) * Rebasing * Update comment * Refactor ephemeral funding * Comment testnet Horizon url * More refactor * Remove unused imports * Update imports * Prettier * Update yarn.lock * Remove code used for testing * Address comments * Revert "Move ephemeral account funding logic to backend (#89)" (#111) This reverts commit 7b04d1d. --------- Co-authored-by: Marcel Ebert <[email protected]> Co-authored-by: zoveress <[email protected]> Co-authored-by: zoltansatoshipay <[email protected]> Co-authored-by: Torsten Stüber <[email protected]> Co-authored-by: bogdanS98 <[email protected]> Co-authored-by: Kacper Szarkiewicz <[email protected]>
Closes #36
I also
number
to eitherstring
orBig
Big
is never stringified in exponential notation