Skip to content

Commit

Permalink
Fixed typos in comments for SolaceCoverProduct
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzooghost committed Feb 12, 2022
1 parent dc1306a commit dd47586
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contracts/interfaces/products/ISolaceCoverProduct.sol
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ interface ISolaceCoverProduct {
* @notice True if a policyholder has previously used a valid referral code, false if not
*
* A policyholder can only use a referral code once. Afterwards a policyholder is ineligible to receive further rewards from additional referral codes.
* @return isReferralCodeUsed_ True if the policyholder has previoulsy used a valid referral code, false if not
* @return isReferralCodeUsed_ True if the policyholder has previously used a valid referral code, false if not
*/
function isReferralCodeUsed(address policyholder) external view returns (bool isReferralCodeUsed_);

Expand All @@ -281,9 +281,9 @@ interface ISolaceCoverProduct {
function isReferralCodeValid(bytes calldata referralCode) external view returns (bool);

/**
* @notice Get referrer from referral code, returns 0 address if non-valid referral code.
* @notice Get referrer from referral code, returns 0 address if invalid referral code.
* @param referralCode The referral code.
* @return referrer The referrer address, returns 0 address if non-valid referral code.
* @return referrer The referrer address, returns 0 address if invalid referral code.
*/
function getReferrerFromReferralCode(bytes calldata referralCode) external view returns (address referrer);
/**
Expand Down
6 changes: 3 additions & 3 deletions contracts/products/SolaceCoverProduct.sol
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ contract SolaceCoverProduct is
* @notice True if a policyholder has previously used a valid referral code, false if not
*
* A policyholder can only use a referral code once. A policyholder is then ineligible to receive further rewards from additional referral codes.
* @return isReferralCodeUsed_ True if the policyholder has previoulsy used a valid referral code, false if not
* @return isReferralCodeUsed_ True if the policyholder has previously used a valid referral code, false if not
*/
function isReferralCodeUsed(address policyholder) external view override returns (bool isReferralCodeUsed_) {
return _isReferralCodeUsed[_policyOf[policyholder]];
Expand All @@ -479,9 +479,9 @@ contract SolaceCoverProduct is
}

/**
* @notice Get referrer from referral code, returns 0 address if non-valid referral code.
* @notice Get referrer from referral code, returns 0 address if invalid referral code.
* @param referralCode The referral code.
* @return referrer The referrer address, returns 0 address if non-valid referral code.
* @return referrer The referrer address, returns 0 address if invalid referral code.
*/
function getReferrerFromReferralCode(bytes calldata referralCode) external view override returns (address referrer) {
(referrer,) = ECDSA.tryRecover(_getEIP712Hash(), referralCode);
Expand Down

0 comments on commit dd47586

Please sign in to comment.