Liquidation
This section covers the liquidation functionality for underfunded accounts.
Last updated
This section covers the liquidation functionality for underfunded accounts.
Liquidates an underfunded account.
function liquidate(address account) externalaccount (address): The address of the account to liquidate
Allows anyone to liquidate an account that has insufficient funds to cover its streaming obligations. The liquidator receives a reward for performing the liquidation.
// Liquidate an underfunded account
await papayaContract.liquidate("0xunderfunded...");Liquidated: Emitted when an account is liquidated
NotLiquidatable: When the account cannot be liquidated
InsufficientBalance: When the account has insufficient balance for liquidation
Last updated