#include <AMMClawback.h>
|
| 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 155 of file Transactor.h.
◆ AMMClawback()
◆ 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 253 of file AMMClawback.cpp.
◆ operator()()
◆ view() [1/2]
◆ view() [2/2]
| ApplyView const & ripple::Transactor::view |
( |
| ) |
const |
|
inherited |
◆ checkSeqProxy()
◆ checkPriorTxAndLastLedger()
◆ checkFee()
◆ checkSign()
◆ checkBatchSign()
◆ calculateBaseFee()
◆ checkPermission()
| TER ripple::Transactor::checkPermission |
( |
ReadView const & |
view, |
|
|
STTx const & |
tx |
|
) |
| |
|
staticinherited |
◆ 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 251 of file Transactor.cpp.
◆ 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 1002 of file Transactor.cpp.
◆ consumeSeqProxy()
◆ payFee()
| TER ripple::Transactor::payFee |
( |
| ) |
|
|
privateinherited |
◆ checkSingleSign()
◆ checkMultiSign()
◆ trapTransaction()
| void ripple::Transactor::trapTransaction |
( |
uint256 |
txHash | ) |
const |
|
privateinherited |
◆ ConsequencesFactory
◆ ctx_
◆ sink_
◆ j_
◆ account_
◆ mPriorBalance
◆ mSourceBalance