Ensure TokenWithRefunds::complete_refund(...)
is unlikely to revert
#7796
Labels
A-security
Area: Relates to security. Something is insecure.
If the public teardown of a
TokenWithRefunds
reverted this would result in a loss of notes for both the fee payer and the user. For this reason it should be attempted to make thecomplete_refund
function very unlikely to revert.Note that if this is not done the FPC might be attacked! --> An attacker could be submitting reverting txs while the FPC would be spending his fee juice and not getting the accepted asset.
The text was updated successfully, but these errors were encountered: