all files / contracts/interfaces/bonds/ IBondDepository.sol

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59                                                                                                                     
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.6;
 
/**
 * @title BondDepository
 * @author solace.fi
 * @notice Factory and manager of [`Bond Tellers`](./IBondTeller).
 */
interface IBondDepository {
 
    /***************************************
    EVENTS
    ***************************************/
 
    /// @notice Emitted when a teller is added.
    event TellerAdded(address indexed teller);
    /// @notice Emitted when a teller is removed.
    event TellerRemoved(address indexed teller);
 
    /***************************************
    VIEW FUNCTIONS
    ***************************************/
 
    /// @notice Native [**SOLACE**](./../../SOLACE) Token.
    function solace() external view returns (address solace_);
 
    /// @notice Returns true if the address is a teller.
    function isTeller(address teller) external view returns (bool isTeller_);
 
    /***************************************
    TELLER MANAGEMENT FUNCTIONS
    ***************************************/
 
    /**
     * @notice Adds a teller.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param teller The teller to add.
     */
    function addTeller(address teller) external;
 
    /**
     * @notice Adds a teller.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param teller The teller to remove.
     */
    function removeTeller(address teller) external;
 
    /***************************************
    FUND MANAGEMENT FUNCTIONS
    ***************************************/
 
    /**
     * @notice Sends [**SOLACE**](./../../SOLACE) to the teller.
     * Can only be called by tellers.
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to send.
     */
    function pullSolace(uint256 amount) external;
}