#include <AMMClawback.h>
 | 
| static NotTEC  | checkSign (ReadView const &view, ApplyFlags flags, AccountID const &idAccount, STObject const &sigObject, beast::Journal const j) | 
|   | 
| static XRPAmount  | minimumFee (Application &app, XRPAmount baseFee, Fees const &fees, ApplyFlags flags) | 
|   | Compute the minimum fee required to process a transaction with a given baseFee based on the current server load.  
  | 
|   | 
| static XRPAmount  | calculateOwnerReserveFee (ReadView const &view, STTx const &tx) | 
|   | 
| static bool  | checkExtraFeatures (PreflightContext const &ctx) | 
|   | 
| static NotTEC  | preflightSigValidated (PreflightContext const &ctx) | 
|   | 
| static bool  | validDataLength (std::optional< Slice > const &slice, std::size_t maxLength) | 
|   | 
| template<class T >  | 
| static bool  | validNumericRange (std::optional< T > value, T max, T min={}) | 
|   | 
| template<class T , class Unit >  | 
| static bool  | validNumericRange (std::optional< T > value, unit::ValueUnit< Unit, T > max, unit::ValueUnit< Unit, T > min={}) | 
|   | 
 | 
| TER  | applyGuts (Sandbox &view) | 
|   | 
| std::tuple< TER, STAmount, STAmount, std::optional< STAmount > >  | equalWithdrawMatchingOneAmount (Sandbox &view, SLE const &ammSle, AccountID const &holder, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &amount2Balance, STAmount const &lptAMMBalance, STAmount const &holdLPtokens, STAmount const &amount) | 
|   | Withdraw both assets by providing maximum amount of asset1, asset2's amount will be calculated according to the current proportion.  
  | 
|   | 
| std::pair< TER, XRPAmount >  | reset (XRPAmount fee) | 
|   | Reset the context, discarding any changes made and adjust the fee.  
  | 
|   | 
| TER  | consumeSeqProxy (SLE::pointer const &sleAccount) | 
|   | 
| TER  | payFee () | 
|   | 
| void  | trapTransaction (uint256) const | 
|   | 
Definition at line 27 of file AMMClawback.h.
 
◆ ConsequencesFactoryType
| Enumerator | 
|---|
| Normal  |  | 
| Blocker  |  | 
| Custom  |  | 
Definition at line 157 of file Transactor.h.
 
 
◆ AMMClawback()
◆ getFlagsMask()
◆ preflight()
◆ preclaim()
◆ doApply()
  
  
      
        
          | TER ripple::AMMClawback::doApply  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ applyGuts()
  
  
      
        
          | TER ripple::AMMClawback::applyGuts  | 
          ( | 
          Sandbox &  | 
          view | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ equalWithdrawMatchingOneAmount()
  
  
      
        
          | std::tuple< TER, STAmount, STAmount, std::optional< STAmount > > ripple::AMMClawback::equalWithdrawMatchingOneAmount  | 
          ( | 
          Sandbox &  | 
          view,  | 
         
        
           | 
           | 
          SLE const &  | 
          ammSle,  | 
         
        
           | 
           | 
          AccountID const &  | 
          holder,  | 
         
        
           | 
           | 
          AccountID const &  | 
          ammAccount,  | 
         
        
           | 
           | 
          STAmount const &  | 
          amountBalance,  | 
         
        
           | 
           | 
          STAmount const &  | 
          amount2Balance,  | 
         
        
           | 
           | 
          STAmount const &  | 
          lptAMMBalance,  | 
         
        
           | 
           | 
          STAmount const &  | 
          holdLPtokens,  | 
         
        
           | 
           | 
          STAmount const &  | 
          amount  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
Withdraw both assets by providing maximum amount of asset1, asset2's amount will be calculated according to the current proportion. 
Since it is two-asset withdrawal, tfee is omitted. 
- Parameters
 - 
  
    | view |  | 
    | ammAccount | current AMM account  | 
    | amountBalance | current AMM asset1 balance  | 
    | amount2Balance | current AMM asset2 balance  | 
    | lptAMMBalance | current AMM LPT balance  | 
    | amount | asset1 withdraw amount  | 
  
   
- Returns
 
Definition at line 251 of file AMMClawback.cpp.
 
 
◆ operator()()
◆ view() [1/2]
◆ view() [2/2]
  
  
      
        
          | ApplyView const  & ripple::Transactor::view  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inherited   | 
  
 
 
◆ checkSeqProxy()
◆ checkPriorTxAndLastLedger()
◆ checkFee()
◆ checkSign() [1/2]
◆ checkSign() [2/2]
◆ checkBatchSign()
◆ calculateBaseFee()
◆ invokePreflight() [1/3]
◆ invokePreflight() [2/3]
◆ invokePreflight() [3/3]
◆ checkPermission()
◆ ticketDelete()
◆ apply()
  
  
      
        
          | TER ripple::Transactor::apply  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ preCompute()
  
  
      
        
          | void ripple::Transactor::preCompute  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtualinherited   | 
  
 
 
◆ minimumFee()
Compute the minimum fee required to process a transaction with a given baseFee based on the current server load. 
- Parameters
 - 
  
    | app | The application hosting the server  | 
    | baseFee | The base fee of a candidate transaction  | 
  
   
- See also
 - ripple::calculateBaseFee 
 
- Parameters
 - 
  
    | fees | Fee settings from the current ledger  | 
    | flags | Transaction processing fees  | 
  
   
Definition at line 332 of file Transactor.cpp.
 
 
◆ calculateOwnerReserveFee()
◆ checkExtraFeatures()
◆ preflightSigValidated()
◆ validDataLength()
◆ validNumericRange() [1/2]
template<class T > 
  
  
      
        
          | bool ripple::Transactor::validNumericRange  | 
          ( | 
          std::optional< T >  | 
          value,  | 
         
        
           | 
           | 
          T  | 
          max,  | 
         
        
           | 
           | 
          T  | 
          min = {}  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotectedinherited   | 
  
 
 
◆ validNumericRange() [2/2]
template<class T , class Unit > 
 
 
◆ reset()
Reset the context, discarding any changes made and adjust the fee. 
- Parameters
 - 
  
    | fee | The transaction fee to be charged.  | 
  
   
- Returns
 - A pair containing the transaction result and the actual fee charged. 
 
Definition at line 1071 of file Transactor.cpp.
 
 
◆ consumeSeqProxy()
◆ payFee()
  
  
      
        
          | TER ripple::Transactor::payFee  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateinherited   | 
  
 
 
◆ checkSingleSign()
◆ checkMultiSign()
◆ trapTransaction()
  
  
      
        
          | void ripple::Transactor::trapTransaction  | 
          ( | 
          uint256  | 
          txHash | ) | 
           const | 
         
       
   | 
  
privateinherited   | 
  
 
 
◆ preflight1()
Performs early sanity checks on the account and fee fields. 
(And passes flagMask to preflight0)
Do not try to call preflight1 from preflight() in derived classes. See the description of invokePreflight for details. 
Definition at line 163 of file Transactor.cpp.
 
 
◆ preflight2()
Checks whether the signature appears valid. 
Do not try to call preflight2 from preflight() in derived classes. See the description of invokePreflight for details. 
Definition at line 226 of file Transactor.cpp.
 
 
◆ ConsequencesFactory
◆ ctx_
◆ sink_
◆ j_
◆ account_
◆ mPriorBalance
◆ mSourceBalance