Skip to content

Commit

Permalink
fix: 🐛 modify currency name used for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
yooml committed Sep 6, 2023
1 parent ac47879 commit c7bec8b
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 119 deletions.
2 changes: 0 additions & 2 deletions node/primitives/src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ pub const ASTR: CurrencyId = CurrencyId::Token2(ASTR_TOKEN_ID);
pub const FIL_TOKEN_ID: u8 = 4u8;
pub const FIL: CurrencyId = CurrencyId::Token2(FIL_TOKEN_ID);
pub const VFIL: CurrencyId = CurrencyId::VToken2(FIL_TOKEN_ID);
pub const CDOT_6_13: CurrencyId = CurrencyId::VToken2(5);
pub const PCDOT_6_13: CurrencyId = CurrencyId::VToken2(6);

macro_rules! create_currency_id {
($(#[$meta:meta])*
Expand Down
5 changes: 2 additions & 3 deletions node/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ mod tests;

pub use crate::{
currency::{
AssetIds, CurrencyId, ForeignAssetId, TokenId, TokenSymbol, ASTR, ASTR_TOKEN_ID, BNC,
CDOT_6_13, DOT, DOT_TOKEN_ID, DOT_U, FIL, GLMR, GLMR_TOKEN_ID, KSM, PCDOT_6_13, VBNC, VDOT,
VKSM, VSKSM,
AssetIds, CurrencyId, ForeignAssetId, TokenId, TokenSymbol, ASTR, ASTR_TOKEN_ID, BNC, DOT,
DOT_TOKEN_ID, DOT_U, FIL, GLMR, GLMR_TOKEN_ID, KSM, VBNC, VDOT, VKSM, VSKSM,
},
traits::*,
};
Expand Down
79 changes: 38 additions & 41 deletions pallets/lend-market/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ use crate::{AccountBorrows, Pallet as Loans};
use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite, whitelisted_caller};
use frame_support::assert_ok;
use frame_system::{self, RawOrigin as SystemOrigin};
use node_primitives::{
tokens::{CDOT_6_13, DOT, KSM, PKSM, PSKSM, SKSM, USDT},
Balance, CurrencyId, PUSDT,
};
use node_primitives::{Balance, CurrencyId, DOT, KSM, USDT};
use rate_model::{InterestRateModel, JumpModel};
use sp_std::prelude::*;

Expand Down Expand Up @@ -72,7 +69,7 @@ fn transfer_initial_balance<
.ok();
pallet_assets::Pallet::<T>::force_create(
SystemOrigin::Root.into(),
SKSM.into(),
VKSM.into(),
account_id.clone(),
true,
1,
Expand All @@ -88,7 +85,7 @@ fn transfer_initial_balance<
.ok();
pallet_assets::Pallet::<T>::force_create(
SystemOrigin::Root.into(),
CDOT_6_13.into(),
PHA.into(),
account_id.clone(),
true,
1,
Expand All @@ -113,7 +110,7 @@ fn transfer_initial_balance<
.ok();
pallet_assets::Pallet::<T>::force_set_metadata(
SystemOrigin::Root.into(),
SKSM.into(),
VKSM.into(),
b"xkusama".to_vec(),
b"sKSM".to_vec(),
12,
Expand All @@ -131,7 +128,7 @@ fn transfer_initial_balance<
.ok();
pallet_assets::Pallet::<T>::force_set_metadata(
SystemOrigin::Root.into(),
CDOT_6_13.into(),
PHA.into(),
b"cDot_6_13".to_vec(),
b"cDot_6_13".to_vec(),
12,
Expand All @@ -156,14 +153,14 @@ fn transfer_initial_balance<
.unwrap();
<T as pallet::Config>::Assets::mint_into(USDT, &caller, INITIAL_AMOUNT.into()).unwrap();
<T as pallet::Config>::Assets::mint_into(KSM, &caller, INITIAL_AMOUNT.into()).unwrap();
<T as pallet::Config>::Assets::mint_into(SKSM, &caller, INITIAL_AMOUNT.into()).unwrap();
<T as pallet::Config>::Assets::mint_into(VKSM, &caller, INITIAL_AMOUNT.into()).unwrap();
<T as pallet::Config>::Assets::mint_into(DOT, &caller, INITIAL_AMOUNT.into()).unwrap();
<T as pallet::Config>::Assets::mint_into(CDOT_6_13, &caller, INITIAL_AMOUNT.into()).unwrap();
<T as pallet::Config>::Assets::mint_into(PHA, &caller, INITIAL_AMOUNT.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), USDT, 1.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), KSM, 1.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), SKSM, 1.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), VKSM, 1.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), DOT, 1.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), CDOT_6_13, 1.into()).unwrap();
pallet_prices::Pallet::<T>::set_price(SystemOrigin::Root.into(), PHA, 1.into()).unwrap();
}

fn set_account_borrows<T: Config>(
Expand Down Expand Up @@ -191,29 +188,29 @@ benchmarks! {
}

add_market {
}: _(SystemOrigin::Root, SKSM, pending_market_mock::<T>(PSKSM))
}: _(SystemOrigin::Root, VKSM, pending_market_mock::<T>(VSKSM))
verify {
assert_last_event::<T>(Event::<T>::NewMarket(SKSM, pending_market_mock::<T>(PSKSM)).into());
assert_last_event::<T>(Event::<T>::NewMarket(VKSM, pending_market_mock::<T>(VSKSM)).into());
}

activate_market {
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), SKSM, pending_market_mock::<T>(PSKSM)));
}: _(SystemOrigin::Root, SKSM)
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), VKSM, pending_market_mock::<T>(VSKSM)));
}: _(SystemOrigin::Root, VKSM)
verify {
assert_last_event::<T>(Event::<T>::ActivatedMarket(SKSM).into());
assert_last_event::<T>(Event::<T>::ActivatedMarket(VKSM).into());
}

update_rate_model {
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
}: _(SystemOrigin::Root, USDT, RATE_MODEL_MOCK)
verify {
let mut market = pending_market_mock::<T>(PUSDT);
let mut market = pending_market_mock::<T>(LUSDT);
market.rate_model = RATE_MODEL_MOCK;
assert_last_event::<T>(Event::<T>::UpdatedMarket(USDT, market).into());
}

update_market {
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), KSM, pending_market_mock::<T>(PKSM)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), KSM, pending_market_mock::<T>(LKSM)));
}: _(
SystemOrigin::Root,
KSM,
Expand All @@ -227,17 +224,17 @@ benchmarks! {
Some(1_000_000_000_000_000_000_000u128)
)
verify {
let mut market = pending_market_mock::<T>(PKSM);
let mut market = pending_market_mock::<T>(LKSM);
market.reserve_factor = Ratio::from_percent(50);
market.close_factor = Ratio::from_percent(15);
assert_last_event::<T>(Event::<T>::UpdatedMarket(KSM, market).into());
}

force_update_market {
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
}: _(SystemOrigin::Root,USDT, pending_market_mock::<T>(PUSDT))
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
}: _(SystemOrigin::Root,USDT, pending_market_mock::<T>(LUSDT))
verify {
assert_last_event::<T>(Event::<T>::UpdatedMarket(USDT, pending_market_mock::<T>(PUSDT)).into());
assert_last_event::<T>(Event::<T>::UpdatedMarket(USDT, pending_market_mock::<T>(LUSDT)).into());
}

add_reward {
Expand Down Expand Up @@ -313,7 +310,7 @@ benchmarks! {
transfer_initial_balance::<T>(caller.clone());
let deposit_amount: u32 = 200_000_000;
let borrowed_amount: u32 = 100_000_000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(caller.clone()).into(), USDT, deposit_amount.into()));
assert_ok!(Loans::<T>::collateral_asset(SystemOrigin::Signed(caller.clone()).into(), USDT, true));
Expand All @@ -327,7 +324,7 @@ benchmarks! {
transfer_initial_balance::<T>(caller.clone());
let deposit_amount: u32 = 100_000_000;
let redeem_amount: u32 = 100_000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(caller.clone()).into(), USDT, deposit_amount.into()));
}: _(SystemOrigin::Signed(caller.clone()), USDT, redeem_amount.into())
Expand All @@ -339,7 +336,7 @@ benchmarks! {
let caller: T::AccountId = whitelisted_caller();
transfer_initial_balance::<T>(caller.clone());
let deposit_amount: u32 = 100_000_000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(caller.clone()).into(), USDT, deposit_amount.into()));
}: _(SystemOrigin::Signed(caller.clone()), USDT)
Expand All @@ -353,7 +350,7 @@ benchmarks! {
let deposit_amount: u32 = 200_000_000;
let borrowed_amount: u32 = 100_000_000;
let repay_amount: u32 = 100;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(caller.clone()).into(), USDT, deposit_amount.into()));
assert_ok!(Loans::<T>::collateral_asset(SystemOrigin::Signed(caller.clone()).into(), USDT, true));
Expand All @@ -368,7 +365,7 @@ benchmarks! {
transfer_initial_balance::<T>(caller.clone());
let deposit_amount: u32 = 200_000_000;
let borrowed_amount: u32 = 100_000_000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(caller.clone()).into(), USDT, deposit_amount.into()));
assert_ok!(Loans::<T>::collateral_asset(SystemOrigin::Signed(caller.clone()).into(), USDT, true));
Expand All @@ -382,7 +379,7 @@ benchmarks! {
let caller: T::AccountId = whitelisted_caller();
transfer_initial_balance::<T>(caller.clone());
let deposit_amount: u32 = 200_000_000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(caller.clone()).into(), USDT, deposit_amount.into()));
}: _(SystemOrigin::Signed(caller.clone()), USDT, true)
Expand All @@ -399,25 +396,25 @@ benchmarks! {
let borrowed_amount: u32 = 200_000_000;
let liquidate_amount: u32 = 100_000_000;
let incentive_amount: u32 = 110_000_000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), SKSM, pending_market_mock::<T>(PSKSM)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), SKSM));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), KSM, pending_market_mock::<T>(PKSM)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), VKSM, pending_market_mock::<T>(VSKSM)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), VKSM));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), KSM, pending_market_mock::<T>(LKSM)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), KSM));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(bob.clone()).into(), KSM, deposit_amount.into()));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(alice.clone()).into(), SKSM, deposit_amount.into()));
assert_ok!(Loans::<T>::collateral_asset(SystemOrigin::Signed(alice.clone()).into(), SKSM, true));
assert_ok!(Loans::<T>::mint(SystemOrigin::Signed(alice.clone()).into(), VKSM, deposit_amount.into()));
assert_ok!(Loans::<T>::collateral_asset(SystemOrigin::Signed(alice.clone()).into(), VKSM, true));
set_account_borrows::<T>(alice.clone(), KSM, borrowed_amount.into());
}: _(SystemOrigin::Signed(bob.clone()), alice.clone(), KSM, liquidate_amount.into(), SKSM)
}: _(SystemOrigin::Signed(bob.clone()), alice.clone(), KSM, liquidate_amount.into(), VKSM)
verify {
assert_last_event::<T>(Event::<T>::LiquidatedBorrow(bob.clone(), alice.clone(), KSM, SKSM, liquidate_amount.into(), incentive_amount.into()).into());
assert_last_event::<T>(Event::<T>::LiquidatedBorrow(bob.clone(), alice.clone(), KSM, VKSM, liquidate_amount.into(), incentive_amount.into()).into());
}

add_reserves {
let caller: T::AccountId = whitelisted_caller();
let payer = T::Lookup::unlookup(caller.clone());
transfer_initial_balance::<T>(caller.clone());
let amount: u32 = 2000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
}: _(SystemOrigin::Root, payer, USDT, amount.into())
verify {
Expand All @@ -430,7 +427,7 @@ benchmarks! {
transfer_initial_balance::<T>(caller.clone());
let add_amount: u32 = 2000;
let reduce_amount: u32 = 1000;
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(PUSDT)));
assert_ok!(Loans::<T>::add_market(SystemOrigin::Root.into(), USDT, pending_market_mock::<T>(LUSDT)));
assert_ok!(Loans::<T>::activate_market(SystemOrigin::Root.into(), USDT));
assert_ok!(Loans::<T>::add_reserves(SystemOrigin::Root.into(), payer.clone(), USDT, add_amount.into()));
}: _(SystemOrigin::Root, payer, USDT, reduce_amount.into())
Expand All @@ -440,9 +437,9 @@ benchmarks! {

update_liquidation_free_collateral {

}: _(SystemOrigin::Root, vec![CDOT_6_13])
}: _(SystemOrigin::Root, vec![PHA])
verify {
assert_last_event::<T>(Event::<T>::LiquidationFreeCollateralsUpdated(vec![CDOT_6_13]).into());
assert_last_event::<T>(Event::<T>::LiquidationFreeCollateralsUpdated(vec![PHA]).into());
}
}

Expand Down
36 changes: 19 additions & 17 deletions pallets/lend-market/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use frame_support::{
PalletId,
};
use frame_system::{EnsureRoot, EnsureSigned, EnsureSignedBy};
use node_primitives::{CDOT_6_13, PCDOT_6_13, *};
pub use node_primitives::*;
use orml_traits::{DataFeeder, DataProvider, DataProviderExtended};
use pallet_traits::{
DecimalProvider, ExchangeRateProvider, LiquidStakingCurrenciesProvider,
Expand All @@ -35,14 +35,16 @@ use std::{
hash::{Hash, Hasher},
};

pub use node_primitives::{Price, BNC, DOT, DOT_U, KSM, VBNC, VDOT, VKSM};
pub use node_primitives::{Price, BNC, DOT, DOT_U, KSM, VBNC, VDOT, VKSM, VSKSM};

type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;

pub const PDOT: CurrencyId = CurrencyId::Token2(10);
pub const PKSM: CurrencyId = CurrencyId::Token2(11);
pub const PUSDT: CurrencyId = CurrencyId::Token2(12);
pub const LDOT: CurrencyId = CurrencyId::Token2(10);
pub const LKSM: CurrencyId = CurrencyId::Token2(11);
pub const LUSDT: CurrencyId = CurrencyId::Token2(12);
pub const PHA: CurrencyId = CurrencyId::Token2(5);
pub const VPHA: CurrencyId = CurrencyId::VToken2(5);

construct_runtime!(
pub enum Test where
Expand Down Expand Up @@ -319,7 +321,7 @@ impl MockPriceFeeder {
thread_local! {
pub static PRICES: RefCell<HashMap<CurrencyIdWrap, Option<PriceDetail>>> = {
RefCell::new(
vec![BNC, DOT, KSM, DOT_U, VKSM, VDOT, CDOT_6_13]
vec![BNC, DOT, KSM, DOT_U, VKSM, VDOT, PHA]
.iter()
.map(|&x| (CurrencyIdWrap(x), Some((Price::saturating_from_integer(1), 1))))
.collect()
Expand Down Expand Up @@ -411,8 +413,8 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities {
(ASTR, 1, None),
(GLMR, 1, None),
(DOT_U, 1, None),
(CDOT_6_13, 1, None),
(PCDOT_6_13, 1, None),
(PHA, 1, None),
(VPHA, 1, None),
],
vcurrency: vec![VDOT],
vsbond: vec![],
Expand All @@ -425,7 +427,7 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities {
// (ALICE, BNC, 1_000_000_000_000_000),
(ALICE, KSM, 1_000_000_000_000_000),
(ALICE, DOT, 1_000_000_000_000_000),
(ALICE, CDOT_6_13, 1_000_000_000_000_000),
(ALICE, PHA, 1_000_000_000_000_000),
(ALICE, DOT_U, 1_000_000_000_000_000),
(BOB, KSM, 1_000_000_000_000_000),
(BOB, DOT, 1_000_000_000_000_000),
Expand Down Expand Up @@ -461,12 +463,12 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities {
Assets::force_create(RuntimeOrigin::root(), KSM.into(), ALICE, true, 1).unwrap();
Assets::force_create(RuntimeOrigin::root(), DOT_U.into(), ALICE, true, 1).unwrap();
Assets::force_create(RuntimeOrigin::root(), VDOT.into(), ALICE, true, 1).unwrap();
Assets::force_create(RuntimeOrigin::root(), CDOT_6_13.into(), ALICE, true, 1).unwrap();
Assets::force_create(RuntimeOrigin::root(), PHA.into(), ALICE, true, 1).unwrap();

Assets::mint(RuntimeOrigin::signed(ALICE), KSM.into(), ALICE, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), DOT.into(), ALICE, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), DOT_U.into(), ALICE, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), CDOT_6_13.into(), ALICE, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), PHA.into(), ALICE, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), KSM.into(), BOB, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), DOT.into(), BOB, unit(1000)).unwrap();
Assets::mint(RuntimeOrigin::signed(ALICE), DOT.into(), DAVE, unit(1000)).unwrap();
Expand All @@ -475,16 +477,16 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities {
// Init Markets
Loans::add_market(RuntimeOrigin::root(), BNC, market_mock(VBNC)).unwrap();
Loans::activate_market(RuntimeOrigin::root(), BNC).unwrap();
Loans::add_market(RuntimeOrigin::root(), KSM, market_mock(PKSM)).unwrap();
Loans::add_market(RuntimeOrigin::root(), KSM, market_mock(LKSM)).unwrap();
Loans::activate_market(RuntimeOrigin::root(), KSM).unwrap();
Loans::add_market(RuntimeOrigin::root(), DOT, market_mock(PDOT)).unwrap();
Loans::add_market(RuntimeOrigin::root(), DOT, market_mock(LDOT)).unwrap();
Loans::activate_market(RuntimeOrigin::root(), DOT).unwrap();
Loans::add_market(RuntimeOrigin::root(), DOT_U, market_mock(PUSDT)).unwrap();
Loans::add_market(RuntimeOrigin::root(), DOT_U, market_mock(LUSDT)).unwrap();
Loans::activate_market(RuntimeOrigin::root(), DOT_U).unwrap();
Loans::add_market(RuntimeOrigin::root(), CDOT_6_13, market_mock(PCDOT_6_13)).unwrap();
Loans::activate_market(RuntimeOrigin::root(), CDOT_6_13).unwrap();
Loans::add_market(RuntimeOrigin::root(), PHA, market_mock(VPHA)).unwrap();
Loans::activate_market(RuntimeOrigin::root(), PHA).unwrap();

Loans::update_liquidation_free_collateral(RuntimeOrigin::root(), vec![CDOT_6_13]).unwrap();
Loans::update_liquidation_free_collateral(RuntimeOrigin::root(), vec![PHA]).unwrap();

System::set_block_number(0);
TimestampPallet::set_timestamp(6000);
Expand Down
Loading

0 comments on commit c7bec8b

Please sign in to comment.