VDB-12: VIP-664 [BNB Chain Testnet] Add MCBT market to the Core pool#728
Draft
trumpgpt-bot wants to merge 1 commit into
Draft
Conversation
List vMCBT (mock Modern Central Bank Token) in the Venus Core Pool on BNB Chain testnet via VIP-664: Chainlink direct price $2.50, resilient oracle routed to Chainlink, CF 60% / LT 70% / liquidation incentive 10% / reserve factor 25%, supply & borrow caps 236 MCBT, borrowing enabled. Adds a 4-part fork simulation proving the market is listed and functional (supply MCBT + borrow against it) and that the collateral factor, supply cap and borrow cap are all enforced. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Adds VIP-664 (
vips/vip-664/bsctestnet.ts) listing and configuring the vMCBT market in the Venus Core pool on BNB Chain testnet, plus a fork simulation (simulations/vip-664/bsctestnet.ts).Market parameters: Chainlink direct price $2.50, resilient oracle routed to Chainlink (main only); collateral factor 60%, liquidation threshold 70%, liquidation incentive 10%, reserve factor 25%; supply & borrow caps 236 MCBT; borrowing enabled (
setIsBorrowAllowed(0, vMCBT, true)); JumpRateModel base 0% / multiplier 6.67%/yr / kink 75% / jump 627%/yr. Seeds initial liquidity and routes the remainder to VTreasury.ProposalType.REGULAR.Deployed addresses used: MockMCBT
0x00298c15260FbE3C51D2a30765B1EedBd4f8b1F1, vMCBT0xf9C77bFA1F86574E6F39A61dab94d9Bb9ED21AFe, JumpRateModel0x1CcDaf39085bae4e27c3Ba100561b1AD1B5A6b80.Tests:
node_modules/.bin/hardhat test simulations/vip-664/bsctestnet.ts --fork bsctestnet→ 59 passing. The 4-part sim asserts the market is listed, all risk params/oracle/IRM are correct, supply+borrow works, and CF, supply cap and borrow cap are enforced. Oracle staleness across the timelock is handled (MCBT direct price is staleness-proof; canonicalsetMaxStalePeriodForAllAssetsguard applied).eslint/prettierclean.Note: the request's VIP block referenced
vUXRP/UXRP/236 UXRP— treated as copy-paste artifacts; the market added is MCBT/vMCBT with 236 MCBT caps.Opened by the Venus dev bot. Review required; the bot cannot merge.