Skip to content

Commit c7865d1

Browse files
Increased gas fees limits
1 parent e9165f1 commit c7865d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/flare_ai_defai/blockchain/flare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ def create_contract_function_tx(self, user:UserInfo, contract: Contract, functio
221221
"from": self.wallet_store.get_address(user),
222222
"nonce": nonce,
223223
"gas": kwargs.get("gas", 200000),
224-
"maxFeePerGas": gas_price + priority_fee,
225-
"maxPriorityFeePerGas": priority_fee,
224+
"maxFeePerGas": 2*(gas_price + priority_fee),
225+
"maxPriorityFeePerGas": 2*(priority_fee),
226226
"chainId": self.w3.eth.chain_id,
227227
"value": kwargs.get("value", 0),
228228
})

src/flare_ai_defai/blockchain/sparkdex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ def swap_erc20_tokens_tx(self, user: UserInfo, token_in: str, token_out: str, am
623623
approval_tx = contract_in.functions.approve(universal_router_address, amount_in_wei).build_transaction({
624624
'from': self.wallet_store.get_address(user),
625625
'nonce': self.get_nonce(),
626-
"maxFeePerGas": base_fee + priority_fee,
627-
"maxPriorityFeePerGas": priority_fee,
626+
"maxFeePerGas": 10*(base_fee + priority_fee),
627+
"maxPriorityFeePerGas": 10*(priority_fee),
628628
'chainId': self.w3.eth.chain_id,
629629
"type": 2,
630630
})

0 commit comments

Comments
 (0)