|
xrpld
|
Invariant: Token holder's trustline balance cannot be negative after Clawback. More...
#include <InvariantCheck.h>

Public Member Functions | |
| void | visitEntry (bool, SLE::const_ref, SLE::const_ref) |
| bool | finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &) const |
Private Attributes | |
| std::uint32_t | trustlinesChanged_ = 0 |
| std::uint32_t | mptokensChanged_ = 0 |
Invariant: Token holder's trustline balance cannot be negative after Clawback.
We iterate all the trust lines affected by this transaction and ensure that no more than one trustline is modified, and also holder's balance is non-negative.
Definition at line 320 of file InvariantCheck.h.
| void xrpl::ValidClawback::visitEntry | ( | bool | , |
| SLE::const_ref | before, | ||
| SLE::const_ref | ) |
Definition at line 761 of file InvariantCheck.cpp.
|
nodiscard |
Definition at line 771 of file InvariantCheck.cpp.
|
private |
Definition at line 322 of file InvariantCheck.h.
|
private |
Definition at line 323 of file InvariantCheck.h.