3 ms·
To be fair I do think they do that on line 27. They have a table of deltas which they then materialize manually in a different table (which presumably only has
by maxbond 3y ago
To be fair I do think they do that on line 27. They have a table of deltas which they then materialize manually in a different table (which presumably only has one row?). And amusingly link them with foreign keys. ORMs make for some weird schemas, this looks like how I might do it MongoDB.
But to your point; if this code is written honestly, it's pretty weird that we don't see any code to post a transaction to the blockchain, or to verify that the funds are available to be allocated to the insurance funds. You would think that would happen before you wrote the new total to the database.
- tomku 3y agoYou're right, misread that because of the indentation and diff formatting, good catch!