Skip to content

Commit

Permalink
feat(events): don't lose global tracker states on deploy PE-6796 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielmelendez authored Oct 21, 2024
2 parents 616312e + f6c6b1c commit 01c730c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ local ActionMap = {
}

-- Low fidelity trackers
local lastKnownCirculatingSupply = 0
local lastKnownLockedSupply = 0
local lastKnownStakedSupply = 0
local lastKnownDelegatedSupply = 0
local lastKnownWithdrawSupply = 0
local lastKnownCirculatingSupply = lastKnownCirculatingSupply or 0
local lastKnownLockedSupply = lastKnownLockedSupply or 0
local lastKnownStakedSupply = lastKnownStakedSupply or 0
local lastKnownDelegatedSupply = lastKnownDelegatedSupply or 0
local lastKnownWithdrawSupply = lastKnownWithdrawSupply or 0
local function lastKnownTotalTokenSupply()
return lastKnownCirculatingSupply
+ lastKnownLockedSupply
Expand Down

0 comments on commit 01c730c

Please sign in to comment.