mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 15:10:34 +00:00
Clarify MPToken creation on offer consume comment
This commit is contained in:
@@ -920,10 +920,8 @@ BookStep<TIn, TOut, TDerived>::consumeOffer(
|
||||
if constexpr (std::is_same_v<TIn, MPTAmount>)
|
||||
{
|
||||
// If the offer's TakerPays asset is an MPT, the offer owner must
|
||||
// hold an MPToken to receive it. Create one here, after the
|
||||
// consumption decision has been made, so the +1 to ownerCount is
|
||||
// paired atomically with the -1 that follows when the offer SLE is
|
||||
// deleted by BookTip::step().
|
||||
// hold an MPToken to receive it. Create one here if it doesn't
|
||||
// already exist.
|
||||
if (auto const err = checkCreateMPT(sb, book_.in.get<MPTIssue>(), offer.owner(), j_);
|
||||
!isTesSuccess(err))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user