Skip to content

Commit

Permalink
chore: Shareable: Rename private _exit function to _deleteShare (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAtum authored Jul 13, 2023
1 parent 22009e9 commit 7d951e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reward/Shareable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d951e1

Please sign in to comment.