NOJIRA-97B7E125: Create a Venus Improvement Proposal (VIP) targeting BNB Chai - #7
Draft
GitGuru7 wants to merge 1 commit into
Conversation
…estnet Raises the vUSDT borrow cap from 52,319,502.193790 to 65,399,377.742237 USDT (+25%) via _setMarketBorrowCaps on the bsctestnet Core Pool Unitroller. The vUSDT supply cap is already type(uint256).max (unlimited) on-chain and cannot be raised, so only the borrow cap is changed. Includes a fork simulation asserting pre/post borrow + supply caps and a behavioral test proving a user can supply (mint) vUSDT under the unlimited supply cap. 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.
VIP-664 [BNB Chain Testnet] — Raise vUSDT (Core Pool) Borrow Cap +25%
What changed
vips/vip-664/bsctestnet.ts— proposal (makeProposal,ProposalType.REGULAR) with a single command:_setMarketBorrowCaps([vUSDT], [65399377742237])on the Core Pool Unitroller.simulations/vip-664/bsctestnet.ts— fork simulation (pre-state →testVip+expectEvents→ post-state → behavioral proof).simulations/vip-664/abi/:DiamondConsolidated.json,ERC20.json,VToken.json,ResilientOracle.json.Supply cap note (deviation from the literal request, per approved spec)
The request asked to raise both the supply and borrow caps by 25%. On-chain,
supplyCaps(vUSDT)returnstype(uint256).max— the supply cap is effectively unlimited and unenforced. Raising it by 25% would overflow and have no behavioral effect, so the VIP changes only the borrow cap and documents the unlimited supply cap in the proposal description. The behavioral test proves a user can supply (mint) vUSDT under this unlimited cap. vUSDT is active on the testnet Core pool, so no alternative market was needed.On-chain verification (broker
chain.call, bsctestnet)0xb7526572FFE56AB9D7489838Bf2E18e3323b441Asymbol()→ "vUSDT";markets(vUSDT).isListed = true, CF = 0.80xA11c8D9DC9b66E209Ef60F0C8D969D3CD988782cvUSDT.underlying();decimals()→ 6bsctestnet.UNITROLLER=0x94d1820b2D1c7c7452A163983Dc888CEC546b77DnetworkAddresses.ts52319502193790(= 52,319,502.193790 USDT)borrowCaps(vUSDT)65399377742237(= 65,399,377.742237 USDT)floor(52319502193790 * 125 / 100)type(uint256).maxsupplyCaps(vUSDT)actionPaused(vUSDT, 0)Signature selector confirmed:
_setMarketBorrowCaps(address[],uint256[])exists inDiamondConsolidated.json. Fork block104700000confirmed valid with the same current cap.Tests run + results
Command:
Result: 10 passing (27s)
testVipexecutes propose→vote→queue→execute; exactly 1NewBorrowCapeventLint/format:
Skill path
authoring-vips(pure VIP — all referenced contracts already deployed on-chain; no testnet deploy).Risks / notes
Opened by the Venus dev bot. Review required; the bot cannot merge.