Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lidangzzz committed May 31, 2023
1 parent 98427c0 commit b8a4095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions darc-protocol/contracts/Dashboard/Dashboard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ contract Dashboard is MachineStateManager {
* The getter function of total voting weight for a token class
* @param tokenClassIndex The index of the token class
*/
function sumVotingWeightByTokenClass(uint256 tokenClassIndex) public view returns (uint256) {
function getSumVotingWeightByTokenClass(uint256 tokenClassIndex) public view returns (uint256) {
return sumVotingWeightForTokenClass(false, tokenClassIndex);
}

/**
* The getter function of total dividend weight for a token class
* @param tokenClassIndex The index of the token class
*/
function sumDividendWeightByTokenClass(uint256 tokenClassIndex) public view returns (uint256) {
function getSumDividendWeightByTokenClass(uint256 tokenClassIndex) public view returns (uint256) {
return sumDividendWeightForTokenClass(false, tokenClassIndex);
}

Expand Down
5 changes: 2 additions & 3 deletions darc-protocol/contracts/MachineStateManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ enum FiniteState {

/**
* @notice The core and base contract of DARC, the manager of the DARC machine state
* Also this contains some basic function of the DARC machine state
*
*/
contract MachineStateManager {

Expand Down Expand Up @@ -428,7 +430,4 @@ contract MachineStateManager {
return (cashPerUnit);
}
}



}

0 comments on commit b8a4095

Please sign in to comment.