-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIActivePool.sol
More file actions
27 lines (22 loc) · 1.02 KB
/
IActivePool.sol
File metadata and controls
27 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
import "./IPool.sol";
/**
* The Active Pool holds the ETH collateral and ZUSD debt (but not ZUSD tokens) for all active troves.
*
* When a trove is liquidated, it's ETH and ZUSD debt are transferred from the Active Pool, to either the
* Stability Pool, the Default Pool, or both, depending on the liquidation conditions.
*
*/
interface IActivePool is IPool {
// --- Events ---
event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress);
event TroveManagerAddressChanged(address _newTroveManagerAddress);
event ActivePoolZUSDDebtUpdated(uint _ZUSDDebt);
event ActivePoolETHBalanceUpdated(uint _ETH);
// --- Functions ---
/// @notice Send ETH amount to given account. Updates ActivePool balance. Only callable by BorrowerOperations, TroveManager or StabilityPool.
/// @param _account account to receive the ETH amount
/// @param _amount ETH amount to send
function sendETH(address _account, uint _amount) external;
}