Skip to content

Commit

Permalink
remove gas price specification (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tburm authored Jul 15, 2022
1 parent fe01b02 commit 77cecb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sections/exchange/hooks/useExchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ const useExchange = ({
'Synthetix',
isAtomic ? 'exchangeAtomically' : 'exchangeWithTracking',
exchangeParams!,
gasPrice ?? undefined,
undefined,
{
enabled: (needsApproval ? isApproved : true) && !!exchangeParams && !!walletAddress,
}
Expand Down Expand Up @@ -707,7 +707,7 @@ const useExchange = ({
'SynthRedeemer',
'redeemAll',
[redeemableDeprecatedSynths?.balances.map((b) => b.proxyAddress)],
gasPrice ?? undefined,
undefined,
{ enabled: !!redeemableDeprecatedSynths && redeemableDeprecatedSynths?.totalUSDBalance.gt(0) }
);

Expand Down Expand Up @@ -787,15 +787,15 @@ const useExchange = ({
quoteCurrencyContract,
'approve',
[approveAddress, ethers.constants.MaxUint256],
gasPrice ?? undefined,
undefined,
{ enabled: !!approveAddress && !!quoteCurrencyKey && !!oneInchTokensMap && needsApproval }
);

const settleTxn = useSynthetixTxn(
'Exchanger',
'settle',
[walletAddress, destinationCurrencyKey],
gasPrice ?? undefined,
undefined,
{ enabled: !isL2 && numEntries >= 12 }
);

Expand Down

1 comment on commit 77cecb2

@vercel
Copy link

@vercel vercel bot commented on 77cecb2 Jul 15, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

kwenta – ./

kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app
kwenta.io
v2.beta.kwenta.io

Please sign in to comment.