From 96d2e2adddbac302a67de6f4d396e1abc6932e11 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Jan 2022 22:13:10 +0000 Subject: [PATCH] Update docs --- contracts/token/ERC20/extensions/ERC20Votes.sol | 2 -- contracts/token/ERC20/extensions/ERC20VotesComp.sol | 2 -- docs/modules/api/pages/token/ERC20.adoc | 4 ---- 3 files changed, 8 deletions(-) diff --git a/contracts/token/ERC20/extensions/ERC20Votes.sol b/contracts/token/ERC20/extensions/ERC20Votes.sol index 8f713e66d..5b4899e48 100644 --- a/contracts/token/ERC20/extensions/ERC20Votes.sol +++ b/contracts/token/ERC20/extensions/ERC20Votes.sol @@ -20,8 +20,6 @@ import "../../../utils/cryptography/ECDSA.sol"; * * 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. - * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this - * will significantly increase the base gas cost of transfers. * * _Available since v4.2._ */ diff --git a/contracts/token/ERC20/extensions/ERC20VotesComp.sol b/contracts/token/ERC20/extensions/ERC20VotesComp.sol index 590a3c538..422318bb8 100644 --- a/contracts/token/ERC20/extensions/ERC20VotesComp.sol +++ b/contracts/token/ERC20/extensions/ERC20VotesComp.sol @@ -19,8 +19,6 @@ import "./ERC20Votes.sol"; * * 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. - * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this - * will significantly increase the base gas cost of transfers. * * _Available since v4.2._ */ diff --git a/docs/modules/api/pages/token/ERC20.adoc b/docs/modules/api/pages/token/ERC20.adoc index 8c3d4cc98..3eae0e550 100644 --- a/docs/modules/api/pages/token/ERC20.adoc +++ b/docs/modules/api/pages/token/ERC20.adoc @@ -2821,8 +2821,6 @@ power can be queried through the public accessors {getVotes} and {getPastVotes}. 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. -Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this -will significantly increase the base gas cost of transfers. _Available since v4.2._ @@ -3050,8 +3048,6 @@ power can be queried through the public accessors {getCurrentVotes} and {getPrio 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. -Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this -will significantly increase the base gas cost of transfers. _Available since v4.2._