|
@@ -14,8 +14,8 @@ import {Checkpoints} from "../../../utils/structs/Checkpoints.sol";
|
|
* NOTE: This contract does not provide interface compatibility with Compound's COMP token.
|
|
* NOTE: This contract does not provide interface compatibility with Compound's COMP token.
|
|
*
|
|
*
|
|
* This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
|
|
* This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
|
|
- * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
|
|
|
|
- * power can be queried through the public accessors {getVotes} and {getPastVotes}.
|
|
|
|
|
|
+ * by calling the {Votes-delegate} function directly, or by providing a signature to be used with {Votes-delegateBySig}. Voting
|
|
|
|
+ * power can be queried through the public accessors {Votes-getVotes} and {Votes-getPastVotes}.
|
|
*
|
|
*
|
|
* By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
|
|
* By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
|
|
* requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
|
|
* requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
|
|
@@ -30,9 +30,9 @@ abstract contract ERC20Votes is ERC20, Votes {
|
|
* @dev Maximum token supply. Defaults to `type(uint208).max` (2^208^ - 1).
|
|
* @dev Maximum token supply. Defaults to `type(uint208).max` (2^208^ - 1).
|
|
*
|
|
*
|
|
* This maximum is enforced in {_update}. It limits the total supply of the token, which is otherwise a uint256,
|
|
* This maximum is enforced in {_update}. It limits the total supply of the token, which is otherwise a uint256,
|
|
- * so that checkpoints can be stored in the Trace208 structure used by {{Votes}}. Increasing this value will not
|
|
|
|
|
|
+ * so that checkpoints can be stored in the Trace208 structure used by {Votes}. Increasing this value will not
|
|
* remove the underlying limitation, and will cause {_update} to fail because of a math overflow in
|
|
* remove the underlying limitation, and will cause {_update} to fail because of a math overflow in
|
|
- * {_transferVotingUnits}. An override could be used to further restrict the total supply (to a lower value) if
|
|
|
|
|
|
+ * {Votes-_transferVotingUnits}. An override could be used to further restrict the total supply (to a lower value) if
|
|
* additional logic requires it. When resolving override conflicts on this function, the minimum should be
|
|
* additional logic requires it. When resolving override conflicts on this function, the minimum should be
|
|
* returned.
|
|
* returned.
|
|
*/
|
|
*/
|