mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Dex improvements (#422)
* remove dex traits&balance types * remove liq tokens pallet in favor of coins-pallet instance * fix tests & benchmarks * remove liquidity tokens trait * fix CI * fix pr comments * Slight renamings * Add burn_with_instruction as a negative to LiquidityTokens CallFilter * Remove use of One, Zero, Saturating taits in dex pallet --------- Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
@@ -275,7 +275,12 @@ async fn sign_test() {
|
||||
serai
|
||||
.publish(
|
||||
&serai
|
||||
.sign(&serai_pair, &SeraiCoins::burn(out_instruction.clone()), 0, Default::default())
|
||||
.sign(
|
||||
&serai_pair,
|
||||
&SeraiCoins::burn_with_instruction(out_instruction.clone()),
|
||||
0,
|
||||
Default::default(),
|
||||
)
|
||||
.unwrap(),
|
||||
)
|
||||
.await
|
||||
@@ -293,7 +298,7 @@ async fn sign_test() {
|
||||
let burn_events = serai
|
||||
.as_of(serai.block_by_number(last_serai_block).await.unwrap().unwrap().hash())
|
||||
.coins()
|
||||
.burn_events()
|
||||
.burn_with_instruction_events()
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@@ -301,7 +306,10 @@ async fn sign_test() {
|
||||
assert_eq!(burn_events.len(), 1);
|
||||
assert_eq!(
|
||||
burn_events[0],
|
||||
CoinsEvent::Burn { from: serai_addr.into(), instruction: out_instruction.clone() }
|
||||
CoinsEvent::BurnWithInstruction {
|
||||
from: serai_addr.into(),
|
||||
instruction: out_instruction.clone()
|
||||
}
|
||||
);
|
||||
break 'outer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user