News for hackers. Stuff that matters.
Re:I accidentally loaned all my money to the US government by kube-system on Sunday May 01, 2022 @04:58PM (#31228609)
> check on the users balance and only allow the leftover amount to be used to buy the bonds I.e if I already have $2K worth of bonds then I should be allowed only another $8K worth of bonds.

Your pseudocode already failed the unit tests. The limit is 10k per year, and you can hold I bonds for 30 years. Someone can have 300k of I bonds in their account balance.

(Not that it would be hard to do it correctly.)

Re:I accidentally loaned all my money to the US government by la6472 on Sunday May 01, 2022 @10:11PM (#31230697)
Touché :p