Autocompounders give small token holders the same compounding advantages as big token holders. Autocompounders are more effective when they hold more deposits. For this reason, YY Strategies are designed to be primitives that any project can easily integrate.
User balances are accounted with Yak Receipt Tokens (YRT). The number of shares corresponds to ownership of each pool's underlying assets.
User balance of BAG = YRT shares * (total BAG / total shares)
Amount of shares a user owns (number does not go up)
Conversion rate for a given amount of shares (number goes up over time)
Each strategy allows users to deposit and withdraw. The simplest implementation may use only two functions:
Deposit deposit tokens
Redeem shares to withdraw deposit tokens
There is no need for integrations to manage
reinvest()functionality, as the YY community “just handles” it.