Closed epheph closed 5 years ago
We have discussed the issue of Maker having .tab
be non-view. IIRC, we actually cannot emulate their behavior, which makes me very sad.
This kinda feels like there should be a solidity syntax to override the function call: "i know you think this is a CALL, but make this call as a STATICCALL"
Cannot, because they act on private variables? That does seem familiar
Yeah, there is no view-only way to read chi
if I remember correctly.
Ahh, good ol' chi
.
Adds back the getCdps code mostly unmodified. Initial call calls into a function which first resolves the DSProxy from the user before calling the underlying function.
One issue is that, from an ABI standpoint, the getCdps is technically not a "view" function, because "maker.tab()" does some housekeeping. We should either accept that oddity, or emulate the logic behind
maker.tab()
to allow getCdps to be a real view.