Skip to content

Commit

Permalink
Use asset and asset2 to navigate AMM
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyiqian1 committed Sep 24, 2024
1 parent 9b30183 commit 3be6878
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 288 deletions.
1 change: 0 additions & 1 deletion src/libxrpl/protocol/SField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ CONSTRUCT_TYPED_SFIELD(sfRegularKey, "RegularKey", ACCOUNT,
CONSTRUCT_TYPED_SFIELD(sfNFTokenMinter, "NFTokenMinter", ACCOUNT, 9);
CONSTRUCT_TYPED_SFIELD(sfEmitCallback, "EmitCallback", ACCOUNT, 10);
CONSTRUCT_TYPED_SFIELD(sfHolder, "Holder", ACCOUNT, 11);
CONSTRUCT_TYPED_SFIELD(sfAMMAccount, "AMMAccount", ACCOUNT, 12);

// account (uncommon)
CONSTRUCT_TYPED_SFIELD(sfHookAccount, "HookAccount", ACCOUNT, 16);
Expand Down
2 changes: 1 addition & 1 deletion src/libxrpl/protocol/TxFormats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ TxFormats::TxFormats()
ttAMM_CLAWBACK,
{
{sfHolder, soeREQUIRED},
{sfAMMAccount, soeREQUIRED},
{sfAsset, soeREQUIRED},
{sfAsset2, soeREQUIRED},
{sfAmount, soeOPTIONAL},
},
commonFields);
Expand Down
Loading

0 comments on commit 3be6878

Please sign in to comment.