@morpho-org/blue-sdk 3.0.0-next.6 → 3.0.0-next.7
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.
|
@@ -98,25 +98,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
|
|
|
98
98
|
* If the collateral price is 0, usage is `MaxUint256`.
|
|
99
99
|
*/
|
|
100
100
|
get borrowCapacityUsage(): bigint | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* Returns the maximum amount of loan assets that can be borrowed given a certain borrow position
|
|
103
|
-
* and the reason for the limit.
|
|
104
|
-
* Returns `undefined` iff the market's price is undefined.
|
|
105
|
-
* @deprecated Use `getBorrowCapacityLimit` instead.
|
|
106
|
-
*/
|
|
107
|
-
get borrowCapacityLimit(): import("../market/Market.js").CapacityLimit | undefined;
|
|
108
101
|
/**
|
|
109
102
|
* Returns the maximum amount of loan assets that can be withdrawn given a certain supply position
|
|
110
103
|
* and a balance of loan assets, and the reason for the limit.
|
|
111
104
|
*/
|
|
112
105
|
get withdrawCapacityLimit(): import("../market/Market.js").CapacityLimit;
|
|
113
|
-
/**
|
|
114
|
-
* Returns the maximum amount of collateral assets that can be withdrawn given a certain borrow position
|
|
115
|
-
* and the reason for the limit.
|
|
116
|
-
* Returns `undefined` iff the market's price is undefined.
|
|
117
|
-
* @deprecated Use `getWithdrawCollateralCapacityLimit` instead.
|
|
118
|
-
*/
|
|
119
|
-
get withdrawCollateralCapacityLimit(): import("../market/Market.js").CapacityLimit | undefined;
|
|
120
106
|
/**
|
|
121
107
|
* Returns a new position derived from this position, whose interest has been accrued up to the given timestamp.
|
|
122
108
|
* @param timestamp The timestamp at which to accrue interest. Must be greater than or equal to the market's `lastUpdate`.
|
package/lib/position/Position.js
CHANGED
|
@@ -132,15 +132,6 @@ class AccrualPosition extends Position {
|
|
|
132
132
|
get borrowCapacityUsage() {
|
|
133
133
|
return this.market.getBorrowCapacityUsage(this);
|
|
134
134
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Returns the maximum amount of loan assets that can be borrowed given a certain borrow position
|
|
137
|
-
* and the reason for the limit.
|
|
138
|
-
* Returns `undefined` iff the market's price is undefined.
|
|
139
|
-
* @deprecated Use `getBorrowCapacityLimit` instead.
|
|
140
|
-
*/
|
|
141
|
-
get borrowCapacityLimit() {
|
|
142
|
-
return this.market.getBorrowCapacityLimit(this);
|
|
143
|
-
}
|
|
144
135
|
/**
|
|
145
136
|
* Returns the maximum amount of loan assets that can be withdrawn given a certain supply position
|
|
146
137
|
* and a balance of loan assets, and the reason for the limit.
|
|
@@ -148,15 +139,6 @@ class AccrualPosition extends Position {
|
|
|
148
139
|
get withdrawCapacityLimit() {
|
|
149
140
|
return this.market.getWithdrawCapacityLimit(this);
|
|
150
141
|
}
|
|
151
|
-
/**
|
|
152
|
-
* Returns the maximum amount of collateral assets that can be withdrawn given a certain borrow position
|
|
153
|
-
* and the reason for the limit.
|
|
154
|
-
* Returns `undefined` iff the market's price is undefined.
|
|
155
|
-
* @deprecated Use `getWithdrawCollateralCapacityLimit` instead.
|
|
156
|
-
*/
|
|
157
|
-
get withdrawCollateralCapacityLimit() {
|
|
158
|
-
return this.market.getWithdrawCollateralCapacityLimit(this);
|
|
159
|
-
}
|
|
160
142
|
/**
|
|
161
143
|
* Returns a new position derived from this position, whose interest has been accrued up to the given timestamp.
|
|
162
144
|
* @param timestamp The timestamp at which to accrue interest. Must be greater than or equal to the market's `lastUpdate`.
|