'What is deliver function in safemoon smart contract?
@everyone. I am studying about the safemoon smart contract now. But I can't understand about the deliver function in safemoon.
function deliver(uint256 tAmount) public {
address sender = _msgSender();
require(!_isExcluded[sender], 'EGGToken: Excluded addresses cannot call this function');
(uint256 rAmount, , , , , , , , ) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rTotal = _rTotal.sub(rAmount);
_tFeeTotal = _tFeeTotal.add(tAmount);
}
I want to know how this function does. Please help me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
