diff --git a/contracts/staking/TokenStaking.sol b/contracts/staking/TokenStaking.sol index eea0b78a..b23f5e28 100644 --- a/contracts/staking/TokenStaking.sol +++ b/contracts/staking/TokenStaking.sol @@ -80,7 +80,7 @@ contract TokenStaking is Initializable, IStaking, Checkpoints { } uint256 internal constant SLASHING_REWARD_PERCENT = 5; - uint256 internal constant MIN_STAKE_TIME = 24 hours; + uint256 internal constant MIN_STAKE_TIME = 120; uint256 internal constant GAS_LIMIT_AUTHORIZATION_DECREASE = 250000; uint256 internal constant CONVERSION_DIVISOR = 10**(18 - 3); diff --git a/deploy/09_set_minimum_stake.ts b/deploy/09_set_minimum_stake.ts new file mode 100644 index 00000000..a5fa89dd --- /dev/null +++ b/deploy/09_set_minimum_stake.ts @@ -0,0 +1,28 @@ +import { HardhatRuntimeEnvironment } from "hardhat/types" +import { DeployFunction } from "hardhat-deploy/types" + +const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { + const { getNamedAccounts, deployments } = hre + const { execute } = deployments + const { log } = deployments + + const { deployer } = await getNamedAccounts() + + const minStakeAmount = "39999999999999999999999" + await execute( + "TokenStaking", + { from: deployer }, + "setMinimumStakeAmount", + minStakeAmount + ) + + log(`Set minimum stake amount to ${minStakeAmount}`) +} + +export default func + +func.tags = ["setMinStakeAmount"] +func.dependencies = ["TokenStaking"] +func.skip = async function (hre: HardhatRuntimeEnvironment): Promise { + return hre.network.name !== "sepolia" +} diff --git a/package.json b/package.json index dd7f6ff9..f1908cd7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@threshold-network/solidity-contracts", - "version": "1.3.0-dev", + "version": "1.2.0-dapp-dev-sepolia", "license": "GPL-3.0-or-later", "files": [ "artifacts/",