File tree Expand file tree Collapse file tree
app/components/UI/Money/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export function useMoneyAccountDeposit() {
9292 }
9393
9494 const networkClientId = resolveNetworkClientId ( chainIdHex ) ;
95+ const isGasFeeSponsored = isMonadMainnetChainId ( chainIdHex ) ;
9596
9697 const batchId = bytesToHex ( new Uint8Array ( uuidParse ( uuidv4 ( ) ) ) ) ;
9798 depositIntentByBatchId . set ( batchId . toLowerCase ( ) , intent ) ;
@@ -123,6 +124,7 @@ export function useMoneyAccountDeposit() {
123124 disableHook : true ,
124125 disableSequential : true ,
125126 from : primaryMoneyAccount . address as Hex ,
127+ isGasFeeSponsored,
126128 isInternal : true ,
127129 networkClientId,
128130 origin : ORIGIN_METAMASK ,
@@ -133,7 +135,7 @@ export function useMoneyAccountDeposit() {
133135 standard : 'erc20' ,
134136 } ,
135137 ] ,
136- skipInitialGasEstimate : true ,
138+ skipInitialGasEstimate : isGasFeeSponsored ,
137139 transactions : [ approveTx , depositTx ] ,
138140 } ) ;
139141 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments