Skip to content

add scripts to deploy vaults#1

Open
maxKMyt wants to merge 11 commits intodev_protofrom
feat-musd-vaults
Open

add scripts to deploy vaults#1
maxKMyt wants to merge 11 commits intodev_protofrom
feat-musd-vaults

Conversation

@maxKMyt
Copy link
Collaborator

@maxKMyt maxKMyt commented Feb 11, 2026

No description provided.

uint8 public constant DEPLOYER_ROLE = 1;

function run() external {
uint256 deployerKey = vm.envUint("ETHERFI_LIQUID_DEPLOYER");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace with MANTRA_DEPLOYER

foundry.toml Outdated
# base = { key = "${BASESCAN_KEY}" }
mantra_dukong = { key = "empty", url = "https://explorer.dukong.io/api" }
5887 = { key = "empty", url = "https://explorer.dukong.io/api" }
mantra = { key = "any_random_string", chain = 5887, url = "https://explorer.dukong.io/api" }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add configs for both: mantra, mantraDukong


// --- 1. Deploy Core Components via Deployer ---
address vault = deployer.deployContract(
"Points Vault V1.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets keep all names and configs in the MantraMainnetConstants.sol file

Comment on lines 52 to 73
"Maxi Yield Vault V1.0",
type(BoringVault).creationCode,
abi.encode(owner, "Maxi Yield mUSD", "my-mUSD", 6),
0
);

address accountant = deployer.deployContract(
"Maxi Yield Accountant V1.0",
type(AccountantWithRateProviders).creationCode,
abi.encode(
owner,
vault,
owner,
1e6,
mUSD,
1.5e4,
0.5e4,
20 hours,
0,
0
),
0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep config in the separate file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants