mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-03 05:29:50 +00:00
fix: update AMM unit test fixtures for LP token authority
pool_lp_created() and pool_lp_created_after_lock() fixtures now use Authority::new(token_lp_definition_id) matching the production change where the pool-definition PDA is the LP token's mint authority.
This commit is contained in:
parent
d5837aa0f6
commit
dd8328cf9f
@ -873,7 +873,12 @@ impl AccountWithMetadataForTests {
|
||||
name: String::from("test"),
|
||||
total_supply: BalanceForTests::lp_supply_init(),
|
||||
metadata_id: None,
|
||||
authority: token_core::Authority::renounced(),
|
||||
authority: token_core::Authority::new(
|
||||
IdForTests::token_lp_definition_id()
|
||||
.as_ref()
|
||||
.try_into()
|
||||
.expect("AccountId is always 32 bytes"),
|
||||
),
|
||||
}),
|
||||
nonce: Nonce(0),
|
||||
},
|
||||
@ -899,7 +904,12 @@ impl AccountWithMetadataForTests {
|
||||
name: String::from("LP Token"),
|
||||
total_supply: MINIMUM_LIQUIDITY,
|
||||
metadata_id: None,
|
||||
authority: token_core::Authority::renounced(),
|
||||
authority: token_core::Authority::new(
|
||||
IdForTests::token_lp_definition_id()
|
||||
.as_ref()
|
||||
.try_into()
|
||||
.expect("AccountId is always 32 bytes"),
|
||||
),
|
||||
}),
|
||||
nonce: Nonce(0),
|
||||
},
|
||||
@ -917,7 +927,12 @@ impl AccountWithMetadataForTests {
|
||||
name: String::from("test"),
|
||||
total_supply: BalanceForTests::lp_supply_init(),
|
||||
metadata_id: None,
|
||||
authority: token_core::Authority::renounced(),
|
||||
authority: token_core::Authority::new(
|
||||
IdForTests::token_lp_definition_id()
|
||||
.as_ref()
|
||||
.try_into()
|
||||
.expect("AccountId is always 32 bytes"),
|
||||
),
|
||||
}),
|
||||
nonce: Nonce(0),
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user