IVotePower
Interface Description
License: MIT
interface IVotePower
Functions info
transformVotes (0x41cb09cc)
function transformVotes(
address voter,
uint256 votes
) external view returns (uint256 resultingVotes)
The function for transforming token and nft power to voting power
Parameters:
Name
Type
Description
voter
address
the voter address
votes
uint256
the total token and nft power
Return values:
Name
Type
Description
resultingVotes
uint256
voting power
transformVotesFull (0x13f60dc5)
function transformVotesFull(
address voter,
uint256 votes,
uint256 personalPower,
uint256 micropoolPower,
uint256 treasuryPower
) external view returns (uint256 resultingVotes)
The function for transforming token and nft power to voting power
Parameters:
Name
Type
Description
voter
address
the voter address
votes
uint256
the total token and nft power
personalPower
uint256
the user's total personal power
micropoolPower
uint256
the user's total micropool power
treasuryPower
uint256
the user's total treasury power
Return values:
Name
Type
Description
resultingVotes
uint256
voting power
getVotesRatio (0xf5ca7490)
function getVotesRatio(
address voter
) external view returns (uint256 votesRatio)
The function for getting voting coefficient
Parameters:
Name
Type
Description
voter
address
the address of the voter
Return values:
Name
Type
Description
votesRatio
uint256
the ration with 25 decimals precision