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

Chore: Updating script as was run yesterday #192

Merged
merged 1 commit into from
Mar 1, 2022
Merged
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions scripts/issue/32/mint_lowest_range_uni_v3.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from great_ape_safe import GreatApeSafe
from helpers.addresses import registry
from brownie import Contract, Wei, interface
from brownie import Contract, interface

wbtc = Contract(registry.eth.treasury_tokens.WBTC)

RANGE_0 = 0.000063
RANGE_1 = 0.00012
RANGE_1 = 0.000125

# only 1 for minting
WBTC_AMOUNT = 1 * 10 ** wbtc.decimals()

SLIPPAGE = 0.99
SLIPPAGE = .995


def main():
Expand All @@ -29,8 +29,8 @@ def main():
]
)

# 1. undog ibbtc sett for curveV2 (~3.5 WBTC) & initial uniV3 minting
bcrvIbBTC.withdraw(Wei("4 ether"))
# 1. undog ibbtc sett
bcrvIbBTC.withdrawAll()

# 2. wd into wbtc
safe.init_curve()
Expand All @@ -49,7 +49,7 @@ def main():
safe.uni_v3.positions_info() # print general info, to get general picture from current nfts

safe.uni_v3.mint_position(
registry.eth.uniswap.v3pool_wbtc_badger, RANGE_0, RANGE_1, WBTC_AMOUNT, 0
registry.eth.uniswap.v3pool_wbtc_badger, RANGE_0, RANGE_1, wbtc.balanceOf(safe) * SLIPPAGE, 0
)

safe.post_safe_tx()