[−][src]Trait eq_bailsman::rate::InterestRateDataSource
Interface for receiving data required for Bailsman pallet fee calculations
Associated Types
Loading content...Required methods
fn get_settings() -> InterestRateSettings
Gets bailsman fee settings
fn get_price(currency: &Currency) -> Result<FixedI64, DispatchError>
Gets currency
price from oracle
fn get_covariance(c1: &Currency, c2: &Currency) -> FixedI64
Gets covariance value for currencies c1
and c2
from Volatility Pallet
fn get_bailsman_total_balance(currency: &Currency) -> TotalBalance
Gets aggregated USD value of collateral and debt for all bailsmen
fn get_balance(
account_id: &Self::AccountId,
currency: &Currency
) -> TotalBalance
account_id: &Self::AccountId,
currency: &Currency
) -> TotalBalance
Gets SignedBalance
for account_id
in given currency
and converts
it into TotalBalance
used for calculations in Bailsman Pallet
fn get_total_balance(currency: &Currency) -> TotalBalance
Gets TotalAggregates
for all user accounts and converts it into
TotalBalance
used for calculations in Bailsman Pallet