Skip to content

Commit edda7dd

Browse files
committed
Remove unnecessary type casting (#149)
1 parent dce017a commit edda7dd

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
@@ -97,10 +97,7 @@ abstract contract VestingWalletConfidential is OwnableUpgradeable, ReentrancyGua
9797
function vestedAmount(address token, uint48 timestamp) public virtual returns (euint128) {
9898
return
9999
_vestingSchedule(
100-
FHE.add(
101-
FHE.asEuint128(IConfidentialFungibleToken(token).confidentialBalanceOf(address(this))),
102-
released(token)
103-
),
100+
FHE.add(released(token), IConfidentialFungibleToken(token).confidentialBalanceOf(address(this))),
104101
timestamp
105102
);
106103
}

0 commit comments

Comments
 (0)