Skip to content

Commit

Permalink
fix: Add GHO_TOKEN getter in flashminter (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf authored Feb 3, 2023
1 parent a1f3936 commit 8267d5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/contracts/facilitators/flashMinter/GhoFlashMinter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ contract GhoFlashMinter is IGhoFlashMinter {
// @inheritdoc IGhoFlashMinter
IPoolAddressesProvider public immutable override ADDRESSES_PROVIDER;

// @inheritdoc IGhoFlashMinter
IGhoToken public immutable GHO_TOKEN;

// The Access Control List manager contract
IACLManager private immutable ACL_MANAGER;

// The GHO token contact
IGhoToken private immutable GHO_TOKEN;

// The flashmint fee, expressed in bps (a value of 10000 results in 100.00%)
uint256 private _fee;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
import {IERC3156FlashLender} from '@openzeppelin/contracts/interfaces/IERC3156FlashLender.sol';
import {IPoolAddressesProvider} from '@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol';
import {IGhoFacilitator} from '../../../gho/interfaces/IGhoFacilitator.sol';
import {IGhoToken} from '../../../gho/interfaces/IGhoToken.sol';

/**
* @title IGhoFlashMinter
Expand Down Expand Up @@ -52,6 +53,12 @@ interface IGhoFlashMinter is IERC3156FlashLender, IGhoFacilitator {
*/
function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);

/**
* @notice Returns the address of the GHO token contract
* @return The address of the GhoToken
*/
function GHO_TOKEN() external view returns (IGhoToken);

/**
* @notice Updates the percentage fee. It is the percentage of the flash-minted amount that needs to be repaid.
* @dev The fee is expressed in bps. A value of 100, results in 1.00%
Expand Down

0 comments on commit 8267d5e

Please sign in to comment.