File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ contract SaintDurbin {
175175 }
176176
177177 // Enhanced principal detection with cumulative tracking
178+ uint256 blocksSinceLastTransfer = block .number - lastTransferBlock;
178179 if (lastPaymentAmount > 0 && previousBalance > 0 && currentBalance > principalLocked) {
179- uint256 blocksSinceLastTransfer = block .number - lastTransferBlock;
180180 uint256 currentRate = (availableYield * 1e18 ) / blocksSinceLastTransfer;
181181
182182 // Track cumulative balance increases
@@ -202,7 +202,6 @@ contract SaintDurbin {
202202 lastRewardRate = currentRate;
203203 } else if (currentBalance > principalLocked) {
204204 // First transfer or establishing baseline rate
205- uint256 blocksSinceLastTransfer = block .number - lastTransferBlock;
206205 if (blocksSinceLastTransfer > 0 ) {
207206 lastRewardRate = (availableYield * 1e18 ) / blocksSinceLastTransfer;
208207 }
You can’t perform that action at this time.
0 commit comments