#include "ocean_pool.hpp" void OceanPool::prepareRequest(HTTPClient& http) const { // Empty as Ocean doesn't need special headers } std::string OceanPool::getApiUrl() const { return "https://api.ocean.xyz/v1/statsnap/" + poolUser; } PoolStats OceanPool::parseResponse(const JsonDocument& doc) const { return PoolStats{ .hashrate = doc["result"]["hashrate_300s"].as(), .dailyEarnings = static_cast( doc["result"]["estimated_earn_next_block"].as() * 100000000 ) }; }