-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIPool.sol
32 lines (24 loc) · 1.11 KB
/
IPool.sol
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
28
29
30
31
32
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
// Common interface for the Pools.
interface IPool {
// --- Events ---
event ETHBalanceUpdated(uint _newBalance);
event ZUSDBalanceUpdated(uint _newBalance);
event ActivePoolAddressChanged(address _newActivePoolAddress);
event DefaultPoolAddressChanged(address _newDefaultPoolAddress);
event StabilityPoolAddressChanged(address _newStabilityPoolAddress);
event EtherSent(address _to, uint _amount);
// --- Functions ---
/// @notice Not necessarily equal to the raw ether balance - ether can be forcibly sent to contracts.
/// @return ETH pool balance
function getETH() external view returns (uint);
/// @return ZUSD debt pool balance
function getZUSDDebt() external view returns (uint);
/// @notice Increases ZUSD debt of the pool.
/// @param _amount ZUSD amount to add to the pool debt
function increaseZUSDDebt(uint _amount) external;
/// @notice Decreases ZUSD debt of the pool.
/// @param _amount ZUSD amount to subtract to the pool debt
function decreaseZUSDDebt(uint _amount) external;
}