Skip to content

Commit

Permalink
update constants, add gas price, add tax token
Browse files Browse the repository at this point in the history
  • Loading branch information
NIXBNT authored and platonfloria committed May 23, 2024
1 parent 527ea84 commit 0fdf364
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fastlane_bot/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"coinbase_base": 0,
"fantom": 0.0003,
"mantle": 0,
"telos": 0,
}

ETHEREUM = "ethereum"
Expand Down Expand Up @@ -46,4 +47,5 @@
"mantle": 0,
"linea": 0,
"sei": 0,
"telos": 0,
}
4 changes: 4 additions & 0 deletions fastlane_bot/config/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,10 @@ class _ConfigNetworkTelos(ConfigNetwork):
# Add any exchanges unique to the chain here
CHAIN_SPECIFIC_EXCHANGES = []

TAX_TOKENS = set([
"0x3E51e37350356B2D3ad84bD8146e48ac63E371a8", # BABYZAP
])

class _ConfigNetworkTenderly(ConfigNetwork):
"""
Fastlane bot config -- network [Ethereum Tenderly]
Expand Down
2 changes: 1 addition & 1 deletion fastlane_bot/helpers/txhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def validate_and_submit_transaction(
if self.cfg.SUPPORTS_EIP1559:
gas_cost_wei = tx["gas"] * tx["maxFeePerGas"]
else:
gas_cost_wei = tx["gas"]
gas_cost_wei = tx["gas"] * tx["gasPrice"]
if self.cfg.network.GAS_ORACLE_ADDRESS:
gas_cost_wei += self.cfg.GAS_ORACLE_CONTRACT.caller.getL1Fee(raw_tx)

Expand Down

0 comments on commit 0fdf364

Please sign in to comment.