{
  "opencollection": "1.0.0",
  "info": {
    "name": "Angle Allowances Borrow API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Borrow",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get VaultManagers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.angle.money/v1/vaultManagers",
            "params": [
              {
                "name": "chainId",
                "value": "",
                "type": "query",
                "description": "Chain requested"
              },
              {
                "name": "user",
                "value": "0xa116f421ff82A9704428259fd8CC63347127B777",
                "type": "query",
                "description": "User blockchain `address` (optional)"
              },
              {
                "name": "agToken",
                "value": "",
                "type": "query",
                "description": "agToken address"
              },
              {
                "name": "blockNumber",
                "value": "12345678",
                "type": "query",
                "description": "Block number"
              }
            ]
          },
          "docs": "Return the global state of `VaultManagers` listed by the treasuries associated to a stablecoin"
        },
        {
          "info": {
            "name": "Get Vaults",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.angle.money/v1/vaults",
            "params": [
              {
                "name": "chainId",
                "value": "",
                "type": "query",
                "description": "Chain requested"
              },
              {
                "name": "user",
                "value": "0xa116f421ff82A9704428259fd8CC63347127B777",
                "type": "query",
                "description": "User blockchain `address`"
              },
              {
                "name": "agToken",
                "value": "",
                "type": "query",
                "description": "agToken address"
              }
            ]
          },
          "docs": "Return all vaults for a user on a chain."
        },
        {
          "info": {
            "name": "Build payloads for Angle's borrow module",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.angle.money/v1/leverage",
            "params": [
              {
                "name": "agTokenAddress",
                "value": "",
                "type": "query",
                "description": "The address of the stablecoin to borrow"
              },
              {
                "name": "agTokenToBorrow",
                "value": "",
                "type": "query",
                "description": "The amount of agTokens to borrow"
              },
              {
                "name": "agTokenToSwap",
                "value": "",
                "type": "query",
                "description": "The amount of agTokens to swap for the collateral"
              },
              {
                "name": "amountsBrought",
                "value": "",
                "type": "query",
                "description": "An array of objects representing the amounts and addresses of assets brought"
              },
              {
                "name": "chainId",
                "value": "",
                "type": "query",
                "description": "The ID of the Ethereum chain on which to perform the operation"
              },
              {
                "name": "collateralAddress",
                "value": "",
                "type": "query",
                "description": "The address of the collateral contract"
              },
              {
                "name": "collateralToAdd",
                "value": "",
                "type": "query",
                "description": "The amount of collateral to deposit"
              },
              {
                "name": "userAddress",
                "value": "",
                "type": "query",
                "description": "The address of the user requesting the payload"
              },
              {
                "name": "vaultId",
                "value": "",
                "type": "query",
                "description": "The vault to act on"
              },
              {
                "name": "vaultPermit",
                "value": "",
                "type": "query",
                "description": "Vault permit"
              },
              {
                "name": "permits",
                "value": "",
                "type": "query",
                "description": "Array of permits"
              },
              {
                "name": "slippage",
                "value": "",
                "type": "query",
                "description": "Slippage"
              },
              {
                "name": "oneInchSlippage",
                "value": "",
                "type": "query",
                "description": "One-inch slippage"
              }
            ]
          },
          "docs": "Build payloads for Angle's borrow module"
        },
        {
          "info": {
            "name": "Build payloads for Angle's borrow module",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.angle.money/v1/deleverage",
            "params": [
              {
                "name": "agTokenToRepay",
                "value": "",
                "type": "query",
                "description": "The amount of agTokens to repay."
              },
              {
                "name": "repayAll",
                "value": "",
                "type": "query",
                "description": "If all the vault's debt is repaid."
              },
              {
                "name": "amountsBrought",
                "value": "",
                "type": "query",
                "description": "An array of objects representing the amounts and addresses of assets brought."
              },
              {
                "name": "chainId",
                "value": "",
                "type": "query",
                "description": "The ID of the Ethereum chain on which to perform the operation."
              },
              {
                "name": "collateralAddress",
                "value": "",
                "type": "query",
                "description": "The address of the collateral contract."
              },
              {
                "name": "collateralToWithdrawToWallet",
                "value": "",
                "type": "query",
                "description": "The amount of collateral to withdraw."
              },
              {
                "name": "collateralToSwap",
                "value": "",
                "type": "query",
                "description": "The amount of collateral to swap to EURA."
              },
              {
                "name": "userAddress",
                "value": "",
                "type": "query",
                "description": "The address of the user requesting the payload."
              },
              {
                "name": "vaultId",
                "value": "",
                "type": "query",
                "description": "The vault to act on."
              },
              {
                "name": "agTokenAddress",
                "value": "",
                "type": "query",
                "description": "The address of the agToken."
              },
              {
                "name": "outputTokenAddress",
                "value": "",
                "type": "query",
                "description": "The address of the token wanted by the user."
              }
            ]
          },
          "docs": "This route handles requests to build payloads for Angle's borrow module."
        }
      ]
    }
  ],
  "bundled": true
}