Build the next generation of Defi accessibility with Celo mobile-first blockchain! Create new solutions on top of the Celo Ledger - DeFi, NFTs, Smart Contracts, Developer tooling and more.
this should basically be treated as pseudocode. completely untested, definitely will not compile! spent some time thinking about how autocompounding would actually work, and tried to work around some issues with prorating rewards w.r.t time spent in the farm. the compound function in particular is explicitly psuedocode, the contract calls we'll need to make there are significantly more complicated, but i think the idea should be correct.
this should basically be treated as pseudocode. completely untested, definitely will not compile! spent some time thinking about how autocompounding would actually work, and tried to work around some issues with prorating rewards w.r.t time spent in the farm. the
compound
function in particular is explicitly psuedocode, the contract calls we'll need to make there are significantly more complicated, but i think the idea should be correct.