Skip to content

Commit

Permalink
Merge pull request #425 from VenusProtocol/feat/ven-2877
Browse files Browse the repository at this point in the history
[VEN-2877] Deploy XVS Vault and XVS Store on Base Sepolia
  • Loading branch information
chechu authored Dec 18, 2024
2 parents 5462f50 + d66e5cd commit 7cc0ff4
Show file tree
Hide file tree
Showing 73 changed files with 41,207 additions and 3 deletions.
76 changes: 76 additions & 0 deletions multisig/proposals/basemainnet/vip-002/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import { NETWORK_ADDRESSES } from "src/networkAddresses";
import { makeProposal } from "src/utils";

const { basemainnet } = NETWORK_ADDRESSES;

export const XVS_STORE = "0x11b084Cfa559a82AAC0CcD159dBea27899c7955A";
export const ACM = "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB";

const vip002 = () => {
return makeProposal([
{
target: basemainnet.XVS_VAULT_PROXY,
signature: "_acceptAdmin()",
params: [],
},

{
target: XVS_STORE,
signature: "acceptAdmin()",
params: [],
},

{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [basemainnet.XVS_VAULT_PROXY, "pause()", basemainnet.GUARDIAN],
},

{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [basemainnet.XVS_VAULT_PROXY, "resume()", basemainnet.GUARDIAN],
},

{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [basemainnet.XVS_VAULT_PROXY, "add(address,uint256,address,uint256,uint256)", basemainnet.GUARDIAN],
},

{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [basemainnet.XVS_VAULT_PROXY, "set(address,uint256,uint256)", basemainnet.GUARDIAN],
},

{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [basemainnet.XVS_VAULT_PROXY, "setRewardAmountPerBlockOrSecond(address,uint256)", basemainnet.GUARDIAN], // func name changed from setRewardAmountPerBlock to setRewardAmountPerBlockOrSecond
},

{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [
basemainnet.XVS_VAULT_PROXY,
"setWithdrawalLockingPeriod(address,uint256,uint256)",
basemainnet.GUARDIAN,
],
},

{
target: basemainnet.XVS_VAULT_PROXY,
signature: "add(address,uint256,address,uint256,uint256)",
params: [basemainnet.XVS, 100, basemainnet.XVS, "0", 604800],
},
{
target: basemainnet.XVS_VAULT_PROXY,
signature: "pause()",
params: [],
},
]);
};

export default vip002;
50 changes: 50 additions & 0 deletions multisig/proposals/basemainnet/vip-003/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { NETWORK_ADDRESSES } from "src/networkAddresses";
import { makeProposal } from "src/utils";

const { basemainnet } = NETWORK_ADDRESSES;

export const ACM = "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB";
export const PSR = "0x3565001d57c91062367C3792B74458e3c6eD910a";
export const NATIVE_TOKEN_GATEWAY_CORE_POOL = "0x8e890ca3829c740895cdEACd4a3BE36ff9343643";

const vip003 = () => {
return makeProposal([
{
target: PSR,
signature: "acceptOwnership()",
params: [],
},
{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [PSR, "addOrUpdateDistributionConfigs(DistributionConfig[])", basemainnet.GUARDIAN],
},
{
target: ACM,
signature: "giveCallPermission(address,string,address)",
params: [PSR, "removeDistributionConfig(Schema,address)", basemainnet.GUARDIAN],
},
{
target: PSR,
signature: "addOrUpdateDistributionConfigs((uint8,uint16,address)[])",
params: [
[
[0, 10000, basemainnet.VTREASURY],
[1, 10000, basemainnet.VTREASURY],
],
],
},
{
target: PSR,
signature: "setPoolRegistry(address)",
params: [basemainnet.POOL_REGISTRY],
},
{
target: NATIVE_TOKEN_GATEWAY_CORE_POOL,
signature: "acceptOwnership()",
params: [],
},
]);
};

export default vip003;
Loading

0 comments on commit 7cc0ff4

Please sign in to comment.