mirror of
git://holbrook.no/erc20-demurrage-token
synced 2024-12-22 20:07:32 +01:00
Remove useless bool check for balance adjustment result (they revert instead)
This commit is contained in:
parent
01155f6e64
commit
26abe066b6
@ -317,12 +317,9 @@ contract RedistributedDemurrageToken {
|
|||||||
function transferBase(address _from, address _to, uint256 _value) private returns (bool) {
|
function transferBase(address _from, address _to, uint256 _value) private returns (bool) {
|
||||||
uint256 period;
|
uint256 period;
|
||||||
|
|
||||||
if (!decreaseBaseBalance(_from, _value)) {
|
decreaseBaseBalance(_from, _value);
|
||||||
revert('ERR_TX_DECREASEBALANCE');
|
increaseBaseBalance(_to, _value);
|
||||||
}
|
|
||||||
if (!increaseBaseBalance(_to, _value)) {
|
|
||||||
revert('ERR_TX_INCREASEBALANCE');
|
|
||||||
}
|
|
||||||
period = actualPeriod();
|
period = actualPeriod();
|
||||||
if (_value > 0 && accountPeriod(_from) != period) {
|
if (_value > 0 && accountPeriod(_from) != period) {
|
||||||
registerAccountPeriod(_from, period);
|
registerAccountPeriod(_from, period);
|
||||||
|
Loading…
Reference in New Issue
Block a user