fn create_pool(currency_id: CurrencyId) -> DispatchResult {
		ensure!(!Self::pool_exists(&currency_id), Error::<T>::PoolAlreadyCreated);

		Pools::<T>::insert(
			currency_id,
			Pool {
				total_borrowed: Balance::zero(),
				borrow_index: Rate::one(),
				total_protocol_interest: Balance::zero(),
			},
		);
		Ok(())
	}
/// This is a part of a pool creation flow
/// Creates storage records for LiquidityPool data
This is a part of a pool creation flow
Creates storage records for LiquidityPool data
This is a part of a pool creation flow Creates storage records for LiquidityPool data
fn create_pool(currency_id: CurrencyId) -> DispatchResult {
		ensure!(!Self::pool_exists(&currency_id), Error::<T>::PoolAlreadyCreated);
		Pools::<T>::insert(
			currency_id,
			Pool {
				total_borrowed: Balance::zero(),
				borrow_index: Rate::one(),
				total_protocol_interest: Balance::zero(),
			},
		);
		Ok(())
	}
fn create_pool ( currency_id : CurrencyId ) -> DispatchResult { ensure ! ( Self pool_exists ( currency_id ) Error T PoolAlreadyCreated ) ; Pools :: < T > :: insert ( currency_id , Pool { total_borrowed : Balance :: zero ( ) , borrow_index : Rate :: one ( ) , total_protocol_interest : Balance :: zero ( ) , } , ) ; Ok ( ( ) ) }
This is a part of a pool creation flow
Creates storage records for LiquidityPool data
This is a part of a pool creation flow Creates storage records for LiquidityPool data
currency_id
CurrencyId
currency_id
CurrencyId