You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if tvl was more than 50M send an high severity alert
141
171
if(lastHourlyTVL>50e6){
142
-
awaitsendMessage(`TVL of ${protocol.name} has dropped from ${humanizeNumber(lastHourlyTVL)} to ${humanizeNumber(currentTvl)}. check this asap`,process.env.TEAM_WEBHOOK!)
172
+
awaitsendMessage(`TVL of ${protocol.name} has dropped from ${lastHourlyTVLHN} to ${currentTvlHN}. ${missingTokenString}`,process.env.TEAM_WEBHOOK!)
143
173
}
144
-
console.log(`TVL for ${protocol.name} has dropped >50% within one hour. Current tvl: ${humanizeNumber(currentTvl)}, previous tvl: ${humanizeNumber(lastHourlyTVL)}`)
174
+
175
+
console.log(`TVL for ${protocol.name} has dropped >50% within one hour. Current tvl: ${currentTvlHN}, previous tvl: ${lastHourlyTVLHN} . ${missingTokenString}`)
176
+
145
177
if(!process.env.UI_TOOL_MODE&&lastHourlyTVL>1e5){
146
-
consterrorMessage=`TVL for ${protocol.name} has dropped >50% within one hour. It's been disabled.`
178
+
consterrorMessage=`TVL for ${protocol.name} has dropped >50% within one hour. It's been disabled. Current tvl: ${currentTvlHN}, previous tvl: ${lastHourlyTVLHN}. ${missingTokenString}`
0 commit comments