Skip to content

Commit

Permalink
fix: Update lifespan and borrow max threshold of GhoSteward (#360)
Browse files Browse the repository at this point in the history
* update lfiespan to 90 days

* update max borrow rate change to 1

* chore: update borrow rate change nat spec
  • Loading branch information
foodaka authored Jul 12, 2023
1 parent cdef653 commit b85c0f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/contracts/misc/GhoSteward.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ contract GhoSteward is Ownable, IGhoSteward {
uint256 public constant MINIMUM_DELAY = 5 days;

/// @inheritdoc IGhoSteward
uint256 public constant BORROW_RATE_CHANGE_MAX = 0.0050e4;
uint256 public constant BORROW_RATE_CHANGE_MAX = 0.01e4;

/// @inheritdoc IGhoSteward
uint40 public constant STEWARD_LIFESPAN = 60 days;
uint40 public constant STEWARD_LIFESPAN = 90 days;

/// @inheritdoc IGhoSteward
address public immutable POOL_ADDRESSES_PROVIDER;
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/misc/interfaces/IGhoSteward.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface IGhoSteward {

/**
* @notice Returns the maximum percentage change for borrow rate updates. The new borrow rate can only differ up to this percentage.
* @return The maximum percentage change for borrow rate updates (e.g. 0.0050e4 is 50, which results in 0.5%)
* @return The maximum percentage change for borrow rate updates (e.g. 0.01e4 is 100, which results in 1.0%)
*/
function BORROW_RATE_CHANGE_MAX() external view returns (uint256);

Expand Down
4 changes: 2 additions & 2 deletions src/test/helpers/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ contract Constants {

// GhoSteward
uint256 constant MINIMUM_DELAY = 5 days;
uint256 constant BORROW_RATE_CHANGE_MAX = 0.0050e4;
uint40 constant STEWARD_LIFESPAN = 60 days;
uint256 constant BORROW_RATE_CHANGE_MAX = 0.01e4;
uint40 constant STEWARD_LIFESPAN = 90 days;

// sample users used across unit tests
address constant ALICE = address(0x1111);
Expand Down

0 comments on commit b85c0f6

Please sign in to comment.