Transfer event

This commit is contained in:
lash 2023-08-14 14:10:09 +01:00
parent 6d7792110d
commit 14fb2fe8ea
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
7 changed files with 11 additions and 7 deletions

View File

@ -208,8 +208,9 @@ and the lower 64 bits represents the decimals part, each consecutive
lesser bit halving the value of the previous bit.
For example, The byte value `00000000 00000002 a0000000 00000000`,
representing a zero-stripped binary value of $10.101$, translates to the
(base 10) decimal value $2.625$.
representing a zero-stripped binary value of $10.101$. This translates
to the (base 10) decimal value $2.625$. The decimal part is calculated
as, from left to right: $(1 * 0.5) + (0 * 0.25) + (1 * 0.125)$.
#### Calculating the demurrage parameter

View File

@ -105,7 +105,7 @@ The initial @emph{Sink Address}. The address may be altered as long as the @code
The @emph{input parameter} to the contract is a 128-bit positive fixed-point number, where the most significant 64 bits represent the integer part, and the lower 64 bits represents the decimals part, each consecutive lesser bit halving the value of the previous bit.
For example, The byte value @code{00000000 00000002 a0000000 00000000}, representing a zero-stripped binary value of @math{10.101}, translates to the (base 10) decimal value @math{2.625}.
For example, The byte value @code{00000000 00000002 a0000000 00000000}, representing a zero-stripped binary value of @math{10.101}. This translates to the (base 10) decimal value @math{2.625}. The decimal part is calculated as, from left to right: @math{(1 * 0.5) + (0 * 0.25) + (1 * 0.125)}.
@subsubsection Calculating the demurrage parameter

View File

@ -1,3 +1,5 @@
- 0.5.4
* Add Transfer() event emission to sweep() in contract
- 0.5.3
* Add texinfo documentation
* Add man page for publish tool

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
[metadata]
name = erc20-demurrage-token
version = 0.5.3
version = 0.5.4
description = ERC20 token with redistributed continual demurrage
author = Louis Holbrook
author_email = dev@holbrook.no

View File

@ -253,7 +253,7 @@ contract DemurrageTokenSingleNocap {
// Implements Writer
function isWriter(address _minter) public view returns(bool) {
return minter[_minter];
return minter[_minter] || _minter == owner;
}
/// Implements ERC20
@ -315,6 +315,7 @@ contract DemurrageTokenSingleNocap {
v = account[msg.sender];
account[msg.sender] = 0;
account[_account] += v;
emit Transfer(msg.sender, _account, v);
return v;
}