Error handling implemented in getFee and getLastPrice