Skip to content

[PE-7209] External wallet coin dropdown - #13283

Merged
dylanjeffers merged 5 commits into
mainfrom
pe-7209-external-wallet-coin-dropdown
Oct 21, 2025
Merged

[PE-7209] External wallet coin dropdown#13283
dylanjeffers merged 5 commits into
mainfrom
pe-7209-external-wallet-coin-dropdown

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Description

When user has connected an external wallet, we display a list of artist coins with balance in the external wallet for buy/sell/swap

@dylanjeffers
dylanjeffers requested a review from DejayJD October 21, 2025 19:23
@changeset-bot

changeset-bot Bot commented Oct 21, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9c6c80d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@DejayJD

DejayJD commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Just checked this locally, not quite working just yet -
2025-10-21 14 35 05

My wallet has SOL/USDC/CAPBOI/ABJONIAN so I should be seeing those 4 as my options

Comment on lines +105 to +114
const solToken = TOKEN_LISTING_MAP.SOL
coinsMap.set(solToken.address, {
symbol: solToken.symbol,
name: solToken.name,
decimals: solToken.decimals,
balance: null,
address: solToken.address,
logoURI: solToken.logoURI,
isStablecoin: false
})

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.

I dont think this is problematic since our internal wallets shouldn't have any sol but if I'm reading this right, this technically means SOL could show up for internal wallets

@dylanjeffers dylanjeffers Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, iirc we were thinking we may want this, but happy to drop if we dont want it. probably should drop it so we dont have to deal with sol limits etc?

Comment on lines +96 to +103
symbol: usdcToken.symbol,
name: usdcToken.name,
decimals: usdcToken.decimals,
balance: null,
address: env.USDC_MINT_ADDRESS,
logoURI: usdcToken.logoURI,
isStablecoin: true
})

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.

nit: ...usdcToken would do most of this

Comment on lines +132 to +135
if (context === 'pay') {
// For pay context, filter out USDC (users pay with artist coins)
filteredCoins = filteredCoins.filter((coin) => coin.symbol !== 'USDC')
}

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.

nit: don't love how this is set up, seems like an odd mix of business logic into this hook. But its probably not worth changing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fwiw this was already here, i just moved it out the artist-coin hook selector so it can operate on internal and external coins

Comment on lines +19 to +20
QUERY_KEYS.coins,
'wallet',

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.

dont like the random string here, also I think its own queryKey like walletCoins may just make more sense than coins > wallet

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah totally

cursor[bot]

This comment was marked as outdated.

@dylanjeffers
dylanjeffers merged commit ee7ee7f into main Oct 21, 2025
4 of 5 checks passed
@dylanjeffers
dylanjeffers deleted the pe-7209-external-wallet-coin-dropdown branch October 21, 2025 20:53
dylanjeffers added a commit that referenced this pull request Oct 21, 2025
### Description

When user has connected an external wallet, we display a list of artist
coins with balance in the external wallet for buy/sell/swap
audius-infra pushed a commit that referenced this pull request Oct 25, 2025
[4b1ce10] [PE-7239] Fix issues due to stale local storage data (#13311) Dylan Jeffers
[7a88ddf] Artist coins page size 1000 (#13313) Reed
[3d246f6] Some additional analytics around wallets & launchpad (#13312) JD Francis
[f22659e] [PE-7238] Add analytics for external wallet swaps (#13309) JD Francis
[421a9e9] 💚🟢🐸🥬 (#13308) JD Francis
[ffb4af9] Fix wallet connect not triggering success in claim flow (#13305) JD Francis
[68fa1a4] [PE-7229] Fix referrer signup (#13306) Dylan Jeffers
[6ed86b5] Version Packages (#13254) github-actions[bot]
[b9b22cd] [PE-7204] Associate wallets on solana /relay calls (#13299) JD Francis
[ad01774] Revert "[PE-7211] Claim fees after connect" (#13303) JD Francis
[1819c1e] fix mobile ci (#13302) JD Francis
[afeceae] Fix AUDIO breakdown (#13298) Farid Salau
[68eace6] birdeye.so (#13301) Marcus Pasell
[30f3e66] [PE-7215] Add sol back into the list of tokens + Dont show 'add cash' (#13295) JD Francis
[6e74a41] Fix CI (#13297) Farid Salau
[e68b261] [PE-7212] Claim fees optimistic updates (#13290) Dylan Jeffers
[d1000f1] [PE-7211] Claim fees after connect (#13291) Dylan Jeffers
[f1f1e94] [PE-7210] Handle lowercase coin urls (#13284) Dylan Jeffers
[8eade23] [PE-7226] Fix issues with confirmation screen (#13294) JD Francis
[0b58a67] [PE-7198] Update mobile profile edit flow UI (#13271) Farid Salau
[dd17039] eth key exporter (#13293) alecsavvy
[a6d5e9d] Use production wAUDIO on stage (#13288) Marcus Pasell
[0bd603d] [PE-7213] Prevent claiming dust (#13289) Dylan Jeffers
[b4dde83] Add polling for audio balance changes (#13228) JD Francis
[315865f] Fix lint (#13285) Dylan Jeffers
[ee7ee7f] [PE-7209] External wallet coin dropdown (#13283) Dylan Jeffers
[d4f7649] [PE-7191] External wallet swap flow (#13276) JD Francis
[4a38e63] Rename asset to coin (#13275) Dylan Jeffers
[c3ffa17] Show DAMM V2 Fees in UI (#13280) Marcus Pasell
[172f129] Remove extra dbcpool arg (#13269) Ray Jacobson
[3dafa35] [PE-7199] Refactor buy/sell flow coin filtering logic  (#13272) Farid Salau
[c1d796d] [PE-7193] Announcement notifs link to artist coin explore (#13266) Reed
[3e561d2] [PE-7197] Update ArtistCoinHoverCard to include member vs creator  (#13270) Farid Salau
[50878b5] Small QA items (#13273) Farid Salau
[932fbdb] Remove search explore flag (#13261) Dylan Jeffers
[5da716e] [PE-7163] Redirect mispelled coins to 404 (#13274) Ray Jacobson
[6866949] Finalize mobile search explore (#13260) Dylan Jeffers
[0ec2f5f] [PE-7189] Add balance breakdown component  (#13262) Farid Salau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants