Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into simplify-class-TxHelpers
  • Loading branch information
barak manos committed Apr 9, 2024
2 parents 3309a77 + bbc67f1 commit 006861b
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 8 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
# Changelog

## [Unreleased](https://github.com/bancorprotocol/fastlane-bot/tree/HEAD)

[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.1.4...HEAD)

- Carbon strategies are duplicated from events [\#521](https://github.com/bancorprotocol/fastlane-bot/issues/521)

## [v3.1.4](https://github.com/bancorprotocol/fastlane-bot/tree/v3.1.4) (2024-04-08)

[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.1.3...v3.1.4)

- GPU token external liquidity not found [\#515](https://github.com/bancorprotocol/fastlane-bot/issues/515)

## [v3.1.3](https://github.com/bancorprotocol/fastlane-bot/tree/v3.1.3) (2024-04-04)

[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.1.2...v3.1.3)

Closed issues

- All files should have doc strings [\#438](https://github.com/bancorprotocol/fastlane-bot/issues/438)

## [v3.1.2](https://github.com/bancorprotocol/fastlane-bot/tree/v3.1.2) (2024-04-01)

[Full Changelog](https://github.com/bancorprotocol/fastlane-bot/compare/v3.1.1...v3.1.2)

- Pool-Type not handled correctly after changing input from None to '' [\#509](https://github.com/bancorprotocol/fastlane-bot/issues/509)
Merged pull requests

- Fix issue 509 [\#510](https://github.com/bancorprotocol/fastlane-bot/pull/510) ([barakman](https://github.com/barakman))

## [v3.1.1](https://github.com/bancorprotocol/fastlane-bot/tree/v3.1.1) (2024-03-27)

Expand Down
2 changes: 1 addition & 1 deletion fastlane_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
from .config import Config, ConfigNetwork, ConfigDB, ConfigLogger, ConfigProvider


__version__ = "3.1.2"
__version__ = "3.1.5"
Original file line number Diff line number Diff line change
Expand Up @@ -290647,3 +290647,4 @@ Unnamed: 0,exchange,address
,pancakeswap_v2,0xF35bD23a6Acea6E7AE4aD08D8c57cba4Ea147257
,pancakeswap_v2,0xa4843930053BA36aD96d1cB6623a646eBB38f5a9
,pancakeswap_v2,0x9b0B62e7f964A7c8D93f27BBd2e4Cc7660886813
,uniswap_v2,0x769f539486b31eF310125C44d7F405C6d470cD1f
Original file line number Diff line number Diff line change
Expand Up @@ -18249,4 +18249,5 @@ Unnamed: 0,exchange,address
,pancakeswap_v3,0xA436B68605D03e20C95aD93DD74eDcc447AC785F
,pancakeswap_v3,0x4689e3C91036437A46A6c8B62157F58210Ba67a7
,pancakeswap_v3,0x3A2195f4760e89e5B753fd3521a236b6a9f72EBB
,uniswap_v3,0xeed4603BC333EF406E5EB691BA66798d5c857d8B
,uniswap_v3,0xeed4603BC333EF406E5EB691BA66798d5c857d8B
,uniswap_v3,0xD572D276b699947A043C85f8d66Ce311CC85E357
4 changes: 4 additions & 0 deletions fastlane_bot/data/blockchain_data/mantle/static_pool_data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1151,3 +1151,7 @@ cid,strategy_id,last_updated,last_updated_block,descr,pair_name,exchange_name,fe
0x3B752bE1bC07bc5A5FF2f3129203f6dC567088bc,0,,38629155,velocimeter_v2 0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8/0xEB466342C4d449BC9f53A865D5Cb90586f405215,0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8/0xEB466342C4d449BC9f53A865D5Cb90586f405215,velocimeter_v2,0.0025,0.0025,0x3B752bE1bC07bc5A5FF2f3129203f6dC567088bc,,0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8,0xEB466342C4d449BC9f53A865D5Cb90586f405215,18,6,11,WMNT,AXLUSDC,0,0,0,,,,,velocimeter_v2,volatile,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
0xFB5DBe1fc5c115492Bd486796A860d73c3C948B7,0,,48364886,velocimeter_v2 0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8/0x7e51aD847CDf8729Efc97CFa6E8aFA4D658Cb85b,0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8/0x7e51aD847CDf8729Efc97CFa6E8aFA4D658Cb85b,velocimeter_v2,0.02,0.02,0xFB5DBe1fc5c115492Bd486796A860d73c3C948B7,,0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8,0x7e51aD847CDf8729Efc97CFa6E8aFA4D658Cb85b,18,18,11,WMNT,lz-fMULTI,0,0,0,,,,,velocimeter_v2,volatile,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
0xB45377d54656ac36018dF454950Ebb68B75A08c6,0,,49450176,velocimeter_v2 0x7e51aD847CDf8729Efc97CFa6E8aFA4D658Cb85b/0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111,0x7e51aD847CDf8729Efc97CFa6E8aFA4D658Cb85b/0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111,velocimeter_v2,0.02,0.02,0xB45377d54656ac36018dF454950Ebb68B75A08c6,,0x7e51aD847CDf8729Efc97CFa6E8aFA4D658Cb85b,0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111,18,18,11,lz-fMULTI,WETH,0,0,0,,,,,velocimeter_v2,volatile,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
0x866B1818D6A221fA2B87A6C10bf60871d09C71A4,0,,59940322,puffs_penthouse_v3 0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb 3000,0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb,puffs_penthouse_v3,3000,0.003,0x866B1818D6A221fA2B87A6C10bf60871d09C71A4,,0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9,0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8,6,18,4,USDC,WMNT,0,0,0,0,0,0,60,puffs_penthouse_v3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
0x23d31b3d4A283Fd8E39d64FeeEbc64F6B1eeF874,0,,60094503,puffs_penthouse_v3 0x26a6b0dcdCfb981362aFA56D581e4A7dBA3Be140/0xcDA86A272531e8640cD7F1a92c01839911B90bb 3000,0x26a6b0dcdCfb981362aFA56D581e4A7dBA3Be140/0xcDA86A272531e8640cD7F1a92c01839911B90bb,puffs_penthouse_v3,3000,0.003,0x23d31b3d4A283Fd8E39d64FeeEbc64F6B1eeF874,,0x26a6b0dcdCfb981362aFA56D581e4A7dBA3Be140,0xcDA86A272531e8640cD7F1a92c01839911B90bb0,18,18,4,PUFF,METH,0,0,0,0,0,0,60,puffs_penthouse_v3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
0x28190bC18bbdc3D340C9A8C80265096E3A7f7EdA,0,,61305447,puffs_penthouse_v3 0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE/0xcDA86A272531e8640cD7F1a92c01839911B90bb 3000,0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE/0xcDA86A272531e8640cD7F1a92c01839911B90bb,puffs_penthouse_v3,3000,0.003,0x28190bC18bbdc3D340C9A8C80265096E3A7f7EdA,,0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE,0xcDA86A272531e8640cD7F1a92c01839911B90bb0,6,18,4,USDT,METH,0,0,0,0,0,0,60,puffs_penthouse_v3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
0xc0c94deE13fBD76faB0633924f4fA73e12EC3a1A,0,,61310467,puffs_penthouse_v3 0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb 3000,0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb,puffs_penthouse_v3,3000,0.003,0xc0c94deE13fBD76faB0633924f4fA73e12EC3a1A,,0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE,0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8,6,18,4,USDT,WMNT,0,0,0,0,0,0,60,puffs_penthouse_v3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,7 @@ fusionx_v3,0x417Ed45c1ADf3A3eB21fbA7a40A4e2E4c3405050
fusionx_v3,0xbF9B9305E8a59ed2c32bEBcC33B402E5C457E053
fusionx_v3,0xf5c8dD260f4824D92E82e4201b6eC69e67Fdfda4
fusionx_v3,0xB0af0176877736d0E61bA0554F7c8f2D9aEA3a7f
puffs_penthouse_v3,0x866B1818D6A221fA2B87A6C10bf60871d09C71A4
puffs_penthouse_v3,0x23d31b3d4A283Fd8E39d64FeeEbc64F6B1eeF874
puffs_penthouse_v3,0x28190bC18bbdc3D340C9A8C80265096E3A7f7EdA
puffs_penthouse_v3,0xc0c94deE13fBD76faB0633924f4fA73e12EC3a1A
1 change: 1 addition & 0 deletions fastlane_bot/data/multichain_addresses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ sushiswap_v2,harmony,uniswap_v2,0xc35DADB65012eC5796536bD9864eD8773aBc74C4,0x1b0
sushiswap_v2,heco,uniswap_v2,0xc35DADB65012eC5796536bD9864eD8773aBc74C4,0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506,0.003,0,
sushiswap_v3,linea,uniswap_v3,0xc35DADB65012eC5796536bD9864eD8773aBc74C4,0xb1E835Dc2785b52265711e17fCCb0fd018226a6e,,,
agni_v3,mantle,uniswap_v3,0x25780dc8Fc3cfBD75F33bFDAB65e969b603b2035,0x319B69888b0d11cEC22caA5034e25FfFBDc88421,,110692,
puffs_penthouse_v3,mantle,uniswap_v3,0x8f140Fc3e9211b8DC2fC1D7eE3292F6817C5dD5D,0x58b3a3797FF02B934a7d69D00873889F33Fb8829,,59915640,
butter_v3,mantle,uniswap_v3,0xEECa0a86431A7B42ca2Ee5F479832c3D4a4c2644,0xAe5c0a73bAE513fe5842DbcB8E32fc7E3e30DA57,,22966090,
carbon_v1,mantle,carbon_v1,0x7900f766F06e361FDDB4FdeBac5b138c4EEd8d4A,0x7900f766F06e361FDDB4FdeBac5b138c4EEd8d4A,,,
some_carbon_fork,mantle,carbon_v1,0x3749f6Ef09B0f74CD5324126b02d867A03DEE844,0x3749f6Ef09B0f74CD5324126b02d867A03DEE844,,,
Expand Down
7 changes: 2 additions & 5 deletions fastlane_bot/events/managers/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from fastlane_bot.events.interface import Pool
from fastlane_bot.events.managers.base import BaseManager
from fastlane_bot.events.pools import pool_factory
from fastlane_bot.events.pools.utils import get_pool_cid


class PoolManager(BaseManager):
Expand Down Expand Up @@ -285,11 +286,7 @@ def add_pool_info(
pool_info.update(other_args)

# Update cid if necessary
unique_id = pool_info["descr"] if pool_info['exchange_name'] not in self.cfg.CARBON_V1_FORKS else (
f"{pool_info['exchange_name']} {pool_info['strategy_id']} {pool_info['fee']}"
)
pool_info["cid"] = self.pool_cid_from_descr(self.web3, unique_id)

pool_info["cid"] = get_pool_cid(pool_info, self.cfg.CARBON_V1_FORKS)
# Add pool to exchange if necessary
pool = self.get_or_init_pool(pool_info)
assert pool, f"Pool not found in {exchange_name} pools"
Expand Down

0 comments on commit 006861b

Please sign in to comment.