Skip to content

Commit

Permalink
Merge pull request #49 from oxoxDev/upgrade/omnichainStakingLP
Browse files Browse the repository at this point in the history
Upgrade/omnichain staking lp
  • Loading branch information
deadshotryker authored Sep 11, 2024
2 parents d8e91eb + d009d9e commit 4db0571
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/voter/PoolVoter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ contract PoolVoter is IPoolVoter, ReentrancyGuardUpgradeable, OwnableUpgradeable
* @dev This function is called only once during deployment.
* @param _staking The address of the staking token (VE token).
* @param _reward The address of the reward token.
* @param _votingPowerCombined The address of the VotingPowerCombined contract.
*/
function init(address _staking, address _reward, address _votingPowerCombined) external reinitializer(1) {
staking = IVotes(_staking);
Expand Down
22 changes: 22 additions & 0 deletions scripts/upgradeOmnichainStakingLP.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import hre from "hardhat";

async function main() {

const omnichainStakingLPProxy = "0x0374ae8e866723ADAE4A62DcE376129F292369b4";
const omnichainStakingLPFactory = await hre.ethers.getContractFactory("OmnichainStakingLP");
const omnichainStakingLP = await hre.upgrades.upgradeProxy(omnichainStakingLPProxy, omnichainStakingLPFactory);

console.log(`---- Your proxy upgrade is done ----${await omnichainStakingLP.getAddress()}`);

if (hre.network.name != "hardhat") {
// Verify contract programmatically
await hre.run("verify:verify", {
address: hre.upgrades.erc1967.getImplementationAddress(omnichainStakingLPProxy)
});
}
}

main().catch((error) => {
console.error(error);
process.exitCode = 1;
});

0 comments on commit 4db0571

Please sign in to comment.