From e36cd3b05fa63e4f6921bbc02f16964e08695ddf Mon Sep 17 00:00:00 2001 From: maradini77 <140460067+maradini77@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:16:44 +0100 Subject: [PATCH] Update VestingWallet.sol --- contracts/finance/VestingWallet.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/finance/VestingWallet.sol b/contracts/finance/VestingWallet.sol index 914998a77fe..7dc3274505e 100644 --- a/contracts/finance/VestingWallet.sol +++ b/contracts/finance/VestingWallet.sol @@ -149,12 +149,12 @@ contract VestingWallet is Context, Ownable { * an asset given its total historical allocation. */ function _vestingSchedule(uint256 totalAllocation, uint64 timestamp) internal view virtual returns (uint256) { - if (timestamp < start()) { + if (timestamp < _start) { return 0; - } else if (timestamp >= end()) { + } else if (timestamp >= _start + _duration) { return totalAllocation; } else { - return (totalAllocation * (timestamp - start())) / duration(); + return (totalAllocation * (timestamp - _start)) / _duration; } } }