-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat: yarn workspace command #595
feat: yarn workspace command #595
Conversation
I haven't been able to sim running this script directly, as I don't have the admin private key and am more comfortable not knowing it. The calls and order was copied to test files and was able to execute there successfully. I don't anticipate any hiccups, but if it doesn't run successfully I may have to simulate by deploying a mirror environment on anvil with the test accounts. |
Shouldn't you be able to easily impersonate the admin wallet to test? |
Using |
Hey @zgorizzo69 just following up on a review for this. Thanks! |
I ran anvil and this command
I suggest you do the following
|
@hashedMae @zgorizzo69 can one (or both) of you walk me through executing this assuming that its ready? |
Populate .env with RPC_URL and PRIVATE_KEY |
Resolves #594
Simplify execution of metapool migration.
Populate .env with
RPC_URL
andPRIVATE_KEY
In terminal run
yarn workspace @ubiquity/contracts migrate:metapool
Breakdown of all components of the Solidity Script
Contracts it's utilizing:
uAD:3CRV V2 Metapool
uAD:3CRV V3 Metapool
3CRV Pool Token
Ubiquity Algorithmic Dollar
BondingV2
Ubiquity Algorithmic Dollar Manager
dollarPreBalance
uAD Tokens in the admin wallet before migration takes placemetaBalance
V2 Metapool LP tokens currently in BondingV2Calls
sendDust
to move V2 Metapool LP Tokens from BondingV2 to admin addressCalls
remove_liquidity
on V2 Metapool usingmetaBalance
deposit
the lesser of the balances of3CRV
oruAD
tokens in admin address after withdrawalApprove and deposits tokens to V3 Metapool using
deposit
as the amount for each to ensure the pool is in balance. The V3 Metapool LP Tokens are sent directly to BondingV2.Require statement to ensure the V3 Metapool LP balance of BondingV2 is the same as how many LP tokens were just minted.
Deploys a new
TWAPOracle
using the V3 Metapool.Calls
setTwapOracleAddress()
in Ubiquity Dollar Manager.secondDeposit
The amount of uAD tokens remaining in admin address minusdollarPreBalance
.Calls
add_liquidty
on V3 Metapool withsecondDeposit
as the amount for uAD and 0 as the amount for 3CRV. V3 Metapool LP Tokens are again sent directly to BondingV2.Another require statement to ensure the newly minted LP tokens are in BondingV2.
Calls
setStableSwapMetaPoolAddress()
in Ubiquity Dollar ManagerRequire statement to ensure new
TWAPOracle
address was set correctly in Ubiquity Dollar Manager.Require statement to ensure new
Metapool
address was set correctly in Ubiquity Dollar Manager.