@venusprotocol/isolated-pools 2.7.0 → 2.8.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/deployments/ethereum/RewardsDistributorImpl.json +1545 -0
  2. package/deployments/ethereum/RewardsDistributor_Core_0.json +1270 -0
  3. package/deployments/ethereum/RewardsDistributor_Core_0_Proxy.json +277 -0
  4. package/deployments/ethereum/RewardsDistributor_Core_1.json +1270 -0
  5. package/deployments/ethereum/RewardsDistributor_Core_1_Proxy.json +277 -0
  6. package/deployments/ethereum/RewardsDistributor_Curve_0.json +1270 -0
  7. package/deployments/ethereum/RewardsDistributor_Curve_0_Proxy.json +277 -0
  8. package/deployments/ethereum/RewardsDistributor_Curve_1.json +1270 -0
  9. package/deployments/ethereum/RewardsDistributor_Curve_1_Proxy.json +277 -0
  10. package/deployments/ethereum/RewardsDistributor_Liquid Staked ETH_0.json +1270 -0
  11. package/deployments/ethereum/RewardsDistributor_Liquid Staked ETH_0_Proxy.json +277 -0
  12. package/deployments/ethereum/RewardsDistributor_Liquid Staked ETH_1.json +1270 -0
  13. package/deployments/ethereum/RewardsDistributor_Liquid Staked ETH_1_Proxy.json +277 -0
  14. package/deployments/ethereum/solcInputs/db9328a0d80f93ffc7156e97c2b4c70a.json +234 -0
  15. package/deployments/ethereum.json +8679 -0
  16. package/deployments/ethereum_addresses.json +13 -0
  17. package/deployments/sepolia/RewardsDistributorImpl.json +56 -56
  18. package/deployments/sepolia/RewardsDistributor_Core_0.json +50 -50
  19. package/deployments/sepolia/RewardsDistributor_Core_0_Proxy.json +49 -49
  20. package/deployments/sepolia/RewardsDistributor_Core_1.json +52 -52
  21. package/deployments/sepolia/RewardsDistributor_Core_1_Proxy.json +50 -50
  22. package/deployments/sepolia/{RewardsDistributor_Core_3.json → RewardsDistributor_Curve_0.json} +52 -52
  23. package/deployments/sepolia/RewardsDistributor_Curve_0_Proxy.json +277 -0
  24. package/deployments/sepolia/{RewardsDistributor_Core_2.json → RewardsDistributor_Curve_1.json} +53 -53
  25. package/deployments/sepolia/{RewardsDistributor_Core_2_Proxy.json → RewardsDistributor_Curve_1_Proxy.json} +50 -50
  26. package/deployments/sepolia/RewardsDistributor_Liquid Staked ETH_0.json +1270 -0
  27. package/deployments/sepolia/{RewardsDistributor_Core_3_Proxy.json → RewardsDistributor_Liquid Staked ETH_0_Proxy.json } +50 -50
  28. package/deployments/sepolia/RewardsDistributor_Liquid Staked ETH_1.json +1270 -0
  29. package/deployments/sepolia/RewardsDistributor_Liquid Staked ETH_1_Proxy.json +277 -0
  30. package/deployments/sepolia/solcInputs/173926cdfab778deb325021c52f1e155.json +366 -0
  31. package/deployments/sepolia.json +2575 -13
  32. package/deployments/sepolia_addresses.json +13 -9
  33. package/dist/deploy/004-swap-router.d.ts +3 -2
  34. package/dist/deploy/004-swap-router.js +64 -4
  35. package/dist/deploy/014-riskfund-protocolshare-setup.d.ts +3 -0
  36. package/dist/deploy/014-riskfund-protocolshare-setup.js +21 -0
  37. package/dist/deploy/014-riskfund-protocolshare.js +6 -14
  38. package/dist/deployments/ethereum.json +8679 -0
  39. package/dist/deployments/sepolia.json +2575 -13
  40. package/dist/hardhat.config.js +7 -1
  41. package/dist/helpers/deploymentConfig.js +131 -24
  42. package/package.json +6 -4
@@ -59,7 +59,10 @@ const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
59
59
  "node_modules/@venusprotocol/venus-protocol/deployments/ethereum",
60
60
  "node_modules/@venusprotocol/protocol-reserve/deployments/ethereum",
61
61
  ],
62
- bscmainnet: ["node_modules/@venusprotocol/protocol-reserve/deployments/bscmainnet"],
62
+ bscmainnet: [
63
+ "node_modules/@venusprotocol/protocol-reserve/deployments/bscmainnet",
64
+ "node_modules/@venusprotocol/venus-protocol/deployments/bscmainnet",
65
+ ],
63
66
  opbnbmainnet: ["node_modules/@venusprotocol/oracle/deployments/opbnbmainnet"],
64
67
  },
65
68
  };
@@ -344,6 +347,9 @@ const config = {
344
347
  {
345
348
  artifacts: "node_modules/@venusprotocol/protocol-reserve/artifacts",
346
349
  },
350
+ {
351
+ artifacts: "node_modules/@venusprotocol/governance-contracts/artifacts",
352
+ },
347
353
  ],
348
354
  },
349
355
  };
@@ -2414,29 +2414,28 @@ exports.globalConfig = {
2414
2414
  },
2415
2415
  ],
2416
2416
  rewards: [
2417
+ // XVS Rewards Over 90 days (648000 blocks)
2418
+ // WETH: 18 XVS for Suppliers
2419
+ // 27 XVS for Borrowers
2420
+ // WBTC: 54 XVS for Suppliers
2421
+ // 81 XVS for Borrowers
2422
+ // USDT: 54 XVS for Suppliers
2423
+ // 81 XVS for Borrowers
2424
+ // USDC: 54 XVS for Suppliers
2425
+ // 81 XVS for Borrowers
2426
+ // crvUSD: 24 XVS for Suppliers
2427
+ // 36 XVS for Borrowers
2417
2428
  {
2418
2429
  asset: "XVS",
2419
- markets: ["WBTC"],
2420
- supplySpeeds: ["190258751902587"],
2421
- borrowSpeeds: ["190258751902587"], // 190258751902587 XVS over 365 days (2628000 blocks)
2430
+ markets: ["WETH", "WBTC", "USDT", "USDC", "crvUSD"],
2431
+ supplySpeeds: ["27777777777777", "83333333333333", "83333333333333", "83333333333333", "37037037037036"],
2432
+ borrowSpeeds: ["41666666666666", "125000000000000", "125000000000000", "125000000000000", "55555555555555"],
2422
2433
  },
2423
2434
  {
2424
- asset: "XVS",
2425
- markets: ["WETH"],
2426
- supplySpeeds: ["190258751902587"],
2427
- borrowSpeeds: ["190258751902587"], // 190258751902587 XVS over 365 days (2628000 blocks)
2428
- },
2429
- {
2430
- asset: "XVS",
2431
- markets: ["USDC"],
2432
- supplySpeeds: ["190258751902587"],
2433
- borrowSpeeds: ["190258751902587"], // 190258751902587 XVS over 365 days (2628000 blocks)
2434
- },
2435
- {
2436
- asset: "XVS",
2437
- markets: ["USDT"],
2438
- supplySpeeds: ["190258751902587"],
2439
- borrowSpeeds: ["190258751902587"], // 190258751902587 XVS over 365 days (2628000 blocks)
2435
+ asset: "CRV",
2436
+ markets: ["crvUSD"],
2437
+ supplySpeeds: ["771604938271604"],
2438
+ borrowSpeeds: ["1157407407407407"], // 750 CRV over 90 days (648000 blocks)
2440
2439
  },
2441
2440
  ],
2442
2441
  },
@@ -2548,7 +2547,25 @@ exports.globalConfig = {
2548
2547
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2549
2548
  },
2550
2549
  ],
2551
- rewards: [],
2550
+ rewards: [
2551
+ // XVS Rewards Over 90 days (648000 blocks)
2552
+ // CRV: 6 XVS for Suppliers
2553
+ // 9 XVS for Borrowers
2554
+ // crvUSD: 24 XVS for Suppliers
2555
+ // 36 XVS for Borrowers
2556
+ {
2557
+ asset: "XVS",
2558
+ markets: ["CRV", "crvUSD"],
2559
+ supplySpeeds: ["9259259259259", "37037037037037"],
2560
+ borrowSpeeds: ["13888888888888", "55555555555555"],
2561
+ },
2562
+ {
2563
+ asset: "CRV",
2564
+ markets: ["crvUSD"],
2565
+ supplySpeeds: ["771604938271604"],
2566
+ borrowSpeeds: ["1157407407407407"], // 750 CRV over 90 days (648000 blocks)
2567
+ },
2568
+ ],
2552
2569
  },
2553
2570
  {
2554
2571
  id: "Liquid Staked ETH",
@@ -2594,7 +2611,25 @@ exports.globalConfig = {
2594
2611
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2595
2612
  },
2596
2613
  ],
2597
- rewards: [],
2614
+ rewards: [
2615
+ // XVS Rewards Over 90 days (648000 blocks)
2616
+ // WSTETH: 144 XVS for Suppliers
2617
+ // 0 XVS for Borrowers
2618
+ // WETH: 165 XVS for Suppliers
2619
+ // 385 XVS for Borrowers
2620
+ {
2621
+ asset: "XVS",
2622
+ markets: ["wstETH", "WETH"],
2623
+ supplySpeeds: ["222222222222222", "254629629629629"],
2624
+ borrowSpeeds: ["0", "594135802469135"],
2625
+ },
2626
+ {
2627
+ asset: "wstETH",
2628
+ markets: ["wstETH"],
2629
+ supplySpeeds: ["712962962962"],
2630
+ borrowSpeeds: ["0"],
2631
+ },
2632
+ ],
2598
2633
  },
2599
2634
  ],
2600
2635
  accessControlConfig: [
@@ -2761,7 +2796,43 @@ exports.globalConfig = {
2761
2796
  vTokenReceiver: "0x7a16fF8270133F063aAb6C9977183D9e72835428",
2762
2797
  },
2763
2798
  ],
2764
- rewards: [],
2799
+ rewards: [
2800
+ // XVS Rewards Over 90 days (648000 blocks)
2801
+ // WETH: 1800 XVS for Suppliers
2802
+ // 2700 XVS for Borrowers
2803
+ // WBTC: 5400 XVS for Suppliers
2804
+ // 8100 XVS for Borrowers
2805
+ // USDT: 5400 XVS for Suppliers
2806
+ // 8100 XVS for Borrowers
2807
+ // USDC: 5400 XVS for Suppliers
2808
+ // 8100 XVS for Borrowers
2809
+ // crvUSD: 2400 XVS for Suppliers
2810
+ // 3600 XVS for Borrowers
2811
+ {
2812
+ asset: "XVS",
2813
+ markets: ["WETH", "WBTC", "USDT", "USDC", "crvUSD"],
2814
+ supplySpeeds: [
2815
+ "2777777777777777",
2816
+ "8333333333333333",
2817
+ "8333333333333333",
2818
+ "8333333333333333",
2819
+ "3703703703703703",
2820
+ ],
2821
+ borrowSpeeds: [
2822
+ "4166666666666666",
2823
+ "12500000000000000",
2824
+ "12500000000000000",
2825
+ "12500000000000000",
2826
+ "5555555555555555",
2827
+ ],
2828
+ },
2829
+ {
2830
+ asset: "CRV",
2831
+ markets: ["crvUSD"],
2832
+ supplySpeeds: ["77160493827160493"],
2833
+ borrowSpeeds: ["115740740740740740"], // 75000 CRV over 90 days (648000 blocks)
2834
+ },
2835
+ ],
2765
2836
  },
2766
2837
  {
2767
2838
  id: "Curve",
@@ -2807,7 +2878,25 @@ exports.globalConfig = {
2807
2878
  vTokenReceiver: "0x7a16fF8270133F063aAb6C9977183D9e72835428",
2808
2879
  },
2809
2880
  ],
2810
- rewards: [],
2881
+ rewards: [
2882
+ // XVS Rewards Over 90 days (648000 blocks)
2883
+ // CRV: 600 XVS for Suppliers
2884
+ // 900 XVS for Borrowers
2885
+ // crvUSD: 2400 XVS for Suppliers
2886
+ // 3600 XVS for Borrowers
2887
+ {
2888
+ asset: "XVS",
2889
+ markets: ["vCRV", "crvUSD"],
2890
+ supplySpeeds: ["925925925925925", "3703703703703703"],
2891
+ borrowSpeeds: ["1388888888888888", "5555555555555555"],
2892
+ },
2893
+ {
2894
+ asset: "CRV",
2895
+ markets: ["crvUSD"],
2896
+ supplySpeeds: ["77160493827160493"],
2897
+ borrowSpeeds: ["115740740740740740"], // 75000 CRV over 90 days (648000 blocks)
2898
+ },
2899
+ ],
2811
2900
  },
2812
2901
  {
2813
2902
  id: "Liquid Staked ETH",
@@ -2853,7 +2942,25 @@ exports.globalConfig = {
2853
2942
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2854
2943
  },
2855
2944
  ],
2856
- rewards: [],
2945
+ rewards: [
2946
+ // XVS Rewards Over 90 days (648000 blocks)
2947
+ // WSTETH: 14400 XVS for Suppliers
2948
+ // 0 XVS for Borrowers
2949
+ // WETH: 16500 XVS for Suppliers
2950
+ // 38500 XVS for Borrowers
2951
+ {
2952
+ asset: "XVS",
2953
+ markets: ["wstETH", "WETH"],
2954
+ supplySpeeds: ["22222222222222222", "25462962962962962"],
2955
+ borrowSpeeds: ["0", "59413580246913580"],
2956
+ },
2957
+ {
2958
+ asset: "wstETH",
2959
+ markets: ["wstETH"],
2960
+ supplySpeeds: ["71296296296296"],
2961
+ borrowSpeeds: ["0"],
2962
+ },
2963
+ ],
2857
2964
  },
2858
2965
  ],
2859
2966
  accessControlConfig: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "2.7.0",
3
+ "version": "2.8.0-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -72,8 +72,8 @@
72
72
  "@typescript-eslint/parser": "^5.27.1",
73
73
  "@venusprotocol/governance-contracts": "1.4.0",
74
74
  "@venusprotocol/oracle": "1.10.0",
75
- "@venusprotocol/protocol-reserve": "1.4.0",
76
- "@venusprotocol/venus-protocol": "7.1.0",
75
+ "@venusprotocol/protocol-reserve": "1.5.0-dev.8",
76
+ "@venusprotocol/venus-protocol": "7.5.0",
77
77
  "bignumber.js": "9.0.0",
78
78
  "chai": "^4.3.6",
79
79
  "dotenv": "^10.0.0",
@@ -102,7 +102,9 @@
102
102
  "resolutions": {
103
103
  "scrypt.js": "https://registry.npmjs.org/@compound-finance/ethereumjs-wallet/-/ethereumjs-wallet-0.6.3.tgz",
104
104
  "ganache-core": "github:compound-finance/ganache-core.git#jflatow/unbreak-fork",
105
- "solidity-parser-antlr": "https://github.com/solidity-parser/parser#0.8.2"
105
+ "solidity-parser-antlr": "https://github.com/solidity-parser/parser#0.8.2",
106
+ "@defi-wonderland/smock": "2.3.5",
107
+ "hardhat": "2.19.4"
106
108
  },
107
109
  "publishConfig": {
108
110
  "access": "public",