Skip to content

Commit

Permalink
add vault to accountant
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Nov 22, 2024
1 parent 06ba6d2 commit 6c00f77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/VaultManagement.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contract SetupVaultManagement is Script {
vault.set_role(deployer, 0);
}

function _configureAccountant() internal {
function _configureAccountant(address vault) internal {
// Load fee parameters
uint16 defaultPerformance = uint16(vm.envOr("DEFAULT_PERFORMANCE", uint256(0)));
uint16 defaultMaxFee = uint16(vm.envOr("DEFAULT_MAX_FEE", uint256(0)));
Expand All @@ -114,6 +114,8 @@ contract SetupVaultManagement is Script {
console.log("default max gain", defaultMaxGain);
console.log("default max loss", defaultMaxLoss);

accountant.addVault(vault);

accountant.setFutureFeeManager(vaultGovernanceFactory);
console.log("set future fee manager", vaultGovernanceFactory);

Expand Down

0 comments on commit 6c00f77

Please sign in to comment.