Skip to content
Unverified Commit 0ce506ef authored by Emanuele Valzano's avatar Emanuele Valzano Committed by GitHub
Browse files

incrementing sufficient accounts references with saturating_add for safety. (#2768)



Even though it is difficult to overflow the sufficients variable, since
an attacker that is willing to rapidly increase the number must every
time deposit a minimum deposit of a given asset, it is safer to use
saturating_add().

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: default avatarjoe petrowski <[email protected]>
parent b62df695
Pipeline #428664 canceled with stages
in 15 minutes and 47 seconds