Skip to content

Commit 9fc51e8

Browse files
authored
Remove unnecessary type casting (#149)
1 parent fb7546b commit 9fc51e8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contracts/finance/VestingWalletConfidential.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ abstract contract VestingWalletConfidential is OwnableUpgradeable, ReentrancyGua
9696
function vestedAmount(address token, uint48 timestamp) public virtual returns (euint128) {
9797
return
9898
_vestingSchedule(
99-
FHE.add(
100-
FHE.asEuint128(IConfidentialFungibleToken(token).confidentialBalanceOf(address(this))),
101-
released(token)
102-
),
99+
FHE.add(released(token), IConfidentialFungibleToken(token).confidentialBalanceOf(address(this))),
103100
timestamp
104101
);
105102
}

0 commit comments

Comments
 (0)