You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns the instantaneous rate at which interest accrues for borrowers of this market,
205
234
* at the given timestamp, if the state remains unchanged (not accrued) (scaled by WAD).
206
235
* It is fundamentally different from the rate at which interest is paid by borrowers to lenders in the case of an interest accrual,
207
236
* as in the case of the AdaptiveCurveIRM, the (approximated) average rate since the last update is used instead.
208
-
* @param timestamp The timestamp at which to calculate the borrow rate. Must be greater than or equal to `lastUpdate`. Defaults to `Time.timestamp()` (returns the current borrow rate).
237
+
* @param timestamp The timestamp at which to calculate the borrow rate.
238
+
* Must be greater than or equal to `lastUpdate`.
239
+
* Defaults to `Time.timestamp()` (returns the current borrow rate).
* Returns the rate at which interest accrues for borrowers of this market,
234
-
* at the given timestamp, if the state remains unchanged (not accrued) (scaled by WAD).
235
-
* @param timestamp The timestamp at which to calculate the accrual borrow rate. Must be greater than or equal to `lastUpdate`. Defaults to `Time.timestamp()` (returns the current borrow rate).
257
+
* Returns the rates that _would_ apply to interest accrual for borrowers of this market,
258
+
* if `accrueInterest` was called at the given timestamp (scaled by WAD).
259
+
* @param timestamp The timestamp at which to calculate the accrual borrow rate.
260
+
* Must be greater than or equal to `lastUpdate`.
261
+
* Defaults to `Time.timestamp()` (returns the current accrual borrow rate).
@@ -270,18 +296,22 @@ export class Market implements IMarket {
270
296
/**
271
297
* The market's instantaneous borrow-side Annual Percentage Yield (APY) at the given timestamp,
272
298
* if the state remains unchanged (not accrued) (scaled by WAD).
273
-
* @param timestamp The timestamp at which to calculate the borrow APY. Must be greater than or equal to `lastUpdate`. Defaults to `Time.timestamp()` (returns the current borrow APY).
299
+
* @param timestamp The timestamp at which to calculate the borrow APY.
300
+
* Must be greater than or equal to `lastUpdate`.
301
+
* Defaults to `Time.timestamp()` (returns the current borrow APY).
* The market's instantaneous supply-side Annual Percentage Yield (APY) at the given timestamp,
283
311
* if the state remains unchanged (not accrued) (scaled by WAD).
284
-
* @param timestamp The timestamp at which to calculate the supply APY. Must be greater than or equal to `lastUpdate`. Defaults to `Time.timestamp()` (returns the current supply APY).
312
+
* @param timestamp The timestamp at which to calculate the supply APY.
313
+
* Must be greater than or equal to `lastUpdate`.
314
+
* Defaults to `Time.timestamp()` (returns the current supply APY).
* Returns a new market derived from this market, whose interest has been accrued up to the given timestamp.
297
-
* @param timestamp The timestamp at which to accrue interest. Must be greater than or equal to `lastUpdate`. Defaults to `lastUpdate` (returns a copy of the market).
356
+
* @param timestamp The timestamp at which to accrue interest.
357
+
* Must be greater than or equal to `lastUpdate`.
358
+
* Defaults to `lastUpdate` (returns a copy of the market).
0 commit comments