Skip to content

Commit fe77c4f

Browse files
committed
chore: purge imports and add comments
1 parent 4b185ce commit fe77c4f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/facets/TokenizedVaultFacet.sol

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ pragma solidity 0.8.20;
33

44
import { Modifiers } from "../shared/Modifiers.sol";
55
import { LibConstants as LC } from "../libs/LibConstants.sol";
6-
import { LibHelpers } from "../libs/LibHelpers.sol";
76
import { LibTokenizedVault } from "../libs/LibTokenizedVault.sol";
87
import { LibObject } from "../libs/LibObject.sol";
98
import { LibEntity } from "../libs/LibEntity.sol";
@@ -176,10 +175,20 @@ contract TokenizedVaultFacet is Modifiers, ReentrancyGuard {
176175
return LibTokenizedVault._totalDividends(_tokenId, _dividendDenominationId);
177176
}
178177

178+
/**
179+
* @notice Get the unclaimed accrued rebasing interest
180+
* @param _tokenId Rebasing token ID
181+
*/
179182
function accruedInterest(bytes32 _tokenId) external view returns (uint256) {
180183
return LibTokenizedVault._accruedInterest(_tokenId);
181184
}
182185

186+
/**
187+
* @notice Distribute the accrued interest as dividends
188+
* @param _tokenId Rebasing token ID
189+
* @param _amount Amount to distribute
190+
* @param _guid The ID of the dividend token that the dividends were paid in.
191+
*/
183192
function distributeAccruedInterest(bytes32 _tokenId, uint256 _amount, bytes32 _guid) external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_MANAGERS) {
184193
// The _claimRebasingInterest method verifies the token is valid, and that there is available interest.
185194
// No need to do it again.

0 commit comments

Comments
 (0)