Nexus Mutual · Schema

PricingResult

Pricing data for a cover product across all staking pools, including per-pool target prices and a weighted average.

Decentralized InsuranceDeFiEthereumSmart Contract CoverCrypto InsuranceProtocol ProtectionStakingClaims

Properties

Name Type Description
productId integer The cover product id
pricePerPool array Array of pricing data per staking pool
weightedAveragePrice integer The capacity-weighted average price across all pools, expressed as basis points (0-10,000)
View JSON Schema on GitHub

JSON Schema

PricingResult.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.nexusmutual.io/schemas/PricingResult",
  "title": "PricingResult",
  "description": "Pricing data for a cover product across all staking pools, including per-pool target prices and a weighted average.",
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "description": "The cover product id"
    },
    "pricePerPool": {
      "type": "array",
      "description": "Array of pricing data per staking pool",
      "items": {
        "$ref": "#/definitions/PoolPricing"
      }
    },
    "weightedAveragePrice": {
      "type": "integer",
      "description": "The capacity-weighted average price across all pools, expressed as basis points (0-10,000)"
    }
  },
  "required": ["productId", "pricePerPool", "weightedAveragePrice"],
  "definitions": {
    "PoolPricing": {
      "type": "object",
      "description": "Pricing information for a single staking pool",
      "properties": {
        "poolId": {
          "type": "integer",
          "description": "The staking pool id"
        },
        "targetPrice": {
          "type": "integer",
          "description": "The target annual price for this pool, expressed as basis points (0-10,000)"
        }
      },
      "required": ["poolId", "targetPrice"]
    }
  }
}