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: input toggle for batched transfers #1852

Merged
merged 38 commits into from
Sep 9, 2024
Merged

feat: input toggle for batched transfers #1852

merged 38 commits into from
Sep 9, 2024

Conversation

brtkx
Copy link
Contributor

@brtkx brtkx commented Aug 20, 2024

PR-7 from https://www.notion.so/arbitrum/Batched-ERC20-ETH-transfers-0df3704c9aef464cb443c0b97d852465

Enable the feature with query param experiments=batch

  • amount2 input toggle button
  • summary amounts include extra ETH now
  • amount2 input description text

image (5)

@cla-bot cla-bot bot added the cla-signed label Aug 20, 2024
Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Sep 9, 2024 10:57am

Comment on lines 209 to 211
You are able to move ETH in the same transaction, but you are
not required to do so. This is the minimum ETH amount you will
get, but you may get a bit more dependent on the gas usage.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You are able to move ETH in the same transaction, but you are
not required to do so. This is the minimum ETH amount you will
get, but you may get a bit more dependent on the gas usage.
You can transfer ETH in the same transaction if you wish to. This is the approximate amount you will receive. The final amount depends on actual gas usage. It usually varies by 0.00x ETH.

we should give an approx of 0.00x ETH so that users know what to expect

i am not entirely sure if it is the minimum or can be less than the amount user inputs
feel free to adjust the text accordingly

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 - The content here should be approved by the product team.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about specifying the approximate amount, it's pretty much the amount you write in the amount2 input

@@ -163,6 +183,9 @@ export function TransferPanelMainInput(props: TransferPanelMainInputProps) {
)}
>
<TransferPanelInputField {...rest} />
{typeof inputCollapseOnClick !== 'undefined' && (
<CollapseInputButton onClick={inputCollapseOnClick} />
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure if we should have the Close button within the input field beside max button. I think it should be outside of the input, shrinking the field a by a little bit - we must consult design team to finalize this.

Comment on lines 209 to 211
You are able to move ETH in the same transaction, but you are
not required to do so. This is the minimum ETH amount you will
get, but you may get a bit more dependent on the gas usage.
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 - The content here should be approved by the product team.

Base automatically changed from batch-erc20-eth-6 to master August 22, 2024 17:24
@spsjvc spsjvc merged commit bf1f26f into master Sep 9, 2024
33 of 36 checks passed
@spsjvc spsjvc deleted the batch-erc20-eth-7 branch September 9, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants