Skip to content

Commit

Permalink
Fix typo Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
petryshkaCODE authored Jan 4, 2025
1 parent cf8b5d3 commit 7f006dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/allowances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Some limits have been applied to the different fields to make sure that the over

To make it easier to allow querying for allowances two more data structures have been added to the contract: `delegates` and `tokens`.

`delegates` stores all the delegates for a specific Safe in a double linked list. For this we also store an entry point to that double linked list in `delegatesStart`. Each delegate is identified by a `uint48` which is the first **6bytes** of the delegate address. This could theoretically cause collisions. Therfore the index points to a struct containing the `address` of the delgate, the `next` index and the `prev` index, so that it is possible to verify which address was used to get the index. In case of collisions we recommend to generate a new delegate.
`delegates` stores all the delegates for a specific Safe in a double linked list. For this we also store an entry point to that double linked list in `delegatesStart`. Each delegate is identified by a `uint48` which is the first **6bytes** of the delegate address. This could theoretically cause collisions. Therfore the index points to a struct containing the `address` of the delegate, the `next` index and the `prev` index, so that it is possible to verify which address was used to get the index. In case of collisions we recommend to generate a new delegate.

`tokens` is a list that is appended when ever an allowance is set for a token for the first time. The tokens will never be removed from this list.

Expand Down

0 comments on commit 7f006dd

Please sign in to comment.