Lending Pool Actions
Last updated
Last updated
fn choose_market_rule(
&mut self,
market_rule_id: RuleId,
) -> Result<(), LendingPoolError>;
fn set_as_collateral(
&mut self,
asset: AccountId,
use_as_collateral: bool,
) -> Result<(), LendingPoolError>;
fn deposit(
&mut self,
asset: AccountId,
on_behalf_of: AccountId,
amount: Balance,
data: Vec<u8>,
) -> Result<(), LendingPoolError>;
fn withdraw(
&mut self,
asset: AccountId,
on_behalf_of: AccountId,
amount: Balance,
data: Vec<u8>,
) -> Result<Balance, LendingPoolError>;
fn borrow(
&mut self,
asset: AccountId,
on_behalf_of: AccountId,
amount: Balance,
data: Vec<u8>,
) -> Result<(), LendingPoolError>;
fn repay(
&mut self,
asset: AccountId,
on_behalf_of: AccountId,
amount: Balance,
data: Vec<u8>,
) -> Result<Balance, LendingPoolError>;
fn multi_op(
&mut self,
actions: Vec<Action>,
on_behalf_of: AccountId,
data: Vec<u8>,
) -> Result<(), LendingPoolError>;
fn liquidate(
&mut self,
liquidated_account: AccountId,
asset_to_repay: AccountId,
asset_to_take: AccountId,
amount_to_repay: Balance,
minimum_recieved_for_one_repaid_token_e12: u128,
data: Vec<u8>,
) -> Result<(Balance, Balance), LendingPoolError>;