Skip to content

Commit

Permalink
change to max amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Spablob committed Dec 9, 2024
1 parent c7e2482 commit b307124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ contract RoyaltyPolicyLAP is
uint256 amountToTransfer = Math.min(maxAmount - transferredAmount, IERC20(token).balanceOf(address(this)));

// make the revenue token transfer
$.transferredTokenLAP[ipId][ancestorIpId][token] += amountToTransfer;
$.transferredTokenLAP[ipId][ancestorIpId][token] += maxAmount;
address ancestorIpRoyaltyVault = royaltyModule.ipRoyaltyVaults(ancestorIpId);
IIpRoyaltyVault(ancestorIpRoyaltyVault).updateVaultBalance(token, amountToTransfer);
IERC20(token).safeTransfer(ancestorIpRoyaltyVault, amountToTransfer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ contract RoyaltyPolicyLRP is
uint256 amountToTransfer = Math.min(maxAmount - transferredAmount, IERC20(token).balanceOf(address(this)));

// make the revenue token transfer
$.transferredTokenLRP[ipId][ancestorIpId][token] += amountToTransfer;
$.transferredTokenLRP[ipId][ancestorIpId][token] += maxAmount;
address ancestorIpRoyaltyVault = royaltyModule.ipRoyaltyVaults(ancestorIpId);
IIpRoyaltyVault(ancestorIpRoyaltyVault).updateVaultBalance(token, amountToTransfer);
IERC20(token).safeTransfer(ancestorIpRoyaltyVault, amountToTransfer);
Expand Down

0 comments on commit b307124

Please sign in to comment.