logos-storage-contracts-eth/certora/mutations/005_flowIn_future_timestamp.patch
zanderbyte-certora d2ca1ae5b1 add more mutations
2025-07-29 20:09:27 +03:00

14 lines
649 B
Diff

diff --git a/contracts/vault/Accounts.sol b/contracts/vault/Accounts.sol
index 3066e7d..1d2ff07 100644
--- a/contracts/vault/Accounts.sol
+++ b/contracts/vault/Accounts.sol
@@ -89,7 +89,7 @@ library Accounts {
/// Starts an incoming flow of tokens at the specified rate. If there already
/// is a flow of incoming tokens, then its rate is increased accordingly.
function flowIn(Account memory account, TokensPerSecond rate) internal view {
- account.accumulateFlows(Timestamps.currentTime());
+ account.accumulateFlows(Timestamps.currentTime().add(Duration.wrap(1)));
account.flow.incoming = account.flow.incoming + rate;
}