Skip to content

Commit

Permalink
fix: parameter addreward
Browse files Browse the repository at this point in the history
  • Loading branch information
gathonwar committed Oct 9, 2023
1 parent 216b573 commit e0d62c5
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 24 deletions.
2 changes: 1 addition & 1 deletion contracts/BaseRewardManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract BaseRewardManager is AccessControlUpgradeable {
state.uMerkleRoot,
state.blockNumber,
state.withdrawUnlockTime,
state.sSupply
state.uSupply
);

// add for sSonne
Expand Down
36 changes: 36 additions & 0 deletions deploy/05_base-reserve-manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';

const func: DeployFunction = async ({
getNamedAccounts,
deployments: { deploy },
ethers,
network,
}: HardhatRuntimeEnvironment) => {
return false;
const isSideChain = network.name != 'optimism' && network.targetName != 'optimism';
if (!isSideChain) return;

const { deployer } = await getNamedAccounts();

const reserveManagerDeploy = await deploy('BaseReserveManager', {
from: deployer,
log: true,
contract: 'contracts/BaseReserveManager.sol:BaseReserveManager',
args: [],
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
execute: {
init: {
methodName: 'initialize',
args: [],
},
},
},
});
};

const tags = ['ReserveManager'];
export { tags };

export default func;
8 changes: 2 additions & 6 deletions deployments/base/BaseRewardManager.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions deployments/base/BaseRewardManager_Implementation.json

Large diffs are not rendered by default.

Loading

0 comments on commit e0d62c5

Please sign in to comment.