Migrator.sol facilitates migrating UniV2 LPs to an 80/20 Balancer LP with the option to deposit directly into an Aura pool.
- LP: UniV2 LP Token
- BPT: 20WETH-80TOKEN Balancer Pool Token
- auraBPT: 20WETH-80TOKEN Aura Deposit Pool
- See
MigrationCalcs.sol
for the calculations that need to be made and passed intomigrate()
- The calculations or output of
getMigrationParams()
should be used as values forMigrationParams
inIMigrator.sol
- The Migrator will unwrap the UniV2 LP tokens, rebalance the 50/50 TOKEN/WETH balance to an 80/20 TOKEN/WETH balance by swapping extra WETH for TOKEN, deposit the rebalanced 80/20 TOKEN/WETH amount into a Balancer pool, and either deposit the newly minted BPT tokens into an Aura pool sending
msg.sender
auraBPT, or transfer the BPT directly to themsg.sender
Migrator: https://etherscan.io/address/0xa311f930f603567d656b3992d36e4cc384d85c5d
MigrationCalcs: https://etherscan.io/address/0xe7ad39d1891100c734ee78a777a0aa99aacd12da
ALCHEMY_API_KEY=<alchemy api key>
TEST_PROFILE=default
curl -L https://foundry.paradigm.xyz | bash
forge install
make test_all
make test_summary
make test_coverage
Generate natspec documentation locally with make docs_local
Generate and build documentation to ./documentation with make docs_build