Skip to content

Commit

Permalink
fix genesis-template
Browse files Browse the repository at this point in the history
Signed-off-by: charles2023wood <[email protected]>
  • Loading branch information
charles2022wood committed Jul 15, 2024
1 parent 12ee2c6 commit dd213d6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
16 changes: 0 additions & 16 deletions contracts/PledgeAgent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions genesis-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down

0 comments on commit dd213d6

Please sign in to comment.