fix(protocol): compound returns incorrect type (#731)