Skip to content

Commit 02d44b7

Browse files
authored
Update contracts/finance/VestingWalletConfidential.sol
1 parent e8dc001 commit 02d44b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/finance/VestingWalletConfidential.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ abstract contract VestingWalletConfidential is OwnableUpgradeable, ReentrancyGua
7878
FHE.allowTransient(amount, token);
7979
euint64 amountSent = IConfidentialFungibleToken(token).confidentialTransfer(owner(), amount);
8080

81+
// This could overflow if the total supply is resent `type(uint128).max/types(uint64).max` times. This is an accepted risk.
8182
euint128 newReleasedAmount = FHE.add(released(token), amountSent);
8283
FHE.allow(newReleasedAmount, owner());
8384
FHE.allowThis(newReleasedAmount);

0 commit comments

Comments
 (0)