@compass-labs/api-sdk 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +9 -7
  3. package/bin/mcp-server.js +638 -381
  4. package/bin/mcp-server.js.map +16 -12
  5. package/dist/commonjs/funcs/aaveV3Rate.d.ts +31 -0
  6. package/dist/commonjs/funcs/aaveV3Rate.d.ts.map +1 -0
  7. package/dist/commonjs/funcs/aaveV3Rate.js +134 -0
  8. package/dist/commonjs/funcs/aaveV3Rate.js.map +1 -0
  9. package/dist/commonjs/funcs/skyBuy.d.ts +6 -2
  10. package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/skyBuy.js +6 -2
  12. package/dist/commonjs/funcs/skyBuy.js.map +1 -1
  13. package/dist/commonjs/funcs/skySell.d.ts +6 -2
  14. package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/skySell.js +6 -2
  16. package/dist/commonjs/funcs/skySell.js.map +1 -1
  17. package/dist/commonjs/lib/config.d.ts +3 -3
  18. package/dist/commonjs/lib/config.js +3 -3
  19. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  20. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  21. package/dist/commonjs/mcp-server/server.js +3 -1
  22. package/dist/commonjs/mcp-server/server.js.map +1 -1
  23. package/dist/commonjs/mcp-server/tools/aaveV3Rate.d.ts +8 -0
  24. package/dist/commonjs/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
  25. package/dist/commonjs/mcp-server/tools/aaveV3Rate.js +77 -0
  26. package/dist/commonjs/mcp-server/tools/aaveV3Rate.js.map +1 -0
  27. package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/skyBuy.js +6 -2
  29. package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
  30. package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -1
  31. package/dist/commonjs/mcp-server/tools/skySell.js +6 -2
  32. package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -1
  33. package/dist/commonjs/models/components/aaverateresponse.d.ts +57 -0
  34. package/dist/commonjs/models/components/aaverateresponse.d.ts.map +1 -0
  35. package/dist/commonjs/models/components/aaverateresponse.js +98 -0
  36. package/dist/commonjs/models/components/aaverateresponse.js.map +1 -0
  37. package/dist/commonjs/models/components/index.d.ts +1 -0
  38. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/index.js +1 -0
  40. package/dist/commonjs/models/components/index.js.map +1 -1
  41. package/dist/commonjs/models/operations/aaverate.d.ts +244 -0
  42. package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -0
  43. package/dist/commonjs/models/operations/aaverate.js +163 -0
  44. package/dist/commonjs/models/operations/aaverate.js.map +1 -0
  45. package/dist/commonjs/models/operations/index.d.ts +1 -0
  46. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/index.js +1 -0
  48. package/dist/commonjs/models/operations/index.js.map +1 -1
  49. package/dist/commonjs/sdk/aavev3.d.ts +20 -0
  50. package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
  51. package/dist/commonjs/sdk/aavev3.js +23 -0
  52. package/dist/commonjs/sdk/aavev3.js.map +1 -1
  53. package/dist/commonjs/sdk/sky.d.ts +12 -4
  54. package/dist/commonjs/sdk/sky.d.ts.map +1 -1
  55. package/dist/commonjs/sdk/sky.js +12 -4
  56. package/dist/commonjs/sdk/sky.js.map +1 -1
  57. package/dist/esm/funcs/aaveV3Rate.d.ts +31 -0
  58. package/dist/esm/funcs/aaveV3Rate.d.ts.map +1 -0
  59. package/dist/esm/funcs/aaveV3Rate.js +98 -0
  60. package/dist/esm/funcs/aaveV3Rate.js.map +1 -0
  61. package/dist/esm/funcs/skyBuy.d.ts +6 -2
  62. package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
  63. package/dist/esm/funcs/skyBuy.js +6 -2
  64. package/dist/esm/funcs/skyBuy.js.map +1 -1
  65. package/dist/esm/funcs/skySell.d.ts +6 -2
  66. package/dist/esm/funcs/skySell.d.ts.map +1 -1
  67. package/dist/esm/funcs/skySell.js +6 -2
  68. package/dist/esm/funcs/skySell.js.map +1 -1
  69. package/dist/esm/lib/config.d.ts +3 -3
  70. package/dist/esm/lib/config.js +3 -3
  71. package/dist/esm/mcp-server/mcp-server.js +1 -1
  72. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  73. package/dist/esm/mcp-server/server.js +3 -1
  74. package/dist/esm/mcp-server/server.js.map +1 -1
  75. package/dist/esm/mcp-server/tools/aaveV3Rate.d.ts +8 -0
  76. package/dist/esm/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
  77. package/dist/esm/mcp-server/tools/aaveV3Rate.js +41 -0
  78. package/dist/esm/mcp-server/tools/aaveV3Rate.js.map +1 -0
  79. package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -1
  80. package/dist/esm/mcp-server/tools/skyBuy.js +6 -2
  81. package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
  82. package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -1
  83. package/dist/esm/mcp-server/tools/skySell.js +6 -2
  84. package/dist/esm/mcp-server/tools/skySell.js.map +1 -1
  85. package/dist/esm/models/components/aaverateresponse.d.ts +57 -0
  86. package/dist/esm/models/components/aaverateresponse.d.ts.map +1 -0
  87. package/dist/esm/models/components/aaverateresponse.js +60 -0
  88. package/dist/esm/models/components/aaverateresponse.js.map +1 -0
  89. package/dist/esm/models/components/index.d.ts +1 -0
  90. package/dist/esm/models/components/index.d.ts.map +1 -1
  91. package/dist/esm/models/components/index.js +1 -0
  92. package/dist/esm/models/components/index.js.map +1 -1
  93. package/dist/esm/models/operations/aaverate.d.ts +244 -0
  94. package/dist/esm/models/operations/aaverate.d.ts.map +1 -0
  95. package/dist/esm/models/operations/aaverate.js +125 -0
  96. package/dist/esm/models/operations/aaverate.js.map +1 -0
  97. package/dist/esm/models/operations/index.d.ts +1 -0
  98. package/dist/esm/models/operations/index.d.ts.map +1 -1
  99. package/dist/esm/models/operations/index.js +1 -0
  100. package/dist/esm/models/operations/index.js.map +1 -1
  101. package/dist/esm/sdk/aavev3.d.ts +20 -0
  102. package/dist/esm/sdk/aavev3.d.ts.map +1 -1
  103. package/dist/esm/sdk/aavev3.js +23 -0
  104. package/dist/esm/sdk/aavev3.js.map +1 -1
  105. package/dist/esm/sdk/sky.d.ts +12 -4
  106. package/dist/esm/sdk/sky.d.ts.map +1 -1
  107. package/dist/esm/sdk/sky.js +12 -4
  108. package/dist/esm/sdk/sky.js.map +1 -1
  109. package/docs/sdks/aavev3/README.md +93 -0
  110. package/docs/sdks/sky/README.md +12 -4
  111. package/jsr.json +1 -1
  112. package/package.json +1 -1
  113. package/src/funcs/aaveV3Rate.ts +182 -0
  114. package/src/funcs/skyBuy.ts +6 -2
  115. package/src/funcs/skySell.ts +6 -2
  116. package/src/lib/config.ts +3 -3
  117. package/src/mcp-server/mcp-server.ts +1 -1
  118. package/src/mcp-server/server.ts +3 -1
  119. package/src/mcp-server/tools/aaveV3Rate.ts +50 -0
  120. package/src/mcp-server/tools/skyBuy.ts +6 -2
  121. package/src/mcp-server/tools/skySell.ts +6 -2
  122. package/src/models/components/aaverateresponse.ts +123 -0
  123. package/src/models/components/index.ts +1 -0
  124. package/src/models/operations/aaverate.ts +199 -0
  125. package/src/models/operations/index.ts +1 -0
  126. package/src/sdk/aavev3.ts +31 -0
  127. package/src/sdk/sky.ts +12 -4
@@ -0,0 +1,123 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type AaveRateResponse = {
12
+ /**
13
+ * Variable rate APY for deposits.
14
+ */
15
+ supplyApyVariableRate: string;
16
+ /**
17
+ * Variable rate APR for deposits.
18
+ */
19
+ supplyAprVariableRate: string;
20
+ /**
21
+ * Variable rate APY for loans.
22
+ */
23
+ borrowApyVariableRate: string;
24
+ /**
25
+ * Variable rate APR for loans.
26
+ */
27
+ borrowAprVariableRate: string;
28
+ /**
29
+ * Fixed rate APY for loans.
30
+ */
31
+ borrowApyFixedRate: string;
32
+ /**
33
+ * Fixed rate APR for loans.
34
+ */
35
+ borrowAprFixedRate: string;
36
+ };
37
+
38
+ /** @internal */
39
+ export const AaveRateResponse$inboundSchema: z.ZodType<
40
+ AaveRateResponse,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.object({
44
+ supply_apy_variable_rate: z.string(),
45
+ supply_apr_variable_rate: z.string(),
46
+ borrow_apy_variable_rate: z.string(),
47
+ borrow_apr_variable_rate: z.string(),
48
+ borrow_apy_fixed_rate: z.string(),
49
+ borrow_apr_fixed_rate: z.string(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ "supply_apy_variable_rate": "supplyApyVariableRate",
53
+ "supply_apr_variable_rate": "supplyAprVariableRate",
54
+ "borrow_apy_variable_rate": "borrowApyVariableRate",
55
+ "borrow_apr_variable_rate": "borrowAprVariableRate",
56
+ "borrow_apy_fixed_rate": "borrowApyFixedRate",
57
+ "borrow_apr_fixed_rate": "borrowAprFixedRate",
58
+ });
59
+ });
60
+
61
+ /** @internal */
62
+ export type AaveRateResponse$Outbound = {
63
+ supply_apy_variable_rate: string;
64
+ supply_apr_variable_rate: string;
65
+ borrow_apy_variable_rate: string;
66
+ borrow_apr_variable_rate: string;
67
+ borrow_apy_fixed_rate: string;
68
+ borrow_apr_fixed_rate: string;
69
+ };
70
+
71
+ /** @internal */
72
+ export const AaveRateResponse$outboundSchema: z.ZodType<
73
+ AaveRateResponse$Outbound,
74
+ z.ZodTypeDef,
75
+ AaveRateResponse
76
+ > = z.object({
77
+ supplyApyVariableRate: z.string(),
78
+ supplyAprVariableRate: z.string(),
79
+ borrowApyVariableRate: z.string(),
80
+ borrowAprVariableRate: z.string(),
81
+ borrowApyFixedRate: z.string(),
82
+ borrowAprFixedRate: z.string(),
83
+ }).transform((v) => {
84
+ return remap$(v, {
85
+ supplyApyVariableRate: "supply_apy_variable_rate",
86
+ supplyAprVariableRate: "supply_apr_variable_rate",
87
+ borrowApyVariableRate: "borrow_apy_variable_rate",
88
+ borrowAprVariableRate: "borrow_apr_variable_rate",
89
+ borrowApyFixedRate: "borrow_apy_fixed_rate",
90
+ borrowAprFixedRate: "borrow_apr_fixed_rate",
91
+ });
92
+ });
93
+
94
+ /**
95
+ * @internal
96
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
+ */
98
+ export namespace AaveRateResponse$ {
99
+ /** @deprecated use `AaveRateResponse$inboundSchema` instead. */
100
+ export const inboundSchema = AaveRateResponse$inboundSchema;
101
+ /** @deprecated use `AaveRateResponse$outboundSchema` instead. */
102
+ export const outboundSchema = AaveRateResponse$outboundSchema;
103
+ /** @deprecated use `AaveRateResponse$Outbound` instead. */
104
+ export type Outbound = AaveRateResponse$Outbound;
105
+ }
106
+
107
+ export function aaveRateResponseToJSON(
108
+ aaveRateResponse: AaveRateResponse,
109
+ ): string {
110
+ return JSON.stringify(
111
+ AaveRateResponse$outboundSchema.parse(aaveRateResponse),
112
+ );
113
+ }
114
+
115
+ export function aaveRateResponseFromJSON(
116
+ jsonString: string,
117
+ ): SafeParseResult<AaveRateResponse, SDKValidationError> {
118
+ return safeParse(
119
+ jsonString,
120
+ (x) => AaveRateResponse$inboundSchema.parse(JSON.parse(x)),
121
+ `Failed to parse 'AaveRateResponse' from JSON`,
122
+ );
123
+ }
@@ -7,6 +7,7 @@ export * from "./aaveborrowrequest.js";
7
7
  export * from "./aavehistoricaltransactionbase.js";
8
8
  export * from "./aavehistoricaltransactionsresponse.js";
9
9
  export * from "./aaveliquiditychangeresponse.js";
10
+ export * from "./aaverateresponse.js";
10
11
  export * from "./aaverepayparams.js";
11
12
  export * from "./aaverepayrequest.js";
12
13
  export * from "./aavesupplyparams.js";
@@ -0,0 +1,199 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The chain to use.
13
+ */
14
+ export const AaveRateChain = {
15
+ BaseMainnet: "base:mainnet",
16
+ EthereumMainnet: "ethereum:mainnet",
17
+ ArbitrumMainnet: "arbitrum:mainnet",
18
+ } as const;
19
+ /**
20
+ * The chain to use.
21
+ */
22
+ export type AaveRateChain = ClosedEnum<typeof AaveRateChain>;
23
+
24
+ /**
25
+ * A class representing the token.
26
+ *
27
+ * @remarks
28
+ *
29
+ * This class is used to represent the token in the system. Notice individual
30
+ * endpoints' documentation where per chain tokens are presented.
31
+ */
32
+ export const AaveRateToken = {
33
+ OneINCH: "1INCH",
34
+ Aave: "AAVE",
35
+ Bal: "BAL",
36
+ CbBTC: "cbBTC",
37
+ CbETH: "cbETH",
38
+ Crv: "CRV",
39
+ CrvUSD: "crvUSD",
40
+ Dai: "DAI",
41
+ Ens: "ENS",
42
+ ETHx: "ETHx",
43
+ Frax: "FRAX",
44
+ Fxs: "FXS",
45
+ Gho: "GHO",
46
+ Knc: "KNC",
47
+ Ldo: "LDO",
48
+ Link: "LINK",
49
+ Lusd: "LUSD",
50
+ Mkr: "MKR",
51
+ OsETH: "osETH",
52
+ Pyusd: "PYUSD",
53
+ RETH: "rETH",
54
+ Rpl: "RPL",
55
+ RsETH: "rsETH",
56
+ SDAI: "sDAI",
57
+ Snx: "SNX",
58
+ Stg: "STG",
59
+ SUSDe: "sUSDe",
60
+ TBTC: "tBTC",
61
+ Uni: "UNI",
62
+ Usdc: "USDC",
63
+ USDe: "USDe",
64
+ Usds: "USDS",
65
+ Usdt: "USDT",
66
+ Wbtc: "WBTC",
67
+ WeETH: "weETH",
68
+ Weth: "WETH",
69
+ WstETH: "wstETH",
70
+ Arb: "ARB",
71
+ Eurs: "EURS",
72
+ Mai: "MAI",
73
+ USDCe: "USDCe",
74
+ Aero: "AERO",
75
+ Eur: "EUR",
76
+ Virtual: "VIRTUAL",
77
+ } as const;
78
+ /**
79
+ * A class representing the token.
80
+ *
81
+ * @remarks
82
+ *
83
+ * This class is used to represent the token in the system. Notice individual
84
+ * endpoints' documentation where per chain tokens are presented.
85
+ */
86
+ export type AaveRateToken = ClosedEnum<typeof AaveRateToken>;
87
+
88
+ export type AaveRateRequest = {
89
+ /**
90
+ * The chain to use.
91
+ */
92
+ chain?: AaveRateChain | undefined;
93
+ /**
94
+ * A class representing the token.
95
+ *
96
+ * @remarks
97
+ *
98
+ * This class is used to represent the token in the system. Notice individual
99
+ * endpoints' documentation where per chain tokens are presented.
100
+ */
101
+ token?: AaveRateToken | undefined;
102
+ };
103
+
104
+ /** @internal */
105
+ export const AaveRateChain$inboundSchema: z.ZodNativeEnum<
106
+ typeof AaveRateChain
107
+ > = z.nativeEnum(AaveRateChain);
108
+
109
+ /** @internal */
110
+ export const AaveRateChain$outboundSchema: z.ZodNativeEnum<
111
+ typeof AaveRateChain
112
+ > = AaveRateChain$inboundSchema;
113
+
114
+ /**
115
+ * @internal
116
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
117
+ */
118
+ export namespace AaveRateChain$ {
119
+ /** @deprecated use `AaveRateChain$inboundSchema` instead. */
120
+ export const inboundSchema = AaveRateChain$inboundSchema;
121
+ /** @deprecated use `AaveRateChain$outboundSchema` instead. */
122
+ export const outboundSchema = AaveRateChain$outboundSchema;
123
+ }
124
+
125
+ /** @internal */
126
+ export const AaveRateToken$inboundSchema: z.ZodNativeEnum<
127
+ typeof AaveRateToken
128
+ > = z.nativeEnum(AaveRateToken);
129
+
130
+ /** @internal */
131
+ export const AaveRateToken$outboundSchema: z.ZodNativeEnum<
132
+ typeof AaveRateToken
133
+ > = AaveRateToken$inboundSchema;
134
+
135
+ /**
136
+ * @internal
137
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
138
+ */
139
+ export namespace AaveRateToken$ {
140
+ /** @deprecated use `AaveRateToken$inboundSchema` instead. */
141
+ export const inboundSchema = AaveRateToken$inboundSchema;
142
+ /** @deprecated use `AaveRateToken$outboundSchema` instead. */
143
+ export const outboundSchema = AaveRateToken$outboundSchema;
144
+ }
145
+
146
+ /** @internal */
147
+ export const AaveRateRequest$inboundSchema: z.ZodType<
148
+ AaveRateRequest,
149
+ z.ZodTypeDef,
150
+ unknown
151
+ > = z.object({
152
+ chain: AaveRateChain$inboundSchema.default("arbitrum:mainnet"),
153
+ token: AaveRateToken$inboundSchema.default("USDC"),
154
+ });
155
+
156
+ /** @internal */
157
+ export type AaveRateRequest$Outbound = {
158
+ chain: string;
159
+ token: string;
160
+ };
161
+
162
+ /** @internal */
163
+ export const AaveRateRequest$outboundSchema: z.ZodType<
164
+ AaveRateRequest$Outbound,
165
+ z.ZodTypeDef,
166
+ AaveRateRequest
167
+ > = z.object({
168
+ chain: AaveRateChain$outboundSchema.default("arbitrum:mainnet"),
169
+ token: AaveRateToken$outboundSchema.default("USDC"),
170
+ });
171
+
172
+ /**
173
+ * @internal
174
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
+ */
176
+ export namespace AaveRateRequest$ {
177
+ /** @deprecated use `AaveRateRequest$inboundSchema` instead. */
178
+ export const inboundSchema = AaveRateRequest$inboundSchema;
179
+ /** @deprecated use `AaveRateRequest$outboundSchema` instead. */
180
+ export const outboundSchema = AaveRateRequest$outboundSchema;
181
+ /** @deprecated use `AaveRateRequest$Outbound` instead. */
182
+ export type Outbound = AaveRateRequest$Outbound;
183
+ }
184
+
185
+ export function aaveRateRequestToJSON(
186
+ aaveRateRequest: AaveRateRequest,
187
+ ): string {
188
+ return JSON.stringify(AaveRateRequest$outboundSchema.parse(aaveRateRequest));
189
+ }
190
+
191
+ export function aaveRateRequestFromJSON(
192
+ jsonString: string,
193
+ ): SafeParseResult<AaveRateRequest, SDKValidationError> {
194
+ return safeParse(
195
+ jsonString,
196
+ (x) => AaveRateRequest$inboundSchema.parse(JSON.parse(x)),
197
+ `Failed to parse 'AaveRateRequest' from JSON`,
198
+ );
199
+ }
@@ -4,6 +4,7 @@
4
4
 
5
5
  export * from "./aavehistoricaltransactions.js";
6
6
  export * from "./aaveliquiditychange.js";
7
+ export * from "./aaverate.js";
7
8
  export * from "./aavetokenprice.js";
8
9
  export * from "./aaveuserpositionpertoken.js";
9
10
  export * from "./aaveuserpositionsummary.js";
package/src/sdk/aavev3.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  import { aaveV3Borrow } from "../funcs/aaveV3Borrow.js";
6
6
  import { aaveV3HistoricalTransactions } from "../funcs/aaveV3HistoricalTransactions.js";
7
7
  import { aaveV3LiquidityChange } from "../funcs/aaveV3LiquidityChange.js";
8
+ import { aaveV3Rate } from "../funcs/aaveV3Rate.js";
8
9
  import { aaveV3Repay } from "../funcs/aaveV3Repay.js";
9
10
  import { aaveV3Supply } from "../funcs/aaveV3Supply.js";
10
11
  import { aaveV3TokenPrice } from "../funcs/aaveV3TokenPrice.js";
@@ -17,6 +18,36 @@ import * as operations from "../models/operations/index.js";
17
18
  import { unwrapAsync } from "../types/fp.js";
18
19
 
19
20
  export class AaveV3 extends ClientSDK {
21
+ /**
22
+ * Interest rates
23
+ *
24
+ * @remarks
25
+ * Returns the latest APY and APR rates for a specified token on Aave, for both
26
+ * deposits and loans.
27
+ *
28
+ * **Annual percentage yield (APY)** is the yearly return/cost after continuous
29
+ * compounding of the per-second rate stored on-chain. This value is the same value as
30
+ * seen the on [app.aave.com](
31
+ * https://app.aave.com/)
32
+ * but more up-to-date as it is taken directly from the
33
+ * blockchain every time this endpoint is called.
34
+ *
35
+ * **Annual percentage rate (APR)** is the yearly simple interest rate (no
36
+ * compounding).
37
+ *
38
+ * For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
39
+ */
40
+ async rate(
41
+ request: operations.AaveRateRequest,
42
+ options?: RequestOptions,
43
+ ): Promise<components.AaveRateResponse> {
44
+ return unwrapAsync(aaveV3Rate(
45
+ this,
46
+ request,
47
+ options,
48
+ ));
49
+ }
50
+
20
51
  /**
21
52
  * Token prices
22
53
  *
package/src/sdk/sky.ts CHANGED
@@ -34,9 +34,13 @@ export class Sky extends ClientSDK {
34
34
  * Buy USDS
35
35
  *
36
36
  * @remarks
37
- * Buy USDS with DAI or USDC on a 1:1 basis.
37
+ * Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
38
38
  *
39
- * There are no fees.
39
+ * If buying with DAI, user will need to set an allowance on the DAI contract for the
40
+ * 'SkyDaiUsdsConverter' contract beforehand.
41
+ *
42
+ * If buying with USDC, user will need to set an allowance on the USDC contract for the
43
+ * 'SkyDaiUsdsConverter' contract beforehand.
40
44
  */
41
45
  async buy(
42
46
  request: components.SkyBuyRequest,
@@ -53,9 +57,13 @@ export class Sky extends ClientSDK {
53
57
  * Sell USDS
54
58
  *
55
59
  * @remarks
56
- * Sell USDS for DAI or USDC on a 1:1 basis.
60
+ * Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
57
61
  *
58
- * There are no fees.
62
+ * If swapping to DAI, user will need to set an allowance on the USDS contract for the
63
+ * 'SkyDaiUsdsConverter' contract beforehand.
64
+ *
65
+ * If swapping to USDC, user will need to set an allowance on the USDS contract for the
66
+ * 'SkyUsdcUsdsConverter' contract beforehand.
59
67
  */
60
68
  async sell(
61
69
  request: components.SkySellRequest,