Skip to content

Commit

Permalink
fix: remove gas params
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-Solulab committed Oct 30, 2024
1 parent 6d3e7ad commit 30f6c3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
"operationalFundReq": SUGGESTED_TOP_UP_DEFAULT * 5,
"gasParams": {
# this means default values will be used
"MAX_PRIORITY_FEE_PER_GAS": "500",
"MAX_FEE_PER_GAS": "1000000000",
"MAX_PRIORITY_FEE_PER_GAS": "",
"MAX_FEE_PER_GAS": "",
}
},
8453: {
Expand All @@ -103,8 +103,8 @@
"usdcRequired": False,
"gasParams": {
# this means default values will be used
"MAX_PRIORITY_FEE_PER_GAS": "500",
"MAX_FEE_PER_GAS": "1000000000",
"MAX_PRIORITY_FEE_PER_GAS": "",
"MAX_FEE_PER_GAS": "",
}
},
}
Expand Down Expand Up @@ -719,13 +719,13 @@ def main() -> None:
if chain_id != 1:
agent_balance = ledger_api.get_balance(address=service.keys[0].address)
#we only top up if current balance is less than 50% of required balance
if agent_balance < 0.5 * agent_fund_requirement:
if agent_balance < 0.3 * agent_fund_requirement:
agent_fund_requirement = agent_fund_requirement - agent_balance
else:
agent_fund_requirement = 0

operator_balance = ledger_api.get_balance(wallet.crypto.address)
if operator_balance < 0.5 * operational_fund_req:
if operator_balance < 0.3 * operational_fund_req:
operational_fund_req = operational_fund_req - operator_balance
else:
operational_fund_req = 0
Expand Down

0 comments on commit 30f6c3b

Please sign in to comment.