-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gen 1261 update claimer to dynamically compute decay constant from #30
Gen 1261 update claimer to dynamically compute decay constant from #30
Conversation
src/Claimer.sol
Outdated
|
||
/// @notice Computes the decay constant for the VRGDA. | ||
/// @dev This is a decay constant that ensures the fee will grow to the target max fee | ||
/// @param _targetFee The starting fee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @param _targetFee The starting fee | |
/// @param _targetFee The target fee |
src/Claimer.sol
Outdated
} else { | ||
return _computeMaxFee(_tier); | ||
} | ||
} | ||
|
||
/// @notice Compute the starting fee for prize claims | ||
/// @return The starting fee for prize claims |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @return The starting fee for prize claims | |
/// @return The target fee for prize claims |
src/Claimer.sol
Outdated
@@ -295,23 +296,23 @@ contract Claimer { | |||
} | |||
|
|||
/// @notice Computes the fee for the next claim. | |||
/// @param _minimumFee The minimum fee that should be charged | |||
/// @param _targetFee The minimum fee that should be charged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @param _targetFee The minimum fee that should be charged | |
/// @param _targetFee The target fee that should be charged |
/// @param _targetFee The starting fee | ||
/// @return The decay constant | ||
function _computeDecayConstant(uint256 _targetFee) internal view returns (SD59x18) { | ||
uint maximumFee = _computeMaxFee(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it help the auction price discovery if we multiplied this by the maxFeePortionOfPrize
fraction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes! It definitely should; that would make it more efficient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wait, it already is in the _computeMaxFee
function
src/Claimer.sol
Outdated
} | ||
|
||
/// @notice Computes the decay constant for the VRGDA. | ||
/// @dev This is a decay constant that ensures the fee will grow to the target max fee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit confusing. Is it growing to the target fee or the max fee?
src/Claimer.sol
Outdated
} else { | ||
return _computeMaxFee(_tier); | ||
} | ||
} | ||
|
||
/// @notice Compute the starting fee for prize claims |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @notice Compute the starting fee for prize claims | |
/// @notice Compute the target fee for prize claims |
f333899
to
37d69cc
Compare
633349d
to
13c18cc
Compare
LCOV of commit
|
No description provided.