pub trait IdentityCurrencyConversion {
type Balance;
type Currency;
type Error;
// Required method
fn stable_to_stable(
currency_in: Self::Currency,
currency_out: Self::Currency,
amount_out: Self::Balance
) -> Result<Self::Balance, Self::Error>;
}
Expand description
Trait to synchronously provide a currency conversion estimation for foreign currencies into/from pool currencies.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.