Implement selectable deployment

This commit is contained in:
nolash
2021-06-05 08:45:37 +02:00
parent 093fcbccd5
commit aeebdd348b
7 changed files with 88 additions and 48 deletions

View File

@@ -154,7 +154,6 @@ contract DemurrageTokenSingleNocap {
/// Balance unmodified by demurrage
function baseBalanceOf(address _account) public view returns (uint256) {
return uint256(account[_account]) & maskAccountValue;
//return uint256(account[_account]);
}
/// Increases base balance for a single account
@@ -174,6 +173,7 @@ contract DemurrageTokenSingleNocap {
require(uint160(newBalance) > uint160(oldBalance), 'ERR_WOULDWRAP'); // revert if increase would result in a wrapped value
workAccount &= (~maskAccountValue);
workAccount |= (newBalance & maskAccountValue);
account[_account] = bytes32(workAccount);
return true;
}