diff --git a/scripts/ecosystem/liquid_staking/deploy.ts b/scripts/ecosystem/liquid_staking/deploy.ts index f6a2d76..91adfeb 100644 --- a/scripts/ecosystem/liquid_staking/deploy.ts +++ b/scripts/ecosystem/liquid_staking/deploy.ts @@ -29,6 +29,8 @@ export async function main() { const [deployer] = await ethers.getSigners(); wrapProviderToError(deployer.provider!); + console.log(); + const validatorSet = loadDeployment(ContractNames.ValidatorSet, chainId, deployer) as ValidatorSet; const airBond = loadDeployment(ContractNames.AirBond, chainId); @@ -151,7 +153,6 @@ export async function main() { loadIfAlreadyDeployed: true, }); - console.log("Setup stAmb"); await (await stAmb.setLiquidPool(liquidPool.address)).wait(); await (await stAmb.grantRole(await stAmb.DEFAULT_ADMIN_ROLE(), multisig.address)).wait(); @@ -186,6 +187,10 @@ export async function main() { const bonuses = getBonuses(); await (await stakingTiers.setBonusBatch(Array.from(bonuses.keys()), Array.from(bonuses.values()))).wait(); + // grant backend role + const backendAddress = process.env.LIQUID_STAKING_BACKEND_ADDRESS || ""; + await (await nodeManager.grantRole(await nodeManager.BACKEND_ROLE(), backendAddress)).wait(); + await (await nodesRewardsBank.revokeRole(await nodesRewardsBank.DEFAULT_ADMIN_ROLE(), deployer.address)).wait(); await (await poolRewardsBank.revokeRole(await poolRewardsBank.DEFAULT_ADMIN_ROLE(), deployer.address)).wait(); await (await nodeManager.revokeRole(await nodeManager.DEFAULT_ADMIN_ROLE(), deployer.address)).wait();