We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85afdb commit 477a688Copy full SHA for 477a688
rs/nns/governance/src/node_provider_rewards.rs
@@ -43,6 +43,7 @@ pub(crate) fn latest_node_provider_rewards() -> Option<ArchivedMonthlyNodeProvid
43
if len == 0 {
44
return None;
45
}
46
+ // Since len > 0, len - 1 will not underflow.
47
log.get(len - 1)
48
})
49
0 commit comments