Skip to content

Commit 9908038

Browse files
Assign TokenState.lastUpdate as current block timestamp on init
1 parent e5ba670 commit 9908038

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cadence/contracts/TidalProtocol.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ access(all) contract TidalProtocol: FungibleToken {
354354

355355
// RESTORED: Parameterized init from Dieter's implementation
356356
init(interestCurve: {InterestCurve}, depositRate: UFix64, depositCapacityCap: UFix64) {
357-
self.lastUpdate = 0.0
357+
self.lastUpdate = getCurrentBlock().timestamp
358358
self.totalCreditBalance = 0.0
359359
self.totalDebitBalance = 0.0
360360
self.creditInterestIndex = 10000000000000000

0 commit comments

Comments
 (0)