forked from xben12/YieldAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Liu
authored and
Ben Liu
committed
Dec 27, 2023
1 parent
6150096
commit 9cd78c0
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# how to run it | ||
* poetry install | ||
* poetry run python main.py | ||
* poetry run python main.py (get monthly optimal yield with trading off between capital efficiency and imp loss) | ||
* poetry run python main_avg_yld.py (range to get average yeild) | ||
|
||
# detail | ||
methodology explanation can be found in medium article: https://medium.com/@xben12/defi-decode-liquidity-mining-yield-impermanent-loss-and-set-optimal-range-e20c3472d2bb | ||
methodology explanation can be found in medium article: | ||
* https://medium.com/@xben12/defi-decode-liquidity-mining-yield-impermanent-loss-and-set-optimal-range-e20c3472d2bb | ||
* | ||
|
||
Code: | ||
* main: main.py | ||
* main: main.py, main_avg_yld.py | ||
* data: use library_data.py. This file will pre save data into csv in the output folder. | ||
* logic (imp loss, range, coverage %): library_logic.py |