Interface to define the behavior of a GhoFacilitator. Designed to be implemented by Facilitators, to add common logic related to GHO Treasury.
address indexed ghoTreasury,
address indexed asset,
Emitted when fees are distributed to the GHO Treasury.
|The address of the ghoTreasury
|The address of the asset transferred to the ghoTreasury
|The amount of the asset transferred to the ghoTreasury
event GhoTreasuryUpdated(address indexed oldGhoTreasury, address indexed newGhoTreasury)
Emitted when the GHO Treasury address is updated.
function distributeFeesToTreasury() external
Distribute fees to the GHO Treasury.
Facilitators may opt to delay the distribution of GHO fees to the treasury (i.e gas optimization) or on every user action making this function complementary or not necessary.
function updateGhoTreasury(address newGhoTreasury) external
Updates the address of the GHO Treasury.
The GHO Treasury is where revenue fees are sent to. Update carefully.
|The address of the GHO Treasury
function getGhoTreasury() external view returns (address)
Returns the address of the GHO Treasury.
|The address of the GHO Treasury contract