Trait hydradx_traits::AMMPosition
source · pub trait AMMPosition<AssetId, Balance> {
type Error;
fn get_liquidity_behind_shares(
asset_a: AssetId,
asset_b: AssetId,
shares_amount: Balance
) -> Result<(Balance, Balance), Self::Error>;
}
Expand description
Implementers of this trait provides information about user’s position in the AMM pool.
Required Associated Types§
Required Methods§
This function calculates amount of assets behind the share_token
s.