Estimated Time: 2pt
To Do:
Using the new entity that returns the eth price in time, add 2 calculated fields named Ratio and Safe.
Ratio: This is the ratio between the value of the collateral deposited in your CDP and how much Dai you have generated from it.
Because the price of ETH constantly fluctuates, you should keep this well above the 150% minimum ratio to avoid your CDP from being liquidated.
Safe: returns a boolean indicating a CDP is well collateralized or not. (https://developer.makerdao.com/dai/1/api/tub)
Acceptance Criteria:
Get the list of CDPs including Ratio field
Query the same CDPs at https://cdp.makerdao.com/ and check that the ratio is the same in the same period of time.
Estimated Time: 2pt To Do: Using the new entity that returns the eth price in time, add 2 calculated fields named Ratio and Safe. Ratio: This is the ratio between the value of the collateral deposited in your CDP and how much Dai you have generated from it. Because the price of ETH constantly fluctuates, you should keep this well above the 150% minimum ratio to avoid your CDP from being liquidated. Safe: returns a boolean indicating a CDP is well collateralized or not. (https://developer.makerdao.com/dai/1/api/tub)
Acceptance Criteria: