Skip to content

fix: fund from exchange not working at first try#4941

Merged
tomiir merged 6 commits intomainfrom
fix/fund-from-exchange-first-try
Sep 2, 2025
Merged

fix: fund from exchange not working at first try#4941
tomiir merged 6 commits intomainfrom
fix/fund-from-exchange-first-try

Conversation

@0xmkh
Copy link
Copy Markdown
Collaborator

@0xmkh 0xmkh commented Sep 2, 2025

Description

Fixed an issue where funding from the exchange had a preset dollar amount causing it to fail on the first attempt

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-xxx
For GH issues: closes #...

Showcase (Optional)

image image

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copilot AI review requested due to automatic review settings September 2, 2025 09:57
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 2, 2025

🦋 Changeset detected

Latest commit: f31b022

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 25 packages
Name Type
@reown/appkit-controllers Patch
pay-test-exchange Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-common Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-pay Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-ui Patch
@reown/appkit-universal-connector Patch
@reown/appkit-wallet Patch
@reown/appkit-wallet-button Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Ready Ready Preview Comment Sep 2, 2025 11:38am
appkit-demo Ready Ready Preview Comment Sep 2, 2025 11:38am
appkit-gallery Ready Ready Preview Comment Sep 2, 2025 11:38am
appkit-laboratory Ready Ready Preview Comment Sep 2, 2025 11:38am
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Sep 2, 2025 11:38am
appkit-basic-sign-client-example Ignored Ignored Sep 2, 2025 11:38am
appkit-basic-up-example Ignored Ignored Sep 2, 2025 11:38am
appkit-ethers5-bera Ignored Ignored Sep 2, 2025 11:38am
appkit-nansen-demo Ignored Ignored Sep 2, 2025 11:38am
appkit-vue-solana Ignored Ignored Sep 2, 2025 11:38am
appkit-wagmi-cdn-example Ignored Ignored Sep 2, 2025 11:38am
ethereum-provider-wagmi-example Ignored Ignored Sep 2, 2025 11:38am
next-wagmi-solana-bitcoin-example Ignored Ignored Sep 2, 2025 11:38am
vue-wagmi-example Ignored Ignored Sep 2, 2025 11:38am

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where funding from the exchange failed on the first attempt due to a preset dollar amount of $10. The fix changes the default amount from 10 to 0 in the ExchangeController's initial state.

  • Changed default amount from 10 to 0 in ExchangeController state
  • Added test coverage to verify the default state
  • Exported DEFAULT_STATE constant for testing purposes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ExchangeController.ts Changed default amount from 10 to 0 and exported DEFAULT_STATE constant
ExchangeController.test.ts Added test to verify default state and imported DEFAULT_STATE
tall-peaches-clap.md Added changeset documenting the bug fix

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

cursor[bot]

This comment was marked as outdated.

@0xmkh 0xmkh changed the title fix: fund from exhcnage not working at first try fix: fund from exchange not working at first try Sep 2, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 2, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.32% 34860 / 44505
🔵 Statements 78.32% 34860 / 44505
🔵 Functions 76.09% 3838 / 5044
🔵 Branches 86.65% 8227 / 9494
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/controllers/src/controllers/ExchangeController.ts 92.98% 90.14% 81.25% 92.98% 75, 106-114, 119-120, 177, 266-274, 307
packages/scaffold-ui/src/views/w3m-deposit-from-exchange-view/index.ts 70% 79.41% 78.57% 70% 50-51, 66-68, 71-72, 78-80, 102-105, 174-180, 191-194, 200-227
Generated in workflow #14725 for commit f31b022 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Collaborator

@tomiir tomiir left a comment

Choose a reason for hiding this comment

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

adapt the changeset and looks good!

cursor[bot]

This comment was marked as outdated.

@0xmkh 0xmkh removed this pull request from the merge queue due to a manual request Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@0xmkh 0xmkh added this pull request to the merge queue Sep 2, 2025
@0xmkh 0xmkh removed this pull request from the merge queue due to a manual request Sep 2, 2025
@tomiir tomiir merged commit 721bfcf into main Sep 2, 2025
41 checks passed
@tomiir tomiir deleted the fix/fund-from-exchange-first-try branch September 2, 2025 13:54
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.

3 participants