Skip to content

Commit

Permalink
fix: Improve readability of number constants (#301)
Browse files Browse the repository at this point in the history
* fix: Improve readability of GHO IR

* fix: Improve readiability of flashminter max fee
  • Loading branch information
miguelmtzinf authored Feb 28, 2023
1 parent 9573796 commit 5ac3ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract GhoDiscountRateStrategy is IGhoDiscountRateStrategy {
* @dev Percentage of discount to apply to the part of the debt that is entitled to get a discount
* Expressed in bps, a value of 2000 results in 20.00%
*/
uint256 public constant DISCOUNT_RATE = 2000;
uint256 public constant DISCOUNT_RATE = 0.2e4;

/**
* @dev Minimum balance amount of discount token to be entitled to a discount
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/facilitators/flashMinter/GhoFlashMinter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract GhoFlashMinter is IGhoFlashMinter {
bytes32 public constant CALLBACK_SUCCESS = keccak256('ERC3156FlashBorrower.onFlashLoan');

// @inheritdoc IGhoFlashMinter
uint256 public constant MAX_FEE = 10000;
uint256 public constant MAX_FEE = 1e4;

// @inheritdoc IGhoFlashMinter
IPoolAddressesProvider public immutable override ADDRESSES_PROVIDER;
Expand Down

0 comments on commit 5ac3ed8

Please sign in to comment.