SushiSwap · Schema

OffChainPool

DeFiDecentralized ExchangeDEXCryptocurrencyWeb3BlockchainMulti-ChainLiquiditySwapToken Pricing

Properties

Name Type Description
chain_id integer ID of the chain
address string Blade contract address of the pool, is the address used when executing a transaction
num_assets integer The total of assets available in the chain
k number K factor
time_in_seconds integer Number of seconds were used to calculate the fees of a swap, this number indicates the number of seconds that quotes are live
default_time_in_seconds integer Default number of seconds that quotes are live, is value used to calculate fees when don't send the query param time_in_seconds
swaps_enabled boolean Represents if the swaps are available for the chain
View JSON Schema on GitHub

JSON Schema

offchainpool.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "OffChainPool",
  "type": "object",
  "properties": {
    "chain_id": {
      "type": "integer",
      "description": "ID of the chain"
    },
    "address": {
      "type": "string",
      "description": "Blade contract address of the pool, is the address used when executing a transaction"
    },
    "num_assets": {
      "type": "integer",
      "description": "The total of assets available in the chain"
    },
    "k": {
      "type": "number",
      "format": "float",
      "description": "K factor"
    },
    "time_in_seconds": {
      "type": "integer",
      "description": "Number of seconds were used to calculate the fees of a swap, this number indicates the number of seconds that quotes are live"
    },
    "default_time_in_seconds": {
      "type": "integer",
      "description": "Default number of seconds that quotes are live, is value used to calculate fees when don't send the query param time_in_seconds"
    },
    "swaps_enabled": {
      "type": "boolean",
      "description": "Represents if the swaps are available for the chain"
    }
  },
  "required": [
    "chain_id",
    "address",
    "num_assets",
    "k",
    "time_in_seconds",
    "default_time_in_seconds",
    "swaps_enabled"
  ]
}