[VPD-750]: Asset Migration from Core to Isolated E-Mode (Phase 2)#680
Open
Debugger022 wants to merge 3 commits intomainfrom
Open
[VPD-750]: Asset Migration from Core to Isolated E-Mode (Phase 2)#680Debugger022 wants to merge 3 commits intomainfrom
Debugger022 wants to merge 3 commits intomainfrom
Conversation
Disable collateral and borrowing for 8 migrated assets in Core Pool using pool-aware setCollateralFactor and setIsBorrowAllowed. Uses poolMarkets() with named fields in simulations.
Disable CF and borrowing in Core Pool for 12 migrated assets + TUSD. TUSD is fully paused (mint + borrow actions) since it has no e-mode pool. Uses pool-aware poolMarkets() in simulations.
TUSD already has mint/borrow actions paused, no need to pause again. Use BorrowNotAllowedInPool custom error in borrow revert tests instead of generic .to.be.reverted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
VIP Proposals
vips/vip-630/bscmainnet.ts— Mainnet VIP: setCollateralFactor(uint96,...) to 0, setIsBorrowAllowed to false for all 13 markets.vips/vip-630/bsctestnet.ts— Testnet VIP: same CF and borrow changes for 8 testnet markets.Simulations
simulations/vip-630/bscmainnet.ts— Pre/post-VIP checks using poolMarkets(), TUSD action pause assertions, functional borrow revert testssimulations/vip-630/bsctestnet.ts— Pre/post-VIP checks using poolMarkets()Test plan
npx hardhat test simulations/vip-630/bsctestnet.ts --fork bsctestnetnpx hardhat test simulations/vip-630/bscmainnet.ts --fork bscmainnet