Closed fvictorio closed 6 years ago
Also, maybe move blochchain/build
into .gitignore
?
Also, maybe move blochchain/build into .gitignore?
It was already in .gitignore
, but it was also added for some reason. I removed it.
This is ready for review now.
Totals | |
---|---|
Change from base Build 261: | 1.9% |
Covered Lines: | 828 |
Relevant Lines: | 1060 |
@phahulin @matiasgaratortiz Can we merge this?
@igorbarinov philosophical question: in PoPA contract we have three variables for statistics: totalUsers
, totalAddresses
, totalConfirmed
, incremented respectively when new user is created, when new address is registered and when address is confirmed.
Since it is possible for a user to remove his own claim directly from ERC780 registry, those 3 variables might not represent actual numbers at a given moment.
Now with this PR we also have an ability to remove addresses from PoPA. My question is what should we do about those variables:
totalUsers
will measure how many users ever used PoPA, totalAddresses
- how many addresses ever in total were registered, etc. Adv: having some statistics. Dis: need to remember that these variables might not represent actual numbers at the present moment, but an overall sum. For example, if a user registers an address and them removes it, we'll still have totalUser==1
, totalAddresses == 1
, ...IMO, we should go with 2. @matiasgaratortiz @fvictorio what do you think?
I agree that 2 seems the better option. I don't think 3 is a good idea, since, as you mentioned, we have no way to have those numbers "synced" with whatever happens in the ERC780 regsitry.
Choosing 2 would also mean that we don't have to make any more changes here, right?
Ok, I think we can merge this now, so that we can continue from here, also, usage of statistical variables is independent of other parts of code. @igorbarinov if you disagree with choosing (2) option above, please write it here and we can address it in a separate PR.
@phahulin I think 2 is fine
Depends on #98.