II.I.V The Earn Mechanism
This is an extensive description of the Earn mechanism within the M^0 protocol.
Last updated
This is an extensive description of the Earn mechanism within the M^0 protocol.
Last updated
The Earn Mechanism is a mechanism in the protocol which allows Approved (see ) to earn the (see ).
The , while input as an explicit value from the , is bound in the smart contracts to be the lower of its input value or the maximum it can be without expending more $M than is accruing from . To elaborate, the utilization of the Earn Mechanism can be considered to be the total amount of Owed $M that is currently paying the (hereon referred to as active M) divided by the total amount of $M in the Earn Mechanism. If a is depermissioned by the , their M will be deducted from the active $M and thus lower utilization. The is then the minimum of the value input by the , or the multiplied by utilization, which represents the lowest rate that would be safe to offer before more $M is being paid to than is being collected from .
Once approved by the , an Approved can call the Start Earning
method. This will check if the address is on the Approved Earners list and if so the address will begin to earn the on a continuously compounding basis. If an address is removed from the Earner’s list, Stop Earning
can be called with the address in question passed as an argument to the method, which will cease the accrual of the on the address’ balance.