From 7d951e190c72262bb8936beef0b2e61c5f14aa2f Mon Sep 17 00:00:00 2001 From: Atum <93745933+0xAtum@users.noreply.github.com> Date: Thu, 13 Jul 2023 14:18:46 -0400 Subject: [PATCH] chore: Shareable: Rename private _exit function to _deleteShare (#4) --- src/reward/Shareable.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reward/Shareable.sol b/src/reward/Shareable.sol index d0b31ba..7979686 100644 --- a/src/reward/Shareable.sol +++ b/src/reward/Shareable.sol @@ -33,16 +33,16 @@ abstract contract Shareable is IShareable { } function _partialExitShare(address _wallet, uint256 _newShare) internal virtual { - _exit(_wallet); + _deleteShare(_wallet); _addShare(_wallet, _newShare); } function _exitShare(address _wallet) internal virtual { - _exit(_wallet); + _deleteShare(_wallet); emit ShareUpdated(_wallet, 0); } - function _exit(address _wallet) private { + function _deleteShare(address _wallet) private { uint256 value = userShares[_wallet]; if (value > 0) {