CurveApi
Defined in: protocol-lending-curve-evm/src/api.ts:55
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CurveApi(
endpoint?,timeoutMs?):CurveApi
Defined in: protocol-lending-curve-evm/src/api.ts:57
Parameters
Section titled “Parameters”endpoint?
Section titled “endpoint?”string = CURVE_PRICES_API
timeoutMs?
Section titled “timeoutMs?”number = API_TIMEOUT_MS
Returns
Section titled “Returns”CurveApi
Properties
Section titled “Properties”endpoint
Section titled “endpoint”
readonlyendpoint:string
Defined in: protocol-lending-curve-evm/src/api.ts:56
Methods
Section titled “Methods”savingsStatistics()
Section titled “savingsStatistics()”savingsStatistics():
Promise<ScrvUsdApiStats>
Defined in: protocol-lending-curve-evm/src/api.ts:68
scrvUSD’s projected APY and supply. Throws on a failed request or a malformed answer.
Returns
Section titled “Returns”Promise<ScrvUsdApiStats>