Skip to content

fix(PayWebsiteForm): set min send amount based on wallets involved#1099

Merged
sidvishnoi merged 6 commits into
mainfrom
bugfix/issue-1071-fix-min-send-amount
Jun 24, 2025
Merged

fix(PayWebsiteForm): set min send amount based on wallets involved#1099
sidvishnoi merged 6 commits into
mainfrom
bugfix/issue-1071-fix-min-send-amount

Conversation

@kjmitchelljr
Copy link
Copy Markdown
Collaborator

Context

Closes #1071

Changes proposed in this pull request

Removes the hard coded value of $0.02 in the Pay Website Form for the minimum amount.

The change should reflect the currency of the wallet for the minimum payment to send.

@kjmitchelljr kjmitchelljr requested a review from sidvishnoi June 17, 2025 04:01
@kjmitchelljr kjmitchelljr self-assigned this Jun 17, 2025
@kjmitchelljr kjmitchelljr linked an issue Jun 17, 2025 that may be closed by this pull request
@github-actions github-actions Bot added area: background Improvements or additions to extension background script area: popup Improvements or additions to extension popup area: pages Changes to any of extension's pages area: shared Changes to shared libraries and utilities labels Jun 17, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 17, 2025

Extension builds preview

Name Link
Latest commit cfb508c
Latest job logs Run #15846442593
Chrome (1000.05KB)Download
Firefox (1000.08KB)Download

Comment thread src/background/services/monetization.ts Outdated
Comment thread src/background/services/monetization.ts Outdated
Comment thread src/background/services/monetization.ts Outdated
Comment thread src/background/services/paymentManager.ts Outdated
Comment thread src/background/services/paymentManager.ts Outdated
@kjmitchelljr
Copy link
Copy Markdown
Collaborator Author

Thank you for review @sidvishnoi, I'll make those changes today.

One more thing I was wondering when making the change here in monetization.ts

async getPopupData(tab: Pick<Tabs.Tab, 'id' | 'url'>): Promise<PopupStore>

I noticed in storage there does exist minRateOfPay, is that something that we could also rely on since we already have access to it or would we always want to get in from the PaymentManager

@sidvishnoi
Copy link
Copy Markdown
Member

I noticed in storage there does exist minRateOfPay

It doesn't exist anymore with #1085.

Storage is about more permanent things. minRateOfPay changes depending on website (tab) and what wallets they're using, and what wallets user can send money to.

@kjmitchelljr
Copy link
Copy Markdown
Collaborator Author

@sidvishnoi I've went ahead and made some of the changes that were previously requested. Wrapping up local testing.

@sidvishnoi sidvishnoi marked this pull request as ready for review June 18, 2025 16:14
Comment thread src/background/services/monetization.ts Outdated
Comment thread src/background/services/paymentManager.ts Outdated
Comment thread src/shared/types.ts Outdated
@sidvishnoi sidvishnoi changed the title fix(bg,form): dynamically change min send amount in pay-form fix(PayWebsiteForm): set min send amount based on wallets involved Jun 18, 2025
@kjmitchelljr kjmitchelljr force-pushed the bugfix/issue-1071-fix-min-send-amount branch from cbff92d to 882a43f Compare June 23, 2025 18:39
Copy link
Copy Markdown
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@sidvishnoi sidvishnoi merged commit eabc6a4 into main Jun 24, 2025
9 checks passed
@sidvishnoi sidvishnoi deleted the bugfix/issue-1071-fix-min-send-amount branch June 24, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: background Improvements or additions to extension background script area: i18n area: pages Changes to any of extension's pages area: popup Improvements or additions to extension popup area: shared Changes to shared libraries and utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

min send amount in pay-form is hard coded at 0.02

2 participants