Unable to Deploy LiquidityGaugeV3 To Development Nework
PSGAdminTech opened this issue · 1 comments
Environment information
curve-contract
branch/commit: master:bb0bbf77 (latest)brownie
Version: 1.19.1ganache-cli
Version: 6.12.2- OS: OSX Monterey v12.6
What was wrong?
I am attempting to deploy a pool to my local Gananche development network. I am able to follow the instructions for deploy.py file by specifying which pool I am trying to deploy and providing the correct Account info for my local development network.
I am able to deploy all other contracts, except for LiquidityGaugeV3, which fails with a revert error:
> brownie run deploy.py --network development
# Inputs:
# token: 0x06E727325DcB9eeDC94506F99C0aD2df283b4952
# MINTER: 0x7aD04ce3E9Be5718a6af1e8dD6B2Cf46485430A1
# GAUGE_OWNER: 0x523a0E9cBCeA169C286Bc43B06A640C706D08117
# tx_params output (truncated gas strategy) : {'from': <Account '0xfC5B6585411EF391cD5c2223C11D74d5b15351D5'>, 'required_confs': 1}
# fails at this line, which I moved to the last line in the deploy script to isolate the error:
LiquidityGaugeV3.deploy(token, MINTER, GAUGE_OWNER, _tx_params())
LiquidityGaugeV3
<brownie.network.contract.ContractContainer object at 0x7fd35e4a53d0>
Transaction sent: 0x3d76629f9549fdf72064c39e4fddf509ae9083105f4b761ec05c7a7181796784
Gas price: 0.0 gwei Gas limit: 10000000000000 Nonce: 42
LiquidityGaugeV3.constructor confirmed (reverted) Block: 43 Gas used: 1067909 (0.00%)
File "brownie/_cli/run.py", line 55, in main
_include_frame=True,
File "brownie/project/scripts.py", line 110, in run
return_value = f_locals[method_name](*args, **kwargs)
File "./scripts/deploy.py", line 131, in main
LiquidityGaugeV3.deploy(token, MINTER, GAUGE_OWNER, _tx_params())
File "brownie/network/contract.py", line 560, in __call__
publish_source=publish_source,
File "brownie/network/account.py", line 550, in deploy
receipt._raise_if_reverted(exc)
File "brownie/network/transaction.py", line 447, in _raise_if_reverted
source=source, revert_msg=self._revert_msg, dev_revert_msg=self._dev_revert_msg
VirtualMachineError: revert
How can it be fixed?
I pulled the Curve-Dao-Contracts and noticed quite a lot of progress was made on the LiquidityGauge versions, perhaps this is being worked on currently? Not sure if I need to deploy the Curve-DAO-Contracts onto the same development network to test the pool.
Thank you in advance for the advice, apologies if redundant question or known issue.
@PSGAdminTech you were able to figure out what wrong ? I have same problem when trying to deploy LiquidityGaugeV3 on polygon_mumbai and personal EVM L2.