CirclesUBI / pathfinder2

MIT License
14 stars 9 forks source link

Remove `token_owner` data structure #50

Open llunaCreixent opened 1 year ago

llunaCreixent commented 1 year ago

The token_owner data structure is not needed anywhere. Furthermore is currently storing the same data value twice (check https://github.com/CirclesUBI/pathfinder2/blob/feature/server_only/src/io.rs#L60). Also, is not necessary in the edges db computation because the value contained in token_owner is already present in the Safe data structure as well as the Balance (check https://github.com/CirclesUBI/pathfinder2/blob/feature/server_only/src/safe_db/db.rs#L8).