'mcd:savings' service to work with the Dai Savings Rate system. In the code, this is called SavingsService.
const service = maker.service('mcd:savings');
All the methods below are asynchronous.
exitAll use a proxy contract.
Deposit the specified amount of Dai into the Dai Savings Rate (DSR) contract.
Withdraw the specified amount of Dai from the DSR contract.
Withdraw all Dai owned by the current account from the DSR contract.
Return the amount of Dai in the DSR contract owned by the current address. Strictly speaking, this method returns the amount of Dai owned by the proxy contract for the current address. to work with the methods above.
Return the amount of Dai in the DSR contract owned by the specified address.
Get the total amount of Dai in the DSR contract for all users.
Get the current annual savings rate.