Skip to content

Commit

Permalink
feat: add pre-vip checks and final description for VIP 187
Browse files Browse the repository at this point in the history
  • Loading branch information
chechu committed Oct 17, 2023
1 parent afc6e3b commit 5f46ff4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
import { expectEvents } from "../../src/utils";
import { forking, testVip } from "../../src/vip-framework";
import { checkInterestRate } from "../../src/vip-framework/checks/interestRateModel";
import { vip186 } from "../../vips/vip-186";
import { vip187 } from "../../vips/vip-187";
import VTOKEN_CORE_ABI from "./abi/VToken_core.json";
import VTOKEN_IL_ABI from "./abi/VToken_il.json";

const vETH = "0xf508fcd89b8bd15579dc79a6827cb4686a3592c8";
const vUSDT_Stablecoins = "0x5e3072305F9caE1c7A82F6Fe9E38811c74922c3B";

forking(32681348, () => {
testVip("VIP-186 Risk Parameters Update", vip186(), {
describe("Pre-VIP behavior", async () => {
it("Check current interest rate model", async () => {
await checkInterestRate(vETH, "vETH", {
base: "0",
multiplier: "0.09",
jump: "2",
kink: "0.75",
});

await checkInterestRate(vUSDT_Stablecoins, "vUSDT_Stablecoins", {
base: "0.02",
multiplier: "0.1",
jump: "2.5",
kink: "0.8",
});
});
});

testVip("VIP-187 Risk Parameters Update", vip187(), {
callbackAfterExecution: async txResponse => {
await expectEvents(
txResponse,
Expand Down
25 changes: 19 additions & 6 deletions vips/vip-186.ts → vips/vip-187.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,28 @@ const vUSDT_Stablecoins = "0x5e3072305F9caE1c7A82F6Fe9E38811c74922c3B";
const ETH_NEW_IR = "0x16412DBB7B2a4E119eDFCb3b58B08d196eC733BE";
const USDT_NEW_IR = "0x7dc969122450749A8B0777c0e324522d67737988";

export const vip186 = () => {
export const vip187 = () => {
const meta = {
version: "v2",
title: "VIP-186 Risk Parameters Update",
description: ``,
title: "VIP-187 Risk Parameters Adjustments (ETH and USDT Stablecoin)",
description: `#### Description
forDescription: "I agree that Venus Protocol should proceed with the Risk Parameters Update's",
againstDescription: "I do not think that Venus Protocol should proceed with the Risk Parameters Update's",
abstainDescription: "I am indifferent to whether Venus Protocol proceeds with the Risk Parameters Update's or not",
This VIP will perform the following Risk Parameters actions as per Chaos Labs latest recommendations in this Venus community forum publication: [Risk Parameter Updates 10/16/2023](https://community.venus.io/t/chaos-labs-risk-parameter-updates-10-16-2023/3848)
- **ETH** (Core pool)
- Interest rate multiplier: from 9% to 4.25%
- Interest rate Kink: from 75%to 85%
- **USDT** (Stablecoins pool)
- Interest rate multiplier: from 10% to 5%
- Interest rate base: from 2% to 0%
Complete analysis and details of these recommendations are available in the above publication.
VIP simulation: https://github.com/VenusProtocol/vips/pull/87`,

forDescription: "I agree that Venus Protocol should proceed with this proposal",
againstDescription: "I do not think that Venus Protocol should proceed with this proposal",
abstainDescription: "I am indifferent to whether Venus Protocol proceeds or not",
};

return makeProposal(
Expand Down

0 comments on commit 5f46ff4

Please sign in to comment.