mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
deploy: afc05659ed
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>rippled: AMMWithdraw.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -29,7 +29,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<!-- Generated by Doxygen 1.9.8 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
||||
@@ -46,6 +46,11 @@ $(function() {
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function() { init_codefold(0); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
@@ -107,14 +112,17 @@ $(function() {
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63"> 67</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63">WithdrawAll</a> : <span class="keywordtype">bool</span> { <a class="code hl_enumvalue" href="namespaceripple.html#aa9819bf6e2ef44707a0144da6c874890abafd7322c6e97d25b6299b5d6fe8920b">No</a> = <span class="keyword">false</span>, <a class="code hl_enumvalue" href="namespaceripple.html#aa9819bf6e2ef44707a0144da6c874890a93cba07454f06a4a960172bbd6e2a435">Yes</a> };</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
||||
<div class="foldopen" id="foldopen00069" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classripple_1_1AMMWithdraw.html"> 69</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1AMMWithdraw.html">AMMWithdraw</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1Transactor.html">Transactor</a></div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span>{</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classripple_1_1AMMWithdraw.html#a951edc48bf0cee75293ce82b7ba7b61c"> 72</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_enumeration" href="classripple_1_1Transactor.html#a5c6d16e9402d182a835f50b37ce9a938">ConsequencesFactoryType</a> <a class="code hl_variable" href="classripple_1_1AMMWithdraw.html#a951edc48bf0cee75293ce82b7ba7b61c">ConsequencesFactory</a>{<a class="code hl_enumvalue" href="classripple_1_1Transactor.html#a5c6d16e9402d182a835f50b37ce9a938aa45cb725337de0d627f42b7ebf4be91f">Normal</a>};</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
||||
<div class="foldopen" id="foldopen00074" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1AMMWithdraw.html#a345ddd0ca98b576c85173513861b6366"> 74</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a345ddd0ca98b576c85173513861b6366">AMMWithdraw</a>(<a class="code hl_class" href="classripple_1_1ApplyContext.html">ApplyContext</a>& ctx) : <a class="code hl_class" href="classripple_1_1Transactor.html">Transactor</a>(ctx)</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> {</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">static</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">NotTEC</a></div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#acf1048871867fae517d6e38c09f9ffd8">preflight</a>(<a class="code hl_struct" href="structripple_1_1PreflightContext.html">PreflightContext</a> <span class="keyword">const</span>& ctx);</div>
|
||||
@@ -243,55 +251,56 @@ $(function() {
|
||||
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> <span class="keyword">static</span> <a class="code hl_enumeration" href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63">WithdrawAll</a></div>
|
||||
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a0b14d4c7e7868ef1bd417b63cd42063b">isWithdrawAll</a>(<a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span>& tx);</div>
|
||||
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> </div>
|
||||
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> </div>
|
||||
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span><span class="preprocessor">#endif </span><span class="comment">// RIPPLE_TX_AMMWITHDRAW_H_INCLUDED</span></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html">ripple::AMMWithdraw</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8h_source.html#l00069">AMMWithdraw.h:70</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a0b14d4c7e7868ef1bd417b63cd42063b"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a0b14d4c7e7868ef1bd417b63cd42063b">ripple::AMMWithdraw::isWithdrawAll</a></div><div class="ttdeci">static WithdrawAll isWithdrawAll(STTx const &tx)</div><div class="ttdoc">Check from the flags if it's withdraw all.</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l01097">AMMWithdraw.cpp:1097</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a345ddd0ca98b576c85173513861b6366"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a345ddd0ca98b576c85173513861b6366">ripple::AMMWithdraw::AMMWithdraw</a></div><div class="ttdeci">AMMWithdraw(ApplyContext &ctx)</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8h_source.html#l00074">AMMWithdraw.h:74</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a4318b71ceedb46714e2d93a6db8e93c9"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a4318b71ceedb46714e2d93a6db8e93c9">ripple::AMMWithdraw::singleWithdrawEPrice</a></div><div class="ttdeci">std::pair< TER, STAmount > singleWithdrawEPrice(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &lptAMMBalance, STAmount const &amount, STAmount const &ePrice, std::uint16_t tfee)</div><div class="ttdoc">Withdraw single asset (Asset1Out, EPrice) with two constraints.</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l01036">AMMWithdraw.cpp:1036</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a5236e8a4e14c231694b6952abfc3b423"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a5236e8a4e14c231694b6952abfc3b423">ripple::AMMWithdraw::equalWithdrawLimit</a></div><div class="ttdeci">std::pair< TER, STAmount > equalWithdrawLimit(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &amount2Balance, STAmount const &lptAMMBalance, STAmount const &amount, STAmount const &amount2, std::uint16_t tfee)</div><div class="ttdoc">Withdraw both assets (Asset1Out, Asset2Out) with the constraints on the maximum amount of each asset ...</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00858">AMMWithdraw.cpp:858</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a64842cf86a14dfe5dcc9019eb55511d0"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a64842cf86a14dfe5dcc9019eb55511d0">ripple::AMMWithdraw::equalWithdrawTokens</a></div><div class="ttdeci">static std::tuple< TER, STAmount, STAmount, std::optional< STAmount > > equalWithdrawTokens(Sandbox &view, SLE const &ammSle, AccountID const account, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &amount2Balance, STAmount const &lptAMMBalance, STAmount const &lpTokens, STAmount const &lpTokensWithdraw, std::uint16_t tfee, FreezeHandling freezeHanding, WithdrawAll withdrawAll, XRPAmount const &priorBalance, beast::Journal const &journal)</div><div class="ttdoc">Equal-asset withdrawal (LPTokens) of some AMM instance pools shares represented by the number of LPTo...</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00750">AMMWithdraw.cpp:750</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a690f2bdea8fffee52a5d12db0733b28b"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a690f2bdea8fffee52a5d12db0733b28b">ripple::AMMWithdraw::applyGuts</a></div><div class="ttdeci">std::pair< TER, bool > applyGuts(Sandbox &view)</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00292">AMMWithdraw.cpp:292</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a6f66fea4d10c565cbc522980f248eee2"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a6f66fea4d10c565cbc522980f248eee2">ripple::AMMWithdraw::singleWithdraw</a></div><div class="ttdeci">std::pair< TER, STAmount > singleWithdraw(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &lptAMMBalance, STAmount const &amount, std::uint16_t tfee)</div><div class="ttdoc">Single asset withdrawal (Asset1Out) equivalent to the amount specified in Asset1Out.</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00933">AMMWithdraw.cpp:933</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a951edc48bf0cee75293ce82b7ba7b61c"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a951edc48bf0cee75293ce82b7ba7b61c">ripple::AMMWithdraw::ConsequencesFactory</a></div><div class="ttdeci">static constexpr ConsequencesFactoryType ConsequencesFactory</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8h_source.html#l00072">AMMWithdraw.h:72</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ab62952f0d0ed8f24c7a5dddcbbc5c9ae"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ab62952f0d0ed8f24c7a5dddcbbc5c9ae">ripple::AMMWithdraw::deleteAMMAccountIfEmpty</a></div><div class="ttdeci">static std::pair< TER, bool > deleteAMMAccountIfEmpty(Sandbox &sb, std::shared_ptr< SLE > const ammSle, STAmount const &lpTokenBalance, Issue const &issue1, Issue const &issue2, beast::Journal const &journal)</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00719">AMMWithdraw.cpp:719</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ac65c94e120bdb3957a6951fab2af6c29"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ac65c94e120bdb3957a6951fab2af6c29">ripple::AMMWithdraw::preclaim</a></div><div class="ttdeci">static TER preclaim(PreclaimContext const &ctx)</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00168">AMMWithdraw.cpp:168</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_acf1048871867fae517d6e38c09f9ffd8"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#acf1048871867fae517d6e38c09f9ffd8">ripple::AMMWithdraw::preflight</a></div><div class="ttdeci">static NotTEC preflight(PreflightContext const &ctx)</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00032">AMMWithdraw.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ad1c31e18b3be405513e9e68004e72f09"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ad1c31e18b3be405513e9e68004e72f09">ripple::AMMWithdraw::withdraw</a></div><div class="ttdeci">static std::tuple< TER, STAmount, STAmount, std::optional< STAmount > > withdraw(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, AccountID const &account, STAmount const &amountBalance, STAmount const &amountWithdraw, std::optional< STAmount > const &amount2Withdraw, STAmount const &lpTokensAMMBalance, STAmount const &lpTokensWithdraw, std::uint16_t tfee, FreezeHandling freezeHandling, WithdrawAll withdrawAll, XRPAmount const &priorBalance, beast::Journal const &journal)</div><div class="ttdoc">Withdraw requested assets and token from AMM into LP account.</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00468">AMMWithdraw.cpp:468</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ad366e7ecc17ab21d3fb406c334df6b0e"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ad366e7ecc17ab21d3fb406c334df6b0e">ripple::AMMWithdraw::doApply</a></div><div class="ttdeci">TER doApply() override</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00422">AMMWithdraw.cpp:422</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_af550daae2d35615ebb72a32cdc09c158"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#af550daae2d35615ebb72a32cdc09c158">ripple::AMMWithdraw::singleWithdrawTokens</a></div><div class="ttdeci">std::pair< TER, STAmount > singleWithdrawTokens(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &lptAMMBalance, STAmount const &amount, STAmount const &lpTokensWithdraw, std::uint16_t tfee)</div><div class="ttdoc">Single asset withdrawal (Asset1Out, LPTokens) proportional to the share specified by tokens.</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00982">AMMWithdraw.cpp:982</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ApplyContext_html"><div class="ttname"><a href="classripple_1_1ApplyContext.html">ripple::ApplyContext</a></div><div class="ttdoc">State information when applying a tx.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00036">ApplyContext.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Issue_html"><div class="ttname"><a href="classripple_1_1Issue.html">ripple::Issue</a></div><div class="ttdoc">A currency issued by an account.</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00032">Issue.h:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STAmount_html"><div class="ttname"><a href="classripple_1_1STAmount.html">ripple::STAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00049">STAmount.h:50</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STLedgerEntry_html"><div class="ttname"><a href="classripple_1_1STLedgerEntry.html">ripple::STLedgerEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="STLedgerEntry_8h_source.html#l00031">STLedgerEntry.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STTx_html"><div class="ttname"><a href="classripple_1_1STTx.html">ripple::STTx</a></div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00047">STTx.h:48</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Sandbox_html"><div class="ttname"><a href="classripple_1_1Sandbox.html">ripple::Sandbox</a></div><div class="ttdoc">Discardable, editable view to a ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Sandbox_8h_source.html#l00034">Sandbox.h:35</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset</a></div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00410">TER.h:411</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html"><div class="ttname"><a href="classripple_1_1Transactor.html">ripple::Transactor</a></div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00137">Transactor.h:138</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html_a5c6d16e9402d182a835f50b37ce9a938"><div class="ttname"><a href="classripple_1_1Transactor.html#a5c6d16e9402d182a835f50b37ce9a938">ripple::Transactor::ConsequencesFactoryType</a></div><div class="ttdeci">ConsequencesFactoryType</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00153">Transactor.h:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html_a5c6d16e9402d182a835f50b37ce9a938aa45cb725337de0d627f42b7ebf4be91f"><div class="ttname"><a href="classripple_1_1Transactor.html#a5c6d16e9402d182a835f50b37ce9a938aa45cb725337de0d627f42b7ebf4be91f">ripple::Transactor::Normal</a></div><div class="ttdeci">@ Normal</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00153">Transactor.h:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html_a9acc4edc9b8f2a11a27fbcf5e93e2fe2"><div class="ttname"><a href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">ripple::Transactor::view</a></div><div class="ttdeci">ApplyView & view()</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00159">Transactor.h:159</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00039">XRPAmount.h:43</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html">ripple::AMMWithdraw</a></div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8h_source.html#l00069">AMMWithdraw.h:70</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a0b14d4c7e7868ef1bd417b63cd42063b"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a0b14d4c7e7868ef1bd417b63cd42063b">ripple::AMMWithdraw::isWithdrawAll</a></div><div class="ttdeci">static WithdrawAll isWithdrawAll(STTx const &tx)</div><div class="ttdoc">Check from the flags if it's withdraw all.</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l01097">AMMWithdraw.cpp:1097</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a345ddd0ca98b576c85173513861b6366"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a345ddd0ca98b576c85173513861b6366">ripple::AMMWithdraw::AMMWithdraw</a></div><div class="ttdeci">AMMWithdraw(ApplyContext &ctx)</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8h_source.html#l00074">AMMWithdraw.h:74</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a4318b71ceedb46714e2d93a6db8e93c9"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a4318b71ceedb46714e2d93a6db8e93c9">ripple::AMMWithdraw::singleWithdrawEPrice</a></div><div class="ttdeci">std::pair< TER, STAmount > singleWithdrawEPrice(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &lptAMMBalance, STAmount const &amount, STAmount const &ePrice, std::uint16_t tfee)</div><div class="ttdoc">Withdraw single asset (Asset1Out, EPrice) with two constraints.</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l01036">AMMWithdraw.cpp:1036</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a5236e8a4e14c231694b6952abfc3b423"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a5236e8a4e14c231694b6952abfc3b423">ripple::AMMWithdraw::equalWithdrawLimit</a></div><div class="ttdeci">std::pair< TER, STAmount > equalWithdrawLimit(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &amount2Balance, STAmount const &lptAMMBalance, STAmount const &amount, STAmount const &amount2, std::uint16_t tfee)</div><div class="ttdoc">Withdraw both assets (Asset1Out, Asset2Out) with the constraints on the maximum amount of each asset ...</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00858">AMMWithdraw.cpp:858</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a64842cf86a14dfe5dcc9019eb55511d0"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a64842cf86a14dfe5dcc9019eb55511d0">ripple::AMMWithdraw::equalWithdrawTokens</a></div><div class="ttdeci">static std::tuple< TER, STAmount, STAmount, std::optional< STAmount > > equalWithdrawTokens(Sandbox &view, SLE const &ammSle, AccountID const account, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &amount2Balance, STAmount const &lptAMMBalance, STAmount const &lpTokens, STAmount const &lpTokensWithdraw, std::uint16_t tfee, FreezeHandling freezeHanding, WithdrawAll withdrawAll, XRPAmount const &priorBalance, beast::Journal const &journal)</div><div class="ttdoc">Equal-asset withdrawal (LPTokens) of some AMM instance pools shares represented by the number of LPTo...</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00750">AMMWithdraw.cpp:750</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a690f2bdea8fffee52a5d12db0733b28b"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a690f2bdea8fffee52a5d12db0733b28b">ripple::AMMWithdraw::applyGuts</a></div><div class="ttdeci">std::pair< TER, bool > applyGuts(Sandbox &view)</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00292">AMMWithdraw.cpp:292</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a6f66fea4d10c565cbc522980f248eee2"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a6f66fea4d10c565cbc522980f248eee2">ripple::AMMWithdraw::singleWithdraw</a></div><div class="ttdeci">std::pair< TER, STAmount > singleWithdraw(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &lptAMMBalance, STAmount const &amount, std::uint16_t tfee)</div><div class="ttdoc">Single asset withdrawal (Asset1Out) equivalent to the amount specified in Asset1Out.</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00933">AMMWithdraw.cpp:933</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_a951edc48bf0cee75293ce82b7ba7b61c"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#a951edc48bf0cee75293ce82b7ba7b61c">ripple::AMMWithdraw::ConsequencesFactory</a></div><div class="ttdeci">static constexpr ConsequencesFactoryType ConsequencesFactory</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8h_source.html#l00072">AMMWithdraw.h:72</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ab62952f0d0ed8f24c7a5dddcbbc5c9ae"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ab62952f0d0ed8f24c7a5dddcbbc5c9ae">ripple::AMMWithdraw::deleteAMMAccountIfEmpty</a></div><div class="ttdeci">static std::pair< TER, bool > deleteAMMAccountIfEmpty(Sandbox &sb, std::shared_ptr< SLE > const ammSle, STAmount const &lpTokenBalance, Issue const &issue1, Issue const &issue2, beast::Journal const &journal)</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00719">AMMWithdraw.cpp:719</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ac65c94e120bdb3957a6951fab2af6c29"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ac65c94e120bdb3957a6951fab2af6c29">ripple::AMMWithdraw::preclaim</a></div><div class="ttdeci">static TER preclaim(PreclaimContext const &ctx)</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00168">AMMWithdraw.cpp:168</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_acf1048871867fae517d6e38c09f9ffd8"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#acf1048871867fae517d6e38c09f9ffd8">ripple::AMMWithdraw::preflight</a></div><div class="ttdeci">static NotTEC preflight(PreflightContext const &ctx)</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00032">AMMWithdraw.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ad1c31e18b3be405513e9e68004e72f09"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ad1c31e18b3be405513e9e68004e72f09">ripple::AMMWithdraw::withdraw</a></div><div class="ttdeci">static std::tuple< TER, STAmount, STAmount, std::optional< STAmount > > withdraw(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, AccountID const &account, STAmount const &amountBalance, STAmount const &amountWithdraw, std::optional< STAmount > const &amount2Withdraw, STAmount const &lpTokensAMMBalance, STAmount const &lpTokensWithdraw, std::uint16_t tfee, FreezeHandling freezeHandling, WithdrawAll withdrawAll, XRPAmount const &priorBalance, beast::Journal const &journal)</div><div class="ttdoc">Withdraw requested assets and token from AMM into LP account.</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00468">AMMWithdraw.cpp:468</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_ad366e7ecc17ab21d3fb406c334df6b0e"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#ad366e7ecc17ab21d3fb406c334df6b0e">ripple::AMMWithdraw::doApply</a></div><div class="ttdeci">TER doApply() override</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00422">AMMWithdraw.cpp:422</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1AMMWithdraw_html_af550daae2d35615ebb72a32cdc09c158"><div class="ttname"><a href="classripple_1_1AMMWithdraw.html#af550daae2d35615ebb72a32cdc09c158">ripple::AMMWithdraw::singleWithdrawTokens</a></div><div class="ttdeci">std::pair< TER, STAmount > singleWithdrawTokens(Sandbox &view, SLE const &ammSle, AccountID const &ammAccount, STAmount const &amountBalance, STAmount const &lptAMMBalance, STAmount const &amount, STAmount const &lpTokensWithdraw, std::uint16_t tfee)</div><div class="ttdoc">Single asset withdrawal (Asset1Out, LPTokens) proportional to the share specified by tokens.</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8cpp_source.html#l00982">AMMWithdraw.cpp:982</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ApplyContext_html"><div class="ttname"><a href="classripple_1_1ApplyContext.html">ripple::ApplyContext</a></div><div class="ttdoc">State information when applying a tx.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00036">ApplyContext.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Issue_html"><div class="ttname"><a href="classripple_1_1Issue.html">ripple::Issue</a></div><div class="ttdoc">A currency issued by an account.</div><div class="ttdef"><b>Definition</b> <a href="Issue_8h_source.html#l00032">Issue.h:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STAmount_html"><div class="ttname"><a href="classripple_1_1STAmount.html">ripple::STAmount</a></div><div class="ttdef"><b>Definition</b> <a href="STAmount_8h_source.html#l00049">STAmount.h:50</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STLedgerEntry_html"><div class="ttname"><a href="classripple_1_1STLedgerEntry.html">ripple::STLedgerEntry</a></div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00031">STLedgerEntry.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STTx_html"><div class="ttname"><a href="classripple_1_1STTx.html">ripple::STTx</a></div><div class="ttdef"><b>Definition</b> <a href="STTx_8h_source.html#l00047">STTx.h:48</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Sandbox_html"><div class="ttname"><a href="classripple_1_1Sandbox.html">ripple::Sandbox</a></div><div class="ttdoc">Discardable, editable view to a ledger.</div><div class="ttdef"><b>Definition</b> <a href="Sandbox_8h_source.html#l00034">Sandbox.h:35</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset</a></div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00410">TER.h:411</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html"><div class="ttname"><a href="classripple_1_1Transactor.html">ripple::Transactor</a></div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00137">Transactor.h:138</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html_a5c6d16e9402d182a835f50b37ce9a938"><div class="ttname"><a href="classripple_1_1Transactor.html#a5c6d16e9402d182a835f50b37ce9a938">ripple::Transactor::ConsequencesFactoryType</a></div><div class="ttdeci">ConsequencesFactoryType</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00153">Transactor.h:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html_a5c6d16e9402d182a835f50b37ce9a938aa45cb725337de0d627f42b7ebf4be91f"><div class="ttname"><a href="classripple_1_1Transactor.html#a5c6d16e9402d182a835f50b37ce9a938aa45cb725337de0d627f42b7ebf4be91f">ripple::Transactor::Normal</a></div><div class="ttdeci">@ Normal</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00153">Transactor.h:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Transactor_html_a9acc4edc9b8f2a11a27fbcf5e93e2fe2"><div class="ttname"><a href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">ripple::Transactor::view</a></div><div class="ttdeci">ApplyView & view()</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00159">Transactor.h:159</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition</b> <a href="XRPAmount_8h_source.html#l00039">XRPAmount.h:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint< 160, detail::AccountIDTag ></a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0ef1f7396e14a26a1d23238d68149a63"><div class="ttname"><a href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63">ripple::WithdrawAll</a></div><div class="ttdeci">WithdrawAll</div><div class="ttdoc">AMMWithdraw implements AMM withdraw Transactor.</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8h_source.html#l00067">AMMWithdraw.h:67</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a17a9a9b903b66e49f5413d82ce79f085"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085">ripple::FreezeHandling</a></div><div class="ttdeci">FreezeHandling</div><div class="ttdoc">Controls the treatment of frozen account balances.</div><div class="ttdef"><b>Definition:</b> <a href="View_8h_source.html#l00078">View.h:78</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0ef1f7396e14a26a1d23238d68149a63"><div class="ttname"><a href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63">ripple::WithdrawAll</a></div><div class="ttdeci">WithdrawAll</div><div class="ttdoc">AMMWithdraw implements AMM withdraw Transactor.</div><div class="ttdef"><b>Definition</b> <a href="AMMWithdraw_8h_source.html#l00067">AMMWithdraw.h:67</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a17a9a9b903b66e49f5413d82ce79f085"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085">ripple::FreezeHandling</a></div><div class="ttdeci">FreezeHandling</div><div class="ttdoc">Controls the treatment of frozen account balances.</div><div class="ttdef"><b>Definition</b> <a href="View_8h_source.html#l00078">View.h:78</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa9819bf6e2ef44707a0144da6c874890a93cba07454f06a4a960172bbd6e2a435"><div class="ttname"><a href="namespaceripple.html#aa9819bf6e2ef44707a0144da6c874890a93cba07454f06a4a960172bbd6e2a435">ripple::IsDeposit::Yes</a></div><div class="ttdeci">@ Yes</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa9819bf6e2ef44707a0144da6c874890abafd7322c6e97d25b6299b5d6fe8920b"><div class="ttname"><a href="namespaceripple.html#aa9819bf6e2ef44707a0144da6c874890abafd7322c6e97d25b6299b5d6fe8920b">ripple::IsDeposit::No</a></div><div class="ttdeci">@ No</div></div>
|
||||
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
||||
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
|
||||
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1PreclaimContext_html"><div class="ttname"><a href="structripple_1_1PreclaimContext.html">ripple::PreclaimContext</a></div><div class="ttdoc">State information when determining if a tx is likely to claim a fee.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00078">Transactor.h:79</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1PreflightContext_html"><div class="ttname"><a href="structripple_1_1PreflightContext.html">ripple::PreflightContext</a></div><div class="ttdoc">State information when preflighting a tx.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00033">Transactor.h:34</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1PreclaimContext_html"><div class="ttname"><a href="structripple_1_1PreclaimContext.html">ripple::PreclaimContext</a></div><div class="ttdoc">State information when determining if a tx is likely to claim a fee.</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00078">Transactor.h:79</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1PreflightContext_html"><div class="ttname"><a href="structripple_1_1PreflightContext.html">ripple::PreflightContext</a></div><div class="ttdoc">State information when preflighting a tx.</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00033">Transactor.h:34</a></div></div>
|
||||
<div class="ttc" id="atuple_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user