Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Apr 9, 2024
1 parent 68167bb commit 93956b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pool/_TEST_/z1_single_lp_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func createBarFooPool() {
std.TestSkipHeights(1)
}
func mint() {
panic("TEST")
std.TestSetPrevAddr(test1)

bar.Approve(a2u(consts.POOL_ADDR), consts.UINT64_MAX)
Expand Down
4 changes: 2 additions & 2 deletions staker/staker.gno
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func checkStartTime(startTimestamp int64) {
// must be at least +1 day midnight
tomorrowMidnight := time.Now().AddDate(0, 0, 1).Truncate(24 * time.Hour).Unix()
if startTimestamp < tomorrowMidnight {
panic(ufmt.Sprintf("[STAKER] staker.gno__checkStarTime() || startTimestamp(%d) must be at least +1 day midnight(%d)", startTimestamp, tomorrowMidnight))
panic(ufmt.Sprintf("[STAKER] staker.gno__checkStartTime() || startTimestamp(%d) must be at least +1 day midnight(%d)", startTimestamp, tomorrowMidnight))
}

// must be midnight of the day
Expand All @@ -296,7 +296,7 @@ func checkStartTime(startTimestamp int64) {

isMidnight := hour == 0 && minute == 0 && second == 0
if !isMidnight {
panic(ufmt.Sprintf("[STAKER] staker.gno__checkStarTime() || startTimestamp(%s) must be midnight of the day", startTime.String()))
panic(ufmt.Sprintf("[STAKER] staker.gno__checkStartTime() || startTime(%s) must be midnight of the day", startTime.String()))
}
}

Expand Down

0 comments on commit 93956b8

Please sign in to comment.