Skip to content

Commit

Permalink
chore: update contract, remove useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
samlior committed May 30, 2023
1 parent 14bcf88 commit 0e108d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 65 deletions.
37 changes: 0 additions & 37 deletions packages/contracts/src/Config_devnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,34 +59,6 @@ contract Config_devnet is Ownable, IConfig {

event ConfigChange();

function setStakeManager(address _stakeManager) external onlyOwner {
stakeManager = _stakeManager;
}

function setSystemCaller(address _systemCaller) external onlyOwner {
systemCaller = _systemCaller;
}

function setUnstakePool(address _unstakePool) external onlyOwner {
unstakePool = _unstakePool;
}

function setValidatorRewardPool(address _validatorRewardPool) external onlyOwner {
validatorRewardPool = _validatorRewardPool;
}

function setFee(address _fee) external onlyOwner {
fee = _fee;
}

function setFeePool(address _feePool) external onlyOwner {
feePool = _feePool;
}

function setPrison(address _prison) external onlyOwner {
prison = _prison;
}

function setUnstakeDelay(uint256 _unstakeDelay) external override onlyOwner {
unstakeDelay = _unstakeDelay;
emit ConfigChange();
Expand All @@ -97,11 +69,6 @@ contract Config_devnet is Ownable, IConfig {
emit ConfigChange();
}

function setMinIndexVotingPower(uint256 _minIndexVotingPower) external onlyOwner {
minIndexVotingPower = _minIndexVotingPower;
emit ConfigChange();
}

function setSetCommissionRateInterval(uint256 _setCommissionRateInterval) external override onlyOwner {
setCommissionRateInterval = _setCommissionRateInterval;
emit ConfigChange();
Expand All @@ -122,10 +89,6 @@ contract Config_devnet is Ownable, IConfig {
emit ConfigChange();
}

function setRecordsAmountPeriod(uint256 _recordsAmountPeriod) external onlyOwner {
recordsAmountPeriod = _recordsAmountPeriod;
}

function setMaxValidatorsCount(uint256 _maxValidatorsCount) external override onlyOwner {
maxValidatorsCount = _maxValidatorsCount;
emit ConfigChange();
Expand Down
28 changes: 0 additions & 28 deletions packages/contracts/src/Config_testnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,34 +59,6 @@ contract Config_testnet is Ownable, IConfig {

event ConfigChange();

function setStakeManager(address _stakeManager) external onlyOwner {
stakeManager = _stakeManager;
}

function setSystemCaller(address _systemCaller) external onlyOwner {
systemCaller = _systemCaller;
}

function setUnstakePool(address _unstakePool) external onlyOwner {
unstakePool = _unstakePool;
}

function setValidatorRewardPool(address _validatorRewardPool) external onlyOwner {
validatorRewardPool = _validatorRewardPool;
}

function setFee(address _fee) external onlyOwner {
fee = _fee;
}

function setFeePool(address _feePool) external onlyOwner {
feePool = _feePool;
}

function setPrison(address _prison) external onlyOwner {
prison = _prison;
}

function setUnstakeDelay(uint256 _unstakeDelay) external override onlyOwner {
unstakeDelay = _unstakeDelay;
emit ConfigChange();
Expand Down

0 comments on commit 0e108d9

Please sign in to comment.