Skip to content

Commit

Permalink
fix lp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Jun 24, 2024
1 parent ce939ca commit 83e175f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions runtime/integration-tests/src/generic/cases/liquidity_pools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ mod utils {
// are transferred from this account instead of minting
assert_ok!(orml_tokens::Pallet::<T>::mint_into(
default_investment_id::<T>().into(),
&Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain()),
&DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account(),
amount
));

Expand Down Expand Up @@ -1791,7 +1791,7 @@ mod foreign_investments {
let currency_id = AUSD_CURRENCY_ID;
let currency_decimals = currency_decimals::AUSD;
let sending_domain_locator =
Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain());
DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account();
enable_liquidity_pool_transferability::<T>(currency_id);

// Create new pool
Expand Down Expand Up @@ -1938,7 +1938,7 @@ mod foreign_investments {
let currency_id = AUSD_CURRENCY_ID;
let currency_decimals = currency_decimals::AUSD;
let sending_domain_locator =
Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain());
DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account();
create_currency_pool::<T>(pool_id, currency_id, currency_decimals.into());
do_initial_increase_investment::<T>(
pool_id,
Expand Down Expand Up @@ -2188,7 +2188,7 @@ mod foreign_investments {
// Increasing again should just bump redeeming amount
assert_ok!(orml_tokens::Pallet::<T>::mint_into(
default_investment_id::<T>().into(),
&Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain()),
&DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account(),
amount
));
let msg = LiquidityPoolMessage::IncreaseRedeemOrder {
Expand Down Expand Up @@ -2225,7 +2225,7 @@ mod foreign_investments {
let currency_id = AUSD_CURRENCY_ID;
let currency_decimals = currency_decimals::AUSD;
let sending_domain_locator =
Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain());
DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account();

// Create new pool
create_currency_pool::<T>(pool_id, currency_id, currency_decimals.into());
Expand Down Expand Up @@ -2343,7 +2343,7 @@ mod foreign_investments {
let currency_id = AUSD_CURRENCY_ID;
let currency_decimals = currency_decimals::AUSD;
let sending_domain_locator =
Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain());
DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account();

// Create new pool
create_currency_pool::<T>(pool_id, currency_id, currency_decimals.into());
Expand Down Expand Up @@ -2994,7 +2994,7 @@ mod foreign_investments {
// Mint more into DomainLocator required for subsequent invest attempt
assert_ok!(orml_tokens::Pallet::<T>::mint_into(
default_investment_id::<T>().into(),
&Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain()),
&DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account(),
1,
));

Expand Down Expand Up @@ -3164,7 +3164,7 @@ mod foreign_investments {
enable_usdt_trading::<T>(pool_currency, amount, true, true, true);
assert_ok!(orml_tokens::Pallet::<T>::mint_into(
default_investment_id::<T>().into(),
&Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain()),
&DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account(),
amount,
));

Expand Down Expand Up @@ -3246,7 +3246,7 @@ mod foreign_investments {
enable_usdt_trading::<T>(pool_currency, amount, true, true, true);
assert_ok!(orml_tokens::Pallet::<T>::mint_into(
default_investment_id::<T>().into(),
&Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain()),
&DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account(),
amount,
));

Expand Down Expand Up @@ -3309,7 +3309,7 @@ mod foreign_investments {
let pool_currency_decimals = currency_decimals::AUSD;
let invest_amount_pool_denominated: u128 = 6 * decimals(18);
let sending_domain_locator =
Domain::convert(DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain());
DEFAULT_DOMAIN_ADDRESS_MOONBEAM.domain().into_account();
let trader: AccountId = Keyring::Alice.into();
create_currency_pool::<T>(pool_id, pool_currency, pool_currency_decimals.into());

Expand Down

0 comments on commit 83e175f

Please sign in to comment.