Skip to main content

IGhoFacilitator

Interface to define the behavior of a GhoFacilitator. Designed to be implemented by Facilitators, to add common logic related to GHO Treasury.

This page shows the events, and write methods within the IGhoFacilitator interface. The source code is available on GitHub.

Events

FeesDistributedToTreasury

event FeesDistributedToTreasury(
address indexed ghoTreasury,
address indexed asset,
uint256 amount
)

Emitted when fees are distributed to the GHO Treasury.

Emitted in the GhoAToken and GhoFlashMinter contracts.

NameTypeDescription
ghoTreasuryaddressThe address of the ghoTreasury
assetaddressThe address of the asset transferred to the ghoTreasury
amountuint256The amount of the asset transferred to the ghoTreasury

GhoTreasuryUpdated

event GhoTreasuryUpdated(address indexed oldGhoTreasury, address indexed newGhoTreasury)

Emitted when the GHO Treasury address is updated.

Emitted in the GhoAToken and GhoFlashMinter contracts.

Write Methods

distributeFeesToTreasury

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.

updateGhoTreasury

function updateGhoTreasury(address newGhoTreasury) external

Updates the address of the GHO Treasury.

caution

The GHO Treasury is where revenue fees are sent to. Update carefully.

Input Parameters:

NameTypeDescription
newGhoTreasuryaddressThe address of the GHO Treasury

getGhoTreasury

function getGhoTreasury() external view returns (address)

Returns the address of the GHO Treasury.

Return Values:

TypeDescription
addressThe address of the GHO Treasury contract