diff --git a/contracts/PledgeAgent.sol b/contracts/PledgeAgent.sol index 1cf176bc..9370d720 100644 --- a/contracts/PledgeAgent.sol +++ b/contracts/PledgeAgent.sol @@ -265,22 +265,6 @@ contract PledgeAgent is IAgent, System, IParamSubscriber { } } - function moveExpireBtc(uint256 newRound) external onlyStakeHub { - for (uint256 r = roundTag + 1; r <= newRound; ++r) { - BtcExpireInfo storage expireInfo = round2expireInfoMap[r]; - uint256 j = expireInfo.agentAddrList.length; - while (j > 0) { - j--; - address agent = expireInfo.agentAddrList[j]; - agentsMap[agent].totalBtc -= expireInfo.agent2valueMap[agent]; - expireInfo.agentAddrList.pop(); - delete expireInfo.agent2valueMap[agent]; - delete expireInfo.agentExistMap[agent]; - } - delete round2expireInfoMap[r]; - } - } - /*********************** External methods ***************************/ /// Delegate coin to a validator /// @param agent The operator address of validator diff --git a/genesis-template.json b/genesis-template.json index 7c81bfb0..d95aefbb 100644 --- a/genesis-template.json +++ b/genesis-template.json @@ -65,6 +65,26 @@ "balance": "1250100000000000000000000000", "code": "0x{{foundation}}" }, + "0x0000000000000000000000000000000000001010": { + "balance": "0x0", + "code": "0x{{stakehub}}" + }, + "0x0000000000000000000000000000000000001011": { + "balance": "0x0", + "code": "0x{{hashpoweragent}}" + }, + "0x0000000000000000000000000000000000001012": { + "balance": "0x0", + "code": "0x{{bitcoinagent}}" + }, + "0x0000000000000000000000000000000000001013": { + "balance": "0x0", + "code": "0x{{bitcoinstake}}" + }, + "0x0000000000000000000000000000000000001014": { + "balance": "0x0", + "code": "0x{{bitcoinLSTstake}}" + }, "0x0000000000000000000000000000000000001006": { "balance": "0x0", "code": "0x{{govHub}}"