Formal Analysis of Lending Pools in Decentralized Finance