-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add talent protocol discount validator #97
Conversation
✅ Heimdall Review Status
|
/// | ||
/// @return `true` if the validation data provided is determined to be valid for the specified claimer, else `false`. | ||
function isValidDiscountRegistration(address claimer, bytes calldata) external view returns (bool) { | ||
return (talentProtocol.getScoreByAddress(claimer) >= threshold); |
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.
We are fully relying on the TalentProtocol team (a non-coinbase product) to only put valid scores in. We should assume that this can be abused, and limit the discount amounts.
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.
Duly noted. We have control over whether this discount is active
or not on our RegistrarController so I think that's sufficient control. Additionally, we can always update the discount amount associated with this integration.
We're adding a discount validator for users with minted Builder Scores over some set threshold. This PR implements the discount validator associated with this integration.