File tree 7 files changed +8
-7
lines changed
7 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -151,10 +151,10 @@ impl<T: Config> Pallet<T> {
151
151
Ok ( Ratio :: from_rational ( borrows, total) )
152
152
}
153
153
154
- /// The exchange rate should be greater than 0.02 and less than 1
154
+ /// The exchange rate should be greater than 0.015 and less than 1
155
155
pub ( crate ) fn ensure_valid_exchange_rate ( exchange_rate : Rate ) -> DispatchResult {
156
156
ensure ! (
157
- exchange_rate >= Rate :: from_inner( MIN_EXCHANGE_RATE )
157
+ exchange_rate >= Rate :: from_inner( MIN_VALID_EXCHANGE_RATE )
158
158
&& exchange_rate < Rate :: from_inner( MAX_EXCHANGE_RATE ) ,
159
159
Error :: <T >:: InvalidExchangeRate
160
160
) ;
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ pub const MIN_INTEREST_CALCULATING_INTERVAL: u64 = 100; // 100 seconds
80
80
81
81
pub const MAX_EXCHANGE_RATE : u128 = 1_000_000_000_000_000_000 ; // 1
82
82
pub const MIN_EXCHANGE_RATE : u128 = 20_000_000_000_000_000 ; // 0.02
83
+ pub const MIN_VALID_EXCHANGE_RATE : u128 = 15_000_000_000_000_000 ; // 0.015
83
84
84
85
type AccountIdOf < T > = <T as frame_system:: Config >:: AccountId ;
85
86
type AssetIdOf < T > =
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
180
180
spec_name : create_runtime_str ! ( "heiko" ) ,
181
181
impl_name : create_runtime_str ! ( "heiko" ) ,
182
182
authoring_version : 1 ,
183
- spec_version : 209 ,
183
+ spec_version : 210 ,
184
184
impl_version : 33 ,
185
185
apis : RUNTIME_API_VERSIONS ,
186
186
transaction_version : 17 ,
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
180
180
spec_name : create_runtime_str ! ( "kerria" ) ,
181
181
impl_name : create_runtime_str ! ( "kerria" ) ,
182
182
authoring_version : 1 ,
183
- spec_version : 209 ,
183
+ spec_version : 210 ,
184
184
impl_version : 33 ,
185
185
apis : RUNTIME_API_VERSIONS ,
186
186
transaction_version : 17 ,
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
185
185
spec_name : create_runtime_str ! ( "parallel" ) ,
186
186
impl_name : create_runtime_str ! ( "parallel" ) ,
187
187
authoring_version : 1 ,
188
- spec_version : 209 ,
188
+ spec_version : 210 ,
189
189
impl_version : 33 ,
190
190
apis : RUNTIME_API_VERSIONS ,
191
191
transaction_version : 17 ,
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
180
180
spec_name : create_runtime_str ! ( "vanilla" ) ,
181
181
impl_name : create_runtime_str ! ( "vanilla" ) ,
182
182
authoring_version : 1 ,
183
- spec_version : 209 ,
183
+ spec_version : 210 ,
184
184
impl_version : 33 ,
185
185
apis : RUNTIME_API_VERSIONS ,
186
186
transaction_version : 17 ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ VOLUME="chains"
20
20
NODE_KEY=" $1 "
21
21
KEYSTORE_PATH=" $2 "
22
22
NODE_NAME=" $3 "
23
- DOCKER_IMAGE=" parallelfinance/parallel:v2.0.9 "
23
+ DOCKER_IMAGE=" parallelfinance/parallel:v2.1.0 "
24
24
BASE_PATH=" /data"
25
25
26
26
if [ $# -lt 3 ]; then
You can’t perform that action at this time.
0 commit comments