[VPD-1168]: Add BNB Core deprecation interest rate model#682
Open
Debugger022 wants to merge 2 commits into
Open
[VPD-1168]: Add BNB Core deprecation interest rate model#682Debugger022 wants to merge 2 commits into
Debugger022 wants to merge 2 commits into
Conversation
Deploy a legacy JumpRateModel (300% flat below the 45% kink, 500% max) for the BNB Core pool's Phase-4 market deprecation. A separate legacy contract is required because the isolated-pools JumpRateModelV2 uses a badDebt-aware getBorrowRate/getSupplyRate ABI that legacy VBep20 markets cannot call. The downstream VIP repoints the deprecated markets via _setInterestRateModel.
|
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
JumpRateModelis required (not the isolated-poolsJumpRateModelV2) because BNB Core's legacy VBep20 markets call a 3-arggetBorrowRate/ 4-arggetSupplyRateABI; the isolated-pools model exposes a badDebt-aware ABI those markets cannot call. Repointing to it would brick interest accrual._setInterestRateModel.Changes
deploy/019-bnbcore-deprecation-irm.ts: hardhat-deploy script for the legacyJumpRateModel. Args base 300% / slope1 0% / jump 363.64% / kink 0.45, BSC blocksPerYear 70,080,000. Gated to bscmainnet/bsctestnet,skipIfAlreadyDeployed, tagBNBCoreDeprecationIRM, with explorer verification on live networks.deployments/bscmainnet/JumpRateModel_base30000bps_slope0bps_jump36364bps_kink4500bps_bpy70080000.json: deployment artifact (deployed at0xc255352947ef3594C45b0Fe8bcB690e51C3D744A).