Skip to main content

reaches_balance_read

Function reaches_balance_read 

Source
fn reaches_balance_read<'gcx>(
    gcx: Gcx<'gcx>,
    entry: &'gcx Function<'gcx>,
) -> bool
Expand description

Whether entry, or a modifier or internal function it can reach, reads a .balance.

The balance analysis only reports stale reads of the contract’s own balance, so it can skip entry points that never read one.