From 772c6b8f85716008a617918bee5134e8087291e0 Mon Sep 17 00:00:00 2001 From: Peter Michael Date: Thu, 3 Feb 2022 15:02:29 -0500 Subject: [PATCH] misc: Slightly cleaned up comments. --- contracts/core/FollowNFT.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/core/FollowNFT.sol b/contracts/core/FollowNFT.sol index ef32f4b..db171e5 100644 --- a/contracts/core/FollowNFT.sol +++ b/contracts/core/FollowNFT.sol @@ -240,7 +240,7 @@ contract FollowNFT is LensNFTBase, IFollowNFT { } if (to != address(0)) { - // if from == address(0) ==> initial delegation (add amount to supply) + // if from == address(0) then this is an initial delegation (add amount to supply) if (from == address(0)) { // It is expected behavior that the `previousDelSupply` underflows upon the first delegation, // returning the expected value of zero @@ -260,7 +260,8 @@ contract FollowNFT is LensNFTBase, IFollowNFT { _writeSnapshot(to, newValue, toSnapshotCount); emit Events.FollowNFTDelegatedPowerChanged(to, newValue, block.timestamp); } else { - // If from != 0 then remove from del supply, otherwise we're dealing with a non-delegated burn of tokens + // If from != address(0) then this is removing a delegation, otherwise we're dealing with a + // non-delegated burn of tokens and don't need to take any action if (from != address(0)) { // Upon removing delegation (from != address(0) && to == address(0)), supply calculations cannot // underflow because if from != address(0), then a delegation must have previously occurred, so