Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N02: Explicitly delete addresses in MappedSinglyLinkedList #111

Merged

Conversation

asselstine
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Aug 14, 2020

POOL-395 OZ Audit N02

In the removeAddress function of the MappedSinglyLinkedList library, the target address is cleared by assigning the zero address to a record in the addressMap. For clarity and consistency, consider deleting the record, as implemented in the clearAll function.

@asselstine asselstine changed the title Explicitly delete addresses in MappedSinglyLinkedList N02: Explicitly delete addresses in MappedSinglyLinkedList Aug 14, 2020
* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
@asselstine asselstine merged commit c8096e8 into feature/pool-394-oz-audit-n01 Aug 21, 2020
@asselstine asselstine deleted the feature/pool-395-oz-audit-n02 branch August 21, 2020 22:22
asselstine added a commit that referenced this pull request Aug 21, 2020
* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Emit event when PrizePool adds a controlled token

* L05: Improved interface of MappedSinglyLinkedList (#108)

* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Added initialize protection to MappedSinglyLinkedList

* L04: Emit event when PrizePool adds a controlled token (#107)

* Emit event when PrizePool adds a controlled token

* L05: Improved interface of MappedSinglyLinkedList (#108)

* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
…entinel (#105)

* Ensured that MappedSinglyLinkedList#contains returns false for Sentinel

* L03: Feature/pool 390 oz audit l03 (#106)

* Added initialize protection to MappedSinglyLinkedList

* L04: Emit event when PrizePool adds a controlled token (#107)

* Emit event when PrizePool adds a controlled token

* L05: Improved interface of MappedSinglyLinkedList (#108)

* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Removed redundant code

* L02: Ensured that MappedSinglyLinkedList#contains returns false for Sentinel (#105)

* Ensured that MappedSinglyLinkedList#contains returns false for Sentinel

* L03: Feature/pool 390 oz audit l03 (#106)

* Added initialize protection to MappedSinglyLinkedList

* L04: Emit event when PrizePool adds a controlled token (#107)

* Emit event when PrizePool adds a controlled token

* L05: Improved interface of MappedSinglyLinkedList (#108)

* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Fixed weak initialization in MappedSinglyLinkedList

* L01: Removed redundant code (#104)

* Removed redundant code

* L02: Ensured that MappedSinglyLinkedList#contains returns false for Sentinel (#105)

* Ensured that MappedSinglyLinkedList#contains returns false for Sentinel

* L03: Feature/pool 390 oz audit l03 (#106)

* Added initialize protection to MappedSinglyLinkedList

* L04: Emit event when PrizePool adds a controlled token (#107)

* Emit event when PrizePool adds a controlled token

* L05: Improved interface of MappedSinglyLinkedList (#108)

* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
asselstine added a commit that referenced this pull request Aug 21, 2020
* Removed sponsored instant withdrawals

This can easily be done with a simple token transfer

* M01 + N04: Fixed weak initialization in MappedSinglyLinkedList (#103)

* Fixed weak initialization in MappedSinglyLinkedList

* L01: Removed redundant code (#104)

* Removed redundant code

* L02: Ensured that MappedSinglyLinkedList#contains returns false for Sentinel (#105)

* Ensured that MappedSinglyLinkedList#contains returns false for Sentinel

* L03: Feature/pool 390 oz audit l03 (#106)

* Added initialize protection to MappedSinglyLinkedList

* L04: Emit event when PrizePool adds a controlled token (#107)

* Emit event when PrizePool adds a controlled token

* L05: Improved interface of MappedSinglyLinkedList (#108)

* Improved interface of MappedSinglyLinkedList

* Fixed typo straggler

* L06: Made PrizePool field naming more consistent (#109)

* Made PrizePool field naming more consistent

* N01: Improved language consistency (#110)

* Improved language consistency

* N02: Explicitly delete addresses in MappedSinglyLinkedList (#111)

* Explicitly delete addresses in MappedSinglyLinkedList

* N03: Added comments clarifying an edge case for timelocked funds (#112)

* Added comments clarifying an edge case for timelocked funds

* N05: Made return variable naming consistent (#113)

* Made return variable naming consistent

All functions have explicit return statements
Functions that have a single return value won't name the value
Functions that have two or more returns value will have named returns

* Fixed some spelling mistakes (#114)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant