Skip to content

Commit f989cd7

Browse files
authored
S5 chores (#161)
* doc: add return value to natspec * chore: fix a typo
1 parent c439e5b commit f989cd7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/facets/AdminFacet.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ contract AdminFacet is Modifiers {
161161
* @param _userAddress Address being approved to onboard
162162
* @param _entityId Entity ID being approved for onboarding
163163
* @param _roleId Role being apprved for onboarding
164+
* @return Onboarding approval digest
164165
*/
165166
function getOnboardingHash(address _userAddress, bytes32 _entityId, bytes32 _roleId) external view returns (bytes32) {
166167
return LibAdmin._getOnboardingHash(_userAddress, _entityId, _roleId);

src/libs/LibTokenizedVault.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ library LibTokenizedVault {
189189
if (withdrawableDividend > 0) {
190190
// Bump the withdrawn dividends for the owner
191191
/// Special Case: (_tokenId == _dividendTokenId), i.e distributing accrued interest for rebasing coins like USDM
192-
/// withdrawnDividendPerOwner should be adjusted before tha update, so that the user cannot claim additional dividend based on the amount he just received as dividend
192+
/// withdrawnDividendPerOwner should be adjusted before the update, so that the user cannot claim additional dividend based on the amount he just received as dividend
193193
/// dividend is calculated based on a ratio between users balance and the total, but in this case claiming the dividend his balance increases and
194194
/// thus his share of the total increases as well, which entitles him to claim more of the dividend, potentially draining out the entirety of it if repeated infinitely
195195
if (_tokenId == _dividendTokenId) {

0 commit comments

Comments
 (0)