Skip to content
docs

assertCurveHost

assertCurveHost(url): string

Defined in: protocol-lending-curve-evm/src/api.ts:33

Throws unless url is https on curve.finance or a subdomain of it (no credentials, no port). Returns the URL without a trailing slash. Parsed by pattern, not with URL: React Native’s built-in URL lacks a working hostname.

string

string