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

Release 55 #1502

Merged
merged 55 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
1b99b1a
suggest execution fee increase
divhead Dec 25, 2024
cb5d1e6
fix formula before premium
divhead Dec 26, 2024
3b80f56
fix exexution buffer formula
divhead Dec 26, 2024
97af137
pass gasLimit params
divhead Dec 26, 2024
392e71c
Merge branch 'master' of https://github.com/gmx-io/gmx-interface into…
divhead Jan 1, 2025
32588ec
Merge branch 'release-54' of https://github.com/gmx-io/gmx-interface …
divhead Jan 1, 2025
5749e20
add dots
divhead Jan 3, 2025
f7181e5
Merge branch 'release-54' of https://github.com/gmx-io/gmx-interface …
divhead Jan 4, 2025
bc6c0a7
simplify error parsing
divhead Jan 4, 2025
7556fb1
add users-denied msg
divhead Jan 4, 2025
eb99e42
add advacned error handling
divhead Jan 4, 2025
c1d3123
add user canceled
divhead Jan 4, 2025
3e2547f
rollback typechain-types
divhead Jan 6, 2025
577af20
remove testing hardcode premium
divhead Jan 6, 2025
2417100
init release 55
divhead Jan 9, 2025
9a935a5
/earn fix texts
midas-myth Jan 9, 2025
8b81e96
Merge branch 'master' of https://github.com/gmx-io/gmx-interface into…
divhead Jan 9, 2025
f36c34c
refactor by review
divhead Jan 13, 2025
3b8f521
Merge branch 'master' of https://github.com/gmx-io/gmx-interface into…
divhead Jan 13, 2025
fc17ae4
Merge pull request #1476 from gmx-io/hotfix-handle-execution-fee-error
divhead Jan 13, 2025
038f8a5
Tooltip number formatting
midas-myth Dec 27, 2024
a55e543
New token amounts formatting in some tooltips
midas-myth Jan 1, 2025
4a03d1d
min receive number formatting for swap order edit
midas-myth Jan 1, 2025
6871fa3
Use balance formatting in /earn
midas-myth Jan 10, 2025
c80fa28
Merge branch 'master' of https://github.com/gmx-io/gmx-interface into…
divhead Jan 13, 2025
6ab2a95
netllify force
midas-myth Jan 13, 2025
3703784
merge master
divhead Jan 13, 2025
9ea49c0
merge release
divhead Jan 13, 2025
eafc08d
Merge pull request #1484 from gmx-io/collateral-formattiing
midas-myth Jan 13, 2025
0428818
add isPassed field + do not wait promise
divhead Jan 13, 2025
bf96131
refactor + add test cases
divhead Jan 13, 2025
837a42a
Sorting persistence
midas-myth Dec 20, 2024
9d32229
Reorder mobile TVChartHeader fields
midas-myth Dec 20, 2024
852a7f2
Button scroll fade autoscroll to selected button
midas-myth Dec 20, 2024
7b9d433
Add avax as layer1
midas-myth Dec 20, 2024
70ad845
Fix scroll shade overscroll
midas-myth Dec 23, 2024
d9029e7
Fix kPEPE price decimals
midas-myth Dec 23, 2024
7ae84e1
Fix pool selector in gm swap and shift
midas-myth Dec 23, 2024
3602406
Move sorterPersistence to domain
midas-myth Dec 24, 2024
43dd7fb
Fix merge effect
midas-myth Dec 26, 2024
f857d53
Remove sorter persistence
midas-myth Jan 10, 2025
6d22548
fix merge effect
midas-myth Jan 10, 2025
75e6ddd
Merge pull request #1503 from gmx-io/fix-earn-texts
midas-myth Jan 13, 2025
7f78986
refactor errors
divhead Jan 13, 2025
838e14b
Fix position remaining collateral display
midas-myth Jan 13, 2025
d6be814
remove testing errors
divhead Jan 14, 2025
a2b98a3
Merge pull request #1506 from gmx-io/fix-position-coll-display
midas-myth Jan 14, 2025
8688cb3
remove AB tests for landing modal and block timestamp
divhead Jan 14, 2025
a299d00
Merge pull request #1492 from gmx-io/onchain-errors
divhead Jan 14, 2025
cdd0ebb
remove AB tests for landing modal and block timestamp
divhead Jan 14, 2025
f01048b
Merge pull request #1508 from gmx-io/master
divhead Jan 14, 2025
ec4082a
Merge branch 'release-55' of https://github.com/gmx-io/gmx-interface …
divhead Jan 14, 2025
dd65ee8
Refactor context code placement
midas-myth Jan 14, 2025
7c13a7f
Merge pull request #1468 from gmx-io/enhance-dropdowns
midas-myth Jan 14, 2025
4e7bc31
Merge pull request #1507 from gmx-io/disable-ab
divhead Jan 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor errors
  • Loading branch information
divhead committed Jan 13, 2025
commit 7f789863302c8ebd4e80f1fac1070737217cc2ec
6 changes: 4 additions & 2 deletions src/lib/contracts/transactionErrors.tsx
Original file line number Diff line number Diff line change
@@ -68,13 +68,13 @@ const TX_ERROR_PATTERNS: { [key in TxErrorType]: ErrorPattern[] } = {

const UNRECOGNIZED_ERROR_PATTERNS: ErrorPattern[] = [
{ msg: "header not found" },
{ msg: "cannot query unfinalized data" },
{ msg: "unfinalized data" },
{ msg: "could not coalesce error" },
{ msg: "Internal JSON RPC error" },
// ONLY FOR TESTING
{ msg: "ethers-user-denied" },
{ msg: "transfer amount exceeds" },
{ msg: "insufficient funds for gas" },
{ msg: "insufficient funds" },
];

export type TxError = {
@@ -267,6 +267,8 @@ export function getAdditionalValidationType(error: Error) {

const shouldTryEstimateGas = errorData?.errorStack && errorData.errorStack.includes("estimateGas");

console.log("shouldTryEstimateGas", shouldTryEstimateGas, errorData?.errorStack);

if (shouldTryEstimateGas) {
return "tryEstimateGas";
}