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

fix: change default tx deadline to 10m #7451

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

just-toby
Copy link
Contributor

Description

updates the default deadline from 30 minutes (1800 seconds) to 10 minutes (600 seconds). this includes changing the constant value used to seed the default state, but also includes a migration for all users who had the old default value persisted.

Linear ticket: https://linear.app/uniswap/issue/WEB-2938/30m-feels-high-for-classic-swaps-xinwan-and-austinadams-can-weigh-in
Relevant docs: https://www.notion.so/Redux-migrations-in-interface-30aca899626a4ac4af7b070f92ce976d

Test plan

QA (ie manual testing)

  • manually loaded the app and verified that user.userDeadline had the new default value saved in my IndexedDB

Automated testing

  • Unit test

@just-toby just-toby requested review from a team and cbachmeier October 11, 2023 16:46
@vercel
Copy link

vercel bot commented Oct 11, 2023

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

Name Status Preview Comments Updated (UTC)
interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2023 5:21pm

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #7451 (587c91c) into main (04bf075) will increase coverage by 0.08%.
Report is 10 commits behind head on main.
The diff coverage is 100.00%.

Flag Coverage Δ
cloud-tests 83.60% <ø> (ø)
unit-tests 42.52% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@cbachmeier cbachmeier requested a review from JFrankfurt October 11, 2023 16:56
@cypress
Copy link

cypress bot commented Oct 11, 2023

3 flaky tests on run #14985 ↗︎

0 118 0 0 Flakiness 3

Details:

fix: change default tx deadline to 10m
Project: Uniswap Interface Commit: 587c91cb99
Status: Passed Duration: 05:55 💡
Started: Oct 11, 2023 5:25 PM Ended: Oct 11, 2023 5:31 PM
Flakiness  cypress/e2e/swap/uniswapx.test.ts • 3 flaky tests • e2e

View Output Video

Test Artifacts
UniswapX Toggle > prompts opt-in if UniswapX is better Output Screenshots
UniswapX Orders > can swap exact-out trades using uniswapX Output Screenshots
UniswapX Orders > renders proper view if uniswapx order expires Output Screenshots

Review all test suite changes for PR #7451 ↗︎

Copy link
Contributor

@cbachmeier cbachmeier left a comment

Choose a reason for hiding this comment

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

LGTM minor nits and qs

src/constants/misc.ts Outdated Show resolved Hide resolved
src/state/migrations/1.ts Show resolved Hide resolved
src/state/migrations/1.test.ts Show resolved Hide resolved
src/state/migrations/1.test.ts Show resolved Hide resolved
Copy link
Contributor

@mattbspector mattbspector left a comment

Choose a reason for hiding this comment

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

LGTM

@just-toby just-toby merged commit aee4df1 into main Oct 11, 2023
23 checks passed
@just-toby just-toby deleted the fix/change-default-expiration-time branch October 11, 2023 19:15
tinaszheng pushed a commit that referenced this pull request Oct 13, 2023
* fix: change deadline to 10m

* test: add unit tests

* fix: improve unit tests
tinaszheng added a commit that referenced this pull request Oct 13, 2023
fix: change default tx deadline to 10m (#7451)

* fix: change deadline to 10m

* test: add unit tests

* fix: improve unit tests

Co-authored-by: eddie <[email protected]>
tinaszheng added a commit that referenced this pull request Oct 13, 2023
* fix: change default tx deadline to 10m (#7451)

* fix: change deadline to 10m

* test: add unit tests

* fix: improve unit tests

* feat: Remove local routing setting (#7462)

* remove client side router preference

* update e2e test

* fix comment

---------

Co-authored-by: eddie <[email protected]>
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