mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 21:49:26 +00:00
add missing deposit event
This commit is contained in:
@@ -108,6 +108,10 @@ pub mod pallet {
|
|||||||
GENESIS_LIQUIDITY_ACCOUNT.into(),
|
GENESIS_LIQUIDITY_ACCOUNT.into(),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Self::deposit_event(Event::GenesisLiquidityAddedToPool {
|
||||||
|
coin1: Balance { coin: *coin, amount: Amount(*amount) },
|
||||||
|
coin2: Balance { coin: Coin::Serai, amount: Amount(sri_amount) },
|
||||||
|
});
|
||||||
|
|
||||||
// set liquidity tokens per account
|
// set liquidity tokens per account
|
||||||
let tokens = LiquidityTokens::<T>::balance(GENESIS_LIQUIDITY_ACCOUNT.into(), *coin).0;
|
let tokens = LiquidityTokens::<T>::balance(GENESIS_LIQUIDITY_ACCOUNT.into(), *coin).0;
|
||||||
|
|||||||
Reference in New Issue
Block a user