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
/// The type used for asset ids. This is the type of the bonded currencies.
156
+
/// The type used for asset ids. This is the type of the bonded
157
+
/// currencies.
150
158
typeAssetId:Parameter + Member + FullCodec + MaxEncodedLen + Saturating + One + Default;
151
159
152
160
typeRuntimeHoldReason:From<HoldReason>;
@@ -194,11 +202,13 @@ pub mod pallet {
194
202
DestructionStarted{
195
203
id:T::PoolId,
196
204
},
197
-
/// Collateral distribution to bonded token holders has been completed for this pool - no more tokens or no more collateral to distribute.
205
+
/// Collateral distribution to bonded token holders has been completed
206
+
/// for this pool (no more tokens or no more collateral to distribute).
198
207
RefundComplete{
199
208
id:T::PoolId,
200
209
},
201
-
/// A bonded token pool has been fully destroyed and all collateral and deposits have been refunded.
210
+
/// A bonded token pool has been fully destroyed and all collateral and
211
+
/// deposits have been refunded.
202
212
Destroyed{
203
213
id:T::PoolId,
204
214
},
@@ -215,17 +225,23 @@ pub mod pallet {
215
225
PoolUnknown,
216
226
/// The pool has no associated bonded currency with the given index.
217
227
IndexOutOfBounds,
218
-
/// The pool does not hold collateral to be refunded, or has no remaining supply of tokens to exchange. Call start_destroy to intiate teardown.
228
+
/// The pool does not hold collateral to be refunded, or has no
229
+
/// remaining supply of tokens to exchange. Call start_destroy to
230
+
/// intiate teardown.
219
231
NothingToRefund,
220
232
/// The user is not privileged to perform the requested operation.
221
233
NoPermission,
222
-
/// The pool is deactivated (i.e., in destroying or refunding state) and not available for use.
234
+
/// The pool is deactivated (i.e., in destroying or refunding state) and
235
+
/// not available for use.
223
236
PoolNotLive,
224
-
/// There are active accounts associated with this pool and thus it cannot be destroyed at this point.
237
+
/// There are active accounts associated with this pool and thus it
238
+
/// cannot be destroyed at this point.
225
239
LivePool,
226
240
/// This operation can only be made when the pool is in refunding state.
227
241
NotRefunding,
228
-
/// The number of currencies linked to a pool exceeds the limit parameter. Thrown by transactions that require specifying the number of a pool's currencies in order to determine weight limits upfront.
242
+
/// The number of currencies linked to a pool exceeds the limit
243
+
/// parameter. Thrown by transactions that require specifying the number
244
+
/// of a pool's currencies in order to determine weight limits upfront.
229
245
CurrencyCount,
230
246
InvalidInput,
231
247
Internal,
@@ -297,8 +313,8 @@ pub mod pallet {
297
313
Ok(())
298
314
})?;
299
315
300
-
// Touch the pool account in order to be able to transfer the collateral currency to it
301
-
// This should also verify that the currency actually exists
316
+
// Touch the pool account in order to be able to transfer the collateral
317
+
// currency to it. This should also verify that the currency actually exists.
// The main consequences of the low liquidity parameter is a lack of representable coins. e^40 goes beyond the representable range of the [Float] type.
95
+
// The main consequences of the low liquidity parameter is a lack of
96
+
// representable coins. e^40 goes beyond the representable range of the [Float]
97
+
// type.
75
98
#[test]
76
99
fnlow_liquidity_parameter(){
77
100
// Create curve with liquidity parameter b=100, and passive issuance=0
0 commit comments