Skip to content

Commit 53cbb9e

Browse files
committed
chore: rename claim rebasing interest method
1 parent 6e32b93 commit 53cbb9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/facets/TokenizedVaultFacet.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,16 @@ contract TokenizedVaultFacet is Modifiers, ReentrancyGuard {
192192
function distributeAccruedInterest(bytes32 _tokenId, uint256 _amount, bytes32 _guid) external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_MANAGERS) {
193193
// The _claimRebasingInterest method verifies the token is valid, and that there is available interest.
194194
// No need to do it again.
195-
LibTokenizedVault._claimRebasingInterest(_tokenId, _amount);
195+
LibTokenizedVault._claimRebasedInterest(_tokenId, _amount);
196196
LibTokenizedVault._payDividend(_guid, LibAdmin._getSystemId(), _tokenId, _tokenId, _amount);
197197
}
198198

199199
/**
200-
* @notice Claim the rebased interest to the system ID
200+
* @notice Claim the rebasing interest to the system ID
201201
* @param _tokenId Rebasing token ID
202202
* @param _amount Amount to distribute
203203
*/
204-
function claimRebasingInterest(bytes32 _tokenId, uint256 _amount) external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS) {
205-
LibTokenizedVault._claimRebasingInterest(_tokenId, _amount);
204+
function claimRebasedInterest(bytes32 _tokenId, uint256 _amount) external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS) {
205+
LibTokenizedVault._claimRebasedInterest(_tokenId, _amount);
206206
}
207207
}

src/libs/LibTokenizedVault.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ library LibTokenizedVault {
325325
return total - depositTotal;
326326
}
327327

328-
function _claimRebasingInterest(bytes32 _tokenId, uint256 _amount) internal {
328+
function _claimRebasedInterest(bytes32 _tokenId, uint256 _amount) internal {
329329
AppStorage storage s = LibAppStorage.diamondStorage();
330330

331331
if (s.tokenSupply[_tokenId] == 0) {

0 commit comments

Comments
 (0)