[−][src]Trait eq_bailsman::LtvChecker
LTV calculations and checks. LTV is a ratio of USD collateral value to USD debt value
Required methods
fn calculate_ltv(
owner: &AccountId,
change: &SignedBalance<Balance>,
currency: &Currency
) -> Result<FixedI128, DispatchError>
[−]
owner: &AccountId,
change: &SignedBalance<Balance>,
currency: &Currency
) -> Result<FixedI128, DispatchError>
Calculates owner
LTV after his balance would change for change
amount
of currency
fn check_ltv(
owner: &AccountId,
change: &SignedBalance<Balance>,
currency: &Currency
) -> Result<bool, DispatchError>
[−]
owner: &AccountId,
change: &SignedBalance<Balance>,
currency: &Currency
) -> Result<bool, DispatchError>
Checks if owner
LTV would be acceptable after changing its balance
for change
amount of currency