From 637f86efb046eee4686689de64ab379a26a95841 Mon Sep 17 00:00:00 2001 From: Mike Casale <46603283+mikewcasale@users.noreply.github.com> Date: Tue, 23 Jan 2024 03:33:14 -0800 Subject: [PATCH 1/4] Fixes an issue whereby StrategyCreated events by Carbon were not properly handled - Carbon cid values are provided by the contract and are int types, whereas all other exchange cid values are generated by hashing the descr (exchange tkn1/tkn2 fee) info. - This fix ensures that the types and values of carbon cid's are preserved --- fastlane_bot/events/async_event_update_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastlane_bot/events/async_event_update_utils.py b/fastlane_bot/events/async_event_update_utils.py index ff1784624..a2c734f34 100644 --- a/fastlane_bot/events/async_event_update_utils.py +++ b/fastlane_bot/events/async_event_update_utils.py @@ -474,6 +474,8 @@ def async_update_pools_from_contracts(mgr: Any, current_block: int, logging_path # Initialize web3 new_pool_data_df["cid"] = [ cfg.w3.keccak(text=f"{row['descr']}").hex() + if row["exchange_name"] != "carbon_v1" + else int(row['cid']) for index, row in new_pool_data_df.iterrows() ] From bc9305b3cb032efe9424e2591e959690d99f9682 Mon Sep 17 00:00:00 2001 From: Mike Casale <46603283+mikewcasale@users.noreply.github.com> Date: Tue, 23 Jan 2024 05:58:54 -0800 Subject: [PATCH 2/4] Update async_event_update_utils.py --- fastlane_bot/events/async_event_update_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane_bot/events/async_event_update_utils.py b/fastlane_bot/events/async_event_update_utils.py index a2c734f34..9785b32a1 100644 --- a/fastlane_bot/events/async_event_update_utils.py +++ b/fastlane_bot/events/async_event_update_utils.py @@ -474,7 +474,7 @@ def async_update_pools_from_contracts(mgr: Any, current_block: int, logging_path # Initialize web3 new_pool_data_df["cid"] = [ cfg.w3.keccak(text=f"{row['descr']}").hex() - if row["exchange_name"] != "carbon_v1" + if row["exchange_name"] not in mgr.cfg.CARBON_V1_FORKS else int(row['cid']) for index, row in new_pool_data_df.iterrows() ] From 140a1def225a804bd66cc7b1c882a830b929ebec Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 23 Jan 2024 21:45:28 +0000 Subject: [PATCH 3/4] Bump version [skip ci] --- fastlane_bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane_bot/__init__.py b/fastlane_bot/__init__.py index d4944ab56..0e96ab411 100644 --- a/fastlane_bot/__init__.py +++ b/fastlane_bot/__init__.py @@ -1,4 +1,4 @@ from .bot import CarbonBot as Bot, __VERSION__, __DATE__ from .config import Config, ConfigNetwork, ConfigDB, ConfigLogger, ConfigProvider -__version__ = "3.0.20" +__version__ = "3.0.21" From 415e0f2d7da111809301329a9a794baafac385bc Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 23 Jan 2024 21:45:48 +0000 Subject: [PATCH 4/4] Update changelog [skip ci] --- CHANGELOG.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf853414b..6fac7a92d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,22 @@ ## [Unreleased](https://github.com/bancorprotocol/fastlane-bot/tree/HEAD) -[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.0.19...HEAD) +[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.0.20...HEAD) + +- hex string without 0x prefix [\#306](https://github.com/bancorprotocol/fastlane-bot/issues/306) +- max priority fee overridden in build\_transaction\_with\_gas when gas base fee fails [\#300](https://github.com/bancorprotocol/fastlane-bot/issues/300) +- hex string without 0x prefix [\#324](https://github.com/bancorprotocol/fastlane-bot/pull/324) ([mikewcasale](https://github.com/mikewcasale)) - Add support for Solidly Uni V2-style pools [\#274](https://github.com/bancorprotocol/fastlane-bot/issues/274) + +Closed issues + +- Fix production job alert spam \(time-outs\) [\#325](https://github.com/bancorprotocol/fastlane-bot/issues/325) + +## [v3.0.20](https://github.com/bancorprotocol/fastlane-bot/tree/v3.0.20) (2024-01-22) + +[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.0.19...v3.0.20) + - 274 add support for solidly uni v2 style pools [\#282](https://github.com/bancorprotocol/fastlane-bot/pull/282) ([Lesigh-3100](https://github.com/Lesigh-3100)) ## [v3.0.19](https://github.com/bancorprotocol/fastlane-bot/tree/v3.0.19) (2024-01-22)