Considering a user depositing a certain amount Ati of Token at a certain time ti, they receive an amount Mtiof fToken calculated as follows:
Mti=IdtiAti
Where Idi is the monotonic value index (defined here) that keeps track of the deposit interest rate variation over time. Users are allowed to deposit repeatedly, and the protocols keep records of the interests each time as follows:
Mt1=At1/It1
Mt2=Mt1+At2/It2
Mt3=Mt2+At3/It3
Lock & Earn
In the Lock & Earn operation, the amount Mti, is not given at the same time as the deposit of amount Ati, but will be released at the end of the locking period. To have a deeper understanding on the Lock & Earn operation open this link.