-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModules.py
More file actions
75 lines (46 loc) · 2.07 KB
/
Modules.py
File metadata and controls
75 lines (46 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import time
from config import amount0, private_key, name_pools
from DeFI.aerodrome import mint, check_id_nft, approve_NFT, deposit_withdraw_nft, auto_, clear_nft
from Strategy.strategy import lending_strategy_aero, lending_strategy_uni, burn_uni, strategy_uni_V4
def mint_dep():
mint(amount0, private_key, name_pools, check_amount=True)
nft_id_ = check_id_nft(private_key)
if nft_id_:
time.sleep(2)
deposit_withdraw_nft(nft_id_, private_key, name_pools)
def withdraw():
clear_nft(private_key, name_pools)
def approval():
approve_NFT(private_key, name_pools)
def main():
print('''
1) Mint + approve + deposit(aero)
----
2) withdraw + decreaseLiquidity + burn_nft(aero)
---
3) Auto(aero)
---
4) Approve the NFT(aero)
---
5) decreaseLiquidity + burn_nft(UNI)
---
6) Strategy lending aerodrome
---
7) Strategy lending UniSwap
---
8) Strategy lending UniSwap V4
---
''')
modul = int(input('Какой модуль крутим: '))
modules = {1: mint_dep,
2: withdraw,
3: auto_,
4: approval,
5: burn_uni,
6: lending_strategy_aero,
7: lending_strategy_uni,
8: strategy_uni_V4,
}
modules[modul]()
if __name__ == '__main__':
main()