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

Classes | |
| struct | EntryChange |
Public Member Functions | |
| void | visitEntry (bool, SLE::ConstRef, SLE::ConstRef) |
| 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 |
| EntryChange | iou_ |
| EntryChange | mpt_ |
Invariant: Token holder's trustline/MPT balance cannot be invalid 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. When featureMPTokensV2 is enabled, also verify the holder's raw trustline/MPToken balance decreased by the clawed amount.
Definition at line 342 of file InvariantCheck.h.
| void xrpl::ValidClawback::visitEntry | ( | bool | isDelete, |
| SLE::ConstRef | before, | ||
| SLE::ConstRef | after ) |
Definition at line 841 of file InvariantCheck.cpp.
|
nodiscard |
Definition at line 863 of file InvariantCheck.cpp.
|
private |
Definition at line 350 of file InvariantCheck.h.
|
private |
Definition at line 351 of file InvariantCheck.h.
|
private |
Definition at line 352 of file InvariantCheck.h.
|
private |
Definition at line 353 of file InvariantCheck.h.