fix min liquidity amount in tests
@@ -63,8 +63,8 @@ thread_local! {
pub static ASSET_WEIGHT_CAP: RefCell<(u32,u32)> = RefCell::new((u32::MAX,1));
pub static ASSET_FEE: RefCell<(u32,u32)> = RefCell::new((0,0));
pub static PROTOCOL_FEE: RefCell<(u32,u32)> = RefCell::new((0,0));
- //pub static MIN_ADDED_LIQUDIITY: RefCell<Balance> = RefCell::new(Balance::default());
- //pub static MIN_TRADE_AMOUNT: RefCell<Balance> = RefCell::new(Balance::default());
+ pub static MIN_ADDED_LIQUDIITY: RefCell<Balance> = RefCell::new(Balance::default());
+ pub static MIN_TRADE_AMOUNT: RefCell<Balance> = RefCell::new(Balance::default());
}
construct_runtime!(
@@ -158,15 +158,13 @@ impl Get<(u32, u32)> for FeeProtocol {
struct MinLiquidity;
impl Get<Balance> for MinLiquidity {
fn get() -> Balance {
- //MIN_ADDED_LIQUDIITY.with(|v| *v.borrow())
- 0
+ MIN_ADDED_LIQUDIITY.with(|v| *v.borrow())
}
}
struct MinAmount;
impl Get<Balance> for MinAmount {
fn get() -> Balance {
- //MIN_TRADE_AMOUNT.with(|v| *v.borrow())
- 0
+ MIN_TRADE_AMOUNT.with(|v| *v.borrow())
}
}
@@ -179,7 +177,7 @@ parameter_types! {
pub ProtocolFee: (u32,u32) = FeeProtocol::get();
pub AssetFee: (u32,u32) = FeeAsset::get();
pub AssetWeightCap: (u32,u32) = WeightCap::get();
- pub MinAddedLiquidity: Balance = MinAddedLiquidity::get();
+ pub MinAddedLiquidity: Balance = MinLiquidity::get();
pub MinTradeAmount: Balance = MinAmount::get();
pub const TVLCap: Balance = Balance::MAX;
}
