-
Notifications
You must be signed in to change notification settings - Fork 415
Fix multichain FEDEV-3074 #2119
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
Conversation
… unified TechnicalGmFees type. Update fee estimation logic for deposits and withdrawals, enhancing clarity and maintainability. Introduce buildDepositTransferRequests and buildWithdrawalTransferRequests functions for improved transfer request management.
…tichain-lp-gmx-acc-fix
… unified TechnicalGmFees type. Update fee estimation logic for deposits and withdrawals, enhancing clarity and maintainability. Introduce buildDepositTransferRequests and buildWithdrawalTransferRequests functions for improved transfer request management.
…ndling and selector usage. Removed unnecessary account and marketInfo checks, streamlined conditions for order submission, and updated token data selectors for consistency. Enhanced logic for determining best GM market based on amount changes.
…, simplifying conditions for deposit creation. This enhances clarity and maintains functionality.
…d optional shouldUseSignerMethod parameter. Update related fee estimation logic to use the new function signature, enhancing flexibility in signing transactions.
Deploying gmx-interface-home with
|
| Latest commit: |
c37acac
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2cb872bc.gmx-interface-home.pages.dev |
| Branch Preview URL: | https://fedev-3074-fix-multichain-tx.gmx-interface-home.pages.dev |
Deploying gmx-interface with
|
| Latest commit: |
c37acac
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://136d13ea.gmx-interface.pages.dev |
| Branch Preview URL: | https://fedev-3074-fix-multichain-tx.gmx-interface.pages.dev |
|
@cursor review |
src/components/GmSwap/GmSwapBox/GmDepositWithdrawalBox/lpTxn/useWithdrawalTransactions.tsx
Show resolved
Hide resolved
src/components/GmSwap/GmSwapBox/GmDepositWithdrawalBox/useGmSwapSubmitState.tsx
Show resolved
Hide resolved
…rawalTransactions hooks. Remove unnecessary fee checks and update conditions for execution fee calculation, improving clarity and maintainability.
…3074-fix-multichain-tx
…o fee types. Update deposit and withdrawal transaction hooks to utilize these flags for improved logic flow.
…stimateGasParameters for improved clarity and maintainability. Introduce state overrides for relayer fee token and DataStore, enhancing the handling of gas payment parameters.
…6 by 100n to avoid overflow
|
@cursor review |
src/components/GmSwap/GmSwapBox/GmDepositWithdrawalBox/useDepositWithdrawalFees.tsx
Outdated
Show resolved
Hide resolved
…use getByKey for improved safety and clarity. Add check for wrapped token data existence to prevent potential errors.
| } | ||
| const wrappedTokenPrice = getMidPrice(wrappedTokenData.prices); | ||
| const keeperUsd = convertToUsd(technicalFees.fees.feeTokenAmount, wrappedToken.decimals, wrappedTokenPrice)!; | ||
| logicalNetworkFeeUsd = keeperUsd * -1n; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move it to pure function from hook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved
| DATASTORE_SLOT_INDEXES.uintValues | ||
| ), | ||
| value: toHex(maxUint256), | ||
| value: toHex(maxUint256 / 100n, { size: 32 }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why / 100n?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to constant and explained
…3074-fix-multichain-tx
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no bugs!
src/domain/synthetics/markets/technicalFees/calculateGmxAccountTechnicalFees.ts
Outdated
Show resolved
Hide resolved
src/components/GmSwap/GmSwapBox/GmDepositWithdrawalBox/lpTxn/useDepositTransactions.tsx
Show resolved
Hide resolved
- Updated the hook to replace second token references with long and short token amounts for improved clarity. - Adjusted the type to reflect the new token amount structure. - Modified the function to utilize the updated parameters for long and short token amounts.
…f express transaction parameters
…l error checks and warnings
…3074-fix-multichain-tx
74d7488 to
2841f6a
Compare
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no bugs!
…alView components
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no bugs!
Note
Modernizes GM/GLV multichain deposit/withdrawal flows with unified fee/transfer handling and signerless express tx builds.
TechnicalGmFees(sourceChain/gmxAccount/settlementChain) and rewires fee usage across deposit/withdrawal paths, logical fee calc, and submit-state validationbuildDepositTransferRequestsandbuildWithdrawalTransferRequestsuseMultichain*ExpressTxnParams) and market tx creators to supportemptySignature(no signer) for payload buildinguseTechnicalFeesAsyncResult) to compute execution/relay fees for all pay sources and actions, using new relay param utilitiesWritten by Cursor Bugbot for commit 7e90156. This will update automatically on new commits. Configure here.