mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
deploy: e514de76ed
This commit is contained in:
@@ -115,8 +115,8 @@ $(function() {
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ret = <a class="code hl_function" href="namespaceripple.html#a5dfb437ade69624474bbe4125ceb791a">preflight1</a>(ctx); !<a class="code hl_function" href="namespaceripple.html#a5b31f337f444082f547ef1838e7064fc">isTesSuccess</a>(ret))</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> ret;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">auto</span> <span class="keyword">const</span> flags = ctx.<a class="code hl_variable" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code hl_function" href="classripple_1_1STObject.html#af5aa57043ec772da30341e3c3b823d7f">getFlags</a>();</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a3786d0f9f6dacfad8bf3ba300acafaad">tfWithdrawMask</a>)</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> = ctx.<a class="code hl_variable" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code hl_function" href="classripple_1_1STObject.html#af5aa57043ec772da30341e3c3b823d7f">getFlags</a>();</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a3786d0f9f6dacfad8bf3ba300acafaad">tfWithdrawMask</a>)</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreflightContext.html#ae5e4a6c7a5f2acfe5a3c39a92cb86357">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"AMM Withdraw: invalid flags."</span>;</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46aa4754e0f122658747650b3b1c0a846a8">temINVALID_FLAG</a>;</div>
|
||||
@@ -134,42 +134,42 @@ $(function() {
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// Amount and Amount2</span></div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// Amount and LPTokens</span></div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="comment">// Amount and EPrice</span></div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">if</span> (std::popcount(flags & <a class="code hl_variable" href="namespaceripple.html#aba96948641b5ee7f466ab43080c672d8">tfWithdrawSubTx</a>) != 1)</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">if</span> (std::popcount(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#aba96948641b5ee7f466ab43080c672d8">tfWithdrawSubTx</a>) != 1)</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> {</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreflightContext.html#ae5e4a6c7a5f2acfe5a3c39a92cb86357">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"AMM Withdraw: invalid flags."</span>;</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> }</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#aa3f065b75d23f712be19a1a953fe5b4a">tfLPToken</a>)</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#aa3f065b75d23f712be19a1a953fe5b4a">tfLPToken</a>)</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> {</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">if</span> (!lpTokens || amount || amount2 || ePrice)</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a8383eb169324b23c0b4b49d6c2d2c877">tfWithdrawAll</a>)</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a8383eb169324b23c0b4b49d6c2d2c877">tfWithdrawAll</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="keywordflow">if</span> (lpTokens || amount || amount2 || ePrice)</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">tfOneAssetWithdrawAll</a>)</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">tfOneAssetWithdrawAll</a>)</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> <span class="keywordflow">if</span> (!amount || lpTokens || amount2 || ePrice)</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a098e0eaa259f9927096b3b4edd77c71a">tfSingleAsset</a>)</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a098e0eaa259f9927096b3b4edd77c71a">tfSingleAsset</a>)</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> {</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">if</span> (!amount || lpTokens || amount2 || ePrice)</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a7ac113783ec3f596fe69ab6d1daabbac">tfTwoAsset</a>)</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a7ac113783ec3f596fe69ab6d1daabbac">tfTwoAsset</a>)</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> {</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">if</span> (!amount || !amount2 || lpTokens || ePrice)</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a620f1516447f54ef50ac790f5f0720a3">tfOneAssetLPToken</a>)</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a620f1516447f54ef50ac790f5f0720a3">tfOneAssetLPToken</a>)</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> {</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">if</span> (!amount || !lpTokens || amount2 || ePrice)</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> }</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flags & <a class="code hl_variable" href="namespaceripple.html#a5401fd4c42f637dc456a79af094a960d">tfLimitLPToken</a>)</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & <a class="code hl_variable" href="namespaceripple.html#a5401fd4c42f637dc456a79af094a960d">tfLimitLPToken</a>)</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> {</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordflow">if</span> (!amount || !ePrice || lpTokens || amount2)</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">temMALFORMED</a>;</div>
|
||||
@@ -201,7 +201,7 @@ $(function() {
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> res = <a class="code hl_function" href="namespaceripple.html#a0a4a286d1662cbca7a134981b70e65b6">invalidAMMAmount</a>(</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> *amount,</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/make_optional.html">std::make_optional</a>(<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(asset, asset2)),</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> (flags & (<a class="code hl_variable" href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">tfOneAssetWithdrawAll</a> | <a class="code hl_variable" href="namespaceripple.html#a620f1516447f54ef50ac790f5f0720a3">tfOneAssetLPToken</a>)) ||</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & (<a class="code hl_variable" href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">tfOneAssetWithdrawAll</a> | <a class="code hl_variable" href="namespaceripple.html#a620f1516447f54ef50ac790f5f0720a3">tfOneAssetLPToken</a>)) ||</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> ePrice))</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> {</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreflightContext.html#ae5e4a6c7a5f2acfe5a3c39a92cb86357">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"AMM Withdraw: invalid Asset1Out"</span>;</div>
|
||||
@@ -235,9 +235,9 @@ $(function() {
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="namespaceripple.html#a6bdc23ab696afbce2568a4c9563e9ec2"> 157</a></span><a class="code hl_function" href="namespaceripple.html#a6bdc23ab696afbce2568a4c9563e9ec2">tokensWithdraw</a>(</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& lpTokens,</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<STAmount></a> <span class="keyword">const</span>& tokensIn,</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> flags)</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a>)</div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span>{</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keywordflow">if</span> (flags & (<a class="code hl_variable" href="namespaceripple.html#a8383eb169324b23c0b4b49d6c2d2c877">tfWithdrawAll</a> | <a class="code hl_variable" href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">tfOneAssetWithdrawAll</a>))</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1flags.html">flags</a> & (<a class="code hl_variable" href="namespaceripple.html#a8383eb169324b23c0b4b49d6c2d2c877">tfWithdrawAll</a> | <a class="code hl_variable" href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">tfOneAssetWithdrawAll</a>))</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">return</span> lpTokens;</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordflow">return</span> tokensIn;</div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span>}</div>
|
||||
@@ -278,29 +278,29 @@ $(function() {
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77">tecINTERNAL</a>; <span class="comment">// LCOV_EXCL_LINE</span></div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> }</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a> = ammSle->getAccountID(sfAccount);</div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">auto</span> <span class="keyword">const</span> ammAccountID = ammSle->getAccountID(sfAccount);</div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
||||
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keyword">auto</span> checkAmount = [&](<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<STAmount></a> <span class="keyword">const</span>& amount,</div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">auto</span> <span class="keyword">const</span>& balance) -> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> {</div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">auto</span> <span class="keyword">const</span>& <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1balance.html">balance</a>) -> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> {</div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keywordflow">if</span> (amount)</div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> {</div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">if</span> (amount > balance)</div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">if</span> (amount > <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1balance.html">balance</a>)</div>
|
||||
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> {</div>
|
||||
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#aeb55565e34b187925992ba6c2f4a1d98">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
|
||||
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> << <span class="stringliteral">"AMM Withdraw: withdrawing more than the balance, "</span></div>
|
||||
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> << *amount;</div>
|
||||
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae64cec73f40a04653c193fbee09733c5">tecAMM_BALANCE</a>;</div>
|
||||
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> }</div>
|
||||
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter =</div>
|
||||
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> =</div>
|
||||
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <a class="code hl_function" href="namespaceripple.html#a3e046f4b7ab06562107485513edb7098">requireAuth</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, amount->issue(), accountID))</div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> {</div>
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#aeb55565e34b187925992ba6c2f4a1d98">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> << <span class="stringliteral">"AMM Withdraw: account is not authorized, "</span></div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> << amount->issue();</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <span class="keywordflow">return</span> ter;</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> }</div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <span class="comment">// AMM account or currency frozen</span></div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple.html#a6cb89b79bc073abda42953c323d36cda">isFrozen</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>, amount->issue()))</div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple.html#a6cb89b79bc073abda42953c323d36cda">isFrozen</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, ammAccountID, amount->issue()))</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> {</div>
|
||||
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#aeb55565e34b187925992ba6c2f4a1d98">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
|
||||
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> << <span class="stringliteral">"AMM Withdraw: AMM account or currency is frozen, "</span></div>
|
||||
@@ -319,11 +319,11 @@ $(function() {
|
||||
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
||||
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> };</div>
|
||||
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> </div>
|
||||
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter = checkAmount(amount, amountBalance))</div>
|
||||
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="keywordflow">return</span> ter;</div>
|
||||
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = checkAmount(amount, amountBalance))</div>
|
||||
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
|
||||
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter = checkAmount(amount2, amount2Balance))</div>
|
||||
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">return</span> ter;</div>
|
||||
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = checkAmount(amount2, amount2Balance))</div>
|
||||
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
|
||||
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <span class="keyword">auto</span> <span class="keyword">const</span> lpTokens =</div>
|
||||
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_function" href="namespaceripple.html#a7c5d3108f4942ebc53a3fa4f83c2d577">ammLPHolds</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, *ammSle, ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a8e1240b39791cf309b9caaffe8e5d306">tx</a>[sfAccount], ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#aeb55565e34b187925992ba6c2f4a1d98">j</a>);</div>
|
||||
@@ -357,10 +357,10 @@ $(function() {
|
||||
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> </div>
|
||||
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">if</span> (ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a8e1240b39791cf309b9caaffe8e5d306">tx</a>.<a class="code hl_function" href="classripple_1_1STObject.html#af5aa57043ec772da30341e3c3b823d7f">getFlags</a>() & (<a class="code hl_variable" href="namespaceripple.html#aa3f065b75d23f712be19a1a953fe5b4a">tfLPToken</a> | <a class="code hl_variable" href="namespaceripple.html#a8383eb169324b23c0b4b49d6c2d2c877">tfWithdrawAll</a>))</div>
|
||||
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> {</div>
|
||||
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter = checkAmount(amountBalance, amountBalance))</div>
|
||||
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keywordflow">return</span> ter;</div>
|
||||
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter = checkAmount(amount2Balance, amount2Balance))</div>
|
||||
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow">return</span> ter;</div>
|
||||
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = checkAmount(amountBalance, amountBalance))</div>
|
||||
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = checkAmount(amount2Balance, amount2Balance))</div>
|
||||
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> }</div>
|
||||
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
|
||||
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
||||
@@ -375,8 +375,8 @@ $(function() {
|
||||
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <span class="keyword">auto</span> ammSle = sb.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#afe88196d7aec85f2af00d7cd0b1a28c3">peek</a>(<a class="code hl_function" href="namespaceripple_1_1keylet.html#a54b18d5d8dab25d338f7e105bea1068b">keylet::amm</a>(<a class="code hl_variable" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>[sfAsset], <a class="code hl_variable" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>[sfAsset2]));</div>
|
||||
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">if</span> (!ammSle)</div>
|
||||
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <span class="keywordflow">return</span> {<a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77">tecINTERNAL</a>, <span class="keyword">false</span>}; <span class="comment">// LCOV_EXCL_LINE</span></div>
|
||||
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a> = (*ammSle)[sfAccount];</div>
|
||||
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> <span class="keyword">auto</span> <span class="keyword">const</span> accountSle = sb.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#adbca64f4c123b0fbcfdf27586649732b">read</a>(<a class="code hl_function" href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">keylet::account</a>(<a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>));</div>
|
||||
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="keyword">auto</span> <span class="keyword">const</span> ammAccountID = (*ammSle)[sfAccount];</div>
|
||||
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> <span class="keyword">auto</span> <span class="keyword">const</span> accountSle = sb.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#adbca64f4c123b0fbcfdf27586649732b">read</a>(<a class="code hl_function" href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">keylet::account</a>(ammAccountID));</div>
|
||||
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> <span class="keywordflow">if</span> (!accountSle)</div>
|
||||
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <span class="keywordflow">return</span> {<a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77">tecINTERNAL</a>, <span class="keyword">false</span>}; <span class="comment">// LCOV_EXCL_LINE</span></div>
|
||||
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> <span class="keyword">auto</span> <span class="keyword">const</span> lpTokens =</div>
|
||||
@@ -433,7 +433,7 @@ $(function() {
|
||||
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a5236e8a4e14c231694b6952abfc3b423">equalWithdrawLimit</a>(</div>
|
||||
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> sb,</div>
|
||||
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> *ammSle,</div>
|
||||
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>,</div>
|
||||
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> ammAccountID,</div>
|
||||
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> amountBalance,</div>
|
||||
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> amount2Balance,</div>
|
||||
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> lptAMMBalance,</div>
|
||||
@@ -444,7 +444,7 @@ $(function() {
|
||||
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#af550daae2d35615ebb72a32cdc09c158">singleWithdrawTokens</a>(</div>
|
||||
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> sb,</div>
|
||||
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> *ammSle,</div>
|
||||
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>,</div>
|
||||
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> ammAccountID,</div>
|
||||
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> amountBalance,</div>
|
||||
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> lptAMMBalance,</div>
|
||||
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> *amount,</div>
|
||||
@@ -454,7 +454,7 @@ $(function() {
|
||||
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a4318b71ceedb46714e2d93a6db8e93c9">singleWithdrawEPrice</a>(</div>
|
||||
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> sb,</div>
|
||||
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> *ammSle,</div>
|
||||
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>,</div>
|
||||
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> ammAccountID,</div>
|
||||
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> amountBalance,</div>
|
||||
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> lptAMMBalance,</div>
|
||||
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> *amount,</div>
|
||||
@@ -464,7 +464,7 @@ $(function() {
|
||||
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a6f66fea4d10c565cbc522980f248eee2">singleWithdraw</a>(</div>
|
||||
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> sb,</div>
|
||||
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> *ammSle,</div>
|
||||
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>,</div>
|
||||
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> ammAccountID,</div>
|
||||
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> amountBalance,</div>
|
||||
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> lptAMMBalance,</div>
|
||||
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> *amount,</div>
|
||||
@@ -474,7 +474,7 @@ $(function() {
|
||||
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a64842cf86a14dfe5dcc9019eb55511d0">equalWithdrawTokens</a>(</div>
|
||||
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> sb,</div>
|
||||
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> *ammSle,</div>
|
||||
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> <a class="code hl_function" href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ammAccountID</a>,</div>
|
||||
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> ammAccountID,</div>
|
||||
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> amountBalance,</div>
|
||||
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> amount2Balance,</div>
|
||||
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> lptAMMBalance,</div>
|
||||
@@ -537,9 +537,9 @@ $(function() {
|
||||
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"> 459</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& lpTokensWithdraw,</div>
|
||||
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> tfee)</div>
|
||||
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span>{</div>
|
||||
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> ter;</div>
|
||||
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> newLPTokenBalance;</div>
|
||||
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a>(ter, newLPTokenBalance, std::ignore, std::ignore) = <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#ad1c31e18b3be405513e9e68004e72f09">withdraw</a>(</div>
|
||||
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>, newLPTokenBalance, std::ignore, std::ignore) = <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#ad1c31e18b3be405513e9e68004e72f09">withdraw</a>(</div>
|
||||
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> <a class="code hl_function" href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">view</a>,</div>
|
||||
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span> ammSle,</div>
|
||||
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span> ammAccount,</div>
|
||||
@@ -554,7 +554,7 @@ $(function() {
|
||||
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno"> 476</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a0b14d4c7e7868ef1bd417b63cd42063b">isWithdrawAll</a>(<a class="code hl_variable" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>),</div>
|
||||
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"> 477</span> <a class="code hl_variable" href="classripple_1_1Transactor.html#abb2f6f5d7fd8c663c5df76b6fcba2c49">mPriorBalance</a>,</div>
|
||||
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span> <a class="code hl_variable" href="classripple_1_1Transactor.html#ab84d1ef5275a1c6c63176c11d72d6235">j_</a>);</div>
|
||||
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span> <span class="keywordflow">return</span> {ter, newLPTokenBalance};</div>
|
||||
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span> <span class="keywordflow">return</span> {<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>, newLPTokenBalance};</div>
|
||||
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno"> 480</span>}</div>
|
||||
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"> 481</span> </div>
|
||||
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"> 482</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple<TER, STAmount, STAmount, std::optional<STAmount></a>></div>
|
||||
@@ -681,15 +681,15 @@ $(function() {
|
||||
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno"> 603</span> <span class="keyword">auto</span> <span class="keyword">const</span> sleAccount = <a class="code hl_function" href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">view</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a0583a050ea7799ba331f6222a905f304">read</a>(<a class="code hl_function" href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">keylet::account</a>(account));</div>
|
||||
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno"> 604</span> <span class="keywordflow">if</span> (!sleAccount)</div>
|
||||
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno"> 605</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77">tecINTERNAL</a>; <span class="comment">// LCOV_EXCL_LINE</span></div>
|
||||
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno"> 606</span> <span class="keyword">auto</span> <span class="keyword">const</span> balance = (*sleAccount)[sfBalance].xrp();</div>
|
||||
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno"> 607</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <span class="keyword">const</span> ownerCount = sleAccount->at(sfOwnerCount);</div>
|
||||
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno"> 606</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1balance.html">balance</a> = (*sleAccount)[sfBalance].xrp();</div>
|
||||
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno"> 607</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <span class="keyword">const</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a12abe185058a3db015909ed92c421097">ownerCount</a> = sleAccount->at(sfOwnerCount);</div>
|
||||
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno"> 608</span> </div>
|
||||
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno"> 609</span> <span class="comment">// See also SetTrust::doApply()</span></div>
|
||||
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno"> 610</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> reserve(</div>
|
||||
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno"> 611</span> (ownerCount < 2) ? <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a>(beast::zero)</div>
|
||||
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno"> 612</span> : <a class="code hl_function" href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">view</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a9944284a00f671a4a9d9e00f9b28b258">fees</a>().<a class="code hl_function" href="structripple_1_1Fees.html#acb07843d0d0e3ccacd7cf51d5296fe40">accountReserve</a>(ownerCount + 1));</div>
|
||||
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno"> 611</span> (<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a12abe185058a3db015909ed92c421097">ownerCount</a> < 2) ? <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a>(beast::zero)</div>
|
||||
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno"> 612</span> : <a class="code hl_function" href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">view</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a9944284a00f671a4a9d9e00f9b28b258">fees</a>().<a class="code hl_function" href="structripple_1_1Fees.html#acb07843d0d0e3ccacd7cf51d5296fe40">accountReserve</a>(<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a12abe185058a3db015909ed92c421097">ownerCount</a> + 1));</div>
|
||||
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno"> 613</span> </div>
|
||||
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno"> 614</span> <span class="keywordflow">if</span> (<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a>(priorBalance, balance) < reserve)</div>
|
||||
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno"> 614</span> <span class="keywordflow">if</span> (<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a>(priorBalance, <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1balance.html">balance</a>) < reserve)</div>
|
||||
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno"> 615</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae930fb228ae74317976b57b4e87a7f0d">tecINSUFFICIENT_RESERVE</a>;</div>
|
||||
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno"> 616</span> }</div>
|
||||
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno"> 617</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
||||
@@ -773,9 +773,9 @@ $(function() {
|
||||
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno"> 695</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& lpTokensWithdraw,</div>
|
||||
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno"> 696</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> tfee)</div>
|
||||
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno"> 697</span>{</div>
|
||||
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno"> 698</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> ter;</div>
|
||||
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno"> 698</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno"> 699</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> newLPTokenBalance;</div>
|
||||
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno"> 700</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a>(ter, newLPTokenBalance, std::ignore, std::ignore) =</div>
|
||||
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno"> 700</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>, newLPTokenBalance, std::ignore, std::ignore) =</div>
|
||||
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno"> 701</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a64842cf86a14dfe5dcc9019eb55511d0">equalWithdrawTokens</a>(</div>
|
||||
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno"> 702</span> <a class="code hl_function" href="classripple_1_1Transactor.html#a9acc4edc9b8f2a11a27fbcf5e93e2fe2">view</a>,</div>
|
||||
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno"> 703</span> ammSle,</div>
|
||||
@@ -791,7 +791,7 @@ $(function() {
|
||||
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno"> 713</span> <a class="code hl_function" href="classripple_1_1AMMWithdraw.html#a0b14d4c7e7868ef1bd417b63cd42063b">isWithdrawAll</a>(<a class="code hl_variable" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>),</div>
|
||||
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno"> 714</span> <a class="code hl_variable" href="classripple_1_1Transactor.html#abb2f6f5d7fd8c663c5df76b6fcba2c49">mPriorBalance</a>,</div>
|
||||
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno"> 715</span> <a class="code hl_variable" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a7b78c8e924babce4d14359970f55ba02">journal</a>);</div>
|
||||
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno"> 716</span> <span class="keywordflow">return</span> {ter, newLPTokenBalance};</div>
|
||||
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno"> 716</span> <span class="keywordflow">return</span> {<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>, newLPTokenBalance};</div>
|
||||
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno"> 717</span>}</div>
|
||||
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno"> 718</span> </div>
|
||||
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno"> 719</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<TER, bool></a></div>
|
||||
@@ -803,15 +803,15 @@ $(function() {
|
||||
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno"> 725</span> <a class="code hl_class" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>& issue2,</div>
|
||||
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno"> 726</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> <span class="keyword">const</span>& journal)</div>
|
||||
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno"> 727</span>{</div>
|
||||
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno"> 728</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> ter;</div>
|
||||
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno"> 728</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>;</div>
|
||||
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno"> 729</span> <span class="keywordtype">bool</span> updateBalance = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno"> 730</span> <span class="keywordflow">if</span> (lpTokenBalance == beast::zero)</div>
|
||||
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno"> 731</span> {</div>
|
||||
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno"> 732</span> ter = <a class="code hl_function" href="namespaceripple.html#a39496f811d81eeceaec4ab1fe9f877ac">deleteAMMAccount</a>(sb, issue1, issue2, journal);</div>
|
||||
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno"> 733</span> <span class="keywordflow">if</span> (ter != <a class="code hl_enumvalue" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a> && ter != <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072">tecINCOMPLETE</a>)</div>
|
||||
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno"> 734</span> <span class="keywordflow">return</span> {ter, <span class="keyword">false</span>}; <span class="comment">// LCOV_EXCL_LINE</span></div>
|
||||
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno"> 732</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = <a class="code hl_function" href="namespaceripple.html#a39496f811d81eeceaec4ab1fe9f877ac">deleteAMMAccount</a>(sb, issue1, issue2, journal);</div>
|
||||
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno"> 733</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> != <a class="code hl_enumvalue" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a> && <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> != <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072">tecINCOMPLETE</a>)</div>
|
||||
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno"> 734</span> <span class="keywordflow">return</span> {<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>, <span class="keyword">false</span>}; <span class="comment">// LCOV_EXCL_LINE</span></div>
|
||||
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno"> 735</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno"> 736</span> updateBalance = (ter == <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072">tecINCOMPLETE</a>);</div>
|
||||
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno"> 736</span> updateBalance = (<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> == <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072">tecINCOMPLETE</a>);</div>
|
||||
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno"> 737</span> }</div>
|
||||
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno"> 738</span> </div>
|
||||
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno"> 739</span> <span class="keywordflow">if</span> (updateBalance)</div>
|
||||
@@ -820,7 +820,7 @@ $(function() {
|
||||
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno"> 742</span> sb.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#a4f12513f46ee2c194d6fb0e4d28e5543">update</a>(ammSle);</div>
|
||||
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno"> 743</span> }</div>
|
||||
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno"> 744</span> </div>
|
||||
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno"> 745</span> <span class="keywordflow">return</span> {ter, <span class="keyword">true</span>};</div>
|
||||
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno"> 745</span> <span class="keywordflow">return</span> {<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>, <span class="keyword">true</span>};</div>
|
||||
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno"> 746</span>}</div>
|
||||
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno"> 747</span> </div>
|
||||
<div class="line"><a id="l00750" name="l00750"></a><span class="lineno"> 750</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple<TER, STAmount, STAmount, std::optional<STAmount></a>></div>
|
||||
@@ -1082,7 +1082,7 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_aceb3d74acaae18b238022337e5f250ce"><div class="ttname"><a href="classripple_1_1ReadView.html#aceb3d74acaae18b238022337e5f250ce">ripple::ReadView::rules</a></div><div class="ttdeci">virtual Rules const & rules() const =0</div><div class="ttdoc">Returns the tx processing rules.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Rules_html_a1a8388a2b9588aa9446ece92a88e0dd2"><div class="ttname"><a href="classripple_1_1Rules.html#a1a8388a2b9588aa9446ece92a88e0dd2">ripple::Rules::enabled</a></div><div class="ttdeci">bool enabled(uint256 const &feature) const</div><div class="ttdoc">Returns true if a feature is enabled.</div><div class="ttdef"><b>Definition:</b> <a href="Rules_8cpp_source.html#l00130">Rules.cpp:130</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_1STAmount_html_acab76380a95d902071fd26ab3425bbe5"><div class="ttname"><a href="classripple_1_1STAmount.html#acab76380a95d902071fd26ab3425bbe5">ripple::STAmount::issue</a></div><div class="ttdeci">Issue const & issue() const</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00487">STAmount.h:487</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STAmount_html_acab76380a95d902071fd26ab3425bbe5"><div class="ttname"><a href="classripple_1_1STAmount.html#acab76380a95d902071fd26ab3425bbe5">ripple::STAmount::issue</a></div><div class="ttdeci">Issue const & issue() const</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00496">STAmount.h:496</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_1STObject_html_af5aa57043ec772da30341e3c3b823d7f"><div class="ttname"><a href="classripple_1_1STObject.html#af5aa57043ec772da30341e3c3b823d7f">ripple::STObject::getFlags</a></div><div class="ttdeci">std::uint32_t getFlags() const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00537">STObject.cpp:537</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>
|
||||
@@ -1100,73 +1100,76 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html_adbca64f4c123b0fbcfdf27586649732b"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html#adbca64f4c123b0fbcfdf27586649732b">ripple::detail::ApplyViewBase::read</a></div><div class="ttdeci">std::shared_ptr< SLE const > read(Keylet const &k) const override</div><div class="ttdoc">Return the state item associated with a key.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyViewBase_8cpp_source.html#l00070">ApplyViewBase.cpp:70</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html_af16244cf2efd903b4575a0b85c94d159"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html#af16244cf2efd903b4575a0b85c94d159">ripple::detail::ApplyViewBase::rules</a></div><div class="ttdeci">Rules const & rules() const override</div><div class="ttdoc">Returns the tx processing rules.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyViewBase_8cpp_source.html#l00051">ApplyViewBase.cpp:51</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html_afe88196d7aec85f2af00d7cd0b1a28c3"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html#afe88196d7aec85f2af00d7cd0b1a28c3">ripple::detail::ApplyViewBase::peek</a></div><div class="ttdeci">std::shared_ptr< SLE > peek(Keylet const &k) override</div><div class="ttdoc">Prepare to modify the SLE associated with key.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyViewBase_8cpp_source.html#l00127">ApplyViewBase.cpp:127</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1balance_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1balance.html">ripple::test::jtx::balance</a></div><div class="ttdoc">A balance matches.</div><div class="ttdef"><b>Definition:</b> <a href="balance_8h_source.html#l00038">balance.h:39</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1flags_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1flags.html">ripple::test::jtx::flags</a></div><div class="ttdoc">Match set account flags.</div><div class="ttdef"><b>Definition:</b> <a href="flags_8h_source.html#l00124">flags.h:125</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1ter_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1ter.html">ripple::test::jtx::ter</a></div><div class="ttdoc">Set the expected result code for a JTx The test will fail if the code doesn't match.</div><div class="ttdef"><b>Definition:</b> <a href="ter_8h_source.html#l00034">ter.h:35</a></div></div>
|
||||
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
||||
<div class="ttc" id="amake_optional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional/make_optional.html">std::make_optional</a></div><div class="ttdeci">T make_optional(T... args)</div></div>
|
||||
<div class="ttc" id="amake_pair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a></div><div class="ttdeci">T make_pair(T... args)</div></div>
|
||||
<div class="ttc" id="amake_tuple_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple/make_tuple.html">std::make_tuple</a></div><div class="ttdeci">T make_tuple(T... args)</div></div>
|
||||
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a></div><div class="ttdeci">T max(T... args)</div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a54b18d5d8dab25d338f7e105bea1068b"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a54b18d5d8dab25d338f7e105bea1068b">ripple::keylet::amm</a></div><div class="ttdeci">Keylet amm(Asset const &issue1, Asset const &issue2) noexcept</div><div class="ttdoc">AMM entry.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00438">Indexes.cpp:438</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a55890af7192834c632299746ba300be8"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a55890af7192834c632299746ba300be8">ripple::keylet::line</a></div><div class="ttdeci">Keylet line(AccountID const &id0, AccountID const &id1, Currency const &currency) noexcept</div><div class="ttdoc">The index of a trust line for a given currency.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00236">Indexes.cpp:236</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_aa756e0f59b26042ed00a4d0ba6e96951"><div class="ttname"><a href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">ripple::keylet::account</a></div><div class="ttdeci">Keylet account(AccountID const &id) noexcept</div><div class="ttdoc">AccountID root.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00176">Indexes.cpp:176</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a54b18d5d8dab25d338f7e105bea1068b"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a54b18d5d8dab25d338f7e105bea1068b">ripple::keylet::amm</a></div><div class="ttdeci">Keylet amm(Asset const &issue1, Asset const &issue2) noexcept</div><div class="ttdoc">AMM entry.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00439">Indexes.cpp:439</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a55890af7192834c632299746ba300be8"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a55890af7192834c632299746ba300be8">ripple::keylet::line</a></div><div class="ttdeci">Keylet line(AccountID const &id0, AccountID const &id1, Currency const &currency) noexcept</div><div class="ttdoc">The index of a trust line for a given currency.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00237">Indexes.cpp:237</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_aa756e0f59b26042ed00a4d0ba6e96951"><div class="ttname"><a href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">ripple::keylet::account</a></div><div class="ttdeci">Keylet account(AccountID const &id) noexcept</div><div class="ttdoc">AccountID root.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00177">Indexes.cpp:177</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a12abe185058a3db015909ed92c421097"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a12abe185058a3db015909ed92c421097">ripple::test::jtx::ownerCount</a></div><div class="ttdeci">std::uint32_t ownerCount(Env const &env, Account const &account)</div><div class="ttdef"><b>Definition:</b> <a href="TestHelpers_8cpp_source.html#l00054">TestHelpers.cpp:54</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#l00026">algorithm.h:26</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a098e0eaa259f9927096b3b4edd77c71a"><div class="ttname"><a href="namespaceripple.html#a098e0eaa259f9927096b3b4edd77c71a">ripple::tfSingleAsset</a></div><div class="ttdeci">constexpr std::uint32_t tfSingleAsset</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00215">TxFlags.h:215</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0a4a286d1662cbca7a134981b70e65b6"><div class="ttname"><a href="namespaceripple.html#a0a4a286d1662cbca7a134981b70e65b6">ripple::invalidAMMAmount</a></div><div class="ttdeci">NotTEC invalidAMMAmount(STAmount const &amount, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt, bool validZero=false)</div><div class="ttdoc">Validate the amount.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00107">AMMCore.cpp:107</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0a4a286d1662cbca7a134981b70e65b6"><div class="ttname"><a href="namespaceripple.html#a0a4a286d1662cbca7a134981b70e65b6">ripple::invalidAMMAmount</a></div><div class="ttdeci">NotTEC invalidAMMAmount(STAmount const &amount, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt, bool validZero=false)</div><div class="ttdoc">Validate the amount.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00095">AMMCore.cpp:95</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0ad557cc32ca87dcea19af8e30c63c6a"><div class="ttname"><a href="namespaceripple.html#a0ad557cc32ca87dcea19af8e30c63c6a">ripple::divide</a></div><div class="ttdeci">STAmount divide(STAmount const &amount, Rate const &rate)</div><div class="ttdef"><b>Definition:</b> <a href="Rate2_8cpp_source.html#l00093">Rate2.cpp:93</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0cebcc733182bb6794d2d4067a29fb2a"><div class="ttname"><a href="namespaceripple.html#a0cebcc733182bb6794d2d4067a29fb2a">ripple::tfOneAssetWithdrawAll</a></div><div class="ttdeci">constexpr std::uint32_t tfOneAssetWithdrawAll</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00214">TxFlags.h:214</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_a0ef1f7396e14a26a1d23238d68149a63a93cba07454f06a4a960172bbd6e2a435"><div class="ttname"><a href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63a93cba07454f06a4a960172bbd6e2a435">ripple::WithdrawAll::Yes</a></div><div class="ttdeci">@ Yes</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0ef1f7396e14a26a1d23238d68149a63abafd7322c6e97d25b6299b5d6fe8920b"><div class="ttname"><a href="namespaceripple.html#a0ef1f7396e14a26a1d23238d68149a63abafd7322c6e97d25b6299b5d6fe8920b">ripple::WithdrawAll::No</a></div><div class="ttdeci">@ No</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#l00076">View.h:76</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a17a9a9b903b66e49f5413d82ce79f085a852cabbbe21a9b4d63aff777eceab2fd"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085a852cabbbe21a9b4d63aff777eceab2fd">ripple::fhZERO_IF_FROZEN</a></div><div class="ttdeci">@ fhZERO_IF_FROZEN</div><div class="ttdef"><b>Definition:</b> <a href="View_8h_source.html#l00076">View.h:76</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a17a9a9b903b66e49f5413d82ce79f085a91e3c4f8089025c7ecf66dd62b822d90"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085a91e3c4f8089025c7ecf66dd62b822d90">ripple::fhIGNORE_FREEZE</a></div><div class="ttdeci">@ fhIGNORE_FREEZE</div><div class="ttdef"><b>Definition:</b> <a href="View_8h_source.html#l00076">View.h:76</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_a17a9a9b903b66e49f5413d82ce79f085a852cabbbe21a9b4d63aff777eceab2fd"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085a852cabbbe21a9b4d63aff777eceab2fd">ripple::fhZERO_IF_FROZEN</a></div><div class="ttdeci">@ fhZERO_IF_FROZEN</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_a17a9a9b903b66e49f5413d82ce79f085a91e3c4f8089025c7ecf66dd62b822d90"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085a91e3c4f8089025c7ecf66dd62b822d90">ripple::fhIGNORE_FREEZE</a></div><div class="ttdeci">@ fhIGNORE_FREEZE</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_a20d30277b9c78756b3d14493055a307c"><div class="ttname"><a href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">ripple::isXRP</a></div><div class="ttdeci">bool isXRP(AccountID const &c)</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00091">AccountID.h:91</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a29c200b51e582524768ea6a9f3d9b279"><div class="ttname"><a href="namespaceripple.html#a29c200b51e582524768ea6a9f3d9b279">ripple::isIndividualFrozen</a></div><div class="ttdeci">bool isIndividualFrozen(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00205">View.cpp:205</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a29c200b51e582524768ea6a9f3d9b279"><div class="ttname"><a href="namespaceripple.html#a29c200b51e582524768ea6a9f3d9b279">ripple::isIndividualFrozen</a></div><div class="ttdeci">bool isIndividualFrozen(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00216">View.cpp:216</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a308162f4d3c7b3c005ee6907ab576da1"><div class="ttname"><a href="namespaceripple.html#a308162f4d3c7b3c005ee6907ab576da1">ripple::getTradingFee</a></div><div class="ttdeci">std::uint16_t getTradingFee(ReadView const &view, SLE const &ammSle, AccountID const &account)</div><div class="ttdoc">Get AMM trading fee for the given account.</div><div class="ttdef"><b>Definition:</b> <a href="AMMUtils_8cpp_source.html#l00178">AMMUtils.cpp:178</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a3786d0f9f6dacfad8bf3ba300acafaad"><div class="ttname"><a href="namespaceripple.html#a3786d0f9f6dacfad8bf3ba300acafaad">ripple::tfWithdrawMask</a></div><div class="ttdeci">constexpr std::uint32_t tfWithdrawMask</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00226">TxFlags.h:226</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a39496f811d81eeceaec4ab1fe9f877ac"><div class="ttname"><a href="namespaceripple.html#a39496f811d81eeceaec4ab1fe9f877ac">ripple::deleteAMMAccount</a></div><div class="ttdeci">TER deleteAMMAccount(Sandbox &view, Issue const &asset, Issue const &asset2, beast::Journal j)</div><div class="ttdoc">Delete trustlines to AMM.</div><div class="ttdef"><b>Definition:</b> <a href="AMMUtils_8cpp_source.html#l00282">AMMUtils.cpp:282</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a3e046f4b7ab06562107485513edb7098"><div class="ttname"><a href="namespaceripple.html#a3e046f4b7ab06562107485513edb7098">ripple::requireAuth</a></div><div class="ttdeci">TER requireAuth(ReadView const &view, Issue const &issue, AccountID const &account)</div><div class="ttdoc">Check if the account lacks required authorization.</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l01901">View.cpp:1901</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a48d07c0de207fab49cfc61ff0de202f1"><div class="ttname"><a href="namespaceripple.html#a48d07c0de207fab49cfc61ff0de202f1">ripple::redeemIOU</a></div><div class="ttdeci">TER redeemIOU(ApplyView &view, AccountID const &account, STAmount const &amount, Issue const &issue, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l01785">View.cpp:1785</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a3e046f4b7ab06562107485513edb7098"><div class="ttname"><a href="namespaceripple.html#a3e046f4b7ab06562107485513edb7098">ripple::requireAuth</a></div><div class="ttdeci">TER requireAuth(ReadView const &view, Issue const &issue, AccountID const &account)</div><div class="ttdoc">Check if the account lacks required authorization.</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l02268">View.cpp:2268</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a48d07c0de207fab49cfc61ff0de202f1"><div class="ttname"><a href="namespaceripple.html#a48d07c0de207fab49cfc61ff0de202f1">ripple::redeemIOU</a></div><div class="ttdeci">TER redeemIOU(ApplyView &view, AccountID const &account, STAmount const &amount, Issue const &issue, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l02152">View.cpp:2152</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a4ad5ac9da897292a28eea43d041c15a1"><div class="ttname"><a href="namespaceripple.html#a4ad5ac9da897292a28eea43d041c15a1">ripple::toSTAmount</a></div><div class="ttdeci">STAmount toSTAmount(IOUAmount const &iou, Issue const &iss)</div><div class="ttdef"><b>Definition:</b> <a href="AmountConversions_8h_source.html#l00032">AmountConversions.h:32</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a4c964d1f7629a28f9b916e2d25b39bcd"><div class="ttname"><a href="namespaceripple.html#a4c964d1f7629a28f9b916e2d25b39bcd">ripple::lpTokensOut</a></div><div class="ttdeci">STAmount lpTokensOut(STAmount const &asset1Balance, STAmount const &asset1Withdraw, STAmount const &lptAMMBalance, std::uint16_t tfee)</div><div class="ttdoc">Calculate LP Tokens given asset's withdraw amount.</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8cpp_source.html#l00090">AMMHelpers.cpp:90</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5401fd4c42f637dc456a79af094a960d"><div class="ttname"><a href="namespaceripple.html#a5401fd4c42f637dc456a79af094a960d">ripple::tfLimitLPToken</a></div><div class="ttdeci">constexpr std::uint32_t tfLimitLPToken</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00218">TxFlags.h:218</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5adb540ae694e45bca2ad089fff15128"><div class="ttname"><a href="namespaceripple.html#a5adb540ae694e45bca2ad089fff15128">ripple::multiply</a></div><div class="ttdeci">STAmount multiply(STAmount const &amount, Rate const &rate)</div><div class="ttdef"><b>Definition:</b> <a href="Rate2_8cpp_source.html#l00053">Rate2.cpp:53</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5b31f337f444082f547ef1838e7064fc"><div class="ttname"><a href="namespaceripple.html#a5b31f337f444082f547ef1838e7064fc">ripple::isTesSuccess</a></div><div class="ttdeci">bool isTesSuccess(TER x)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00656">TER.h:656</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5c4fa33b0b13deab58e07744afe0f7ed"><div class="ttname"><a href="namespaceripple.html#a5c4fa33b0b13deab58e07744afe0f7ed">ripple::ammEnabled</a></div><div class="ttdeci">bool ammEnabled(Rules const &)</div><div class="ttdoc">Return true if required AMM amendments are enabled.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00141">AMMCore.cpp:141</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5b31f337f444082f547ef1838e7064fc"><div class="ttname"><a href="namespaceripple.html#a5b31f337f444082f547ef1838e7064fc">ripple::isTesSuccess</a></div><div class="ttdeci">bool isTesSuccess(TER x)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00672">TER.h:672</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5c4fa33b0b13deab58e07744afe0f7ed"><div class="ttname"><a href="namespaceripple.html#a5c4fa33b0b13deab58e07744afe0f7ed">ripple::ammEnabled</a></div><div class="ttdeci">bool ammEnabled(Rules const &)</div><div class="ttdoc">Return true if required AMM amendments are enabled.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00129">AMMCore.cpp:129</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5dfb437ade69624474bbe4125ceb791a"><div class="ttname"><a href="namespaceripple.html#a5dfb437ade69624474bbe4125ceb791a">ripple::preflight1</a></div><div class="ttdeci">NotTEC preflight1(PreflightContext const &ctx)</div><div class="ttdoc">Performs early sanity checks on the account and fee fields.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8cpp_source.html#l00083">Transactor.cpp:83</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5f936a9395ee6781feff5c6a13adacf1"><div class="ttname"><a href="namespaceripple.html#a5f936a9395ee6781feff5c6a13adacf1">ripple::adjustAmountsByLPTokens</a></div><div class="ttdeci">std::tuple< STAmount, std::optional< STAmount >, STAmount > adjustAmountsByLPTokens(STAmount const &amountBalance, STAmount const &amount, std::optional< STAmount > const &amount2, STAmount const &lptAMMBalance, STAmount const &lpTokens, std::uint16_t tfee, bool isDeposit)</div><div class="ttdoc">Calls adjustLPTokens() and adjusts deposit or withdraw amounts if the adjusted LP tokens are less tha...</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8cpp_source.html#l00147">AMMHelpers.cpp:147</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a620f1516447f54ef50ac790f5f0720a3"><div class="ttname"><a href="namespaceripple.html#a620f1516447f54ef50ac790f5f0720a3">ripple::tfOneAssetLPToken</a></div><div class="ttdeci">constexpr std::uint32_t tfOneAssetLPToken</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00217">TxFlags.h:217</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a62e9ba0cf1379cc7c73007cafd91b972"><div class="ttname"><a href="namespaceripple.html#a62e9ba0cf1379cc7c73007cafd91b972">ripple::isOnlyLiquidityProvider</a></div><div class="ttdeci">Expected< bool, TER > isOnlyLiquidityProvider(ReadView const &view, Issue const &ammIssue, AccountID const &lpAccount)</div><div class="ttdoc">Return true if the Liquidity Provider is the only AMM provider, false otherwise.</div><div class="ttdef"><b>Definition:</b> <a href="AMMUtils_8cpp_source.html#l00386">AMMUtils.cpp:386</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a6bdc23ab696afbce2568a4c9563e9ec2"><div class="ttname"><a href="namespaceripple.html#a6bdc23ab696afbce2568a4c9563e9ec2">ripple::tokensWithdraw</a></div><div class="ttdeci">static std::optional< STAmount > tokensWithdraw(STAmount const &lpTokens, std::optional< STAmount > const &tokensIn, std::uint32_t flags)</div><div class="ttdef"><b>Definition:</b> <a href="AMMWithdraw_8cpp_source.html#l00157">AMMWithdraw.cpp:157</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a6cb89b79bc073abda42953c323d36cda"><div class="ttname"><a href="namespaceripple.html#a6cb89b79bc073abda42953c323d36cda">ripple::isFrozen</a></div><div class="ttdeci">bool isFrozen(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00239">View.cpp:239</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a768092086ea18d2dbeb64efb9fa12ba5"><div class="ttname"><a href="namespaceripple.html#a768092086ea18d2dbeb64efb9fa12ba5">ripple::ammAccountID</a></div><div class="ttdeci">AccountID ammAccountID(std::uint16_t prefix, uint256 const &parentHash, uint256 const &ammID)</div><div class="ttdoc">Calculate AMM account ID.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00043">AMMCore.cpp:43</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a6cb89b79bc073abda42953c323d36cda"><div class="ttname"><a href="namespaceripple.html#a6cb89b79bc073abda42953c323d36cda">ripple::isFrozen</a></div><div class="ttdeci">bool isFrozen(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00250">View.cpp:250</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a7ac113783ec3f596fe69ab6d1daabbac"><div class="ttname"><a href="namespaceripple.html#a7ac113783ec3f596fe69ab6d1daabbac">ripple::tfTwoAsset</a></div><div class="ttdeci">constexpr std::uint32_t tfTwoAsset</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00216">TxFlags.h:216</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a7c5d3108f4942ebc53a3fa4f83c2d577"><div class="ttname"><a href="namespaceripple.html#a7c5d3108f4942ebc53a3fa4f83c2d577">ripple::ammLPHolds</a></div><div class="ttdeci">STAmount ammLPHolds(ReadView const &view, Currency const &cur1, Currency const &cur2, AccountID const &ammAccount, AccountID const &lpAccount, beast::Journal const j)</div><div class="ttdoc">Get the balance of LP tokens.</div><div class="ttdef"><b>Definition:</b> <a href="AMMUtils_8cpp_source.html#l00112">AMMUtils.cpp:112</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a8383eb169324b23c0b4b49d6c2d2c877"><div class="ttname"><a href="namespaceripple.html#a8383eb169324b23c0b4b49d6c2d2c877">ripple::tfWithdrawAll</a></div><div class="ttdeci">constexpr std::uint32_t tfWithdrawAll</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00213">TxFlags.h:213</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a8b257ff89d14ac75ce240946f32d3773"><div class="ttname"><a href="namespaceripple.html#a8b257ff89d14ac75ce240946f32d3773">ripple::preflight2</a></div><div class="ttdeci">NotTEC preflight2(PreflightContext const &ctx)</div><div class="ttdoc">Checks whether the signature appears valid.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8cpp_source.html#l00144">Transactor.cpp:144</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a9d22f4d38ac33f4258a0205f8e11d27ea93cba07454f06a4a960172bbd6e2a435"><div class="ttname"><a href="namespaceripple.html#a9d22f4d38ac33f4258a0205f8e11d27ea93cba07454f06a4a960172bbd6e2a435">ripple::WaiveTransferFee::Yes</a></div><div class="ttdeci">@ Yes</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a9e3dc59bb58c33f14b3c0d3070b94d98"><div class="ttname"><a href="namespaceripple.html#a9e3dc59bb58c33f14b3c0d3070b94d98">ripple::noIssue</a></div><div class="ttdeci">Issue const & noIssue()</div><div class="ttdoc">Returns an asset specifier that represents no account and currency.</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00126">Issue.h:126</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072">ripple::tecINCOMPLETE</a></div><div class="ttdeci">@ tecINCOMPLETE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00322">TER.h:322</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca608da193a4a22ae1c78d76b6e843b7e6"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca608da193a4a22ae1c78d76b6e843b7e6">ripple::tecFROZEN</a></div><div class="ttdeci">@ tecFROZEN</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00290">TER.h:290</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca76cbeb350414c96455384b4a1b9cf6c3"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca76cbeb350414c96455384b4a1b9cf6c3">ripple::tecAMM_EMPTY</a></div><div class="ttdeci">@ tecAMM_EMPTY</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00319">TER.h:319</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77">ripple::tecINTERNAL</a></div><div class="ttdeci">@ tecINTERNAL</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00297">TER.h:297</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cac35fc8d7149d3ed399143b88c48409f6"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cac35fc8d7149d3ed399143b88c48409f6">ripple::tecAMM_FAILED</a></div><div class="ttdeci">@ tecAMM_FAILED</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00317">TER.h:317</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cae04fb0979694245c81c59f9cb35181e9"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae04fb0979694245c81c59f9cb35181e9">ripple::tecAMM_INVALID_TOKENS</a></div><div class="ttdeci">@ tecAMM_INVALID_TOKENS</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00318">TER.h:318</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cae64cec73f40a04653c193fbee09733c5"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae64cec73f40a04653c193fbee09733c5">ripple::tecAMM_BALANCE</a></div><div class="ttdeci">@ tecAMM_BALANCE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00316">TER.h:316</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cae930fb228ae74317976b57b4e87a7f0d"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae930fb228ae74317976b57b4e87a7f0d">ripple::tecINSUFFICIENT_RESERVE</a></div><div class="ttdeci">@ tecINSUFFICIENT_RESERVE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00294">TER.h:294</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca576f5411ab4458ec9842480e7ebe7072">ripple::tecINCOMPLETE</a></div><div class="ttdeci">@ tecINCOMPLETE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00335">TER.h:335</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca608da193a4a22ae1c78d76b6e843b7e6"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca608da193a4a22ae1c78d76b6e843b7e6">ripple::tecFROZEN</a></div><div class="ttdeci">@ tecFROZEN</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00303">TER.h:303</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca76cbeb350414c96455384b4a1b9cf6c3"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca76cbeb350414c96455384b4a1b9cf6c3">ripple::tecAMM_EMPTY</a></div><div class="ttdeci">@ tecAMM_EMPTY</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00332">TER.h:332</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca93e4e159f8759ea0948423c699e7cf77">ripple::tecINTERNAL</a></div><div class="ttdeci">@ tecINTERNAL</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00310">TER.h:310</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cac35fc8d7149d3ed399143b88c48409f6"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cac35fc8d7149d3ed399143b88c48409f6">ripple::tecAMM_FAILED</a></div><div class="ttdeci">@ tecAMM_FAILED</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00330">TER.h:330</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cae04fb0979694245c81c59f9cb35181e9"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae04fb0979694245c81c59f9cb35181e9">ripple::tecAMM_INVALID_TOKENS</a></div><div class="ttdeci">@ tecAMM_INVALID_TOKENS</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00331">TER.h:331</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cae64cec73f40a04653c193fbee09733c5"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae64cec73f40a04653c193fbee09733c5">ripple::tecAMM_BALANCE</a></div><div class="ttdeci">@ tecAMM_BALANCE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00329">TER.h:329</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38cae930fb228ae74317976b57b4e87a7f0d"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38cae930fb228ae74317976b57b4e87a7f0d">ripple::tecINSUFFICIENT_RESERVE</a></div><div class="ttdeci">@ tecINSUFFICIENT_RESERVE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00307">TER.h:307</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa3f065b75d23f712be19a1a953fe5b4a"><div class="ttname"><a href="namespaceripple.html#aa3f065b75d23f712be19a1a953fe5b4a">ripple::tfLPToken</a></div><div class="ttdeci">constexpr std::uint32_t tfLPToken</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00212">TxFlags.h:212</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa8871e2f35cee24497183274c0bab5fd"><div class="ttname"><a href="namespaceripple.html#aa8871e2f35cee24497183274c0bab5fd">ripple::getFee</a></div><div class="ttdeci">Number getFee(std::uint16_t tfee)</div><div class="ttdoc">Convert to the fee from the basis points.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8h_source.html#l00109">AMMCore.h:109</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151"><div class="ttname"><a href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">ripple::tesSUCCESS</a></div><div class="ttdeci">@ tesSUCCESS</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00243">TER.h:242</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aac3db9cd7b81ce8bd1ebf45435f0909b"><div class="ttname"><a href="namespaceripple.html#aac3db9cd7b81ce8bd1ebf45435f0909b">ripple::invalidAMMAssetPair</a></div><div class="ttdeci">NotTEC invalidAMMAssetPair(Issue const &issue1, Issue const &issue2, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt)</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00092">AMMCore.cpp:92</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aa8871e2f35cee24497183274c0bab5fd"><div class="ttname"><a href="namespaceripple.html#aa8871e2f35cee24497183274c0bab5fd">ripple::getFee</a></div><div class="ttdeci">Number getFee(std::uint16_t tfee)</div><div class="ttdoc">Convert to the fee from the basis points.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8h_source.html#l00101">AMMCore.h:101</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151"><div class="ttname"><a href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">ripple::tesSUCCESS</a></div><div class="ttdeci">@ tesSUCCESS</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00245">TER.h:244</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aac3db9cd7b81ce8bd1ebf45435f0909b"><div class="ttname"><a href="namespaceripple.html#aac3db9cd7b81ce8bd1ebf45435f0909b">ripple::invalidAMMAssetPair</a></div><div class="ttdeci">NotTEC invalidAMMAssetPair(Issue const &issue1, Issue const &issue2, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt)</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00080">AMMCore.cpp:80</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ab656cc4e3a94b007e52a53420c2d2460"><div class="ttname"><a href="namespaceripple.html#ab656cc4e3a94b007e52a53420c2d2460">ripple::ammHolds</a></div><div class="ttdeci">Expected< std::tuple< STAmount, STAmount, STAmount >, TER > ammHolds(ReadView const &view, SLE const &ammSle, std::optional< Issue > const &optIssue1, std::optional< Issue > const &optIssue2, FreezeHandling freezeHandling, beast::Journal const j)</div><div class="ttdoc">Get AMM pool and LP token balances.</div><div class="ttdef"><b>Definition:</b> <a href="AMMUtils_8cpp_source.html#l00046">AMMUtils.cpp:46</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aba96948641b5ee7f466ab43080c672d8"><div class="ttname"><a href="namespaceripple.html#aba96948641b5ee7f466ab43080c672d8">ripple::tfWithdrawSubTx</a></div><div class="ttdeci">constexpr std::uint32_t tfWithdrawSubTx</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00220">TxFlags.h:220</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ac124fe6744b7fe887dec949b56b16d50"><div class="ttname"><a href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">ripple::to_string</a></div><div class="ttdeci">std::string to_string(base_uint< Bits, Tag > const &a)</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00630">base_uint.h:630</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_adebe4d783be9c979e67fdbb2bc27162fac110e4ea19a46f9ce263c5d746b34178"><div class="ttname"><a href="namespaceripple.html#adebe4d783be9c979e67fdbb2bc27162fac110e4ea19a46f9ce263c5d746b34178">ripple::terNO_AMM</a></div><div class="ttdeci">@ terNO_AMM</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00227">TER.h:227</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_adfb760bc3e4ccb79d5d4f6ecff2f1817"><div class="ttname"><a href="namespaceripple.html#adfb760bc3e4ccb79d5d4f6ecff2f1817">ripple::TER</a></div><div class="ttdeci">TERSubset< CanCvtToTER > TER</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00627">TER.h:627</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_adfb760bc3e4ccb79d5d4f6ecff2f1817"><div class="ttname"><a href="namespaceripple.html#adfb760bc3e4ccb79d5d4f6ecff2f1817">ripple::TER</a></div><div class="ttdeci">TERSubset< CanCvtToTER > TER</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00643">TER.h:643</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aea4620f7a5356019edee3be624729c6d"><div class="ttname"><a href="namespaceripple.html#aea4620f7a5356019edee3be624729c6d">ripple::withdrawByTokens</a></div><div class="ttdeci">STAmount withdrawByTokens(STAmount const &assetBalance, STAmount const &lptAMMBalance, STAmount const &lpTokens, std::uint16_t tfee)</div><div class="ttdoc">Calculate asset withdrawal by tokens.</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8cpp_source.html#l00114">AMMHelpers.cpp:114</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aea954383230f579cb080646b898088a5"><div class="ttname"><a href="namespaceripple.html#aea954383230f579cb080646b898088a5">ripple::withinRelativeDistance</a></div><div class="ttdeci">bool withinRelativeDistance(Quality const &calcQuality, Quality const &reqQuality, Number const &dist)</div><div class="ttdoc">Check if the relative distance between the qualities is within the requested distance.</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8h_source.html#l00127">AMMHelpers.h:127</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af2e2ee9b2b3499ff23ebbc249e188764"><div class="ttname"><a href="namespaceripple.html#af2e2ee9b2b3499ff23ebbc249e188764">ripple::accountSend</a></div><div class="ttdeci">TER accountSend(ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, beast::Journal j, WaiveTransferFee waiveFee)</div><div class="ttdoc">Calls static accountSendIOU if saAmount represents Issue.</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l01611">View.cpp:1611</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af99ba2263d2a1e29207c40a35fc9f6b3"><div class="ttname"><a href="namespaceripple.html#af99ba2263d2a1e29207c40a35fc9f6b3">ripple::NotTEC</a></div><div class="ttdeci">TERSubset< CanCvtToNotTEC > NotTEC</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00587">TER.h:587</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af2e2ee9b2b3499ff23ebbc249e188764"><div class="ttname"><a href="namespaceripple.html#af2e2ee9b2b3499ff23ebbc249e188764">ripple::accountSend</a></div><div class="ttdeci">TER accountSend(ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, beast::Journal j, WaiveTransferFee waiveFee)</div><div class="ttdoc">Calls static accountSendIOU if saAmount represents Issue.</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l01978">View.cpp:1978</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af99ba2263d2a1e29207c40a35fc9f6b3"><div class="ttname"><a href="namespaceripple.html#af99ba2263d2a1e29207c40a35fc9f6b3">ripple::NotTEC</a></div><div class="ttdeci">TERSubset< CanCvtToNotTEC > NotTEC</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00603">TER.h:603</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a6c750a245b6efb84fdc4ab34dc010328">ripple::temMALFORMED</a></div><div class="ttdeci">@ temMALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00087">TER.h:87</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a8eb12fd6bc0d12423fb855b14864acb4"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a8eb12fd6bc0d12423fb855b14864acb4">ripple::temBAD_AMM_TOKENS</a></div><div class="ttdeci">@ temBAD_AMM_TOKENS</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00129">TER.h:129</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46aa4754e0f122658747650b3b1c0a846a8"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46aa4754e0f122658747650b3b1c0a846a8">ripple::temINVALID_FLAG</a></div><div class="ttdeci">@ temINVALID_FLAG</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00111">TER.h:111</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user