Aditya Arora 1 år sedan
förälder
incheckning
a9e19576e9

+ 2 - 2
apps/api-reference/src/apis/evm/get-ema-price-no-older-than.ts

@@ -11,7 +11,7 @@ it has been updated sufficiently recently.
 
 The caller provides an **\`age\`** argument that specifies how old the price can be.
 
-The \`price\` object contains the following fields:
+The price object contains the following fields:
 1. \`price\`: The latest price of the price feed.
 2. \`conf\`: The confidence level of the price feed.
 3. \`expo\`: The exponent of the price feed.
@@ -27,7 +27,7 @@ Sample \`price\` object:
 }
 \`\`\`
 
-The price above is in the format of \`price * 10^expo\`. So, the price in above
+The \`price\` above is in the format of \`price * 10^expo\`. So, the \`price\` in above
 mentioned sample represents the number \`123456789 * 10(-8) = 1.23456789\` in
 this case.
 

+ 2 - 2
apps/api-reference/src/apis/evm/get-ema-price-unsafe.ts

@@ -12,7 +12,7 @@ export const getEmaPriceUnsafe = readApi<"id">({
   caller's responsibility to check the returned \`publishTime\` to ensure that the
   update is recent enough for their use case. If you need the latest price, update the price using [\`updatePriceFeeds()\`](updatePriceFeeds) and then call [\`getEmaPrice()\`](getEmaPrice).
 
-  The \`price\` object contains the following fields:
+  The price object contains the following fields:
   1. \`price\`: The latest price of the price feed.
   2. \`conf\`: The confidence level of the price feed.
   3. \`expo\`: The exponent of the price feed.
@@ -28,7 +28,7 @@ export const getEmaPriceUnsafe = readApi<"id">({
   }
   \`\`\`
 
-  The price above is in the format of \`price * 10^expo\`. So, the price in above
+  The \`price\` above is in the format of \`price * 10^expo\`. So, the \`price\` in above
   mentioned sample represents the number \`123456789 * 10(-8) = 1.23456789\` in
   this case.
 

+ 2 - 2
apps/api-reference/src/apis/evm/get-ema-price.ts

@@ -13,7 +13,7 @@ export const getEmaPrice = readApi<"id">({
   3. \`expo\`: The exponent of the price feed.
   4. \`publishtime\`: The time when the price feed was last updated.
 
-  Sample \`price\` object:
+  Sample price object:
   \`\`\`json
   {
       price: 123456789,
@@ -23,7 +23,7 @@ export const getEmaPrice = readApi<"id">({
   }
   \`\`\`
 
-  The price above is in the format of \`price * 10^expo\`. So, the price in above
+  The \`price\` above is in the format of \`price * 10^expo\`. So, the \`price\` in above
   mentioned sample represents the number \`123456789 * 10(-8) = 1.23456789\` in
   this case.
 

+ 2 - 2
apps/api-reference/src/apis/evm/get-price-no-older-than.ts

@@ -11,7 +11,7 @@ it has been updated sufficiently recently.
 
 The caller provides an **\`age\`** argument that specifies how old the price can be.
 
-The \`price\` object contains the following fields:
+The price object contains the following fields:
 1. \`price\`: The latest price of the price feed.
 2. \`conf\`: The confidence level of the price feed.
 3. \`expo\`: The exponent of the price feed.
@@ -27,7 +27,7 @@ Sample \`price\` object:
 }
 \`\`\`
 
-The price above is in the format of \`price * 10^expo\`. So, the price in above
+The \`price\` above is in the format of \`price * 10^expo\`. So, the \`price\` in above
 mentioned sample represents the number \`123456789 * 10(-8) = 1.23456789\` in
 this case.
 

+ 2 - 2
apps/api-reference/src/apis/evm/get-price-unsafe.ts

@@ -12,7 +12,7 @@ export const getPriceUnsafe = readApi<"id">({
   caller's responsibility to check the returned \`publishTime\` to ensure that the
   update is recent enough for their use case. If you need the latest price, update the price using [\`updatePriceFeeds()\`](updatePriceFeeds) and then call [\`getPrice()\`](getPrice).
 
-  The \`price\` object contains the following fields:
+  The price object contains the following fields:
   1. \`price\`: The latest price of the price feed.
   2. \`conf\`: The confidence level of the price feed.
   3. \`expo\`: The exponent of the price feed.
@@ -28,7 +28,7 @@ export const getPriceUnsafe = readApi<"id">({
   }
   \`\`\`
 
-  The price above is in the format of \`price * 10^expo\`. So, the price in above
+  The \`price\` above is in the format of \`price * 10^expo\`. So, the \`price\` in above
   mentioned sample represents the number \`123456789 * 10(-8) = 1.23456789\` in
   this case.
 

+ 2 - 2
apps/api-reference/src/apis/evm/get-price.ts

@@ -7,7 +7,7 @@ export const getPrice = readApi<"id">({
   description: `
 This method returns the latest price object for the requested price feed ID.
 
-The \`price\` object contains the following fields:
+The price object contains the following fields:
 1. \`price\`: The latest price of the price feed.
 2. \`conf\`: The confidence level of the price feed.
 3. \`expo\`: The exponent of the price feed.
@@ -23,7 +23,7 @@ Sample \`price\` object:
 }
 \`\`\`
 
-The price above is in the format of \`price * 10^expo\`. So, the price in above
+The \`price\` above is in the format of \`price * 10^expo\`. So, the \`price\` in above
 mentioned sample represents the number \`123456789 * 10(-8) = 1.23456789\` in
 this case.
 

+ 5 - 4
apps/api-reference/src/apis/evm/get-valid-time-period.ts

@@ -5,10 +5,11 @@ export const getValidTimePeriod = readApi<never>({
   summary: "Get the default valid time period of price freshness in seconds.",
   description: `
   This method returns the default valid time period of price freshness in **seconds**.
- This quantity is the maximum age of price updates returned by functions like [getPrice](getPrice) and
-[getEmaPrice](getEmaPrice); these functions revert if the current on-chain price
-is older than this period.  The valid time period is configured to be a sane
-default for each blockchain.
+  This quantity is the maximum age of price updates returned by functions like [getPrice](getPrice) and
+  [getEmaPrice](getEmaPrice); these functions revert if the current on-chain price
+  is older than this period.
+
+The valid time period is configured to be a same default for each blockchain.
   `,
   parameters: [],
   code: [