Skip to content

Commit

Permalink
feat: update description for VIP-205
Browse files Browse the repository at this point in the history
  • Loading branch information
chechu committed Nov 17, 2023
1 parent a8f2e16 commit d2b86cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
11 changes: 7 additions & 4 deletions simulations/vip-205/simulations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const VPLANET_NEW_SUPPLY_CAP = parseUnits("2000000000", 18);
const VPLANET_NEW_BORROW_CAP = parseUnits("1000000000", 18);

const RATE_MODEL_CURRENT_CORE_POOL = "0x8612b1330575d3f2f792329C5c16d55f22433c3F";
const RATE_MODE_TUSD_OLD = "0x574f056c1751Ed5F3aa30ba04e550f4E6090c992";
const RATE_MODEL_TUSD_OLD = "0x574f056c1751Ed5F3aa30ba04e550f4E6090c992";
const RATE_MODEL_NEW_CORE_POOL = "0x8c2651590ECE4FFe8E722ef6F80cc7407f537bBa";
const ZERO_RATE_MODEL = "0x93FBc248e83bc8931141ffC7f457EC882595135A";

Expand Down Expand Up @@ -60,8 +60,9 @@ forking(33570600, () => {
expect(await vUSDC.interestRateModel()).to.equal(RATE_MODEL_CURRENT_CORE_POOL);
expect(await vDAI.interestRateModel()).to.equal(RATE_MODEL_CURRENT_CORE_POOL);
expect(await vTUSD.interestRateModel()).to.equal(RATE_MODEL_CURRENT_CORE_POOL);
expect(await vTUSD_OLD.interestRateModel()).to.equal(RATE_MODE_TUSD_OLD);
expect(await vTUSD_OLD.interestRateModel()).to.equal(RATE_MODEL_TUSD_OLD);
});

it("Rate Model Params should match the current settings for USDT (Stablecoin)", async () => {
// Assert current Rate model config for USDT in Stablecoin Pool
expect(await vUSDT_Stablecoins_IR.jumpMultiplierPerBlock()).to.equal("237823439878");
Expand All @@ -75,13 +76,14 @@ forking(33570600, () => {
const oldCap = await comptroller.supplyCaps(VPLANET_DEFI);
expect(oldCap).to.equal(parseUnits("1000000000", 18));
});

it("borrow cap of vPLANET (DEFI) equals 500,000,000", async () => {
const oldCap = await comptroller.borrowCaps(VPLANET_DEFI);
expect(oldCap).to.equal(parseUnits("500000000", 18));
});
});

testVip("VIP-130 Risk Parameters Update", vip205(), {
testVip("VIP-205 Risk Parameters Update", vip205(), {
callbackAfterExecution: async txResponse => {
await expectEvents(
txResponse,
Expand All @@ -92,6 +94,7 @@ forking(33570600, () => {
await expectEventWithParams(txResponse, VBEP20_DELEGATOR_ABI, "Failure", ["14", "50", "0"]);
},
});

describe("Post-VIP behaviour", async () => {
it("sets new InterestRateModel", async () => {
expect(await vUSDC.interestRateModel()).to.equal(RATE_MODEL_NEW_CORE_POOL);
Expand Down Expand Up @@ -128,7 +131,7 @@ forking(33570600, () => {
kink: "0.8",
});

checkInterestRate(RATE_MODEL_NEW_CORE_POOL, "VUSDT (CORE)", {
checkInterestRate(RATE_MODEL_NEW_CORE_POOL, "Stablecoins (CORE)", {
base: "0",
multiplier: "0.06875",
jump: "2.5",
Expand Down
29 changes: 11 additions & 18 deletions vips/vip-205.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,20 @@ const ZERO_RATE_MODEL = "0x93FBc248e83bc8931141ffC7f457EC882595135A";
export const vip205 = () => {
const meta = {
version: "v2",
title: "VIP-187 Risk Parameters Adjustments (ETH and USDT Stablecoins)",
description: `#### Description
title: "VIP-205 Risk Parameters Adjustments (Stablecoins and PLANET)",
description: `This VIP will perform the following Risk Parameter actions as per Chaos Labs’ latest recommendations in this Venus community forum publication: [Risk Parameter Updates 11/14/2023](https://community.venus.io/t/chaos-labs-risk-parameter-updates-11-14-2023/3900).
This VIP will perform the following Risk Parameters actions as per Chaos Labs latest recommendations in this Venus community forum publication: [Risk Parameter Updates 11/14/2023](https://community.venus.io/t/chaos-labs-risk-parameter-updates-11-14-2023/3900).
Stablecoin IR Curve Recommendations:
1. Multiplier Parameter Adjustment: Increase the multiplier parameter to reflect a 5.5% borrow rate at the 80% utilization kink point for:
- USDT, USDC, DAI, and TUSD in the Core Pool
- USDT in the Stablecoins Pool (IL).
2. PLANET (DeFi Pool)
- Increase supply cap to 2,000,000,000
- Increase borrow cap to 1,000,000,000
3. TUSDOLD Borrow Rates
- Reduce borrow rate to 0
- **Stablecoin IR Curve Recommendations**
- Multiplier Parameter Adjustment: Increase the multiplier parameter (until 6.875% yearly) to reflect a 5.5% borrow rate at the 80% utilization kink point for USDT, USDC, DAI, and TUSD in the Core Pool and USDT in the Stablecoins Pool.
- **PLANET (DeFi Pool)**
- **Increase supply cap to 2,000,000,000 PLANET**
- **Increase borrow cap to 1,000,000,000 PLANET**
- **TUSDOLD Borrow Rate**
- **Reduce borrow rate to 0**
Complete analysis and details of these recommendations are available in the above publication.
`,
VIP simulation: https://github.com/VenusProtocol/vips/pull/110`,

forDescription: "I agree that Venus Protocol should proceed with this proposal",
againstDescription: "I do not think that Venus Protocol should proceed with this proposal",
Expand Down

0 comments on commit d2b86cc

Please sign in to comment.