People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!
StateDB but this has to integrate with the Cosmos x/bank module. The StateDB only models an accounts spendable balance but the SDK has vesting accounts that hold both spendable, and locked balance in x/staking. When a vesting account delegates more than its spendable balance, the post-delegation write-back subtracts the full delegated amount from the StateDB's spendable view. This leads to an unchecked integer overflow on the balance.