Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate - Fantom support #391

Merged
merged 151 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
1a1bf58
removes click library from dependencies
mikewcasale Jan 23, 2024
7292e0e
Delete run_pool_shutdown.py
mikewcasale Jan 23, 2024
43c9ad8
Modifies the command-line arguments to remove the click library as a …
mikewcasale Jan 23, 2024
5d36729
update argument types
mikewcasale Jan 23, 2024
fc81ad1
Merge branch 'main' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Jan 23, 2024
843d7b1
Revert "Delete run_pool_shutdown.py"
mikewcasale Jan 23, 2024
8bed42c
Merge branch '326-fix-production-job-alert-spam-time-outs' of https:/…
mikewcasale Jan 23, 2024
84a65f4
Created tests for argparse inputs
mikewcasale Jan 25, 2024
51e899e
Update NBTest_907_RuntimeParameters.py
mikewcasale Jan 25, 2024
203a3b8
Merge branch 'main' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Jan 25, 2024
d2f00b7
Update NBTest_907_RuntimeParameters.py
mikewcasale Jan 25, 2024
a201f38
Merge branch '326-fix-production-job-alert-spam-time-outs' of https:/…
mikewcasale Jan 25, 2024
ee39714
Merge branch 'main' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Jan 30, 2024
1b4aff1
merging changes manually
mikewcasale Jan 30, 2024
6b08fcd
adding header to main loop logs
mikewcasale Jan 30, 2024
22cbdec
Move the retrieval of transaction information (in function `validate_…
Feb 1, 2024
fe47217
Fix comment
Feb 1, 2024
1837237
Merge branch 'main' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 1, 2024
1158953
Fix the `XS_API_CALLS` testing
Feb 1, 2024
937caa8
Remove the `XS_TRANSACTION` test stub in function `validate_and_submi…
Feb 1, 2024
e8d9206
Fix previous commit
Feb 1, 2024
98f6f38
Remove the `XS_MIN_PROFIT_CHECK` test option
Feb 1, 2024
0a5f946
Minor cleanup
Feb 1, 2024
42e7537
Remove unused code
Feb 1, 2024
37a0345
Remove the `XS_GAS_IN_BNT` testing option
Feb 1, 2024
1a02bbc
Move function `submit_flashloan_arb_tx` from the `txhelpers` module t…
Feb 1, 2024
e74ba02
Remove the `result` input argument from functions `_handle_trade_inst…
Feb 1, 2024
f9c3e3c
Remove the `result` input parameter in function `bot._run`, and all t…
Feb 1, 2024
ee4f80f
Fix call to function `_find_arbitrage` from function `_run`
Feb 1, 2024
fc2fe77
Fix every test which passes input parameter `result` to function `_run`
Feb 2, 2024
1ea28b1
Remove all `XS` constants since they are no longer used
Feb 2, 2024
b62dcd9
Remove all `AM` constants except `AM_SINGLE` since they are no longer…
Feb 2, 2024
a0a052f
Reinstate the `AM_` constants even though they are not uswed (will be…
Feb 2, 2024
a73a091
Merge branch 'main' of https://github.com/bancorprotocol/fastlane-bot…
Feb 2, 2024
56db394
Fix notebook
Feb 4, 2024
aa7d6f1
Remove `*.ipynb` from git-ignore
Feb 4, 2024
444f310
Merge branch 'main' into 343-remove-test-stubs
mikewcasale Feb 5, 2024
0514f93
Update true/false options to boolean types. added bot_version to log …
mikewcasale Feb 5, 2024
d0d72dd
Merge branch 'main' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 5, 2024
58d6abc
Revert "Update true/false options to boolean types. added bot_version…
mikewcasale Feb 5, 2024
f1e1203
reworked bools arguments
mikewcasale Feb 5, 2024
7a6da56
Merge branch '352-revise-submit-transaction-methods' of https://githu…
Feb 6, 2024
695c0af
Merge branch 'main' of https://github.com/bancorprotocol/fastlane-bot…
Feb 6, 2024
c73d0dc
update tests
mikewcasale Feb 7, 2024
94c26e8
Adds support for custom flashloan fees
mikewcasale Feb 7, 2024
d941c8b
Adds custom RPC url support
mikewcasale Feb 7, 2024
dff5b44
simplifying changes
mikewcasale Feb 8, 2024
d25f94e
Delete constants.py
mikewcasale Feb 8, 2024
016297c
Update connect.py
mikewcasale Feb 8, 2024
6cc2b49
Merge branch 'develop' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 8, 2024
bdfa1f0
Updating with actual fee
mikewcasale Feb 8, 2024
de21541
adds specific handling in the case where the custom rpc is for tender…
mikewcasale Feb 8, 2024
b20ffd7
1. Simplify the code for fetching events.
Feb 8, 2024
21801b0
Fix internal method `_get_events`
Feb 8, 2024
5f7d81f
Fix internal method `_get_events`
Feb 8, 2024
3ad9f16
simplified the approach
mikewcasale Feb 10, 2024
ae4c773
Merge branch 'develop' into 346-add-handling-of-flashloan-fee-1
mikewcasale Feb 10, 2024
b444daa
Merge branch 'develop' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 11, 2024
55e08af
Remove unused code
Feb 11, 2024
2904d87
Manually fix diffs between `development` and `main`
Feb 11, 2024
94ae242
Merge branch 'develop' into 343-remove-test-stubs
mikewcasale Feb 11, 2024
af1c702
Merge pull request #368 from bancorprotocol/remove-unused-code-1
barakman Feb 11, 2024
b355174
Merge branch 'develop' of https://github.com/bancorprotocol/fastlane-…
Feb 11, 2024
f699f12
Merge branch 'develop' of https://github.com/bancorprotocol/fastlane-…
Feb 11, 2024
99b0b5b
Changes fee approach, corrects typing and docstrings
mikewcasale Feb 12, 2024
73c7254
Merge branch 'develop' into 346-add-handling-of-flashloan-fee-1
mikewcasale Feb 12, 2024
37b79ca
adding default fee to satisfy failing tests
mikewcasale Feb 12, 2024
5b44855
Merge branch '346-add-handling-of-flashloan-fee-1' of https://github.…
mikewcasale Feb 12, 2024
166aa30
Remove redundant dereference of `rawTransaction`
Feb 12, 2024
b6c8283
Merge branch 'develop' into 361-add-support-for-custom-rpc
mikewcasale Feb 12, 2024
00c5626
Merge branch 'develop' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 12, 2024
61bcf3b
Add Fantom
Lesigh-3100 Feb 12, 2024
59557ac
Merge pull request #344 from bancorprotocol/343-remove-test-stubs
barakman Feb 12, 2024
1be8460
Merge branch 'develop' into 346-add-handling-of-flashloan-fee-1
mikewcasale Feb 12, 2024
1d717b6
Merge branch 'develop' into 361-add-support-for-custom-rpc
mikewcasale Feb 12, 2024
5e68a2a
Merge branch 'develop' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 12, 2024
595412d
Merge branch 'develop' into simplify-and-improve-event-fetching
mikewcasale Feb 12, 2024
21f0f4f
Merge pull request #364 from bancorprotocol/simplify-and-improve-even…
barakman Feb 12, 2024
b25c34c
Create tokens.csv
Lesigh-3100 Feb 12, 2024
7e0976b
add fantom
NIXBNT Feb 12, 2024
50d9e70
Update tokens.csv
NIXBNT Feb 13, 2024
d018f8c
add fantom
NIXBNT Feb 13, 2024
64bdb50
static_pool_data placeholders
NIXBNT Feb 13, 2024
f70ea89
Update solidly_v2.py
Lesigh-3100 Feb 13, 2024
03b87d7
Merge branch '346-add-handling-of-flashloan-fee-1' into fantom-rpc-fl…
mikewcasale Feb 13, 2024
287a64d
Merge remote-tracking branch 'origin/369-add-support-for-fantom-netwo…
mikewcasale Feb 13, 2024
adfe570
Update network.py
Lesigh-3100 Feb 13, 2024
f63d8d8
Update constants.py
Lesigh-3100 Feb 13, 2024
c8352e0
Updating the correct fee
mikewcasale Feb 13, 2024
f19a1ec
Update constants.py
mikewcasale Feb 13, 2024
b82fb74
fix wei->float flashloan fee amt
NIXBNT Feb 13, 2024
c197220
renamed eth variables to gastkn
NIXBNT Feb 13, 2024
2a6883e
selectively prevent flashloaning of native gas token
NIXBNT Feb 14, 2024
6218e64
Merge branch 'develop' into 326-fix-production-job-alert-spam-time-outs
mikewcasale Feb 14, 2024
d0b124f
Update uniswap_v2_event_mappings.csv
NIXBNT Feb 14, 2024
2acaa61
Update solidly_v2_event_mappings.csv
NIXBNT Feb 14, 2024
7554a76
Update static data & Terraformer
Lesigh-3100 Feb 14, 2024
473d5cc
Update solidly_v2.py
Lesigh-3100 Feb 14, 2024
b7bf047
Remove duplicated & unused code
Lesigh-3100 Feb 14, 2024
6caaa9b
Fix handling of Solidly Factory ABI for equalizer & scale
Lesigh-3100 Feb 14, 2024
03a6340
Merge pull request #328 from bancorprotocol/326-fix-production-job-al…
mikewcasale Feb 14, 2024
21f4b07
Update solidly_v2.py
Lesigh-3100 Feb 14, 2024
a5c8f14
Curate spooky pools in static_pool_data
Lesigh-3100 Feb 14, 2024
289a856
Update default RPC
Lesigh-3100 Feb 14, 2024
f9047e7
Add Uni V2 placeholder in multichain_addresses
Lesigh-3100 Feb 14, 2024
069bb27
Update multichain_addresses.csv
Lesigh-3100 Feb 14, 2024
5861a26
Update solidly_v2.py
Lesigh-3100 Feb 14, 2024
9a4ae1e
small fix to rpc address
NIXBNT Feb 15, 2024
bc4c7a1
Update tokens.csv
NIXBNT Feb 15, 2024
3bb865d
Update solidly_v2.py
Lesigh-3100 Feb 15, 2024
2b218ea
Fix Tests
Lesigh-3100 Feb 15, 2024
eab810a
Update solidly_v2.py
Lesigh-3100 Feb 15, 2024
ea5199d
Merge branch 'fantom-rpc-flashloan-configs' into 372-incorrect-solidl…
Lesigh-3100 Feb 15, 2024
bd4e6f7
Merge pull request #373 from bancorprotocol/372-incorrect-solidly-fac…
Lesigh-3100 Feb 15, 2024
66dcdde
Update static_pool_data.csv
Lesigh-3100 Feb 15, 2024
63fa8cf
Ensure that `usd_gastkn_conversion_rate` is always initialized
Feb 15, 2024
e9bdf11
Merge pull request #377 from bancorprotocol/initialize-usd_gastkn_con…
barakman Feb 15, 2024
0831325
Merge branch 'develop' into fantom-rpc-flashloan-configs
mikewcasale Feb 15, 2024
58b2c27
Adds rpc_url to argparse (lost in merge)
mikewcasale Feb 15, 2024
9d5b077
Adds "fantom" to blockchain args
mikewcasale Feb 15, 2024
5c36317
Update main.py
mikewcasale Feb 15, 2024
47c7661
remove unused variable definition
mikewcasale Feb 15, 2024
7935274
removed faulty assert statement
mikewcasale Feb 15, 2024
6464c6a
Update run_blockchain_terraformer.py
mikewcasale Feb 15, 2024
8cab5f9
Merge branch 'fantom-rpc-flashloan-configs' into argparse-backward-co…
mikewcasale Feb 15, 2024
c109b68
Update NBTest_907_RuntimeParameters.py
mikewcasale Feb 15, 2024
1b09f4d
Merge branch 'argparse-backward-compatibility' of https://github.com/…
mikewcasale Feb 15, 2024
3ba0b43
Update NBTest_907_RuntimeParameters.py
mikewcasale Feb 15, 2024
d3efda8
silence verbose logging
mikewcasale Feb 15, 2024
85ce1fd
replaced lambda's with functions in args
mikewcasale Feb 15, 2024
f4f3f6a
simplified condition
mikewcasale Feb 15, 2024
c2aecda
Merge pull request #380 from bancorprotocol/argparse-backward-compati…
mikewcasale Feb 15, 2024
b398f8e
Update .env.example
Lesigh-3100 Feb 18, 2024
a13b486
Update README.md
Lesigh-3100 Feb 18, 2024
d029e59
Update solidly handling in Terraformer
Lesigh-3100 Feb 18, 2024
d7952c3
Update solidly_v2.py
Lesigh-3100 Feb 18, 2024
24e3908
Update run_blockchain_terraformer.py
Lesigh-3100 Feb 18, 2024
f59d29e
Update static pool data
Lesigh-3100 Feb 18, 2024
496e2e3
Update run_blockchain_terraformer.py
Lesigh-3100 Feb 20, 2024
a3c2cb3
Update solidly_v2.py
Lesigh-3100 Feb 20, 2024
0100141
Update run_blockchain_terraformer.py
Lesigh-3100 Feb 20, 2024
4bd6235
Update documentation
Lesigh-3100 Feb 20, 2024
ac1da29
Update run_blockchain_terraformer.py
Lesigh-3100 Feb 20, 2024
bbd8012
Update run_blockchain_terraformer.py
Lesigh-3100 Feb 20, 2024
6f37f2a
Merge pull request #378 from bancorprotocol/fantom-rpc-flashloan-configs
mikewcasale Feb 21, 2024
71277ea
Fixes a bug which caused transactions to be built with the wrong rpc
mikewcasale Feb 21, 2024
44fc4cd
Merge branch 'develop' into update_static_data_base_2_18_24
Lesigh-3100 Feb 21, 2024
11b55bc
Merge pull request #382 from bancorprotocol/update_static_data_base_2…
zavelevsky Feb 22, 2024
98f8c86
Merge branch 'develop' into bugfix-custom-rpc
mikewcasale Feb 22, 2024
56f789b
Merge pull request #388 from bancorprotocol/bugfix-custom-rpc
mikewcasale Feb 22, 2024
a50ae8f
Merge pull request #387 from bancorprotocol/develop
zavelevsky Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export WEB3_ALCHEMY_PROJECT_ID="0-USE-YOUR-OWN-ALCHEMY-PROJECT-ID-HERE"
export ETH_PRIVATE_KEY_BE_CAREFUL="0x123-USE-YOUR-OWN-PRIVATE-KEY-HERE"
export WEB3_FANTOM="FANTOM-API-KEY-HERE" // "public" can be used in place of a paid API key

#******** For Development - not required to run bot ********#
export ETHERSCAN_TOKEN="ONLY_REQUIRED_IN_DEV"
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ __pycache__/*
*/out/*
*.pdf
topaze
*.ipynb
*.gif
*.json

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

## [v3.0.31](https://github.com/bancorprotocol/fastlane-bot/tree/v3.0.31) (2024-02-06)
## [Unreleased](https://github.com/bancorprotocol/fastlane-bot/tree/HEAD)

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

Merged pull requests

Expand Down
48 changes: 0 additions & 48 deletions NBTest_068_exceptions.py

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ The bot uses [python-dotenv][dotenvev] to load environment variables from a `.en
```bash
export WEB3_ALCHEMY_PROJECT_ID="0-R5..."
export ETH_PRIVATE_KEY_BE_CAREFUL="0x9c..."
export WEB3_ALCHEMY_BASE="api_key_here"
export WEB3_FANTOM="api_key_here"
```
**Note:** To use the Fantom public RPC, write "public" in place of the API key.

[dotenvev]:https://pypi.org/project/python-dotenv/

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

__version__ = "3.0.32"
__version__ = "3.0.31"
Loading
Loading